/* =========================================================
   Studio Fernanda Penha Frota — Pilates
   Design tokens
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* Color — extended from the studio's existing mark (deep teal → sage gradient)
     and the terracotta/cream used in their social posts */
  --ink:        #1C2B28;
  --ink-soft:   #3C4C48;
  --deep-teal:  #1E3F52;
  --deep-teal-2:#16303F;
  --sage:       #4F8F6B;
  --sage-light: #8FB89D;
  --accent:      #2E8B76;
  --accent-dark: #226B5C;
  --cream:      #FAF6EF;
  --sand:       #F1E7D6;
  --sand-line:  #E3D5BC;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Prevent grid/flex tracks from blowing out past the viewport on narrow
   screens because a child's intrinsic (min-content) width is wider than
   its track — the classic CSS Grid overflow gotcha. */
.hero-grid > *,
.split > *,
.testi-wrap > *,
.gallery-strip > *,
.gallery-col > *,
.grid-4 > *,
.footer-grid > *,
.contact-grid > *,
.contact-item {
  min-width: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 20px;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.5;
}

.cref-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin: -12px 0 20px;
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark .eyebrow { color: var(--cream); }
.on-dark .eyebrow { color: var(--sage-light); }
.on-dark .eyebrow::before { background: var(--sage-light); }
.on-dark p { color: #D9E3DC; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  border-color: currentColor;
  color: var(--cream);
}
.btn-outline:hover { background: rgba(250,246,239,0.12); transform: translateY(-2px); }
.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--cream); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { font-family: var(--font-display); line-height: 1.05; }
.brand-text .name { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-text .sub { display: block; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; opacity: .75; }

.site-header, .site-header .brand-text, .site-header .nav-link { color: var(--cream); }

.site-header.solid {
  background: var(--cream);
  box-shadow: 0 2px 18px rgba(28,43,40,0.08);
  padding: 12px 0;
}
.site-header.solid .brand-text, .site-header.solid .nav-link { color: var(--ink); }
.site-header.solid .btn-outline { border-color: var(--ink); color: var(--ink); }
.site-header.solid .btn-outline:hover { background: var(--ink); color: var(--cream); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .25s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  padding: 11px 6px;
  position: relative;
  z-index: 200;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute; left: 6px; right: 6px;
  height: 1.5px;
  background: currentColor;
  transition: all .3s var(--ease);
}
.nav-toggle::before { top: 11px; }
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::after { bottom: 11px; }
.nav-toggle.open::before { transform: translateY(11px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-11px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--deep-teal-2);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-link,
  .site-header.solid .nav-links .nav-link { color: var(--cream); font-size: 1.1rem; }
  .site-header.solid .nav-toggle.open { color: var(--cream); }
  .nav .btn-outline { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: linear-gradient(150deg, var(--deep-teal-2) 0%, var(--deep-teal) 46%, var(--sage) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 20%, rgba(255,255,255,0.09), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 { color: var(--cream); }
.hero-copy p { color: #DCE7E1; max-width: 46ch; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-figure {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 40px 70px -25px rgba(10,20,18,0.55);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,35,32,0.35), transparent 45%);
}
.hero-tag {
  position: absolute;
  bottom: 22px; left: 22px;
  z-index: 3;
  background: rgba(250,246,239,0.92);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 380px; }
  .hero { padding: 120px 0 70px; }
}

/* Signature curve divider — echoes the stretch/movement line of the mark */
.curve-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

/* =========================================================
   Sections
   ========================================================= */
section { position: relative; }
.section-pad { padding: 110px 0; }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-deep { background: var(--deep-teal-2); }
.bg-ink { background: var(--ink); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }

.split-media { position: relative; }
.split-media img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(28,43,40,0.35);
}
.split-media.portrait img { aspect-ratio: 3/4; }
.media-frame {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 6px;
  z-index: -1;
}
.split-media .media-frame { top: 22px; left: -22px; right: -22px; bottom: -22px; }
.split.reverse .split-media .media-frame { left: 22px; right: -22px; }

.credentials {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.credentials li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.credentials li strong {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 600;
  min-width: 52px;
}

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split .split-media, .split.reverse .split-media { order: 1; }
  .split .split-copy, .split.reverse .split-copy { order: 2; }
  .media-frame { display: none; }
}

/* Treatments preview grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sand-line);
  border: 1px solid var(--sand-line);
  margin-top: 50px;
}
.treat-card {
  background: var(--cream);
  padding: 40px 28px;
  transition: background .3s var(--ease);
}
.treat-card:hover { background: var(--sand); }
.treat-card .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 1rem;
  margin-bottom: 18px;
  display: block;
}
.treat-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.treat-card p { font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Testimonials */
.testi-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}
.testi-card {
  background: rgba(250,246,239,0.06);
  border: 1px solid rgba(250,246,239,0.16);
  border-radius: 6px;
  padding: 34px;
  margin-bottom: 22px;
}
.testi-card p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 16px;
}
.testi-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testi-who { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sage-light); }
.testi-placeholder {
  border: 1px dashed rgba(250,246,239,0.3);
  border-radius: 6px;
  padding: 34px;
  color: #B9C7C0;
  font-size: 0.88rem;
  font-style: italic;
}

