/* CIMA Pilates & Yoga Studio — concept by Beans Digital
   Airy boutique-wellness look: warm cream, deep sage green, soft
   terracotta, elegant serif display with light sans body, arch
   shapes, pill buttons, generous whitespace, gentle motion. */

@view-transition { navigation: auto; }

:root {
  --cream: #faf6ef;
  --cream-2: #f3ecdf;
  --sage: #39544a;
  --sage-deep: #243b33;
  --terra: #c4764f;
  --ink: #2b2b27;
  --muted: #6f6f66;
  --line: #e3dbca;
  --wrap: 1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }

a { color: var(--sage); }
a:hover { color: var(--terra); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  color: var(--sage-deep);
}
h1 em, h2 em { font-style: italic; color: var(--terra); }

/* ---------- concept banner ---------- */
.concept-banner {
  background: var(--sage-deep);
  color: var(--cream);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 14px;
  letter-spacing: 0.02em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 239, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  color: var(--sage-deep);
  text-decoration: none;
  view-transition-name: brand;
}
.brand small {
  display: block;
  font-family: "Karla", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--cream-2); color: var(--sage-deep); }
.main-nav a[aria-current="page"] {
  background: var(--sage);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--sage);
  color: var(--sage);
  font-family: "Karla", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--sage);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--sage); color: var(--cream); }
.btn-solid:hover { background: var(--sage-deep); color: var(--cream); }
.btn-ghost { color: var(--sage); background: transparent; }
.btn-ghost:hover { background: var(--cream-2); color: var(--sage-deep); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 90px 0 70px;
  position: relative;
}
.hero .arch {
  width: 150px;
  height: 200px;
  margin: 0 auto 30px;
  border: 1.5px solid var(--terra);
  border-radius: 999px 999px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  color: var(--terra);
}
.hero .arch svg { width: 64px; height: 64px; }

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  margin-bottom: 22px;
}
.hero .lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34em;
  margin: 0 auto 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 24px; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.rating-badge .stars { color: var(--terra); letter-spacing: 3px; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-tint { background: var(--cream-2); }
.section-sage { background: var(--sage-deep); color: var(--cream); }
.section-sage h2, .section-sage h3 { color: var(--cream); }
.section-sage .sub, .section-sage p { color: #cfd8d0; }

.kicker {
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.section h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin-bottom: 18px; }
.section .sub { color: var(--muted); max-width: 38em; margin-bottom: 40px; }

/* ---------- class cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px 28px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(57, 84, 74, 0.1); }
.section-tint .card { background: var(--cream); }
.card .icon-ring {
  width: 72px; height: 88px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--sage);
  border-radius: 999px 999px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
}
.card .icon-ring svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat .num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--terra);
  display: block;
  line-height: 1.1;
}
.stat .label {
  color: inherit;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.quote {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px 28px;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: "Fraunces", serif;
  font-size: 3rem;
  color: var(--terra);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.quote p { font-size: 0.98rem; color: var(--ink); margin-bottom: 14px; font-style: italic; }
.quote footer { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; max-width: 540px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.hours-table th { font-weight: 700; color: var(--sage-deep); }
.hours-table td { color: var(--muted); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--terra); font-weight: 700; }
.section-sage .hours-table th { color: var(--cream); }
.section-sage .hours-table td { color: #cfd8d0; }
.section-sage .hours-table th, .section-sage .hours-table td { border-color: rgba(250,246,239,0.18); }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 46px;
  align-items: start;
}

/* ---------- map ---------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: 26px;
  width: 100%;
  height: 380px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  margin-bottom: 14px;
  padding: 0 24px;
}
.faq-list summary {
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: var(--sage-deep);
  padding: 20px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--terra);
  font-size: 1.4rem;
  font-family: "Karla", sans-serif;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); padding: 0 0 22px; }

/* ---------- page head ---------- */
.page-head {
  text-align: center;
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head p { color: var(--muted); max-width: 40em; margin: 18px auto 0; }

/* ---------- contact items ---------- */
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
}
.contact-item .icon { width: 26px; height: 26px; color: var(--terra); flex-shrink: 0; }
.contact-item strong { display: block; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--muted); }
.contact-item a, .contact-item span.value { color: var(--sage-deep); font-weight: 700; font-size: 1.02rem; text-decoration: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sage-deep);
  color: #cfd8d0;
  padding: 54px 0 96px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
  margin-bottom: 34px;
}
.site-footer h3 {
  font-family: "Karla", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfd8d0; text-decoration: none; }
.site-footer a:hover { color: var(--terra); }
.footer-legal {
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  padding-top: 20px;
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(36, 59, 51, 0.35);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.05); color: #fff; }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 18px; font-size: 1rem; border-radius: 14px; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 54px 0; }
  .wa-float span.wa-label { display: none; }
  .wa-float { padding: 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; }
}
