/* ==========================================================================
   The Pilates Studio — Avcılar Reformer Pilates
   Nurçin Atsız
   ========================================================================== */

:root {
  --cream: #F6F1E9;
  --cream-2: #FCFAF6;
  --cream-3: #EFE8DC;
  --ink: #241F1A;
  --ink-2: #221E19;
  --accent: #B98A5E;
  --text: #3D372F;
  --text-soft: #554E44;
  --text-muted: #6B6357;
  --nav-h: 76px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--cream); }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal-on-scroll animation */
@keyframes tpsUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tpsFade { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; }
.reveal.is-visible { animation: tpsUp .9s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1 !important; animation: none !important; }
}

/* Shared button */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3A332B; color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--cream); }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #4FA85B; }

.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
}

/* ========================= NAV ========================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 60px);
  background: rgba(246, 241, 233, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 31, 26, .1);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand__name {
  font-family: var(--sans); font-weight: 400; font-size: 15px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink); line-height: 1;
}
.brand__sub {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--accent); margin-top: 3px; line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__link {
  position: relative; font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink); padding-bottom: 4px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--ink); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: 0; }
.burger span { display: block; height: 1.5px; background: var(--ink); transition: width .2s ease; }
.burger span:nth-child(1), .burger span:nth-child(2) { width: 24px; }
.burger span:nth-child(3) { width: 16px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--cream);
  display: none; flex-direction: column; padding: 30px 28px;
}
.mobile-menu.is-open { display: flex; animation: tpsFade .25s ease; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__brand { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.mobile-menu__close { font-size: 30px; cursor: pointer; color: var(--ink); line-height: 1; background: none; border: 0; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 6px; margin-top: 60px; }
.mobile-menu__link { font-family: var(--serif); font-size: 40px; color: var(--ink); padding: 8px 0; }
.mobile-menu__cta { margin-top: auto; text-align: center; padding: 16px; font-size: 13px; letter-spacing: .16em; }

/* ========================= SECTIONS ========================= */
.section { padding: clamp(70px, 11vw, 140px) clamp(24px, 8vw, 120px); background: var(--cream); }
.section--alt { background: var(--cream-2); border-top: 1px solid rgba(36,31,26,.08); border-bottom: 1px solid rgba(36,31,26,.08); }
.section--warm { background: var(--cream-3); }
.section--narrow { padding-left: clamp(24px, 6vw, 90px); padding-right: clamp(24px, 6vw, 90px); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto; }
.section-head h2 {
  margin: 18px 0 0; font-family: var(--serif); font-size: clamp(32px, 5vw, 56px);
  color: var(--ink); line-height: 1.05;
}
.section-head p { margin: 18px 0 0; font-size: 15.5px; line-height: 1.8; color: var(--text-muted); }

/* ========================= HERO ========================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,24,20,.55) 0%, rgba(28,24,20,.38) 40%, rgba(28,24,20,.62) 100%);
}
.hero__inner {
  position: relative; max-width: 760px; display: flex; flex-direction: column; align-items: center;
  animation: tpsUp .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero__logo { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hero__eyebrow { margin-top: 30px; font-size: 12px; letter-spacing: .36em; text-transform: uppercase; color: #E8DCCB; }
.hero__title {
  margin: 18px 0 0; font-family: var(--serif); font-size: clamp(48px, 9vw, 104px);
  line-height: .98; color: #FBF7F0; letter-spacing: .01em;
}
.hero__rule { width: 54px; height: 1px; background: rgba(255,255,255,.5); margin: 30px 0; }
.hero__tag {
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 3vw, 25px);
  color: #F0E8DB; max-width: 520px; line-height: 1.5;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 38px; }

/* ========================= TWO-COLUMN ========================= */
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.two-col--rev { grid-template-columns: .9fr 1.1fr; }
.two-col--even { grid-template-columns: 1fr 1fr; }
.two-col h2 {
  margin: 20px 0 0; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.1; color: var(--ink);
}
.lead { margin: 26px 0 0; font-size: 16px; line-height: 1.85; color: var(--text-soft); max-width: 480px; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 5px;
}
.media { width: 100%; object-fit: cover; border-radius: 4px; }
.media--tall { height: clamp(360px, 52vw, 580px); }
.media--taller { height: clamp(400px, 58vw, 640px); }

