/* ============================================================
   LENA NAKIŞ — "Lovisa Malin" referansına birebir sadık sistem
   Teal #043C53 + Gold #BDA078 + Warm white · Cormorant / Poppins
   ============================================================ */

:root {
  /* — referans paleti — */
  --teal: #043c53;        /* mücevher panel */
  --teal-2: #06485f;      /* açık teal */
  --teal-deep: #022a3a;   /* koyu teal zemin */
  --gold: #bda078;
  --gold-2: #d6bf98;
  --gold-deep: #93794f;
  --paper: #fbf9f4;       /* sıcak beyaz içerik zemini */
  --paper-2: #f1eadd;
  --ink: #123240;         /* koyu teal metin (açık zemin) */
  --ink-2: #5a6b71;       /* soluk metin */
  --cream: #f6f1e8;       /* metin (koyu zemin) */
  --cream-2: #c7bda9;

  /* eski sınıf adları korunuyor → yeni değerler */
  --coal: var(--teal-deep);
  --onyx: var(--teal);
  --onyx-2: var(--teal-2);
  --espresso: var(--teal-2);
  --ivory: var(--paper);
  --ivory-2: var(--paper-2);
  --sand: #e4d9c4;

  --hair-gold: rgba(189, 160, 120, 0.34);
  --hair-dark: rgba(18, 50, 64, 0.14);
  --gold-grad: linear-gradient(118deg, #d6bf98 2%, #bda078 48%, #93794f 98%);
  --gold-sheen: linear-gradient(100deg, #93794f 0%, #d6bf98 30%, #f0e3c8 48%, #d6bf98 66%, #93794f 100%);

  --serif: "Cormorant", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Poppins", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  /* — akışkan tip (referans dev ölçek) — */
  --fs-hero: clamp(4rem, 1.5rem + 11vw, 15.5rem);
  --fs-display: clamp(2.6rem, 1.2rem + 6vw, 8.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 4.4rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9rem;
  --fs-eyebrow: 0.82rem;

  --container: 1280px;
  --container-wide: 1600px;
  --pad-x: clamp(1.15rem, 0.4rem + 3vw, 6.6rem);
  --pad-section: clamp(4.5rem, 3rem + 6vw, 9.5rem);
  --radius: 0px;
  --radius-lg: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 30px 70px -34px rgba(2, 26, 36, 0.5);
  --shadow-gold: 0 20px 50px -22px rgba(147, 121, 79, 0.5);
}

/* — reset — */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* — tipografi — */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 0.98; letter-spacing: -0.005em; }
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--gold-2); }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.06em 0 0.1em;
  margin: -0.06em 0 -0.1em;
}

.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-2); font-weight: 300; }
.on-dark .lead { color: var(--cream-2); }
.muted { color: var(--ink-2); }
.on-dark, .on-dark p { color: var(--cream); }

/* — layout — */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--pad-section); position: relative; }
.bg-onyx { background: var(--teal); color: var(--cream); }
.bg-coal { background: var(--teal-deep); color: var(--cream); }
.bg-ivory { background: var(--paper); }
.bg-ivory-2 { background: var(--paper-2); }
.bg-espresso { background: var(--teal-2); color: var(--cream); }

.grain::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* — buttons (referans: gold border pill + ince çizgi) — */
.btn {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1rem 2.1rem; border-radius: 50px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 300;
  letter-spacing: 0.01em; position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--gold); color: var(--ink);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; transition: transform 0.5s var(--ease); }
.btn .line { width: 3rem; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-grad); transform: translateX(-101%); transition: transform 0.55s var(--ease); }
.btn:hover { color: #1a140a; border-color: transparent; }
.btn:hover::before { transform: translateX(0); }
.btn:hover svg { transform: translateX(5px); }
.btn:hover .line { width: 1.8rem; }
.btn.on-dark, .on-dark .btn { color: var(--cream); border-color: var(--gold); }
.on-dark .btn:hover { color: #14333f; }
.btn-solid { background: var(--gold-grad); color: #23303a; border-color: transparent; }
.btn-solid::before { background: var(--teal-deep); }
.btn-solid:hover { color: var(--gold-2); }

/* — header — */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-block: clamp(1rem, 0.6rem + 1.2vw, 2rem); transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease); }
.site-header.scrolled { background: rgba(4, 39, 51, 0.86); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--hair-gold), 0 20px 40px -30px #000; padding-block: 0.65rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: auto; height: clamp(40px, 3.4vw, 56px); transition: height 0.5s var(--ease); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)); }
.scrolled .brand img { height: clamp(36px, 3vw, 46px); }
.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 3rem); }
.nav-links a { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--cream); position: relative; padding: 0.4rem 0; opacity: 0.92; transition: opacity 0.3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold-grad); transition: width 0.4s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--cream); border: 1px solid var(--hair-gold); border-radius: 50%; }
.nav-toggle svg { width: 22px; height: 22px; }
.header-cta { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px);
    flex-direction: column; justify-content: center; gap: 1.6rem; padding: 2rem;
    background: linear-gradient(160deg, var(--teal), var(--teal-deep));
    box-shadow: -30px 0 60px -20px #000; transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-links a::after { display: none; }
}

/* — reveal — */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal-l { transform: translateX(-48px); }
.reveal-r { transform: translateX(48px); }
.reveal-s { transform: scale(1.06); transition-duration: 1.4s; }
.reveal-clip { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in, .reveal-clip.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
html:not(.js) .reveal, html:not(.js) .reveal-clip { opacity: 1; transform: none; clip-path: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-clip { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; } }

/* — progress + skip — */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--teal); color: var(--gold-2); padding: 0.8rem 1.2rem; }
.skip-link:focus { left: 0; }

/* — float — */
.float-stack { position: fixed; right: clamp(1rem, 2vw, 1.8rem); bottom: clamp(1.2rem, 3vw, 2.2rem); z-index: 90; display: flex; flex-direction: column; gap: 0.8rem; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.35s var(--ease); }
.float-btn:hover { transform: translateY(-4px) scale(1.05); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: #25d366; }
.float-call { background: var(--gold-grad); color: #23303a; }
.float-wa .pulse { position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2.4s ease-out infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.9); opacity: 0; } }
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .float-stack { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 95; background: rgba(4, 39, 51, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--hair-gold); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem; color: var(--cream); font-size: 0.9rem; }
  .mobile-bar a svg { width: 19px; height: 19px; }
  .mobile-bar a.wa { background: #25d366; color: #04310f; }
  body { padding-bottom: 54px; }
}

/* — util — */
.hair { height: 1px; background: linear-gradient(90deg, transparent, var(--hair-gold), transparent); border: 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.frame { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