.rating-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 6px;
  padding: 34px;
  text-align: center;
}
.rating-stars { color: var(--accent); font-size: 1.3rem; letter-spacing: 3px; margin-bottom: 10px; }
.rating-score { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; }
.rating-count { font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }

@media (max-width: 860px) {
  .testi-wrap { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-top: 50px;
}
.gallery-strip img, .gallery-strip video { border-radius: 6px; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--sand); }
.gallery-strip .g-tall { aspect-ratio: 4/5; }
.gallery-col { display: grid; gap: 20px; }
.gallery-col img { aspect-ratio: 16/10; object-fit: cover; }
.gallery-col video { aspect-ratio: 3/4; object-fit: cover; }

@media (max-width: 700px) {
  .gallery-strip { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
}

/* CTA band */
.cta-band {
  background: var(--accent);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 22px; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: var(--deep-teal-2); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #C7D3CD;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250,246,239,0.12);
}
.footer-grid h4 { color: var(--cream); font-size: 1rem; margin-bottom: 18px; }
.footer-grid .brand-text .name, .footer-grid .brand-text .sub { color: var(--cream); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 50%; }
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: #B7C4BD; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: var(--sage-light); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: #7E8D87;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* =========================================================
   Floating action buttons
   ========================================================= */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 28px -8px rgba(0,0,0,0.5); }
.fab-whatsapp { background: #25D366; }
.fab-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fab svg { width: 26px; height: 26px; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  padding: 150px 0 90px;
  background: linear-gradient(150deg, var(--deep-teal-2) 0%, var(--deep-teal) 60%, var(--sage) 130%);
}
.page-hero .eyebrow { color: var(--sage-light); }
.page-hero .eyebrow::before { background: var(--sage-light); }
.page-hero h1 { color: var(--cream); max-width: 16ch; }
.page-hero p { color: #DCE7E1; max-width: 56ch; font-size: 1.05rem; }

/* Treatments full list */
.treat-list { margin-top: 20px; }
.treat-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 46px 0;
  border-bottom: 1px solid var(--sand-line);
}
.treat-row:first-child { padding-top: 0; }
.treat-row .t-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--sage);
}
.treat-row h3 { margin-bottom: 12px; }
.treat-row p { max-width: 62ch; }
.treat-row .t-media {
  margin-top: 18px;
  border-radius: 6px;
  overflow: hidden;
  max-width: 420px;
}
.treat-row .t-media img { width: 100%; }

@media (max-width: 640px) {
  .treat-row { grid-template-columns: 1fr; gap: 8px; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: 6px;
  padding: 40px;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-item p { margin: 0; font-size: 0.95rem; }
.contact-item p a:hover { color: var(--accent); }

.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sand-line);
  aspect-ratio: 4/3.2;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
