/* =========================================================
   MB Studio — Design tokens
   ========================================================= */
:root {
  /* Warm cream paper, terracotta accent, plum-ink text */
  --cream:      #f4ecdd;
  --cream-2:    #ece1cf;
  --cream-card: #fbf6ec;

  --ink:        #211c24;
  --ink-2:      #2c2630;
  --ink-soft:   rgba(33, 28, 36, 0.70);
  --ink-faint:  rgba(33, 28, 36, 0.46);
  --ink-line:   rgba(33, 28, 36, 0.14);

  --terra:      #be6a4f;
  --terra-deep: #a2563d;
  --terra-glow: rgba(190, 106, 79, 0.18);

  --on-dark:      #f6efe3;
  --on-dark-soft: rgba(246, 239, 227, 0.80);
  --on-dark-faint:rgba(246, 239, 227, 0.48);
  --dark-line:    rgba(246, 239, 227, 0.16);

  --display: "Sora", system-ui, sans-serif;   /* headings — clean, legible */
  --body:    "Manrope", system-ui, sans-serif; /* body, nav, buttons */
  --serif:   "Fraunces", Georgia, serif;       /* small decorative accents only */

  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero { height: 100vh; }
  .hero-img { clip-path: inset(0) !important; transform: none !important; }
}

/* =========================================================
   Placeholder image block (where the owner will add photos)
   ========================================================= */
.ph-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(190,106,79,0.10) 0 14px, rgba(190,106,79,0.04) 14px 28px),
    var(--cream-2);
  color: var(--terra-deep);
  border: 1px dashed rgba(162, 86, 61, 0.55);
  border-radius: inherit;
}
.ph-img span { font-size: 0.82rem; letter-spacing: 0.04em; line-height: 1.5; }
.ph-img strong { font-size: 0.98rem; font-weight: 700; }

/* =========================================================
   Poster hairline rule  (mb ——— coimbra)
   ========================================================= */
.poster-rule { display: flex; align-items: center; gap: 1.2rem; }
.pr-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pr-line { flex: 1; height: 1px; background: currentColor; opacity: 0.5; }

/* =========================================================
   Logo
   ========================================================= */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.logo-mb { height: 22px; width: auto; display: block; }
.logo-full { height: 30px; width: auto; display: block; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .logo { color: var(--on-dark); }
.site-header .main-nav a { color: var(--on-dark-soft); }
.site-header .main-nav a:hover { color: var(--on-dark); }
.site-header .burger span { background: var(--on-dark); }
.site-header .main-nav a.nav-cta { color: var(--on-dark); border-color: var(--dark-line); }

.site-header.is-scrolled {
  padding: 0.85rem 0;
  background: rgba(244, 236, 221, 0.90);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ink-line);
}
.site-header.is-scrolled .logo { color: var(--ink); }
.site-header.is-scrolled .main-nav a { color: var(--ink-soft); }
.site-header.is-scrolled .main-nav a:hover { color: var(--ink); }
.site-header.is-scrolled .burger span { background: var(--ink); }
.site-header.is-scrolled .main-nav a.nav-cta { color: var(--terra-deep); border-color: var(--terra); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; }

