* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --white: #ffffff;
  --navy: #0d2345;
  --navy-soft: #18345f;
  --text: #1b2a42;
  --muted: #6a768c;
  --line: rgba(13, 35, 69, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(13, 35, 69, 0.08);
  --shadow-strong: 0 24px 80px rgba(13, 35, 69, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* .site-header: a definição final (fixed + dark glass) vive mais abaixo,
   no bloco "header refinado". Este foi removido para eliminar conflito. */

.logo,
.footer-logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--navy);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--navy-soft);
  transition: opacity 0.25s ease;
}

nav a:hover {
  opacity: 0.65;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 28px 90px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Wrapper do vídeo do hero. Como <video> é um elemento "replaced", o
   height:100% contra um pai de altura indefinida (.hero usa min-height)
   resolve para a altura INTRÍNSECA do vídeo — virando uma faixa no topo
   com fundo escuro embaixo. Este wrapper absoluto (bloco não-replaced)
   estica até a altura real do .hero (top/bottom:0), criando um containing
   block definido para o vídeo cobrir 100% de verdade. */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 35, 0.36) 0%, rgba(8, 17, 35, 0.72) 100%),
    linear-gradient(90deg, rgba(13, 35, 69, 0.25) 0%, rgba(13, 35, 69, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 940px;
  text-align: center;
}

.hero-floating-card {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 2;
  width: 100%;
  max-width: 280px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(13, 35, 69, 0.16);
}

.hero-floating-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #fff;
}

.hero-floating-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.hero-floating-card h3,
.hero-floating-card p {
  color: var(--white);
}

.eyebrow,
.mini-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .mini-label {
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow,
.mini-label {
  color: var(--navy-soft);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions,
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 35px rgba(13, 35, 69, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 28px;
}

.section-dark {
  max-width: 100%;
  background: var(--navy);
  color: var(--white);
  border-radius: 42px 42px 0 0;
  padding-left: 28px;
  padding-right: 28px;
}

.section-head {
  margin-bottom: 46px;
}

.split-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 840px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 700px;
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--muted);
}

.section-dark .eyebrow,
.section-dark h2,
.section-dark p {
  color: var(--white);
}

.glass-card,
.intro-card,
.image-block,
.manifesto-card,
.collection-card,
.side-point,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.highlight-item {
  padding: 24px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.highlight-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1rem;
}

.highlight-item span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 0.95rem;
}

.intro-strip {
  padding-top: 42px;
}

.intro-grid,
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card,
.collection-card,
.side-point,
.contact-panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.88);
}

.intro-card h3,
.collection-content h3,
.side-point strong,
.image-caption h3,
.manifesto-copy h2,
.factory-copy h2 {
  color: var(--navy);
}

.intro-card h3 {
  font-size: 1.42rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.intro-card p,
.collection-content p,
.side-point p,
.image-caption p,
.factory-copy p,
.contact-panel p,
.footer-brand p,
.footer-news p {
  color: var(--muted);
  line-height: 1.8;
}

.image-title-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
}

.image-block,
.collection-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.image-caption,
.collection-content {
  padding: 26px;
}

.image-caption.compact h3,
.collection-content h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

.image-placeholder {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #dde6f3 0%, #eef3fa 100%);
  color: var(--navy-soft);
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}

.image-placeholder.small {
  min-height: 240px;
}

.image-placeholder.medium {
  min-height: 300px;
}

.image-placeholder.tall {
  min-height: 520px;
}

.image-placeholder.carousel-image {
  min-height: 560px;
}

.image-placeholder.dark,
.large-dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.88);
  border-bottom: none;
}

.manifesto-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 38px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,247,252,0.96));
}

.manifesto-copy h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.manifesto-side {
  display: grid;
  gap: 18px;
}

.collections-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}

.collection-card.wide {
  grid-column: span 1;
}

.gallery-section {
  overflow: hidden;
}

.premium-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  flex: 1;
  box-shadow: var(--shadow-strong);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-btn {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 35, 69, 0.2);
  cursor: pointer;
}

.dot.active {
  background: var(--navy);
}

.factory-preview {
  margin-top: 50px;
}

.factory-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.factory-copy .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
}

