/* ==========================================================================
   Montapet — design system
   ========================================================================== */

:root {
  --color-navy: #2b4a5e;
  --color-navy-deep: #23404f;
  --color-teal: #4f8a9b;
  --color-teal-dark: #3a6270;
  --color-pink: #ee4c7c;
  --color-pink-dark: #d63868;
  --color-cyan: #1fafc1;
  --color-green: #4caf50;
  --color-green-dark: #3d8b41;
  --color-bg-blush: #fbe9e6;
  --color-text: #4a4a4a;
  --color-text-light: #7c8a92;
  --color-border: #e5e9eb;
  --color-white: #ffffff;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;

  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(35, 64, 79, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-teal); text-decoration: none; }
a:hover { color: var(--color-navy); }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 16px; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: 1300px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--welcome {
  background-image: url('../images/home/bg-mapa-mundi.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1100px auto;
}

.section-heading { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-heading__eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 8px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin-top: 12px; color: var(--color-text-light); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--teal { background: var(--color-teal); color: var(--color-white); }
.btn--teal:hover { background: var(--color-teal-dark); color: var(--color-white); }

.btn--green { background: var(--color-green); color: var(--color-white); }
.btn--green:hover { background: var(--color-green-dark); color: var(--color-white); }

.btn--outline { background: transparent; color: var(--color-navy); border: 1px solid var(--color-navy); }
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn--sm { padding: 9px 20px; font-size: 0.75rem; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.site-logo img { height: 84px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 8px 0;
}
.main-nav a:hover { color: var(--color-cyan); }

.main-nav .has-children { position: relative; }
.main-nav .has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
}

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.15s ease;
}
.main-nav .has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu a { padding: 10px 20px; text-transform: none; font-weight: 500; }

.main-nav .has-children:last-child .sub-menu { left: auto; right: 0; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  position: absolute;
  left: 9px;
  transition: all 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--color-navy-deep);
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35,64,79,0.72) 0%, rgba(35,64,79,0.55) 60%, rgba(35,64,79,0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: right;
  color: var(--color-white);
}

.hero__eyebrow {
  display: inline-block;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0;
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-bottom: 24px;
  opacity: 0;
}

.hero__slide .btn {
  opacity: 0;
}

.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .btn {
  animation: heroFadeUp 0.9s ease forwards;
}
.hero__slide.is-active .hero__title { animation-delay: 0.12s; }
.hero__slide.is-active .btn { animation-delay: 0.28s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__dots {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero__dots button.is-active { background: var(--color-white); }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */

.page-header {
  background-color: var(--color-bg-blush);
  background-image: url('../images/background/back_topo.png');
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
  padding: 56px 0 44px;
  text-align: center;
}
.page-header h1 { margin-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: var(--color-navy); }
.breadcrumb a { color: var(--color-navy); font-weight: 600; }
.breadcrumb span { color: var(--color-teal); font-weight: 600; }

/* ==========================================================================
   Welcome / intro section (home)
   ========================================================================== */

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro__media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; }
.intro__media video, .intro__media img { width: 100%; height: 100%; object-fit: cover; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
}
.checklist .check-icon {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-pink);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ==========================================================================
   Stats band
   ========================================================================== */

.stats-band {
  background: var(--color-teal-dark);
  color: var(--color-white);
  padding: 90px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item__number { font-size: 2.1rem; font-weight: 700; }
.stat-item__label { font-size: 0.85rem; opacity: 0.9; margin: 6px 0 14px; }
.stat-item__icon { display: flex; justify-content: center; }
.stat-item__icon img { width: 42px; height: 42px; filter: brightness(0) invert(1); }

/* ==========================================================================
   Photo gallery grid (home teaser)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-cta { text-align: center; }

/* ==========================================================================
   Video / testimonial cards
   ========================================================================== */

.video-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.video-card { margin: 0; text-align: center; }
.video-card__frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 9/16;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-teal-dark) 100%);
  margin-bottom: 12px;
}
.video-card__frame video { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
}
.video-card__play svg { width: 44px; height: 44px; }
.video-card figcaption { font-weight: 600; color: var(--color-navy); font-size: 0.9rem; }