/* Language switcher (adapts to header light/dark state) */
.lang-switch {
  background: none; border: none; cursor: pointer;
  font-family: var(--body);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0;
  color: var(--on-dark-soft);
  transition: color 0.4s var(--ease);
}
.lang-opt { opacity: 0.7; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
.lang-opt.is-active { opacity: 1; color: var(--terra); }
.lang-divider { opacity: 0.4; }
.site-header.is-scrolled .lang-switch { color: var(--ink-soft); }
.site-header.is-scrolled .lang-opt.is-active { color: var(--terra-deep); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a { position: relative; padding: 0.3rem 0; transition: color 0.3s var(--ease); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; border-radius: 2px; background: var(--terra); transition: width 0.35s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
/* Indicador da secção atual (barra laranja por baixo do item) */
.main-nav a.is-current::after { width: 100%; }
.main-nav a.nav-cta.is-current { background: var(--terra); border-color: var(--terra); color: var(--cream); }
.site-header.is-scrolled .main-nav a.nav-cta.is-current { color: var(--cream); }
.main-nav a.nav-cta {
  padding: 0.55rem 1.3rem; border: 1px solid; border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover { background: var(--terra); border-color: var(--terra); color: var(--cream); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 26px; height: 22px; background: none; border: none; cursor: pointer; padding: 0;
}
.burger span { display: block; height: 2px; width: 100%; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.4s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 1rem 2.2rem;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn-ghost { border-color: var(--dark-line); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }

/* Large, dominant call to action */
.btn-hero {
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  padding: 1.25rem 2.8rem;
  border-radius: 14px;
  box-shadow: 0 16px 40px -16px rgba(190, 106, 79, 0.85);
}
.btn-hero:hover { transform: translateY(-2px); background: var(--terra-deep); box-shadow: 0 20px 50px -16px rgba(190, 106, 79, 0.95); }
.btn-block { width: 100%; }

/* =========================================================
   Hero — pinned scroll-to-expand
   The extra height beyond 100vh is the "pin" distance: the hero stays
   fixed while the image scales up. Generous, so a small scroll is gentle.
   ========================================================= */
.hero {
  position: relative;
  height: calc(100vh + 105vh);
  /* Dark "frame" at the top, fading to cream at the very bottom so the seam
     into "Sobre Nós" is clean (no grey/black bar after the image expands). */
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 80%, var(--cream) 90%, var(--cream) 100%);
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 6.5rem 0 4.5rem;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: 50% 38%;
  filter: brightness(1.12) saturate(1.03);
  /* Start: noticeably smaller framed card. JS expands to full-bleed on scroll. */
  clip-path: inset(9% 10% 9% 10% round 26px);
  transform: scale(0.9);
  will-change: clip-path, transform;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,12,18,0.92) 0%, rgba(16,12,18,0.78) 40%, rgba(16,12,18,0.42) 72%, rgba(16,12,18,0.28) 100%),
    linear-gradient(0deg, rgba(16,12,18,0.34) 0%, transparent 28%);
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; color: var(--on-dark); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  color: var(--on-dark);
  margin: 0 0 1.6rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.7);
}
.eyebrow-rule { flex: 0 0 auto; width: 34px; height: 1px; background: var(--terra); }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  color: #fff;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.5);
}
.hero-sub {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 400;
  color: var(--on-dark-soft);
  max-width: 520px;
  margin: 0 0 2.4rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-rule { position: absolute; left: var(--pad); right: var(--pad); bottom: 2.2rem; z-index: 1; color: var(--on-dark-faint); }

/* =========================================================
   Section shared
   ========================================================= */
section { padding: clamp(5.5rem, 10vw, 9rem) 0; }

.kicker {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.1rem;
}

.section-head { margin-bottom: 3.5rem; max-width: 680px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

/* =========================================================
   Sobre Nós
   ========================================================= */
.about { background: var(--cream); padding-block: clamp(4rem, 7vw, 6.5rem) 0; }
.space { padding-top: 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-content { max-width: 52ch; }
/* Colagem de 3 imagens: principal alta + duas menores empilhadas */
.about-media {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  aspect-ratio: 1 / 1;
}
.about-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
  min-height: 0;
}
.about-media .am-main { grid-column: 1; grid-row: 1 / span 2; }
.about-media .am-ph { position: relative; border-radius: 16px; overflow: hidden; }

/* Separador cinematográfico entre secções (mesmo fundo bege) */
.chapter-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  width: 100%;
  margin: 0;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  color: rgba(33, 28, 36, 0.3);
}
/* linhas a toda a largura, com extremidades suavemente esbatidas */
.chapter-sep .cs-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent 0%, currentColor 6%, currentColor 100%); }
.chapter-sep .cs-line:last-child { background: linear-gradient(90deg, currentColor 0%, currentColor 94%, transparent 100%); }
.chapter-sep .cs-mark { width: 66px; height: auto; color: var(--terra); opacity: 0.9; flex: 0 0 auto; }
.about-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
}
.about-lead {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* Horizontal gallery / carousel */
.gallery { position: relative; }
.gallery-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem var(--pad) 1.5rem;
  margin: 0 calc(-1 * var(--pad));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(260px, 38vw, 440px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--cream-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(16,12,18,0.78), transparent);
  z-index: 2;
}
.gallery-controls { display: flex; gap: 0.7rem; margin-top: 0.5rem; }
.gallery-btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: var(--cream-card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-btn svg { width: 22px; height: 22px; }
.gallery-btn:hover { background: var(--terra); color: #fff; border-color: var(--terra); transform: translateY(-2px); }

/* =========================================================
   Serviços — photographic section
   ========================================================= */
.services {
  position: relative;
  color: var(--on-dark);
  background: var(--ink) url("../img/services-bg.jpg") center / cover no-repeat fixed;
}
.services-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,11,18,0.95) 0%, rgba(16,11,18,0.88) 45%, rgba(16,11,18,0.94) 100%);
}
.services .container { position: relative; z-index: 1; }
.services .section-head h2 { color: var(--on-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: rgba(20, 15, 22, 0.55);
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(190,106,79,0.6); }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-num {
  position: absolute; top: 0.9rem; left: 1rem; z-index: 3;
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.7);
}
.service-body { padding: 1.6rem 1.5rem 1.9rem; }
.service-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  color: var(--on-dark);
}
.service-body p { color: var(--on-dark-soft); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.services-cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); position: relative; z-index: 1; }

