/* assets/css/base.css
   Reset + base typography + a11y helpers (FINAL)
*/



*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(42,125,191,.12), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(242,106,46,.10), transparent 55%),
    var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  width: min(var(--container), calc(100% - (var(--gutter)*2)));
  margin-inline:auto;
}

.h1,.h2,.h3{
  font-family: var(--ff-heading);
  letter-spacing: .5px;
  margin:0;
}
.h1{ font-size: clamp(34px, 4vw, 56px); font-weight:700; line-height:1.05; }
.h2{ font-size: clamp(26px, 3vw, 40px); font-weight:600; line-height:1.15; }
.h3{ font-size: clamp(18px, 2vw, 24px); font-weight:600; line-height:1.25; }

.lead{ font-size: clamp(16px, 1.4vw, 18px); color: var(--c-muted); }
.muted{ color: var(--c-muted); margin:0; }

.eyebrow{
  display:inline-block;
  font-weight:600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin:0 0 var(--s-2);
}

/* A11y */
.skip-link{
  position:absolute; left:-999px; top:10px;
  background: #fff; color:#000;
  padding:10px 12px; border-radius:10px;
}
.skip-link:focus{ left:10px; z-index:9999; }

/* Reveal */
.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform: translateY(10px); }
.js .reveal.is-in{ opacity:1; transform:none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }


/* Mobile hard-fix: Services page "Çalışma Süreci" must NEVER be hidden.
   Root cause: `.js .reveal { opacity:0 }` + IO not firing on some mobile browsers.
   Scope: ONLY /hizmetler.php (body.page--service) and ONLY the process block.
   Desktop remains unchanged.
*/
@media (max-width: 980px){
  body.page--service .process[data-process] .reveal,
  body.page--service .process[data-process] .reveal *{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}


@media (prefers-reduced-motion: reduce){
  .js .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}