/* ========================= SERVICES ========================= */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(44px, 6vw, 68px); }
.service-card {
  background: var(--cream); border: 1px solid rgba(36,31,26,.09); border-radius: 6px;
  padding: 34px 28px; display: flex; flex-direction: column; min-height: 240px;
  transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-card__n { font-family: var(--serif); font-size: 30px; color: var(--accent); }
.service-card h3 { margin: 16px 0 0; font-family: var(--serif); font-size: 25px; color: var(--ink); }
.service-card p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: #5C5449; }
.services-note { text-align: center; margin: 34px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8A7E6E; }

/* ========================= PHILOSOPHY BAND ========================= */
.philosophy { position: relative; padding: clamp(76px, 12vw, 130px) 24px; text-align: center; overflow: hidden; }
.philosophy__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.philosophy__overlay { position: absolute; inset: 0; background: rgba(24,20,16,.68); }
.philosophy__inner { position: relative; max-width: 900px; margin: 0 auto; }
.philosophy__eyebrow { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: #D8C4A8; }
.philosophy__words { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 26px; }
.philosophy__words span { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 4.4vw, 46px); color: #F4ECDE; line-height: 1.2; }

/* ========================= GALLERY ========================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(150px, 20vw, 240px); gap: 14px; max-width: 1200px; margin: 0 auto;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 4px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-big { grid-column: span 2; grid-row: span 2; }

/* ========================= VALUES ========================= */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vw, 48px); max-width: 1100px; margin: 0 auto; }
.value { text-align: center; }
.value__n { font-family: var(--serif); font-size: 34px; color: var(--accent); }
.value h3 { margin: 12px 0 8px; font-family: var(--serif); font-size: 23px; color: var(--ink); }
.value p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ========================= CTA ========================= */
.cta { padding: clamp(70px, 10vw, 120px) 24px; background: var(--cream-3); text-align: center; }
.cta h2 { margin: 18px auto 0; max-width: 720px; font-family: var(--serif); font-size: clamp(30px, 5vw, 52px); line-height: 1.12; color: var(--ink); }
.cta p { margin: 20px auto 0; max-width: 500px; font-size: 16px; line-height: 1.8; color: #5C5449; }
.cta .btn { margin-top: 34px; }

/* ========================= PAGE HEAD (inner pages) ========================= */
.page { padding-top: var(--nav-h); animation: tpsFade .4s ease; }
.page-head { padding: clamp(60px, 9vw, 110px) clamp(24px, 8vw, 120px) clamp(40px, 6vw, 70px); text-align: center; background: var(--cream); }
.page-head h1 { margin: 20px 0 0; font-family: var(--serif); font-size: clamp(40px, 7vw, 84px); color: var(--ink); line-height: 1; }
.page-head p { margin: 22px auto 0; max-width: 560px; }
.page-head .sub-serif { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.6vw, 23px); color: var(--text-muted); line-height: 1.5; }
.about-copy p { margin: 0; font-size: 16.5px; line-height: 1.9; color: #4E473D; }
.about-copy p + p { margin-top: 22px; }

/* ========================= CONTACT ========================= */
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: block; background: var(--cream-2); border: 1px solid rgba(36,31,26,.1); border-radius: 6px; padding: 30px 32px; transition: border-color .25s ease; }
.contact-card:hover { border-color: var(--accent); }
.contact-card__label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.contact-card__addr { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.contact-card__city { margin: 6px 0 0; font-size: 15px; color: var(--text-muted); }
.contact-card__phone { margin: 12px 0 0; font-family: var(--serif); font-size: 30px; color: var(--ink); }
.contact-card__ig { margin: 12px 0 0; font-size: 20px; color: var(--ink); }
.contact-card__more { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.contact-media { position: relative; border-radius: 6px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-media__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,24,20,0) 40%, rgba(28,24,20,.72) 100%); }
.contact-media__inner { position: relative; padding: 34px; width: 100%; }
.contact-media__inner p { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--cream); }

/* ========================= FOOTER ========================= */
.footer { background: var(--ink-2); color: #CFC4B4; padding: clamp(54px, 7vw, 80px) clamp(24px, 8vw, 120px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.footer__brand-name { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); line-height: 1.2; }
.footer__brand-sub { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent); margin-top: 2px; }
.footer__about { margin: 22px 0 0; font-size: 14px; line-height: 1.7; color: #9E9484; max-width: 300px; }
.footer__col-title { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #7C7365; margin-bottom: 16px; }
.footer__col a { font-size: 14.5px; line-height: 1.7; color: #CFC4B4; }
.footer__col a:hover { color: #fff; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__bar {
  max-width: 1200px; margin: 44px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 12px; color: #7C7365;
}
.footer__bar .up { letter-spacing: .14em; text-transform: uppercase; }

/* ========================= FLOATING WHATSAPP ========================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .two-col, .two-col--rev, .two-col--even { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .gallery-big { grid-column: auto; grid-row: auto; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 68vw; }
  .values-grid { grid-template-columns: 1fr; }
}