/* ==========================================================================
   Instagram strip
   ========================================================================== */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.instagram-grid a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.instagram-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.instagram-grid a:hover img { transform: scale(1.06); }

/* ==========================================================================
   Factory / about strip
   ========================================================================== */

.factory {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.factory__media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }

/* ==========================================================================
   Contact section
   ========================================================================== */

.contact { background: #f7f9fa; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}
.contact-grid__media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); min-height: 280px; }
.contact-grid__media img { width: 100%; height: 100%; object-fit: cover; }

.contact-info h2 { margin-bottom: 24px; }
.contact-block { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-block__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-blush);
  color: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-block__icon img {
  width: 18px;
  height: 18px;
}
.contact-block h3 { margin-bottom: 4px; font-size: 1rem; }
.contact-block p { margin: 0; color: var(--color-text-light); font-size: 0.92rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 200;
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ==========================================================================
   Product catalog (Lançamento 2026 / Linha Boutique)
   ========================================================================== */

.catalog-title { text-align: center; margin-bottom: 8px; }

.product-list { display: flex; flex-direction: column; gap: 56px; margin-top: 40px; }
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-card__media img {
  width: 75%;
  margin: 0 auto;
  border-radius: var(--radius-md);
}
.product-card__media--placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, #eef1f2, #eef1f2 12px, #e4e9eb 12px, #e4e9eb 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}
.product-card__code { color: var(--color-text-light); font-size: 0.8rem; margin: -10px 0 12px; }
.product-card__meta { font-size: 0.92rem; margin-bottom: 6px; }
.product-card__meta strong { color: var(--color-navy); }
.product-card__meta ul { margin: 6px 0 6px 0; }
.product-card__meta li { position: relative; padding-left: 16px; margin-bottom: 3px; }
.product-card__meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-teal);
}
.product-card .btn { margin-top: 12px; }

/* ==========================================================================
   Lojas Montadas — filterable gallery
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 40px;
}
.filter-bar button {
  border: none;
  background: var(--color-teal-dark);
  color: var(--color-white);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.filter-bar button:hover,
.filter-bar button.is-active { background: var(--color-cyan); }

.photo-grid {
  columns: 2;
  column-gap: 28px;
}
.photo-grid__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.photo-grid__item img { width: 100%; }
.photo-grid__item.is-hidden { display: none; }

/* ==========================================================================
   Legal pages (LGPD / Política de Privacidade)
   ========================================================================== */

.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; font-size: 1.15rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-text); }
.legal-content strong { color: var(--color-navy); }
.legal-content a { text-decoration: underline; }

/* ==========================================================================
   Room sections (Linha Sérgio Lobato)
   ========================================================================== */

.room-section { margin-bottom: 56px; }
.room-section h4 {
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-bg-blush);
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.photo-pair img,
.photo-pair .placeholder-box { border-radius: var(--radius-sm); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
.room-photo--wide {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.placeholder-box {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #eef1f2, #eef1f2 12px, #e4e9eb 12px, #e4e9eb 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}
.placeholder-box--wide { aspect-ratio: 21/9; }

/* ==========================================================================
   Simple page (Montapet pelo Brasil)
   ========================================================================== */

.map-block { text-align: center; }
.map-block img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); margin-bottom: 32px; }
.map-block__placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, #eef1f2, #eef1f2 12px, #e4e9eb 12px, #e4e9eb 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .intro,
  .factory,
  .contact-grid { grid-template-columns: 1fr; }
  .factory__media,
  .intro__media { order: -1; }

  .product-card { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-row { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 16px;
  }
  .main-nav .has-children.is-open .sub-menu { display: block; }
  .nav-toggle { display: block; }

  .hero__content { text-align: left; }
  .hero { min-height: 420px; }

  .photo-grid { columns: 1; }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-row { grid-template-columns: 1fr 1fr; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}
