@import url('global.css');

/* ====================================================
   MISWYLLTIA ONLINE - HOME PAGE STYLES
   ==================================================== */

:root {
  /* --- CORES PRINCIPAIS (DESIGN SYSTEM MISWYLLTIA) --- */
  --color-teal: #3f9b9c;
  --color-teal-dark: #2c7273;
  --color-teal-light: #eaf5f5;
  --color-red: #F73947;
  --color-red-dark: #C92431;
  --color-off-white: #f2f2f2;
  --color-white: var(--color-off-white);
  --color-dark: #1a1a1a;
  --color-gray-muted: #666666;
  --color-border: #e2e8f0;

  /* --- FONTS --- */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* --- ESPAÇAMENTOS --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- BORDAS --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* --- ALTURA DO HEADER --- */
  --header-height: 80px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: #f5f5f5;
  background-color: #f2f2f2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Wrapper do conteúdo acima do fundo */
#site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ====================================================
   HEADER BRANCO (INSTITUCIONAL)
   ==================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #f2f2f2;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  height: 62px;
  background-color: rgba(242, 242, 242, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-simple);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 58px;
  width: auto;
  display: block;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .header-logo img {
  height: 42px;
}

.header-right,
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

@media (max-width: 768px) {
  .site-header {
    height: 58px;
  }
  .site-header.scrolled {
    height: 52px;
  }
  .header-container {
    padding: 0 var(--space-4);
  }
  .header-logo img {
    height: 34px !important;
  }
  .site-header.scrolled .header-logo img {
    height: 28px !important;
  }
  .header-right,
  .header-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  position: relative;
  padding: var(--space-2) 0;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:active,
.nav-link.active {
  color: var(--color-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2.5px;
  border-radius: var(--radius-full);
  background-color: var(--color-red);
  transition: width 0.25s cubic-bezier(0.25, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link:active::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.btn-header {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  background-color: var(--color-teal);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-simple);
  transition: background-color 0.25s ease, transform 0.15s ease;
}

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

.btn-header:active {
  transform: scale(0.96);
}

/* ====================================================
   HERO / ÁREA PRINCIPAL DO SITE
   ==================================================== */
.main-content {
  flex: 1;
  width: 100%;
  margin: 0;
  margin-top: var(--header-height);
  padding: 0;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  overflow: hidden;
  background-color: #f2f2f2;
}

.hero-left-box {
  width: 50%;
  flex: 0 0 50%;
  height: 100%;
  background-color: #f2f2f2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-12) var(--space-8) var(--space-16);
  z-index: 2;
}

.hero-right-pattern {
  width: 50%;
  flex: 0 0 50%;
  height: 100%;
  background-image: url('../assets/hero.svg');
  background-repeat: repeat;
  background-size: 1800px;
  background-position: center;
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    height: auto;
    min-height: auto;
  }
  .hero-right-pattern {
    width: 100%;
    height: 220px;
    flex: 0 0 220px;
  }
  .hero-left-box {
    width: 100%;
    flex: 1 1 auto;
    padding: var(--space-8) var(--space-4) var(--space-10) var(--space-4);
  }
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7ee2e3;
  background: rgba(63, 155, 156, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(126, 226, 227, 0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  margin-bottom: var(--space-8);
}

/* Botão Pill Shaped (Explore & About) */
.btn-pill,
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  align-self: flex-start;
  padding: 8px 10px 8px 28px;
  border-radius: var(--radius-full);
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
  user-select: none;
  cursor: pointer;
}

/* Animação expressiva e tátil no clique */
.btn-pill:active,
.btn-explore:active {
  transform: scale(0.94);
}

.btn-about {
  margin-top: var(--space-6);
}

.btn-pill .btn-text,
.btn-explore .btn-text {
  letter-spacing: 0.01em;
}

.btn-pill .btn-icon,
.btn-explore .btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-pill .btn-icon svg,
.btn-explore .btn-icon svg {
  stroke: var(--color-white);
  display: block;
}

/* ====================================================
   SEÇÃO ABOUT (WHAT IS MISWYLLTIA?)
   ==================================================== */
.about-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-color: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-left {
  width: 65%;
  flex: 0 0 65%;
  padding: var(--space-12) var(--space-8) var(--space-12) var(--space-16);
  z-index: 2;
}

@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    min-height: auto;
  }
  .about-left {
    width: 100%;
    flex: 1 1 auto;
    padding: var(--space-10) var(--space-4) var(--space-8) var(--space-4);
  }
  .about-right,
  .about-question-mark {
    display: none !important;
  }
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.about-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.about-text:last-child {
  margin-bottom: 0;
}

.eyebrow,
.eyebrow-teal,
.eyebrow-white {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f5f5f5;
  background-color: var(--color-teal-dark);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

.about-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: transparent;
  border: 2px solid var(--color-teal-dark);
  border-radius: 20px;
}

.disclaimer-icon {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #f5f5f5;
}

.disclaimer-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.about-right {
  width: 35%;
  flex: 0 0 35%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  pointer-events: none;
}

.about-question-mark {
  font-family: var(--font-display);
  font-size: clamp(48rem, 75vw, 72rem);
  font-weight: 700;
  color: rgba(242, 242, 242, 0.20);
  line-height: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(4%) translateX(5%);
}

/* ====================================================
   SEÇÃO CHANNELS (MEET OUR CHANNELS!)
   ==================================================== */
.channels-section {
  width: 100%;
  background-color: var(--color-white);
  padding: var(--space-16) 0 var(--space-20) 0;
}

@media (max-width: 768px) {
  .channels-section {
    padding: var(--space-10) 0 var(--space-12) 0;
  }
}

.channels-header-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto var(--space-10) auto;
  padding: 0 var(--space-8);
  text-align: center;
}

.channels-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  text-align: center;
}

.channels-container {
  display: flex;
  gap: var(--space-8);
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.channel-squircle-card {
  flex: 1;
  border-radius: 36px !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-banner {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
}

.banner-john {
  background-color: #fbb03b;
  background-image: url('../assets/johnpattern.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-vera {
  background-color: #6e2ba0;
  background-image: url('../assets/verapattern.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.channel-logo {
  height: 88px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .channel-logo {
    height: 64px;
  }
}

.card-body {
  background-color: #e5e5e7;
  padding: var(--space-8) var(--space-8) var(--space-10) var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

@media (max-width: 768px) {
  .channels-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 var(--space-4) var(--space-6) var(--space-4);
    gap: var(--space-4);
    scrollbar-width: none;
  }
  .channels-container::-webkit-scrollbar {
    display: none;
  }
  .channels-header-box {
    padding: 0 var(--space-4);
    margin-bottom: var(--space-6);
  }
  .channel-squircle-card {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 340px;
    scroll-snap-align: center;
    border-radius: 32px !important;
    overflow: hidden !important;
  }
  .card-banner {
    height: 180px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
  }
  .card-body {
    padding: var(--space-6) var(--space-4) var(--space-8) var(--space-4);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }
}

.channel-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-dark);
  margin: 0;
  letter-spacing: -0.015em;
}

.channel-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  margin: 0;
}

.channel-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.channel-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 2px solid rgba(26, 26, 26, 0.1);
  letter-spacing: -0.015em;
}

.channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.channel-list li {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.channel-list li::before {
  content: '•';
  color: var(--color-dark);
  opacity: 0.45;
  font-size: 1.25rem;
  line-height: 1;
}

/* Barra inferior com chamada para ver a programação completa */
.channels-footer-bar {
  width: 100%;
  max-width: 1140px;
  margin: var(--space-12) auto 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .channels-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 var(--space-4);
    margin-top: var(--space-8);
    gap: var(--space-4);
  }
}

.channels-footer-text {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--color-dark);
  margin: 0;
}

