/* =============================================================================
   YAĞMUR STUDIO — PREMIUM DESIGN SYSTEM
   Palette: Deep Brown + Gold. Apple-grade typography & motion.
   Bu dosya çekirdek tasarım sistemidir. Bölüm CSS'leri assets/css/sections/ içindedir.
   ============================================================================= */

/* ---------------------------------- TOKENS -------------------------------- */
:root {
  /* Brown scale — derin espresso, daha az kırmızı, daha sofistike */
  --brown-950: #0c0907;
  --brown-900: #130f0a;
  --brown-850: #181410;
  --brown-800: #201913;
  --brown-700: #2f261b;
  --brown-600: #423626;
  --brown-500: #5a4a34;

  /* Gold scale — muted antika / şampanya altın (cıvık değil, ölçülü) */
  --gold-300: #e7d7b0;   /* soft champagne */
  --gold-400: #d4bd8c;
  --gold-500: #c2a868;   /* primary — düşük doygunlukta antika altın */
  --gold-600: #a08850;
  --gold-700: #74603a;

  /* Neutrals on dark — daha sıcak, yumuşak */
  --cream:    #efe7d6;
  --text:     #e6ddcc;
  --text-dim: #a99d85;
  --text-mut: #7c715d;
  --line:     rgba(194, 168, 104, 0.12);
  --line-soft:rgba(239, 231, 214, 0.055);

  /* Surfaces */
  --bg:        var(--brown-950);
  --bg-elev:   var(--brown-900);
  --bg-card:   rgba(32, 25, 19, 0.5);
  --glass:     rgba(18, 14, 10, 0.62);

  /* Brand gradients — daha az kontrast, ipeksi geçiş */
  --grad-gold: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 52%, var(--gold-600) 100%);
  --grad-text: linear-gradient(120deg, #f1e8d4 0%, var(--gold-300) 55%, var(--gold-500) 100%);
  --grad-bg:   radial-gradient(125% 125% at 50% -5%, var(--brown-850) 0%, var(--brown-950) 58%);

  /* Typography */
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale (clamp) */
  --fs-hero:  clamp(2.8rem, 7vw, 6.5rem);
  --fs-h2:    clamp(2rem, 4.5vw, 3.6rem);
  --fs-h3:    clamp(1.3rem, 2.4vw, 1.9rem);
  --fs-lead:  clamp(1.05rem, 1.6vw, 1.35rem);
  --fs-body:  clamp(0.98rem, 1.1vw, 1.05rem);
  --fs-sm:    0.86rem;
  --fs-kicker:0.78rem;

  /* Spacing / rhythm */
  --section-y: clamp(5rem, 11vw, 10rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* Shadows / glow — daha derin, yumuşak, difüz (neon değil) */
  --shadow: 0 40px 80px -40px rgba(0,0,0,0.78);
  --glow: 0 0 0 1px var(--line), 0 30px 70px -42px rgba(194,168,104,0.18);
}

/* ---------------------------------- RESET --------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image: var(--grad-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(194,168,104,.28); color: var(--cream); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--brown-950); }
::-webkit-scrollbar-thumb { background: var(--brown-600); border-radius: 10px; border: 2px solid var(--brown-950); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-700); }

/* --------------------------------- LAYOUT --------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 6rem); }

/* ------------------------------- TYPOGRAPHY ------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.display { font-size: var(--fs-hero); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
em { font-style: italic; color: var(--gold-400); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: var(--fs-lead); color: var(--text-dim); max-width: 60ch; }
.muted { color: var(--text-mut); }

/* Section header pattern (shared by all sections) */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-400);
}
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--grad-gold); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h2 { margin: 1rem 0 1.1rem; }

/* --------------------------------- BUTTONS -------------------------------- */
.btn {
  --pad: 0.95rem 1.8rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: var(--pad); border-radius: 100px; border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: .02em; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--grad-gold); color: var(--brown-950); box-shadow: 0 16px 36px -22px rgba(194,168,104,.45); }
