/* =========================================================================
   Mahmut Yay — Uzman Klinik Psikolog — "Demir" theme
   Dark, calm, confident. Deep ink-teal + warm cream + sand. Bitter / Onest.
   Independent redesign demo. Real text content only; no photos (none available).
   ========================================================================= */

:root {
  --bg:      #13201D;
  --bg-2:    #1A2B27;
  --bg-3:    #0E1815;
  --cream:   #EDE7D9;
  --cream-2: #F6F1E6;
  --muted:   rgba(237, 231, 217, 0.72);
  --muted-2: rgba(237, 231, 217, 0.55);
  --sand:    #E0BE82;
  --sand-deep:#C99F57;
  --line:    rgba(237, 231, 217, 0.15);
  --line-soft:rgba(237, 231, 217, 0.08);

  /* light panel */
  --ink:     #16221F;
  --ink-muted:#48544F;

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans:  "Onest", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.64;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1 !important; transform: none !important; } }

.eyebrow { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--sand); display: inline-flex; align-items: center; gap: 0.6em; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--sand); opacity: .6; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); transition: background .4s, padding .4s, box-shadow .4s; }
.site-header.scrolled { background: rgba(14,24,21,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: baseline; gap: 0.5em; font-family: var(--serif); }
.brand b { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--cream-2); }
.brand span { font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a { font-size: 0.92rem; font-weight: 600; color: var(--cream); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--sand); transition: width .3s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--sand); }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button { font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; background: transparent; border: 0; cursor: pointer; color: var(--muted); transition: background .25s, color .25s; }
.lang-toggle button[aria-pressed="true"] { background: var(--sand); color: var(--bg-3); }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .nav-toggle span { width: 18px; height: 2px; background: var(--cream); transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--bg-2); flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 0 36px; transform: translateX(100%); transition: transform .45s cubic-bezier(.6,0,.2,1); box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a { font-size: 1.3rem; font-family: var(--serif); }
  .nav .lang-toggle { margin-top: 8px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--sans); font-weight: 700; font-size: 0.96rem; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.btn-primary { background: var(--sand); color: var(--bg-3); }
.btn-primary:hover { background: var(--sand-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--cream); }
.btn-outline:hover { border-color: var(--sand); color: var(--sand); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream-2); }
.btn-dark:hover { background: #0c1714; transform: translateY(-2px); }
.panel-light .btn-outline { border-color: rgba(22,34,31,.25); color: var(--ink); }
.panel-light .btn-outline:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* hero (photoless, atmospheric) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, #1d322d 0%, var(--bg) 46%, var(--bg-3) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(237,231,217,.05) 1px, transparent 0); background-size: 26px 26px; opacity: .5; }
.hero-inner { position: relative; padding: 150px var(--gutter) 90px; width: 100%; }
.hero-inner .eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); max-width: 17ch; font-weight: 500; }
.hero h1 .accent { color: var(--sand); font-style: italic; font-weight: 400; }
.hero .lede { color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.34rem); max-width: 50ch; margin-top: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* sections */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-head { max-width: 64ch; }
.section-head h2 { font-size: clamp(1.95rem, 3.9vw, 3rem); margin-top: 0.5em; font-weight: 500; }
.section-head p { color: var(--muted); margin-top: 1em; font-size: 1.08rem; max-width: 58ch; }

.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 800px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-quote { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.24; font-weight: 400; max-width: 18ch; }
.lead-quote .accent { color: var(--sand); font-style: italic; }
.body p { color: var(--muted); } .body p + p { margin-top: 1.05em; }

/* light panel (contrast spotlight) */
.panel-light { background: var(--cream); color: var(--ink); }
.panel-light .section-head h2 { color: var(--ink); }
.panel-light .section-head p { color: var(--ink-muted); }
.panel-light .eyebrow { color: var(--sand-deep); }
.panel-light .eyebrow::before { background: var(--sand-deep); opacity: 1; }
.panel-light .body p { color: var(--ink-muted); }
.panel-light .lead-quote { color: var(--ink); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; margin-top: 48px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg-2); padding: 32px 28px; }
.card .num { font-family: var(--serif); font-size: 1rem; color: var(--sand); }
.card h4 { font-size: 1.2rem; margin: 0.55em 0 0.4em; font-weight: 600; color: var(--cream-2); }
.card p { font-size: 0.95rem; color: var(--muted); }
.panel-light .cards { background: rgba(22,34,31,.1); border-color: rgba(22,34,31,.1); }
.panel-light .card { background: var(--cream-2); }
.panel-light .card .num { color: var(--sand-deep); }
.panel-light .card h4 { color: var(--ink); }
.panel-light .card p { color: var(--ink-muted); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { font-size: 0.9rem; font-weight: 600; color: var(--cream); background: var(--bg-2); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; }
.panel-light .chip { color: var(--ink); background: var(--cream-2); border-color: rgba(22,34,31,.15); }

.fineprint { font-size: 0.85rem; color: var(--muted-2); margin-top: 28px; max-width: 62ch; font-style: italic; }
.panel-light .fineprint { color: var(--ink-muted); }

/* timeline */
.timeline { margin-top: 44px; border-left: 2px solid var(--line); padding-left: 28px; display: grid; gap: 28px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 12px; height: 12px; border-radius: 999px; background: var(--sand); box-shadow: 0 0 0 4px var(--bg); }
.tl-item h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--cream-2); }
.tl-item p { color: var(--muted); font-size: 0.96rem; margin-top: 3px; }
.panel-light .timeline { border-color: rgba(22,34,31,.2); }
.panel-light .tl-item::before { box-shadow: 0 0 0 4px var(--cream); }
.panel-light .tl-item h4 { color: var(--ink); }
.panel-light .tl-item p { color: var(--ink-muted); }

/* big quote band */
.quote-band { text-align: center; }
.quote-band .q { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.3; font-weight: 400; max-width: 22ch; margin-inline: auto; }
.quote-band .q .accent { color: var(--sand); font-style: italic; }

/* promo */
.promo { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.promo-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-3); max-width: 320px; margin-inline: auto; }
.promo-frame video { width: 100%; display: block; }
@media (max-width: 800px) { .promo { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; }
.info-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list .k { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); font-weight: 700; padding-top: 3px; }
.info-list .v a:hover { color: var(--sand); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); filter: saturate(0.85) brightness(0.92); }

.form { margin-top: 8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); margin: 16px 0 6px; }
.form input, .form textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--cream); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .25s, box-shadow .25s; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted-2); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(224,190,130,.16); }
.form textarea { resize: vertical; min-height: 120px; }
.form .note { font-size: 0.82rem; color: var(--muted-2); margin-top: 14px; font-style: italic; }

/* page hero */
.page-hero { padding-top: 150px; padding-bottom: 26px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); max-width: 18ch; font-weight: 500; }
.page-hero p { color: var(--muted); margin-top: 1em; max-width: 58ch; font-size: 1.1rem; }

/* footer */
.site-footer { background: var(--bg-3); color: var(--cream); padding-block: clamp(56px, 8vw, 92px) 36px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
.footer-col h5 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.footer-col p, .footer-col a { color: var(--muted); font-size: 0.96rem; }
.footer-col a { display: block; padding: 4px 0; }
.footer-col a:hover { color: var(--sand); }
.footer-intro { color: var(--muted); margin-top: 16px; max-width: 40ch; font-size: 0.96rem; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--muted-2); max-width: 74ch; }
.disclaimer { font-size: 0.8rem !important; line-height: 1.6; }

.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; }
.maxw-text { max-width: 64ch; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--sand); color: var(--bg-3); padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
