/* Famez Kimya — site stilleri */
:root {
  --navy: #0B2230;
  --navy-line: #2A4757;
  --ground: #F4F7F6;
  --card: #FFFFFF;
  --tile: #E3EEEC;
  --line: #D5E2E0;
  --input-line: #B7C8C6;
  --teal: #0F766E;
  --teal-dark: #0B5A54;
  --mint: #8FD3CF;
  --orange: #C2410C;
  --amber: #E8A33D;
  --text: #0B2230;
  --muted: #3D5563;
  --muted-on-dark: #B9CBD3;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); background: var(--ground); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; }

.wrap { max-width: 1120px; margin: 0 auto; }
.section { padding: 72px 20px; }
.section--white { background: var(--card); }
.section--dark { background: var(--navy); color: var(--ground); }
.stack { display: flex; flex-direction: column; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--teal); text-transform: uppercase; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--mint); }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; }
.lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.btn--orange { background: var(--orange); color: #FFFFFF; }
.btn--orange:hover { background: #9A340A; color: #FFFFFF; }
.btn--navy { background: var(--navy); color: #FFFFFF; }
.btn--navy:hover { color: #FFFFFF; background: #133447; }
.btn--outline { border: 1.5px solid var(--teal); color: var(--teal); border-radius: 10px; min-height: 44px; }

/* Üst bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--ground); padding: 12px 20px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; color: var(--ground); text-decoration: none; }
.logo:hover { color: var(--ground); }
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a.navlink { color: var(--muted-on-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav a.navlink:hover { color: #FFFFFF; }
@media (max-width: 640px) { .topnav a.navlink { display: none; } }

/* Hero (kaydırmalı sahne) */
.hero { position: relative; height: 265vh; background: var(--navy); }
.hero__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; color: var(--ground); }
.hero__stain, .hero__glow { position: absolute; left: 50%; border-radius: 50%; }
.hero__stain { bottom: 10%; width: 300px; height: 300px; margin-left: -150px; background: #6B4A2B; filter: blur(30px); opacity: .55; }
.hero__glow { bottom: 8%; width: 340px; height: 340px; margin-left: -170px; background: #1C5E6B; filter: blur(40px); opacity: 0; }
.hero__copy { position: absolute; top: 12%; left: 20px; right: 20px; max-width: 720px; margin: 0 auto; height: 200px; text-align: center; }
.hero__slide { position: absolute; inset: 0; will-change: opacity, transform; }
.hero__slide .eyebrow { margin-bottom: 12px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 7.5vw, 68px); line-height: 1.02; }
.hero__slide .btn { margin-top: 20px; }
.hero__bottle { position: absolute; left: 50%; bottom: 3%; width: 330px; height: 440px; margin-left: -165px; }
.hero__bottle img { width: 330px; height: 440px; display: block; transform-origin: 50% 85%; will-change: transform; }
.hero__hint { position: absolute; left: 50%; bottom: 14px; width: 44px; height: 44px; margin-left: -22px; display: flex; align-items: center; justify-content: center; }
.hero__hint svg { animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(-4px); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }
.hero__progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--amber); }

.bubble { position: absolute; bottom: 5%; will-change: transform, opacity; opacity: 0; }
.bubble__ball { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(191, 236, 233, .8);
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9) 0, rgba(255,255,255,.9) 9%, rgba(143,211,207,.2) 24%, rgba(143,211,207,.05) 62%, rgba(191,236,233,.4) 100%); }
.bubble__spark { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: #BFECE9; opacity: 0; }

/* Kartlar */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.product { background: var(--ground); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.product__img { height: 240px; border-radius: 12px; background: var(--tile); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product__img img { height: 256px; width: auto; display: block; }
.product__brand { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.product h3 { margin: 0; font-size: 20px; font-weight: 700; }
.product p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.product .btn { margin-top: auto; }

.checks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; }

.step { border: 1px solid var(--navy-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step__num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--amber); }
.step h3 { margin: 0; font-size: 19px; font-weight: 700; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted-on-dark); }

/* Form */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--input-line); border-radius: 10px; font: inherit; font-size: 16px; background: #FFFFFF; color: var(--text); }
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--input-line); border-radius: 12px; background: #F8FBFA; font-size: 15px; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin: 0; flex-shrink: 0; border: 2px solid var(--navy); border-radius: 6px; background: #FFFFFF; cursor: pointer; display: grid; place-content: center; }
.consent input::after { content: ""; width: 7px; height: 13px; border: solid #FFFFFF; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.consent input:checked { background: var(--teal); border-color: var(--teal); }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn { flex-grow: 1; min-height: 52px; border-radius: 12px; font-size: 16px; }
.btn--whatsapp { background: var(--teal); color: #FFFFFF; }
.btn--whatsapp:hover { background: var(--teal-dark); color: #FFFFFF; }
.hidden { display: none; }
.req { color: var(--orange); }
.err { display: none; font-size: 14px; font-weight: 600; color: #B42318; }
.err.show { display: block; }
.field.is-invalid input { border: 2px solid #B42318; background: #FFF6F5; }
.consent.is-invalid { border-color: #B42318; background: #FFF6F5; }
.consent.is-invalid input { border-color: #B42318; }
.form__summary { display: none; grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 10px; background: #FEF0EE; color: #B42318; font-weight: 700; font-size: 15px; }
.form__summary.show { display: block; }
.btn:disabled { opacity: .7; cursor: default; }

.banner { border-radius: 20px; background: var(--amber); color: var(--navy); padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.banner h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 26px; }
.banner p { margin: 0; font-size: 16px; line-height: 1.5; }

/* Alt bilgi */
.footer { background: var(--navy); color: var(--muted-on-dark); padding: 44px 20px 28px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; max-width: 420px; }
.footer__row { display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--ground); text-decoration: none; font-weight: 600; }
.footer__row:hover { color: #FFFFFF; }
.footer__row svg { flex-shrink: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: 14px; }
.footer__links a { color: var(--muted-on-dark); }
.footer__links a:hover { color: #FFFFFF; }
.footer__copy { margin-left: auto; }

/* Basit sayfalar (KVKK, teşekkürler) */
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; line-height: 1.65; font-size: 16px; }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 20px; }
.page h2 { font-size: 20px; margin: 32px 0 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__hint svg { animation: none; }
}

.product__list { margin: 4px 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.product__list li { position: relative; padding-left: 18px; }
.product__list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.pv { all: unset; box-sizing: border-box; display: inline-block; padding: 3px 0; cursor: pointer; border-bottom: 1px dashed var(--input-line); line-height: 1.4; }
.pv:hover, .pv.is-on { color: var(--teal); border-bottom-color: var(--teal); }
.pv:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.preview { position: fixed; left: 0; top: 0; z-index: 50; width: 180px; height: 235px; padding: 8px; border-radius: 16px; background: var(--tile); box-shadow: 0 12px 32px rgba(11, 34, 48, .22); pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.preview.show { opacity: 1; }
.preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) { .preview { transition: none; } }