/* =========================================================
   Equipa
   ========================================================= */
.team { background: var(--cream); padding-block: clamp(4rem, 7vw, 6.5rem); }
.team .section-head { margin-bottom: 2.8rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { display: flex; flex-direction: column; }
.team-photo {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--cream-2); margin-bottom: 1.4rem;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.7s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-info h3 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.01em; margin: 0 0 0.35rem; color: var(--ink); }
.team-role { display: block; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 0.9rem; }
.team-info p { color: var(--terra); font-size: 1.05rem; font-weight: 500; margin: 0; }

/* Habilitações dos treinadores */
.quals { list-style: none; margin: 0.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.quals li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.quals li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58em;
  width: 7px; height: 2px;
  background: var(--terra);
  border-radius: 2px;
}

/* =========================================================
   Testemunhos (carrossel cinematográfico automático)
   ========================================================= */
.testimonials {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--ink) url("../img/testemunhos-bg.jpg") center / cover no-repeat;
}
.testimonials-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,9,16,0.93) 0%, rgba(14,9,16,0.86) 50%, rgba(14,9,16,0.93) 100%);
}
.testimonials .container,
.testimonials .marquee,
.testimonials .reviews-cta { position: relative; z-index: 1; }
.testimonials .section-head { margin-bottom: 2.6rem; }
.testimonials .section-head h2 { color: var(--on-dark); }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  padding: 0.5rem 0;
  animation: marquee 120s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tcard {
  position: relative;
  flex: 0 0 auto;
  width: clamp(300px, 80vw, 430px);
  background: var(--cream-card);
  border: 1px solid rgba(33, 28, 36, 0.10);
  border-radius: 20px;
  padding: 2.4rem 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
/* fino acento terracota no topo de cada cartão */
.tcard::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--terra);
}
.t-quote {
  position: absolute;
  top: 0.7rem; right: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.2rem;
  line-height: 1;
  color: rgba(190, 106, 79, 0.16);
}
.t-stars { color: #f4b400; letter-spacing: 0.22em; font-size: 1rem; }
.tcard blockquote {
  margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.tcard figcaption { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid rgba(33, 28, 36, 0.08); }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--terra); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  flex: 0 0 auto;
}
.t-meta { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.t-name { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.t-src { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.reviews-cta { display: flex; justify-content: center; margin-top: 2.6rem; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* =========================================================
   Parcerias (faixa discreta)
   ========================================================= */
.partners {
  background: var(--cream);
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
  border-top: 1px solid var(--ink-line);
}
.partners-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
  margin: 0 0 0.6rem;
}
.partners-title {
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* Clean partner logo strip — single consistent cream, logos only.
   2×2 on phone, even 4-across on desktop — identical proportions. */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(2.4rem, 7vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 760px) {
  .partners-strip { grid-template-columns: repeat(4, 1fr); }
}
.partner-logo {
  height: clamp(46px, 6.2vw, 64px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.3s var(--ease);
}
.partner-logo:hover {
  transform: translateY(-3px);
}

/* =========================================================
   Feature band (after team) — full-bleed premium image
   ========================================================= */
.feature-band {
  position: relative;
  height: clamp(420px, 72vh, 680px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.feature-img { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
/* Estado de placeholder (sem foto ainda): mostra o bloco "Adicionar foto" e
   suaviza o overlay para se manter legível. Remover ao adicionar a imagem. */
.feature-img.is-ph ~ .feature-veil { background: linear-gradient(0deg, rgba(16,12,18,0.55), transparent 55%); }
.feature-img.is-ph .ph-img { border: 0; }
.feature-veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,12,18,0.72) 0%, rgba(16,12,18,0.15) 50%, rgba(16,12,18,0.30) 100%); }
.feature-inner { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.feature-quote {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* =========================================================
   Estúdio / Localização
   ========================================================= */
.studio { background: var(--cream); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.location-info { align-self: center; }
.location-info h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em;
  line-height: 1.12; margin: 0 0 1.2rem; max-width: 14ch;
}
.location-info p { color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 42ch; font-size: 1.08rem; }
.location-info address {
  font-style: normal; font-family: var(--display); font-weight: 500;
  font-size: 1.2rem; color: var(--ink); margin: 0 0 2.2rem; line-height: 1.55;
}
.location-map {
  position: relative;
  display: block;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
}
.location-map iframe { width: 100%; height: 100%; min-height: 380px; pointer-events: none; filter: grayscale(0.2) contrast(1.02); }
.map-toggle {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3;
  display: flex; gap: 0.35rem;
  background: rgba(244, 236, 221, 0.92);
  border-radius: 999px; padding: 0.25rem;
  box-shadow: 0 6px 18px -8px rgba(33,28,36,0.5);
}
.map-toggle button {
  border: 0; cursor: pointer;
  font-family: var(--body); font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.map-toggle button.is-active { background: var(--ink); color: var(--cream); }

.map-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1.4rem;
  background: linear-gradient(0deg, rgba(16,12,18,0.35), transparent 55%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.map-overlay span {
  background: var(--ink); color: var(--cream);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.7rem 1.3rem; border-radius: 999px;
}
.location-map:hover .map-overlay { opacity: 1; }

/* =========================================================
   Contacto — light, inviting
   ========================================================= */
.contact {
  position: relative;
  color: var(--on-dark);
  background: var(--ink) url("../img/contact-bg.jpg") center / cover no-repeat;
}
.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,10,17,0.92) 0%, rgba(15,10,17,0.85) 50%, rgba(15,10,17,0.93) 100%);
}
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-info h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -0.02em;
  line-height: 1.12; margin: 0 0 1.2rem; max-width: 12ch; color: var(--on-dark);
}
.contact-info p { color: var(--on-dark-soft); margin: 0 0 2.2rem; max-width: 42ch; font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; color: var(--on-dark-soft); font-size: 1rem; }
.contact-list svg { width: 20px; height: 20px; color: var(--terra); flex-shrink: 0; }
.contact-list a:hover { color: var(--terra); }

/* Horário */
.hours { margin: 0 0 2.2rem; }
.hours-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.9rem;
  color: var(--on-dark);
}
.hours-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; max-width: 440px; }
.hours-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  font-size: 0.98rem; color: var(--on-dark-soft);
  border-bottom: 1px solid var(--dark-line);
  padding-bottom: 0.55rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-day { color: var(--on-dark); font-weight: 600; }
.hours-time { text-align: right; white-space: nowrap; }

.socials { display: flex; gap: 0.9rem; }
.socials a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--dark-line); border-radius: 50%; color: var(--on-dark-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.socials a:hover { border-color: var(--terra); background: var(--terra); color: var(--cream); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.contact-form {
  background: var(--cream-card);
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1.3rem;
  box-shadow: 0 30px 70px -40px rgba(33, 28, 36, 0.5);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-faint); }
.field input,
.field textarea {
  background: #fff;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-glow); }
.contact-form .btn { margin-top: 0.5rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 0 0 3.5rem; }
.footer-rule { color: var(--on-dark-faint); max-width: var(--container); margin: 0 auto 3rem; padding: 2.5rem var(--pad) 0; border-top: 1px solid var(--dark-line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.site-footer .logo { color: var(--on-dark); }
.footer-tag { color: var(--on-dark-soft); margin: 0; font-size: 1rem; }
.footer-copy { color: var(--on-dark-faint); font-size: 0.88rem; margin: 0; }
.footer-legal { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.2rem; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--on-dark-soft); font-size: 0.84rem; text-decoration: none; transition: color 0.25s var(--ease); }
.footer-legal a:hover { color: var(--on-dark); }
.footer-legal-dot { color: var(--on-dark-faint); font-size: 0.84rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info { text-align: left; }
  /* iOS doesn't support fixed background attachment well */
  .services { background-attachment: scroll; }
}

@media (max-width: 760px) {
  /* Testemunhos: remove mask-image que pode glitchar no iOS Safari */
  .marquee { -webkit-mask-image: none; mask-image: none; }

  body { font-size: 16px; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px);
    background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 2rem var(--pad); transform: translateX(100%);
    transition: transform 0.45s var(--ease); border-left: 1px solid var(--dark-line); font-size: 1.15rem;
  }
  .main-nav a { color: var(--on-dark-soft) !important; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a.nav-cta { margin-top: 0.5rem; color: var(--on-dark) !important; border-color: var(--dark-line) !important; }
  .burger { display: flex; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .hero-sticky { padding-top: 9rem; }
  section { padding: 4.5rem 0; }
  .gallery-item { width: 78vw; }
  /* Sem margens negativas: a galeria não pode ultrapassar a largura do ecrã */
  .gallery-track { margin-inline: 0; }
  /* Sobre nós: empilhar e deixar as imagens preencherem o ecrã no telemóvel */
  .about-grid { grid-template-columns: 1fr; }
  .about-content { max-width: none; }
  .hours-list li { flex-direction: column; gap: 0.15rem; }
  .hours-time { text-align: left; white-space: normal; }
}

@media (max-width: 480px) {
  .hero-img { clip-path: inset(6% 6% 6% 6% round 18px); }
  .btn-hero { padding: 1.1rem 1.8rem; }
}