/* ====================================================
   SEÇÃO DIGIBOX (HARDWARE & CARROSSEL CIANO)
   ==================================================== */
.digibox-gallery {
  width: 100%;
  max-width: 840px;
  margin: 0 0 var(--space-8);
}

.digibox-gallery-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.2);
  touch-action: pan-y;
}

.digibox-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.digibox-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.digibox-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.digibox-gallery-button {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  touch-action: manipulation;
}

.digibox-gallery-button:hover,
.digibox-gallery-button:focus-visible { background: rgba(0, 0, 0, 0.88); }
.digibox-gallery-prev { left: 12px; }
.digibox-gallery-next { right: 12px; }

.digibox-gallery-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.digibox-gallery-dot {
  width: 44px;
  height: 44px;
  padding: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  background-clip: content-box;
  touch-action: manipulation;
}

.digibox-gallery-dot.is-active { background: #fff; }

@media (max-width: 600px) {
  .digibox-gallery { margin-bottom: var(--space-6); }
  .digibox-gallery-viewport { border-radius: 16px; }
  .digibox-gallery-button { width: 44px; height: 44px; }
}

.digibox-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-color: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.digibox-left {
  width: 45%;
  flex: 0 0 45%;
  padding: var(--space-12) var(--space-8) var(--space-12) var(--space-16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

@media (max-width: 900px) {
  .digibox-section {
    flex-direction: column;
    min-height: auto;
    height: auto;
    overflow: hidden;
  }
  .digibox-left {
    width: 100%;
    flex: 1 1 auto;
    padding: var(--space-10) var(--space-4) var(--space-8) var(--space-4);
  }
  .digibox-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .digibox-right {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
  }
  .carousel-wrapper,
  .carousel-track-container,
  .slide-image-card,
  .slide-image-card img {
    border-radius: 0 0 32px 32px !important;
  }
}

.digibox-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.digibox-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-4);
}

.btn-digibox {
  margin-top: var(--space-6);
}

/* Carrossel na Direita (Posição Absoluta 100% da altura da seção) */
.digibox-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.carousel-track-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 100%;
}

.slide-image-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  overflow: hidden;
}

.slide-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  display: block;
}