.btn--primary:hover { box-shadow: 0 22px 46px -20px rgba(194,168,104,.55); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-300); }

/* --------------------------------- CARDS ---------------------------------- */
.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); backdrop-filter: blur(14px); overflow: hidden;
  transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }

/* Decorative gold rule */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; }

/* ----------------------------- SCROLL REVEAL ------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* --------------------------- UTILITY / A11Y ------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 9999; background: var(--gold-500); color: var(--brown-950); padding: .8rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .018; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ------------------------------- PRELOADER -------------------------------- */
#preloader { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; background: var(--brown-950); transition: opacity .8s var(--ease), visibility .8s; }
#preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: .1em; }
.preloader__bar { margin-top: 1.2rem; width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width .3s linear; }

/* -------------------------------- CURSOR ---------------------------------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9997; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 5px; height: 5px; background: var(--gold-400); opacity: .9; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(194,168,104,.4); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), opacity .3s; }
.cursor-ring.is-hover { width: 58px; height: 58px; border-color: rgba(194,168,104,.6); background: rgba(194,168,104,.05); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ------------------------------ SCROLL PROGRESS --------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 9996; background: var(--grad-gold); box-shadow: 0 0 8px rgba(194,168,104,.3); }

/* ============================ HEADER / NAV ============================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease); border-bottom: 1px solid transparent; padding-block: .35rem; }
.site-header.is-scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; }
.brand__mark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .05em; }
.brand__name { font-size: .98rem; letter-spacing: .02em; }
@media (max-width: 560px){ .brand__name { display:none; } }

.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__link { position: relative; padding: .55rem .9rem; font-size: .9rem; color: var(--text-dim); border-radius: 100px; transition: color .35s var(--ease); }
.nav__link::after { content:''; position:absolute; left:50%; bottom:.32rem; width:0; height:2px; background: var(--grad-gold); border-radius:2px; transform: translateX(-50%); transition: width .35s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--gold-300); }
.nav__link.is-active::after { width: 18px; }
@media (max-width: 940px){ .nav, .nav__cta { display: none; } }

.nav-toggle { display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:12px; background: rgba(255,255,255,.02); position:relative; cursor:pointer; }
.nav-toggle span { position:absolute; left:50%; width:18px; height:1.6px; background: var(--gold-300); transform: translateX(-50%); transition: .4s var(--ease); }
.nav-toggle span:nth-child(1){ top:15px; } .nav-toggle span:nth-child(2){ top:21px; } .nav-toggle span:nth-child(3){ top:27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ top:21px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ top:21px; transform: translateX(-50%) rotate(-45deg); }
@media (max-width: 940px){ .nav-toggle { display:block; } }

.mobile-nav { position: fixed; inset: 0; z-index: 999; background: var(--brown-950); display: grid; place-content: center; gap: 2rem; text-align: center; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__list { display: grid; gap: .4rem; }
.mobile-nav__link { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.8rem); color: var(--text); transition: color .3s var(--ease); }
.mobile-nav.is-open li { animation: navIn .6s var(--ease) backwards; animation-delay: calc(.08s * var(--i) + .15s); }
@keyframes navIn { from { opacity:0; transform: translateY(20px);} }
.mobile-nav__link:hover { color: var(--gold-400); }
.mobile-nav__mail { color: var(--text-mut); letter-spacing:.05em; }

/* ============================== FOOTER ================================= */
.site-footer { position: relative; padding-block: clamp(4rem,8vw,7rem) 2.5rem; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, rgba(16,11,6,.6)); }
.footer__cta { text-align: center; max-width: 640px; margin: 0 auto clamp(3rem,6vw,5rem); }
.footer__cta .h2 { margin: 1rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-block: 2.5rem; }
.footer__brand .brand__mark { font-family: var(--font-display); font-size: 2rem; display:block; margin-bottom: .8rem; }
.footer__brand .muted { max-width: 36ch; }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a, .footer__social a { color: var(--text-dim); width: fit-content; transition: color .3s var(--ease), transform .3s var(--ease); }
.footer__nav a:hover, .footer__social a:hover { color: var(--gold-300); transform: translateX(4px); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.footer__top { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-300); transition: background .4s var(--ease), transform .4s var(--ease); }
.footer__top:hover { background: var(--grad-gold); color: var(--brown-950); transform: translateY(-4px); }
@media (max-width: 760px){ .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ====================== WHATSAPP FLOATING BUTTON ======================= */
/* Tema uyumlu (altın), şaheser FAB — yeşil değil. Hover'da etiket açılır. */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3.5vw, 2.25rem);
  z-index: 940;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  animation: waIn .8s var(--ease) .6s backwards;
}
@keyframes waIn { from { opacity: 0; transform: translateY(24px) scale(.85); } }
.wa-fab__core {
  position: relative; z-index: 2;
  width: clamp(56px, 14vw, 64px); height: clamp(56px, 14vw, 64px);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-gold); color: var(--brown-950);
  box-shadow: 0 14px 34px -12px rgba(194,168,104,.5), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.wa-fab__icon svg { width: 30px; height: 30px; display: block; }
