/* ============================================================
   İÇEN HUKUK — Design System
   Direction: "Legal Ledger" — editorial docket, hairline grid,
   deep forest + bone + antique brass. Fraunces / Hanken / Plex Mono.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — deep navy + antique gold + ivory (matches İÇEN HUKUK logo & office) */
  --bone:        #f4f1e9;
  --bone-2:      #e7e1d3;
  --paper:       #fcfaf5;
  --ink:         #15222f;
  --ink-soft:    #4d5867;
  --forest:      #14273d;
  --forest-2:    #1d3a5b;
  --forest-deep: #0c1826;
  --sage:        #6c7889;
  --brass:       #a9803f;
  --brass-lite:  #c8a25a;
  --line:        rgba(21, 34, 47, .14);
  --line-2:      rgba(21, 34, 47, .08);

  /* semantic (light) */
  --bg:        var(--bone);
  --surface:   var(--paper);
  --text:      var(--ink);
  --text-soft: var(--ink-soft);
  --rule:      var(--line);
  --rule-soft: var(--line-2);
  --accent:    var(--brass);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --rail: 46px;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg:        #0c1826;
  --surface:   #122539;
  --text:      #e8edf3;
  --text-soft: #9fabbb;
  --rule:      rgba(232, 237, 243, .16);
  --rule-soft: rgba(232, 237, 243, .08);
  --accent:    var(--brass-lite);
  --bone-2:    #10233a;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

img, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: .78em; letter-spacing: .04em; }
.muted { color: var(--text-soft); }

::selection { background: var(--forest); color: var(--bone); }

.skip-link {
  position: fixed; left: -999px; top: 10px; z-index: 200;
  background: var(--forest); color: var(--bone); padding: 10px 16px; border-radius: 2px;
}
.skip-link:focus { left: 10px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-lite));
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--rule);
}
.site-header::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 200%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,24,38,.6), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header:not(.is-stuck)::after { opacity: 1; }
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.site-header.is-stuck .site-header__inner { height: 64px; }
.site-header__inner, .site-header__inner * { transition: height .35s var(--ease); }