/* Botões do Carrossel (Design Simples & Limpo) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-simple);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.carousel-btn:hover {
  background: #f2f2f2;
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.btn-prev {
  left: 16px;
}

.btn-next {
  right: 16px;
}

/* Indicadores / Dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}

.dot.active {
  width: 28px;
  background: #f5f5f5;
}

/* ====================================================
   SEÇÃO EXPLORE (PENÚLTIMA SEÇÃO BRANCA)
   ==================================================== */
.explore-section {
  width: 100%;
  background-color: var(--color-white);
  background-image: url('../assets/theresplentymorepattern.svg');
  background-repeat: repeat;
  background-size: 1800px;
  background-position: center;
  padding: var(--space-16) 0 var(--space-20) 0;
  color: #1a1a1a;
}

.explore-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.explore-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a !important;
  letter-spacing: -0.02em;
  text-align: left;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .explore-section {
    padding: var(--space-10) 0 var(--space-12) 0;
    overflow: hidden;
  }
  .explore-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 var(--space-4);
    gap: var(--space-6);
  }
  .explore-title {
    white-space: normal;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.25;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
    color: #1a1a1a !important;
  }
  .btn-explore-more {
    width: auto;
    align-self: flex-start;
  }
}

/* ====================================================
   FOOTER (RODAPÉ TEAL)
   ==================================================== */
.site-footer {
  width: 100%;
  background-color: var(--color-teal);
  padding: var(--space-10) 0;
  color: #f5f5f5;
}

body.teal-theme .site-footer {
  background-color: var(--color-teal);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 300px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.25s ease;
}

.footer-logo-img:hover {
  opacity: 0.85;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.copyright-link {
  color: #f5f5f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.copyright-link:hover {
  color: #7ee2e3;
  opacity: 1;
}

/* FOOTER CONTACT SECTION */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 500px;
}

.footer-contact-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f5f5;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-8);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-item.contact-address-item {
  grid-column: span 2;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.contact-link {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: #f5f5f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #7ee2e3;
}

.contact-address {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.address-disclaimer {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: left;
    gap: var(--space-8);
  }
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-contact-item.contact-address-item {
    grid-column: span 1;
  }
}

/* ====================================================
   PRESENTATION GALLERY GRID STYLES
   ==================================================== */
.presentation-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 840px;
  margin-top: var(--space-4);
}

.presentation-gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-simple);
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
}

.presentation-gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.presentation-gallery-card.active-card {
  border-color: var(--color-teal-light);
  box-shadow: 0 0 0 3px var(--color-teal);
}

.presentation-gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.presentation-gallery-card .card-caption {
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f5f5f5;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
}

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

/* ====================================================
   UPDATES & DEVLOG PAGE STYLES
   ==================================================== */
.updates-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 860px;
  width: 100%;
  margin: var(--space-6) 0 var(--space-16) 0;
}

/* The page header already supplies the horizontal gutter; avoid adding it twice. */
.updates-page .john-intro-container {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.update-entry {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: var(--space-8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-simple);
  transition: border-color 0.2s ease;
}

@media (max-width: 768px) {
  .updates-page .john-intro-container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .update-entry {
    padding: var(--space-6);
    border-radius: 20px;
  }
}

.update-entry:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.update-meta-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.update-date {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.update-tag {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-teal);
  color: #f5f5f5;
}

.update-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f5f5f5;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}

.update-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.update-body p {
  margin: 0;
}

.update-body ul {
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ====================================================
   LATEST UPDATES SECTION (HOME PAGE)
   ==================================================== */
.latest-updates-section {
  width: 100%;
  background-color: #f5f5f5;
  background-image: url('../assets/theresplentymorepattern.svg');
  background-repeat: repeat;
  background-size: 1800px;
  background-position: center;
  padding: var(--space-16) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.latest-updates-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.latest-updates-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.latest-updates-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.latest-updates-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-gray-muted);
  margin-top: var(--space-2);
}

.latest-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.update-card {
  background-color: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 24px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--color-dark);
  box-shadow: var(--shadow-simple);
  transition: border-color 0.2s ease;
}

.update-card:hover {
  border-color: var(--color-teal);
}

.update-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.update-card-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray-muted);
}

.update-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background-color: rgba(63, 155, 156, 0.15);
  color: var(--color-teal-dark);
}

.update-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.update-card-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.update-card-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.update-card:hover .update-card-link {
  color: var(--color-red);
}

.latest-updates-mobile-footer {
  display: none;
}

@media (max-width: 768px) {
  .latest-updates-section {
    overflow: hidden;
  }
  .latest-updates-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
  }
  .btn-desktop-updates {
    display: none !important;
  }
  .latest-updates-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 var(--space-4) var(--space-4) var(--space-4);
    gap: var(--space-4);
    scrollbar-width: none;
  }
  .latest-updates-grid::-webkit-scrollbar {
    display: none;
  }
  .latest-updates-grid .update-card {
    flex: 0 0 82%;
    min-width: 270px;
    max-width: 320px;
    scroll-snap-align: center;
  }
  .latest-updates-mobile-footer {
    display: flex;
    justify-content: flex-start;
    padding: 0 var(--space-4);
    margin-top: var(--space-6);
  }
  .latest-updates-mobile-footer .btn-pill {
    width: 100%;
    justify-content: space-between;
  }
}