.wa-fab:hover .wa-fab__core, .wa-fab:focus-visible .wa-fab__core {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 22px 46px -12px rgba(194,168,104,.66), inset 0 1px 0 rgba(255,255,255,.45);
}
.wa-fab__pulse {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: clamp(56px, 14vw, 64px); height: clamp(56px, 14vw, 64px);
  border-radius: 50%; background: var(--gold-500); opacity: .5;
  animation: waPulse 2.6s var(--ease-out) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .45; } 70% { transform: scale(1.85); opacity: 0; } 100% { opacity: 0; } }
.wa-fab__label {
  display: flex; flex-direction: column; line-height: 1.2;
  margin-right: .65rem; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); white-space: nowrap;
  max-width: 0; padding: .55rem 0; opacity: 0; transform: translateX(12px);
  overflow: hidden; pointer-events: none;
  transition: max-width .55s var(--ease), opacity .45s var(--ease), transform .55s var(--ease), padding .55s var(--ease);
}
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label {
  max-width: 240px; opacity: 1; transform: none; padding: .55rem .95rem;
}
.wa-fab__label-top { font-weight: 700; font-size: .9rem; color: var(--gold-300); }
.wa-fab__label-sub { font-size: .74rem; color: var(--text-dim); }
@media (max-width: 560px) { .wa-fab__label { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
  .wa-fab__pulse { animation: none; opacity: .28; }
}

/* ===================== FOOTER SOCIAL ICON BUTTONS ===================== */
.footer__social { flex-direction: row; flex-wrap: wrap; gap: .6rem; }
.footer__social-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(239,231,214,.015); color: var(--text-dim);
}
.footer__social-btn svg { width: 18px; height: 18px; }
.footer__social a.footer__social-btn { width: 44px; }
.footer__social a.footer__social-btn:hover {
  color: var(--brown-950); background: var(--grad-gold);
  border-color: transparent; transform: translateY(-4px);
}
.footer__top svg { width: 18px; height: 18px; }

/* ============================== TOASTS ================================= */
.toast-stack {
  position: fixed;
  top: calc(88px + env(safe-area-inset-top));
  right: clamp(1rem, 3vw, 2rem);
  z-index: 10000;
  display: grid;
  gap: 0.75rem;
  width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(18, 14, 10, 0.88);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: none;
}

.toast--success {
  color: var(--gold-300);
  border-color: rgba(194, 168, 104, .48);
}

.toast--error {
  color: var(--cream);
  border-color: rgba(160, 136, 80, .7);
  background: rgba(34, 24, 14, .92);
}
