/* Ebrar Nisa Hoşgeldi — Fizyoterapi & Pilates */
:root {
  --cream: #f7f1ea;
  --sand: #ede3d7;
  --taupe: #a08b78;
  --taupe-dark: #6f5c4d;
  --brown: #4a2c25;
  --ink: #1d1a18;
  --muted: #6b625b;
  --white: #fffdfa;
  --radius: 28px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Allura", cursive;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.script { font-family: var(--script); font-weight: 400; color: var(--taupe-dark); }
.eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--taupe-dark); font-weight: 500;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(40px, 6vw, 76px); }
h3 { font-size: clamp(26px, 3vw, 34px); }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 640px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(247, 241, 234, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(74, 44, 37, .08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; }
.logo-mark {
  width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; letter-spacing: -.04em;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .3s; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--brown); color: var(--white);
  font-size: 15px; font-weight: 500;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(74, 44, 37, .55); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(29, 26, 24, .2); }
.btn.ghost:hover { background: var(--white); }
.btn.small { padding: 9px 18px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  position: relative; overflow: hidden; padding: 120px 20px 80px;
}
.hero-inner { position: relative; z-index: 2; transform: scale(var(--hero-scale, 1)); opacity: var(--hero-fade, 1); }
.hero .script { font-size: clamp(42px, 7vw, 84px); line-height: 1; display: block; }
.hero h1 { font-size: clamp(72px, 16vw, 210px); letter-spacing: .02em; font-weight: 500; margin: -.08em 0 .1em; }
.hero .tags { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero .tags span { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--taupe-dark); }
.hero .tags span + span::before { content: "•"; margin-right: 14px; opacity: .5; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill-loc {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 253, 250, .7);
  font-size: 13px; color: var(--brown); border: 1px solid rgba(74, 44, 37, .1);
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .65; z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb.a { width: 520px; height: 520px; background: #e6cdb6; top: -120px; left: -140px; }
.orb.b { width: 460px; height: 460px; background: #d8c3d0; bottom: -160px; right: -120px; animation-delay: -6s; }
.orb.c { width: 300px; height: 300px; background: #f3dcc2; top: 40%; left: 55%; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}
.leaf { position: absolute; z-index: 1; width: 140px; opacity: .35; color: var(--taupe-dark); }
.leaf.l1 { left: 6%; bottom: 10%; transform: rotate(-20deg); }
.leaf.r1 { right: 7%; top: 18%; transform: rotate(160deg) scale(.8); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 22px; height: 36px; border: 1.5px solid rgba(29, 26, 24, .35); border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px;
  background: var(--ink); transform: translateX(-50%); animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Statement (word-by-word light up) ---------- */
.statement { padding: 18vh 0; }
.statement p {
  font-family: var(--serif); font-size: clamp(34px, 5.4vw, 72px); line-height: 1.15;
  max-width: 1000px; margin-inline: auto; text-align: center;
}
.statement .w { opacity: .15; transition: opacity .3s; }
.statement .w.on { opacity: 1; }
.statement .script-word { font-family: var(--script); color: var(--taupe-dark); }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head .lead { margin: 22px auto 0; }

/* Services: sticky stacking cards */
.services { padding: 12vh 0 6vh; }
.stack { display: grid; gap: 0; }
.card {
  position: sticky; top: calc(90px + var(--i) * 18px);
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: 520px;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(74, 44, 37, .35);
  margin-bottom: 8vh; transform-origin: center top;
}
.card-visual { position: relative; overflow: hidden; }
.card-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.card-body .eyebrow { margin-bottom: 10px; }
.card-body h3 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 22px; }
.card-body ul { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.card-body li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.card-body li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.card-body .tagline { font-family: var(--script); font-size: 32px; color: var(--taupe-dark); }

/* Placeholder "photo" visuals — swap with <img> in /assets/img when real photos are ready */
.visual {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 10%, #f4e4d3 0%, #e2cbb5 45%, #b79a83 100%);
}
.visual.v2 { background: radial-gradient(120% 90% at 80% 20%, #efe0d6 0%, #d9bfae 50%, #8f7262 100%); }
.visual.v3 { background: radial-gradient(120% 90% at 50% 0%, #ece6df 0%, #cfc2b6 50%, #7e6c5f 100%); }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.visual svg.figure { position: absolute; inset: 12% 10%; width: 80%; height: 76%; color: rgba(74, 44, 37, .55); }
.visual .num {
  position: absolute; left: 32px; bottom: 22px; font-family: var(--serif);
  font-size: 120px; line-height: 1; color: rgba(255, 253, 250, .85);
  text-shadow: 0 4px 30px rgba(29, 26, 24, .35);
}

/* Process */
.process { padding: 14vh 0; background: var(--ink); color: var(--cream); border-radius: 48px 48px 0 0; }
.process .eyebrow, .process .lead { color: #c9b9a9; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  padding: 34px 28px; border-radius: 22px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08); counter-increment: s;
  transition: background .4s, transform .4s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .08); transform: translateY(-6px); }
.step::before {
  content: "0" counter(s); display: block; font-family: var(--serif);
  font-size: 54px; line-height: 1; color: var(--taupe); margin-bottom: 26px;
}
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: #b6a99c; font-size: 15px; }

/* Values */
.values { padding: 12vh 0; background: var(--ink); color: var(--cream); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .1); }
.value { padding: 40px 26px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .1); }
.value:last-child { border-right: 0; }
.value svg { width: 44px; height: 44px; margin: 0 auto 18px; color: var(--taupe); }
.value h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; }

/* About */
.about { padding: 16vh 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); position: relative; overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(74, 44, 37, .6);
}
/* Arch top: the source photo is a circle crop, so this hides its dark corners */
.portrait { border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); background: var(--sand); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about h2 { margin: 14px 0 28px; }
.facts { display: grid; gap: 22px; margin: 34px 0; }
.fact { display: flex; gap: 18px; align-items: flex-start; }
.fact-icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
}
.fact-icon svg { width: 24px; height: 24px; }
.fact p { color: var(--muted); }
.fact strong { color: var(--ink); font-weight: 600; }
blockquote {
  font-family: var(--script); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.25;
  color: var(--taupe-dark); padding: 26px 32px; background: var(--sand); border-radius: 22px;
}

/* Blog cards */
.blog-preview { padding: 12vh 0 16vh; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--white); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(74, 44, 37, .4); }
.post-card .thumb { aspect-ratio: 16 / 11; position: relative; overflow: hidden; }
.post-card .thumb .visual { transition: transform .8s var(--ease); }
.post-card:hover .thumb .visual { transform: scale(1.06); }
.post-card .thumb span {
  position: absolute; left: 18px; top: 18px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 253, 250, .85); font-size: 12px; font-weight: 500;
}
.post-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 26px; margin-bottom: 12px; }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card .meta { margin-top: 20px; font-size: 13px; color: var(--taupe-dark); }
.center { text-align: center; margin-top: 56px; }

