/* Savage Studio — static port of the design-canvas export.
   Colors, spacing and type are kept 1:1 with the export; the design's
   `style-hover` attributes are expressed here as real :hover rules. */

:root {
  --ink: #17140F;
  --ink-deep: #0F0D0B;
  --bone: #F5F1E7;
  --orange: #E9631B;
  --rust: #8B2A16;
  --rust-deep: #7A2412;
  --wrap: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 68px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: #A83A12; text-decoration: none; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }
img { max-width: 100%; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* full-bleed texture washes behind a section's content */
.texture { position: absolute; inset: 0; pointer-events: none; }
.texture-wall {
  background-image: linear-gradient(rgba(246,243,236,0.42), rgba(246,243,236,0.42)), url('assets/wall.jpg');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.texture-brick {
  background-image:
    radial-gradient(120% 95% at 32% 42%, rgba(0,0,0,0) 22%, rgba(0,0,0,0.72) 100%),
    linear-gradient(rgba(30,15,11,0.56), rgba(30,15,11,0.56)),
    url('assets/brick2.jpg');
  background-size: auto, auto, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.texture-concrete {
  background-image: linear-gradient(rgba(60,54,46,0.22), rgba(60,54,46,0.22)), url('assets/concrete.jpg');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 16px 22px;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--bone); color: var(--ink); }
.btn-bone { background: #EDE8DC; color: var(--ink); }
.btn-bone:hover { background: var(--orange); color: var(--ink); }
.btn-purple {
  margin-top: 30px;
  background: #6B2C7C;
  color: var(--bone);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-1.8deg);
}
.btn-purple:hover {
  color: var(--bone);
  transform: rotate(-1.8deg) translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid rgba(245,241,231,0.12);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--bone); flex: 0 0 auto; }
.brand:hover { color: var(--bone); }
.brand img { width: 36px; height: 36px; flex: 0 0 auto; display: block; }
.brand span {
  font-family: Anton, Impact, sans-serif;
  font-size: 21px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.82);
}
.nav-link:hover { color: var(--orange); }
.nav-btn { font-size: 11px; letter-spacing: 0.14em; padding: 11px 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 84vh, 760px);
  background: var(--ink-deep);
  border-bottom: 4px solid var(--orange);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  display: block;
}
.hero-wash-x, .hero-wash-y { position: absolute; inset: 0; pointer-events: none; }
.hero-wash-x {
  background: linear-gradient(96deg,
    rgba(15,13,11,0.94) 0%,
    rgba(15,13,11,0.62) 46%,
    rgba(15,13,11,0.42) 72%,
    rgba(15,13,11,0.72) 100%);
}
.hero-wash-y {
  background: linear-gradient(180deg,
    rgba(15,13,11,0.75) 0%,
    rgba(15,13,11,0) 26%,
    rgba(15,13,11,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: clamp(540px, 84vh, 760px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) clamp(30px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.hero-place {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.82);
}
.hero-block { max-width: 640px; }
.hero h1 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(58px, 11.5vw, 128px);
  line-height: 0.84;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 6px 30px rgba(0,0,0,0.45);
}
.dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  background: var(--orange);
  margin-left: 0.06em;
  vertical-align: baseline;
}
.hero-lede {
  margin: clamp(20px, 3vh, 30px) 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  max-width: 520px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(245,241,231,0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(22px, 3.4vh, 34px);
  pointer-events: auto;
}

/* ---------- shared section bits ---------- */
.section-head { display: flex; align-items: flex-end; gap: 14px; }
.section-head h2 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-num { font-size: 11px; letter-spacing: 0.1em; color: var(--rust); padding-bottom: 6px; }
.section-num.deep { color: var(--rust-deep); }
.section-num.on-dark { color: var(--orange); }
.section-lede {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: #332C24;
  max-width: 640px;
}

/* ---------- 01 modalidades ---------- */
.modalidades {
  position: relative;
  scroll-margin-top: var(--header-h);
  background-color: #E2DDD3;
  padding: clamp(44px, 5vw, 68px) 0 clamp(52px, 6vw, 80px);
}
.modalidades-grid {
  margin-top: clamp(16px, 2.2vw, 22px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.modalidade {
  background: var(--bone);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  display: flex;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* square by default — but a floor, not a cap, so longer copy grows the card
   instead of spilling past its border (a plain `aspect-ratio: 1` clips it) */
.modalidade::before { content: ""; width: 0; padding-bottom: 100%; }
.modalidade:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--ink); }
.modalidade-art { flex: 0 0 46%; border-right: 1px solid var(--ink); }
.art-hatha   { background: #2A2340; }
.art-vinyasa { background: #611C18; }
.art-yin     { background: #2E4030; }
.modalidade-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modalidade-body {
  padding: clamp(16px, 1.8vw, 22px) clamp(17px, 1.9vw, 24px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}
.modalidade-body h3 {
  margin: 9px 0 11px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 25px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.modalidade-body p { margin: 0; font-size: 12px; line-height: 1.8; color: #3B332A; }

/* ---------- 02 o estudio ---------- */
.estudio {
  position: relative;
  overflow: hidden;
  background-color: #311914;
  scroll-margin-top: var(--header-h);
  padding: clamp(58px, 8vw, 100px) 0;
}
.estudio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.estudio .section-head { gap: 12px; }
.estudio .section-head h2 {
  font-size: clamp(34px, 5.2vw, 54px);
  color: var(--bone);
  text-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.estudio-frame { background: var(--bone); padding: 9px; box-shadow: 12px 12px 0 rgba(0,0,0,0.5); }
.estudio-photo { aspect-ratio: 0.8; background: #241A16; }
.estudio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.estudio-text {
  margin: 24px 0 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(245,241,231,0.95);
  max-width: 560px;
}
.estudio-text + .estudio-text { margin-top: 20px; }

/* ---------- 03 servicos ---------- */
.servicos {
  position: relative;
  background: #BDB7AF;
  border-top: 3px solid var(--rust);
  scroll-margin-top: var(--header-h);
  padding: clamp(44px, 5vw, 64px) 0 clamp(56px, 7vw, 86px);
}
.servicos .section-lede { color: #2E2822; }
/* tapestry hangs above the section edge, overlapping the studio band */
.tapestry {
  position: absolute;
  right: clamp(26px, 9vw, 150px);
  top: clamp(-190px, -14vw, -118px);
  width: clamp(130px, 14vw, 196px);
  aspect-ratio: 0.845;
  transform: rotate(7deg);
  box-shadow: 6px 8px 20px rgba(0,0,0,0.5);
  border: 2px solid var(--ink);
  pointer-events: none;
  z-index: 2;
}
.tapestry img { width: 100%; height: 100%; object-fit: cover; display: block; }
.servicos-grid {
  margin-top: clamp(16px, 2.2vw, 22px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(18px, 2vw, 24px);
}
.servico {
  background: var(--bone);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px 24px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.servico:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--ink); }
.servico.accent { box-shadow: 8px 8px 0 var(--orange); }
.servico.accent:hover { box-shadow: 12px 12px 0 var(--orange); }
/* services are <details> so phones can collapse them into an accordion; the
   group wrappers dissolve into the grid here and the disclosure UI is
   mobile-only (see the 760px block) */
.servico-group { display: contents; }
.servico-group-label { display: none; }
.servico > summary { list-style: none; }
.servico > summary::-webkit-details-marker { display: none; }
@media (min-width: 761px) {
  /* main.js holds these open above the breakpoint — don't invite a click that
     would collapse a card mid-grid */
  .servico > summary { cursor: default; pointer-events: none; }
}
.servico h3 {
  margin: 0 0 12px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.servico p { margin: 0; font-size: 12px; line-height: 1.85; color: #3B332A; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-deep);
  border-top: 4px solid var(--orange);
  padding: clamp(48px, 6vw, 72px) 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 54px);
}
.footer-word {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bone);
}
.footer-place {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.55);
  font-style: normal;   /* <address> italicises by default */
}
.footer-maplink {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 1px solid rgba(233,99,27,0.45);
  padding-bottom: 2px;
}
.footer-maplink:hover { color: var(--bone); border-bottom-color: var(--bone); }
/* the email is long and the footer column floors at 240px — keep it lowercase and
   let it break rather than push the grid wider */
.footer-contact { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.footer-contact a {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(245,241,231,0.7);
  overflow-wrap: anywhere;
}
.footer-contact a:hover { color: var(--orange); }
.footer-label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer-nav { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.8);
}
.footer-nav a:hover { color: var(--orange); }
.footer-btn { font-size: 11px; letter-spacing: 0.14em; padding: 14px 20px; margin-top: 20px; }
.footer-base {
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 20px;
  border-top: 1px solid rgba(245,241,231,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
.footer-base span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.6);
}

/* ---------- responsive ---------- */
/* the header is a fixed 68px band; below this the three text links would wrap
   out of it, so they collapse and the WhatsApp CTA carries the nav (the same
   links stay reachable in the footer) */
@media (max-width: 760px) {
  .nav-link { display: none; }

  /* Keep both hero CTAs on screen at load. `vh` resolves to the *tall*
     viewport (URL bar hidden), so at entry — bar visible — the hero was
     taller than the visible area and pushed the buttons below the fold.

     `svh` is the *small* viewport: the height with the URL bar showing, which
     is exactly what the visitor sees on landing. Critically it is a static
     value. `dvh` also fits on landing but is recalculated as the bar collapses
     during scroll, which resized the hero mid-scroll and shoved every section
     below it around. svh never changes, so scrolling stays still.

     border-box is required: the sheet sets no global box-sizing, so by default
     .hero-content's 22px/42px padding would sit *outside* min-height and push
     the second CTA back off the bottom edge. min-height, not height, so the
     block still grows if the copy wraps further. */
  .hero,
  .hero-content {
    min-height: calc(100svh - var(--header-h));
    box-sizing: border-box;
  }

  /* The studio photo reads as a caption to the copy on phones: it drops below
     the text and shrinks, so the section leads with words instead of a
     screen-filling portrait. */
  .estudio-copy { order: 1; }
  .estudio-frame { order: 2; max-width: 260px; }

  /* modalidades become a swipeable deck — cards snap centred and the
     neighbours peek in from both edges, so it reads as a stack of cards */
  .modalidades-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 var(--gutter);
    /* bleed to the screen edges so the neighbouring cards can peek */
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 24px;
  }
  .modalidade {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  /* slim scrollbar as a swipe affordance */
  .modalidades-grid::-webkit-scrollbar { height: 4px; }
  .modalidades-grid::-webkit-scrollbar-thumb {
    background: rgba(23, 20, 15, 0.35);
    border-radius: 4px;
  }

  /* Serviços: nine stacked cards is ~1600px of near-identical rectangles, so
     phones get three labelled panels of tappable rows instead — the whole
     offer reads in roughly a screen and a half */
  .servicos-grid { display: block; margin-top: clamp(20px, 4vw, 28px); }
  .servico-group {
    display: block;
    background: var(--bone);
    border: 1px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    margin-bottom: 30px;
  }
  .servico-group:last-child { margin-bottom: 0; }
  .servico-group-label {
    display: block;
    margin: 0;
    padding: 11px 18px;
    background: var(--ink);
    color: var(--bone);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .servico,
  .servico:hover,
  .servico.accent,
  .servico.accent:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    transform: none;
    transition: none;
  }
  .servico + .servico { border-top: 1px solid rgba(23, 20, 15, 0.18); }
  .servico > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    cursor: pointer;
  }
  .servico > summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1;
    color: var(--orange);
  }
  .servico[open] > summary::after { content: "–"; }
  .servico h3 { margin: 0; font-size: 17px; }
  .servico p { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