/* hero is dark → header text light until stuck */
.site-header:not(.is-stuck) { color: var(--bone); }
.site-header:not(.is-stuck) .nav a { color: rgba(243,239,228,.82); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__glyph { width: 26px; height: 26px; color: var(--accent); flex: none; }
.site-header:not(.is-stuck) .brand__glyph { color: var(--brass-lite); }
.brand__text {
  font-family: var(--f-display); font-size: 20px; font-weight: 500;
  letter-spacing: .06em;
}
.brand__text em { font-style: normal; font-weight: 300; opacity: .62; margin-left: 2px; }

.nav { margin-left: auto; display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav a {
  position: relative; font-size: 15px; color: var(--text-soft); padding: 4px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .28s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.site-header:not(.is-stuck) .nav a:hover, .site-header:not(.is-stuck) .nav a.active { color: var(--bone); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.nav ~ .site-header__actions { margin-left: 0; }
.nav { margin-right: 6px; }

.theme-toggle {
  width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center;
  transition: border-color .25s, transform .25s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); font-family: var(--f-body); font-size: 15px; font-weight: 500;
  letter-spacing: .01em; border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn--brass { background: var(--brass); color: #1a130a; border-color: var(--brass); }
.btn--brass:hover { background: var(--brass-lite); }
.btn--ghost { background: transparent; color: var(--bone); border-color: rgba(243,239,228,.4); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(243,239,228,.08); }
.btn--ghost-dark { color: var(--text); border-color: var(--rule); }
.btn--ghost-dark:hover { border-color: var(--accent); background: transparent; }
.nav-cta { font-size: 14px; padding: 11px 20px; }

.hamburger { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: 1.02fr 0.98fr; background: var(--forest-deep); color: var(--bone);
  overflow: hidden;
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after { /* blend photo into navy panel on its left edge */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--forest-deep) 0%, rgba(12,24,38,.55) 22%, rgba(12,24,38,.12) 55%, transparent 100%);
}
.hero__media::before { /* subtle navy unifying tint over the photo */
  content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply;
  background: linear-gradient(180deg, rgba(20,39,61,.28), rgba(12,24,38,.42));
}
.hero__panel {
  display: flex; align-items: center; padding: 120px var(--gut) 84px; position: relative; z-index: 2;
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
}
.hero__content { max-width: 600px; margin-left: auto; padding-right: clamp(8px, 3vw, 48px); }
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
  line-height: 1.06; font-weight: 420; letter-spacing: -0.018em;
  margin: 20px 0 24px; text-wrap: balance;
}
.hero__lede { max-width: 52ch; font-size: clamp(1rem, 1.2vw, 1.16rem); color: rgba(244,241,233,.8); line-height: 1.72; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: clamp(28px, 4vw, 56px);
  margin: 46px 0 0; padding-top: 28px; border-top: 1px solid rgba(244,241,233,.16);
  width: fit-content;
}
.hero__stats dt {
  font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 430;
  line-height: 1; color: var(--bone);
}
.hero__stats dt .plus { color: var(--brass-lite); font-size: .7em; vertical-align: super; }
.hero__stats dd { margin: 9px 0 0; font-size: 12px; letter-spacing: .08em; color: rgba(244,241,233,.62); text-transform: uppercase; }

.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin: 0;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--brass-lite); }

/* ============================================================
   Trust strip (marquee)
   ============================================================ */
.trust {
  background: var(--forest-deep); color: rgba(243,239,228,.7); overflow: hidden;
  border-block: 1px solid rgba(243,239,228,.1);
}
.trust__track {
  display: flex; align-items: center; gap: 26px; padding-block: 16px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; flex-wrap: wrap; justify-content: center;
}
.trust__track i { color: var(--brass); font-style: normal; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.section__title {
  font-family: var(--f-display); font-weight: 360; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; margin: 16px 0 0;
}
.section__intro { margin-top: 18px; color: var(--text-soft); font-size: 1.08rem; max-width: 58ch; }
.lede { font-size: 1.15rem; color: var(--text); }

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.portrait { position: relative; }
.portrait__frame {
  aspect-ratio: 4/5; border-radius: 3px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(198,154,82,.2), transparent 60%),
    linear-gradient(160deg, var(--forest-2), var(--forest-deep));
  border: 1px solid var(--rule);
  display: grid; place-items: center;
}
.portrait__frame::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(243,239,228,.14);
}
.portrait__initials {
  font-family: var(--f-display); font-size: clamp(4rem, 12vw, 8rem); color: rgba(243,239,228,.9);
  font-weight: 300; font-style: italic;
}
.portrait__caption {
  position: absolute; left: 0; right: 0; bottom: 20px; text-align: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(243,239,228,.72);
}
.portrait__badge {
  position: absolute; right: -14px; bottom: 40px; background: var(--brass); color: #1a130a;
  padding: 10px 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 2px; box-shadow: 0 12px 30px rgba(20,33,28,.25);
}
.about__body .eyebrow { margin-bottom: 4px; }
.about__body p + p { margin-top: 16px; }
.about__body .lede { margin-top: 14px; }