.contact-cta {
  padding-top: 72px;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.contact-panel .btn-primary {
  background: var(--navy);
  color: var(--white);
}

.contact-panel .btn-secondary {
  background: rgba(13, 35, 69, 0.04);
  color: var(--navy);
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 40px;
  padding: 42px 28px 28px;
  background: linear-gradient(180deg, #0d2345 0%, #09182f 100%);
  color: var(--white);
}

.footer-top,
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}

.footer-brand p,
.footer-column a,
.footer-news p,
.footer-bottom span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-column,
.footer-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.footer-column a,
.footer-link-cta {
  text-decoration: none;
}

.footer-link-cta {
  margin-top: 8px;
  color: var(--white);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(13, 35, 69, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

@media (max-width: 1100px) {
  .hero-highlights,
  .intro-grid,
  .image-title-grid,
  .collections-grid,
  .footer-top,
  .factory-grid,
  .split-head,
  .manifesto-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .split-head {
    gap: 18px;
  }

  .contact-panel {
    display: grid;
  }
}

@media (max-width: 980px) {
  .hero-floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 28px auto 0;
    max-width: 420px;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .logo img {
    height: 28px;
    width: auto;
    display: block;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 118px 18px 72px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p,
  .section-head p,
  .intro-card p,
  .footer-brand p,
  .footer-news p {
    font-size: 0.97rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .carousel-btn {
    display: none;
  }

  .image-placeholder,
  .image-placeholder.tall,
  .image-placeholder.carousel-image {
    min-height: 240px;
  }

  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 42px;
  background: rgba(7, 18, 38, 0.18);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(8, 18, 36, 0.82);
  padding: 14px 42px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1.5px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 0.82;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1101;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.8px;
  background: #ffffff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), top 0.35s cubic-bezier(.22,1,.36,1), opacity 0.25s ease;
}

.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child  { top: 27px; }

.menu-toggle.active span:first-child {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}
.menu-toggle.active span:last-child {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu BACKDROP (criado dinamicamente em premium.js) */
.menu-backdrop {
  position: fixed;
  inset: 0;
  /* Abaixo do header (z-index:1000) — o header tem backdrop-filter, que o torna
     um stacking context contendo o drawer. Se o backdrop ficar acima do header,
     o blur cobre o próprio menu. */
  z-index: 900;
  background: rgba(5, 12, 25, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(.22,1,.36,1), visibility 0.4s;
}
.menu-backdrop.is-on {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  /* O drawer do menu (.main-nav) fica fora da tela à direita quando fechado
     (transform: translateX(102%)). Isso criava overflow horizontal no documento,
     deslocando/cortando TODO o conteúdo no mobile. Cortar o overflow-x resolve. */
  html, body { overflow-x: hidden; }

  .site-header { padding: 14px 18px; }
  .site-header.scrolled { padding: 10px 18px; }

  .menu-toggle { display: block; }

  /* DRAWER — fade-in (full-height), polido.
     IMPORTANTE: o painel fica SEMPRE em translateX(0), ancorado em right:0,
     ou seja, dentro da viewport. Não usamos translateX(102%) para esconder,
     porque um position:fixed empurrado para fora da tela cria overflow
     horizontal no documento (engine não recorta fixed com overflow-x:hidden),
     deixando todo o conteúdo "espremido"/cortado no mobile. Fechado = invisível
     no lugar; aberto = fade-in. O movimento vem do slide escalonado dos links. */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(380px, 88vw);
    padding: 92px 30px 36px;
    border-radius: 0;
    background: linear-gradient(180deg, #0d2345 0%, #06112a 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -28px 0 60px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: opacity 0.45s cubic-bezier(.22,1,.36,1), visibility 0.45s;
    z-index: 1095;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  /* Linha decorativa no topo do drawer */
  .main-nav::before {
    content: "Madresilva";
    position: absolute;
    top: 30px;
    left: 30px;
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: -.02em;
    opacity: .9;
  }
  .main-nav::after {
    content: "";
    position: absolute;
    top: 74px;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.22), transparent);
  }

  .main-nav a {
    width: 100%;
    padding: 16px 4px;
    font-size: 1.18rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.5s cubic-bezier(.22,1,.36,1), transform 0.5s cubic-bezier(.22,1,.36,1), color 0.25s ease;
  }
  .main-nav.active a {
    opacity: 1;
    transform: translateX(0);
  }
  /* delays escalonados — efeito apple */
  .main-nav.active a:nth-child(1) { transition-delay: .12s; }
  .main-nav.active a:nth-child(2) { transition-delay: .18s; }
  .main-nav.active a:nth-child(3) { transition-delay: .24s; }
  .main-nav.active a:nth-child(4) { transition-delay: .30s; }
  .main-nav.active a:nth-child(5) { transition-delay: .36s; }
  .main-nav.active a:nth-child(6) { transition-delay: .42s; }
  .main-nav.active a:nth-child(7) { transition-delay: .48s; }

  .main-nav a:last-child { border-bottom: 0; }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.active-link {
    color: #fff;
    font-weight: 600;
  }
  .main-nav a.active-link::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 14px;
    height: 1px;
    background: #fff;
    margin-right: 10px;
    transform: translateY(-2px);
  }

  /* Trava scroll do body quando menu aberto */
  body.menu-open {
    overflow: hidden;
  }
}

/* cards coleção sem moldura */

.collection-card{
padding:0;
overflow:hidden;
border-radius:28px;
background:#fff;
}

.collection-media{
padding:0;
margin:0;
line-height:0;
overflow:hidden;
}

.collection-media img{
display:block;
width:100%;
height:340px;
object-fit:cover;
margin:0;
border:none;
border-radius:0;
}

/* tamanhos */

.collection-media.tall img{
height:460px;
}

.collection-media.medium img{
height:300px;
}

/* texto continua com respiro */
.collection-content{
padding:26px;
}

.carousel-slide{
min-width:100%;
}

.carousel-media{
width:100%;
height:520px;
display:flex;
align-items:center;
justify-content:center;
background:#fff;
overflow:hidden;
}

.carousel-media img{
width:100%;
height:100%;
object-fit:contain;
display:block;
}
