/* =========================================================
   PENTA İşitme Merkezi — Ortak tasarım sistemi
   Sayfaya özel stiller: assets/css/<sayfa>.css
   ========================================================= */

:root {
  /* Renkler — logodan türetildi */
  --cream: #f5f1ea;
  --cream-2: #ede6da;
  --cream-3: #e3d9c8;
  --paper: #fbf9f5;
  --ink: #1c3444;
  --teal: #2f5f78;
  --teal-2: #3f7690;
  --teal-soft: #7fa0b1;
  --mist: #c9d6dc;
  --sand: #b89b6e;
  --line: rgba(47, 95, 120, 0.16);
  --line-strong: rgba(47, 95, 120, 0.32);
  --muted: #5d7280;

  /* Tipografi */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(3.2rem, 9vw, 8.5rem);
  --fs-h1: clamp(2.6rem, 6vw, 5.4rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 3.9rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 1.9rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;

  /* Yerleşim */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 12vw, 180px);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 30px 80px -40px rgba(28, 52, 68, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1em; }
::selection { background: var(--teal); color: var(--cream); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Kâğıt dokusu */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Yardımcılar ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.section--ink .eyebrow { color: var(--mist); }

.display-hero { font-size: var(--fs-hero); font-weight: 400; letter-spacing: -0.02em; line-height: 0.95; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
.italic { font-style: italic; font-weight: 400; color: var(--teal); }
.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.section--ink .lead { color: var(--mist); }
.section--ink .italic { color: var(--teal-soft); }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Satır maskesi (data-reveal="lines") */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; will-change: transform; }

/* Reveal başlangıç durumu: JS yüklenmezse görünür kalsın */
.js [data-reveal]:not(.is-revealed) { opacity: 0; }

/* ---------- Butonlar ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--teal);
  transform: translateY(101%); transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--cream); border-color: var(--teal); }
.btn-primary { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink); }
.btn-light { --btn-fg: var(--cream); --btn-bd: rgba(245, 241, 234, 0.35); }
.btn-light::before { background: var(--cream); }
.btn-light:hover { color: var(--ink); border-color: var(--cream); }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Skip link ---------- */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--cream); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: transform 0.6s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled { background: rgba(245, 241, 234, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; transition: transform 1.2s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-200deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; letter-spacing: 0.06em; color: var(--teal); }
.brand-sub { margin-top: 4px; font-size: 0.56rem; font-weight: 500; letter-spacing: 0.34em; color: var(--teal); opacity: 0.85; }
.main-nav { display: flex; gap: 36px; }
.main-nav a { position: relative; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ink); padding-block: 6px; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--teal); }
.header-cta { min-height: 44px; padding: 0 22px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; z-index: 120; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span { background: var(--cream); }
.menu-open .menu-toggle { border-color: rgba(245, 241, 234, 0.4); }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 44px) 42px); transition: clip-path 0.9s var(--ease-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.15; color: var(--cream); }
.mobile-menu nav a[aria-current="page"] { font-style: italic; color: var(--mist); }
.mobile-menu .mobile-meta { margin-top: 48px; display: grid; gap: 6px; font-size: 0.95rem; color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--ink); color: var(--mist); padding-top: clamp(72px, 10vw, 140px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 72px; }
.footer-brand .brand-name, .footer-brand .brand-sub { color: var(--cream); }
.footer-brand .brand-mark { filter: brightness(0) invert(0.93) sepia(0.2); }
.footer-brand p { margin-top: 24px; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teal-soft); margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: var(--cream); font-size: 0.95rem; }
.footer-col a:hover { color: var(--mist); }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 400; color: transparent; -webkit-text-stroke: 1px rgba(201, 214, 220, 0.25);
  font-size: clamp(5rem, 22vw, 20rem); line-height: 0.8; letter-spacing: 0.04em; text-align: center; user-select: none; margin-bottom: -0.12em;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; border-top: 1px solid rgba(201, 214, 220, 0.14); font-size: 0.8rem; color: var(--teal-soft); }

/* ---------- Form temel stilleri ---------- */
.field { position: relative; display: grid; gap: 8px; }
.field label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font-size: 1.05rem; color: var(--ink); transition: border-color 0.4s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--teal); }
.field .error { font-size: 0.8rem; color: #a1453b; min-height: 1em; }

/* Yer tutucu bilgiler — gerçek bilgiler girilince kaldırılabilir */
[data-site] { font-variant-numeric: tabular-nums; }

/* ---------- Özel imleç ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--teal);
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background-color 0.4s, opacity 0.3s;
  display: grid; place-items: center; mix-blend-mode: multiply;
}
.cursor.is-active { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(47, 95, 120, 0.18); }
.cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ink); mix-blend-mode: normal; }
.cursor.has-label::after { content: attr(data-label); color: var(--cream); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Sayfa geçiş perdesi ---------- */
.curtain { position: fixed; inset: 0; z-index: 400; background: var(--ink); pointer-events: none; }
.no-js .curtain { display: none; }

/* ---------- WebGL tuvali temel ---------- */
.webgl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.4rem; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .btn { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .curtain { display: none; }
}