.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 8px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.link-arrow {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--text); border-bottom: 1px solid var(--rule); padding-bottom: 4px;
  transition: gap .25s, border-color .25s;
}
.link-arrow svg { width: 20px; height: 20px; color: var(--accent); transition: transform .25s var(--ease); }
.link-arrow:hover { gap: 16px; border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Services / Case files  (signature)
   ============================================================ */
.cases { border-top: 1px solid var(--rule); }
.case {
  position: relative; display: grid;
  grid-template-columns: 54px 60px 1fr auto; align-items: baseline;
  gap: clamp(14px, 2.4vw, 40px);
  padding: clamp(24px, 3.4vw, 40px) 8px; border-bottom: 1px solid var(--rule);
  cursor: default; overflow: hidden;
  transition: background .4s var(--ease);
}
.case::before { /* drawn brass hairline on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-lite));
  transition: width .5s var(--ease);
}
.case:hover, .case:focus-visible { background: color-mix(in srgb, var(--accent) 6%, transparent); outline: none; }
.case:hover::before, .case:focus-visible::before { width: 100%; }
.case__idx { color: var(--text-soft); align-self: start; padding-top: .35em; }
.case__code {
  align-self: start; margin-top: .1em; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: 50%;
  color: var(--accent); font-weight: 500; letter-spacing: .02em;
  transition: border-color .4s, background .4s, color .4s;
}
.case:hover .case__code { border-color: var(--accent); background: var(--accent); color: #1a130a; }
.case__title {
  font-family: var(--f-display); font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 380;
  line-height: 1.05;
}
.case__desc { margin-top: 10px; color: var(--text-soft); max-width: 60ch; }
.case__cta {
  align-self: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-soft); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; opacity: .6; transition: opacity .3s, color .3s;
}
.case__cta::after { content: "→"; transition: transform .3s var(--ease); }
.case:hover .case__cta { opacity: 1; color: var(--accent); }
.case:hover .case__cta::after { transform: translateX(4px); }

.case__reveal {
  grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.case:hover .case__reveal, .case:focus-within .case__reveal {
  max-height: 120px; opacity: 1; margin-top: 18px;
}
.case__reveal span {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; color: var(--text-soft);
  border: 1px solid var(--rule); border-radius: 100px; padding: 5px 12px;
}

/* ============================================================
   Process
   ============================================================ */
.process { background: var(--bone-2); }
[data-theme="dark"] .process { background: var(--surface); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
.step { padding: 34px 26px 40px 0; border-right: 1px solid var(--rule); position: relative; }
.step:last-child { border-right: none; }
.step:first-child { padding-left: 0; }
.step:not(:first-child) { padding-left: 26px; }
.step__no {
  font-family: var(--f-display); font-size: 1.4rem; color: var(--accent); font-style: italic;
  display: block; margin-bottom: 20px;
}
.step h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 420; line-height: 1.15; }
.step p { margin-top: 12px; color: var(--text-soft); font-size: .98rem; }
.step::after {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--accent);
  transition: width .6s var(--ease);
}
.step.in-view::after { width: 40px; }

/* ============================================================
   Team
   ============================================================ */
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.member { border-top: 2px solid var(--text); padding-top: 20px; }
.member__photo {
  aspect-ratio: 1; border-radius: 3px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(160deg, var(--forest-2), var(--forest-deep));
  position: relative; overflow: hidden;
}
.member__photo::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(243,239,228,.12); }
.member__photo span {
  font-family: var(--f-display); font-style: italic; font-size: 3rem; color: rgba(243,239,228,.85); font-weight: 300;
}
.member h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 420; }
.member__role { color: var(--accent); margin: 6px 0 10px; display: block; }
.member__bio { color: var(--text-soft); font-size: .95rem; }
.team__note { margin-top: 34px; color: var(--text-soft); font-size: 12px; }
.team__note code { background: var(--bone-2); padding: 2px 6px; border-radius: 3px; }
[data-theme="dark"] .team__note code { background: rgba(236,230,213,.08); }

/* ============================================================
   Testimonials
   ============================================================ */
.quotes { background: var(--forest); color: var(--bone); }
.quotes .section__title { color: var(--bone); }
.quote-slider { max-width: 900px; margin-top: 20px; }
.quote-slider__track { position: relative; min-height: 200px; }
.quote {
  position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.quote blockquote {
  font-family: var(--f-display); font-weight: 330; font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.32; margin: 0;
  letter-spacing: -.01em; color: var(--bone);
}
.quote blockquote::before { content: "“"; color: var(--brass-lite); margin-right: .1em; }
.quote figcaption { margin-top: 24px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; color: rgba(243,239,228,.66); text-transform: uppercase; }
.quote-slider__nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.quote-slider__nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243,239,228,.28);
  background: transparent; color: var(--bone); font-size: 20px; cursor: pointer; line-height: 1;
  transition: border-color .25s, background .25s;
}
.quote-slider__nav button:hover { border-color: var(--brass-lite); background: rgba(243,239,228,.06); }
.quote-slider__dots { display: flex; gap: 8px; }
.quote-slider__dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(243,239,228,.3); transition: background .25s, width .25s;
}
.quote-slider__dots button.is-active { background: var(--brass-lite); width: 22px; border-radius: 6px; }

/* ============================================================
   Articles
   ============================================================ */
.articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.post {
  border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-direction: column;
  min-height: 260px; transition: border-color .3s;
}
.post:hover { border-color: var(--accent); }
.post__tag { color: var(--accent); margin-bottom: 16px; }
.post h3 { font-family: var(--f-display); font-size: 1.4rem; font-weight: 420; line-height: 1.2; }
.post h3 a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.post:hover h3 a { background-size: 100% 1px; }
.post p { margin-top: 12px; color: var(--text-soft); font-size: .98rem; flex: 1; }
.post__meta { margin-top: 18px; color: var(--text-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__intro .section__title { margin-bottom: 18px; }
.faq__intro .btn { margin-top: 26px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--f-display); font-size: clamp(1.1rem, 1.9vw, 1.4rem); font-weight: 400;
  color: var(--text); padding: 24px 44px 24px 0; position: relative; line-height: 1.3;
  transition: color .2s;
}
.faq-item__q:hover { color: var(--accent); }
.faq-item__icon { position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; background: var(--accent); transition: transform .3s var(--ease);
}
.faq-item__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-item__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-item__icon::after { transform: scaleY(0); }
.faq-item__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-item__a p { padding: 0 40px 26px 0; color: var(--text-soft); }

/* ============================================================
   Appointment
   ============================================================ */
.appointment { background: var(--forest-deep); color: var(--bone); }
.appt__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.appt__grid .section__title { color: var(--bone); }
.appt__lede { color: rgba(243,239,228,.78); margin-top: 18px; max-width: 42ch; }
.appt__contacts { margin-top: 34px; display: grid; gap: 2px; }
.appt__contacts li {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center;
  padding: 16px 0; border-top: 1px solid rgba(243,239,228,.14);
}
.appt__contacts li:last-child { border-bottom: 1px solid rgba(243,239,228,.14); }
.appt__contacts .mono { color: var(--brass-lite); }
.appt__contacts a:hover { color: var(--brass-lite); }

.appt__form {
  background: color-mix(in srgb, var(--bone) 96%, transparent); color: var(--ink);
  padding: clamp(24px, 3vw, 40px); border-radius: 4px;
}
[data-theme="dark"] .appt__form { background: var(--surface); color: var(--text); }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
[data-theme="dark"] .field label { color: var(--text-soft); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 16px; color: inherit; background: transparent;
  border: none; border-bottom: 1.5px solid var(--line); padding: 10px 2px; border-radius: 0;
  transition: border-color .25s;
}
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { border-bottom-color: var(--rule); }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a97e3c' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.field.invalid input, .field.invalid select { border-bottom-color: #b4472f; }
.field__err { color: #b4472f; font-size: 12px; margin-top: 6px; min-height: 0; font-family: var(--f-mono); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin: 4px 0 22px; cursor: pointer; }
[data-theme="dark"] .check { color: var(--text-soft); }
.check input { margin-top: 3px; accent-color: var(--brass); width: 17px; height: 17px; flex: none; }
.appt__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.appt__status { margin-top: 18px; font-family: var(--f-mono); font-size: 13px; min-height: 1em; }
.appt__status.ok { color: #2f7d4f; }
.appt__status.err { color: #b4472f; }

/* ============================================================
   Contact
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; background: var(--rule); border: 1px solid var(--rule); }
.contact-card { background: var(--bg); padding: 24px; }
.contact-card .mono { color: var(--accent); display: block; margin-bottom: 10px; }
.contact-card a:hover { color: var(--accent); }
.contact__map { min-height: 380px; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; position: relative; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35) contrast(1.02); display: block; }
[data-theme="dark"] .contact__map iframe { filter: grayscale(.5) invert(.9) hue-rotate(160deg) contrast(.95); }
.map-facade {
  width: 100%; height: 100%; min-height: 380px; border: 0; cursor: pointer; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative;
  background: linear-gradient(160deg, var(--forest-2), var(--forest-deep)); color: var(--bone);
  font-family: var(--f-body); overflow: hidden;
}
.map-facade__grid {
  position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(244,241,233,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,233,.4) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-facade__pin { position: relative; width: 46px; height: 46px; color: var(--brass-lite); margin-bottom: 4px; }
.map-facade__pin svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.map-facade__label { position: relative; font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.map-facade small { position: relative; color: rgba(244,241,233,.68); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.map-facade::after {
  content: "Yüklemek için dokunun"; position: absolute; bottom: 16px; font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,241,233,.5);
}
.map-facade:hover { filter: brightness(1.08); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--forest-deep); color: rgba(243,239,228,.75); padding-top: clamp(56px, 7vw, 92px); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(243,239,228,.12); }
.brand__text--foot { color: var(--bone); font-size: 24px; display: inline-block; margin-bottom: 16px; }
.site-footer__brand p { max-width: 34ch; font-size: .95rem; }
.site-footer__nav { display: grid; gap: 10px; align-content: start; }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: var(--brass-lite); }
.site-footer__contact { display: grid; gap: 10px; align-content: start; font-family: var(--f-mono); font-size: 13px; }
.site-footer__contact address { font-style: normal; color: rgba(244,241,233,.7); line-height: 1.6; }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 38px; height: 38px; border: 1px solid rgba(244,241,233,.2); border-radius: 50%;
  display: grid; place-items: center; color: rgba(244,241,233,.8);
  transition: border-color .25s, color .25s, background .25s;
}
.social-row a:hover { border-color: var(--brass-lite); color: var(--brass-lite); background: rgba(244,241,233,.05); }
.social-row svg { width: 18px; height: 18px; }

.site-footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding-block: 22px; font-size: 13px; color: rgba(244,241,233,.5); border-top: 1px solid rgba(244,241,233,.1); }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__legal-links a { color: rgba(244,241,233,.6); }
.site-footer__legal-links a:hover { color: var(--brass-lite); }
.site-footer__disclaimer { padding-bottom: 26px; }
.site-footer__disclaimer .mono { color: rgba(244,241,233,.4); font-size: 12px; }

/* contact extras */
.contact-card--wide { grid-column: 1 / -1; }
.contact-social { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.contact-social a { position: relative; }
.contact-social a:not(:last-child)::after { content: "·"; position: absolute; right: -10px; color: var(--rule); }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d5b; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 38px rgba(0,0,0,.34); }

/* ============================================================
   Real logo (brand chip + footer plaque)
   ============================================================ */
.brand__logo {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: #fff;
  display: grid; place-items: center; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.14);
}
.brand__logo img { width: 92%; height: 92%; object-fit: contain; }
.footer-logo {
  display: inline-grid; place-items: center; width: 104px; height: 104px;
  background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 18px;
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- About portrait image ---------- */
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.portrait__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(13,24,19,.82), rgba(13,24,19,.05) 46%);
}
.portrait__frame::after { z-index: 2; }
.portrait__caption { z-index: 3; }

/* ============================================================
   Team — two real members
   ============================================================ */
.team__grid--two { grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 4vw, 46px); }
.team__grid--solo { grid-template-columns: 1fr; max-width: 900px; }
.team__grid--solo .member--wide { grid-template-columns: 240px 1fr; gap: clamp(24px, 3vw, 44px); }
.member--wide {
  display: grid; grid-template-columns: 190px 1fr; gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch; padding-top: 22px;
}
.member__photo--img {
  aspect-ratio: 3/4; margin: 0; border-radius: 3px; overflow: hidden; border: 1px solid var(--rule);
}
.member__photo--img::after { display: none; }
.member__photo--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member--wide:hover .member__photo--img img { transform: scale(1.05); }
.member__body { display: flex; flex-direction: column; justify-content: center; }
.member__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.member__tags li {
  border: 1px solid var(--rule); border-radius: 100px; padding: 4px 11px;
  color: var(--text-soft); font-size: 12px;
}

/* ============================================================
   Gallery + lightbox
   ============================================================ */
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 264px;
  grid-auto-flow: dense; gap: 14px;
}
.gallery__item {
  position: relative; margin: 0; overflow: hidden; border-radius: 3px; cursor: zoom-in;
  border: 1px solid var(--rule); background: var(--forest-deep);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); display: block; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 16px 14px;
  color: var(--bone); letter-spacing: .14em; font-size: 11px;
  background: linear-gradient(to top, rgba(13,24,19,.85), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.gallery__item:hover figcaption, .gallery__item:focus-within figcaption { opacity: 1; transform: none; }
.gallery__item::after {
  content: "⤢"; position: absolute; top: 12px; right: 14px; z-index: 2; color: var(--bone);
  font-size: 16px; opacity: 0; transition: opacity .3s; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.gallery__item:hover::after { opacity: .9; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,14,11,.95);
  display: none; align-items: center; justify-content: center; padding: 5vw;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: lbfade .3s var(--ease); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox__stage img { max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__stage figcaption { color: rgba(243,239,228,.72); margin-top: 16px; letter-spacing: .18em; font-size: 12px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(243,239,228,.08); border: 1px solid rgba(243,239,228,.24);
  color: var(--bone); cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background .25s, border-color .25s;
}
.lightbox__close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(243,239,228,.16); border-color: var(--brass-lite); }

/* ---------- Article media ---------- */
.post { min-height: 0; }
.post__media { display: block; aspect-ratio: 3/2; overflow: hidden; border-radius: 3px; margin-bottom: 18px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__scroll svg { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--rule); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(odd) { padding-left: 0; }
  .step:nth-child(even) { padding-left: 26px; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px);
    background: var(--forest); color: var(--bone); flex-direction: column; justify-content: center;
    gap: 4px; padding: 84px 36px; transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -30px 0 60px rgba(0,0,0,.35); margin: 0; z-index: 110; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { color: rgba(244,241,233,.88) !important; font-size: 21px; font-family: var(--f-display); padding: 12px 0; }
  .nav a::after { display: none; }
  .site-header__inner { gap: 12px; }
  .site-header__actions { margin-left: auto; }
  .hamburger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 8px; background: transparent;
    cursor: pointer; z-index: 120; flex: none;
  }
  .hamburger span { width: 18px; height: 1.5px; background: currentColor; margin-inline: auto; transition: transform .3s, opacity .3s; }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-cta { display: none; }
  .about__grid, .faq__grid, .appt__grid, .contact__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__map { min-height: 300px; }
  .team__grid--two { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  /* footer → stack */
  .site-footer__inner { grid-template-columns: 1fr; gap: 34px; }

  /* hero → single column, photo as backdrop */
  .hero { grid-template-columns: 1fr; }
  .hero__media { position: absolute; inset: 0; z-index: 0; }
  .hero__media::after { background: linear-gradient(180deg, rgba(12,24,38,.55) 0%, rgba(12,24,38,.84) 62%, rgba(12,24,38,.94) 100%); }
  .hero__panel { z-index: 2; background: transparent; min-height: 100svh; padding-top: 108px; }
  .hero__content { margin-left: 0; max-width: 640px; padding-right: 0; }
}

/* Touch devices: no hover → always reveal service details */
@media (hover: none) {
  .case__reveal { max-height: none; opacity: 1; margin-top: 16px; overflow: visible; }
  .case__cta { display: none; }
  .case:hover { background: transparent; }
  .link-arrow:hover, .btn { }
}

@media (max-width: 620px) {
  .hero__stats { grid-template-columns: repeat(3, auto); gap: 18px 20px; }
  .team__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(even) { padding-left: 0 !important; border-right: none; }
  .contact__cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  /* services case → code badge + content */
  .case { grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; padding-inline: 2px; }
  .case__idx { grid-column: 1; grid-row: 1; align-self: center; padding-top: 0; text-align: center; }
  .case__code { grid-column: 2; grid-row: 1; justify-self: start; width: 42px; height: 42px; margin: 0; }
  .case__title { font-size: 1.5rem; }
  .case__main { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; }
  .case__cta { display: none; }
  .case__reveal { grid-column: 1 / -1; grid-row: 3; }

  .appt__buttons { flex-direction: column; }
  .appt__buttons .btn { width: 100%; }
  .articles__grid { grid-template-columns: 1fr; }
  .member--wide, .team__grid--solo .member--wide { grid-template-columns: 1fr; gap: 18px; }
  .member__photo--img { max-width: 240px; aspect-ratio: 4/3; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }

  /* footer legal → stack */
  .site-footer__legal { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer__disclaimer { padding-bottom: 30px; }
  .appt__contacts li { grid-template-columns: 72px 1fr; gap: 12px; }
}

@media (max-width: 400px) {
  .hero__stats { gap: 14px 14px; }
  .hero__stats dt { font-size: 1.45rem; }
  .hero__stats dd { font-size: 11px; }
  .brand__text { font-size: 18px; }
  .brand__logo { width: 38px; height: 38px; }
  .section__title { font-size: 1.9rem; }
}