/* FAQ */
.faq { padding: 4vh 0 14vh; }
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid rgba(29, 26, 24, .12); }
.faq-item { border-bottom: 1px solid rgba(29, 26, 24, .12); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 4px; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--sans); font-size: 20px; font-weight: 300; border: 1px solid rgba(29, 26, 24, .2);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--cream); border-color: var(--ink); }
.faq-item summary:hover::after { border-color: var(--ink); }
.faq-a { padding: 0 60px 28px 4px; color: var(--muted); font-size: 17px; animation: faq-in .45s var(--ease); }
.faq-a a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 560px) { .faq-a { padding-right: 4px; } }

/* Contact */
.contact { padding: 0 0 12vh; }
.contact-card {
  border-radius: 40px; padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px); text-align: center;
  background: var(--brown); color: var(--cream); position: relative; overflow: hidden;
}
.contact-card .orb { opacity: .35; }
.contact-card > :not(.orb) { position: relative; z-index: 1; } /* orbs must stay absolute, or they push the content ~1000px down */
.contact-card .script { color: #e3cdb8; font-size: clamp(40px, 5vw, 64px); display: block; }
.contact-card h2 { margin-bottom: 26px; }
.contact-card p { color: #dccabb; max-width: 520px; margin: 0 auto 40px; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-links .btn { background: var(--cream); color: var(--brown); }
.contact-links .btn.ghost { background: transparent; color: var(--cream); border-color: rgba(247, 241, 234, .35); }
.contact-links svg { width: 18px; height: 18px; }

/* Footer */
footer { padding: 40px 0 50px; border-top: 1px solid rgba(29, 26, 24, .08); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .motto { letter-spacing: .25em; text-transform: uppercase; color: var(--taupe-dark); }

/* ---------- Blog pages ---------- */
.page-hero { padding: 170px 0 70px; text-align: center; }
.page-hero h1 { font-size: clamp(56px, 9vw, 120px); }
.page-hero .lead { margin: 20px auto 0; }
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; }
.filters button {
  font: inherit; font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(29, 26, 24, .15); background: transparent; transition: all .25s;
}
.filters button.active, .filters button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.post-card[hidden] { display: none; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--brown); z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.article-hero { padding: 160px 0 50px; text-align: center; }
.article-hero h1 { font-size: clamp(44px, 6.5vw, 84px); max-width: 960px; margin: 18px auto 22px; }
.article-hero .meta { color: var(--taupe-dark); font-size: 14px; }
.article-cover { width: min(1180px, 100% - 40px); margin: 0 auto 80px; aspect-ratio: 21 / 9; border-radius: var(--radius); position: relative; overflow: hidden; }
.article { width: min(720px, 100% - 40px); margin: 0 auto 120px; font-size: 19px; line-height: 1.75; }
.article p { margin-bottom: 1.3em; color: #3a3430; }
.article h2 { font-size: clamp(32px, 4vw, 44px); margin: 1.8em 0 .6em; }
.article ul, .article ol { margin: 0 0 1.4em 1.2em; color: #3a3430; }
.article li { margin-bottom: .5em; }
.article .note {
  font-size: 15px; padding: 20px 24px; border-radius: 16px; background: var(--sand); color: var(--muted); margin-top: 3em;
}
.article .lede { font-size: 23px; color: var(--ink); }
.article .table-scroll { overflow-x: auto; margin: 0 0 1.6em; }
.article .compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.article .compare th, .article .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid rgba(29, 26, 24, .1); vertical-align: top; }
.article .compare th { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.article .compare td:first-child { color: var(--taupe-dark); font-weight: 500; width: 26%; }
.back { display: inline-flex; gap: 8px; font-size: 14px; color: var(--taupe-dark); margin-bottom: 16px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }

/* ---------- Floating WhatsApp ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: var(--brown); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(74, 44, 37, .6); transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; padding: 10px 20px 24px;
    background: rgba(247, 241, 234, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transform: translateY(-120%); transition: transform .45s var(--ease); z-index: -1;
  }
  .nav-links a { padding: 14px 0; font-size: 20px; font-family: var(--serif); opacity: 1; border-bottom: 1px solid rgba(29, 26, 24, .07); }
  .nav.open .nav-links { transform: none; }
  .nav.open { background: rgba(247, 241, 234, .96); }
  .nav.open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .menu-btn { display: block; }
  .nav .btn.small { display: none; }
  .card { grid-template-columns: 1fr; min-height: 0; top: calc(76px + var(--i) * 12px); }
  .card-visual { aspect-ratio: 16 / 10; }
  .steps, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .value { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; width: 100%; margin-inline: auto; }
  .posts { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .leaf { display: none; }
  .card-body .tagline { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}
