/* ==========================================================================
   ESCOLA O MUNDO DA CRIANÇA - DESIGN SYSTEM
   Built from the school logo: navy + red, circles (heads), bars (arms)
   and trapezoids (bodies). Geometric type (Jost) to match the mark.
   ========================================================================== */

:root {
  /* Logo palette */
  --navy: #29354D;
  --navy-deep: #1D2638;
  --navy-soft: #E6EAF1;
  --red: #D2332F;                  /* 4.9:1 with white text */
  --red-dark: #B8282A;             /* red text on light backgrounds */
  --red-soft: #FBEAEA;
  --sun: #F2B33D;                  /* facade trim yellow, accents only */
  --sun-soft: #FDF3DD;
  --mist: #F1F3F7;
  --line: #DDE2EA;

  /* Semantic aliases (also used by inline styles in the pages) */
  --color-primary: var(--red);
  --color-primary-dark: var(--red-dark);
  --color-primary-light: var(--red-soft);
  --color-secondary: var(--navy);
  --color-secondary-dark: var(--navy-deep);
  --color-secondary-light: var(--navy-soft);
  --color-accent: var(--sun);
  --color-accent-light: var(--sun-soft);
  --color-whatsapp: #15803D;       /* WhatsApp green, darkened for white text (AA) */
  --color-whatsapp-dark: #166534;

  --bg-page: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: var(--mist);
  --text-main: var(--navy-deep);
  --text-muted: #566174;
  --text-light: #8A94A6;
  --border-color: var(--line);
  --border-light: #E8ECF2;

  /* Typography */
  --font-heading: 'Jost', 'Futura', 'Century Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(29, 38, 56, 0.06);
  --shadow-md: 0 6px 20px rgba(29, 38, 56, 0.08);
  --shadow-lg: 0 18px 40px rgba(29, 38, 56, 0.14);

  --container-max: 1200px;
  --transition: all 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.text-center {
  text-align: center;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Info Bar */
.top-bar {
  background-color: var(--navy);
  color: #E6EAF1;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar-item a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.top-bar-item svg {
  width: 15px;
  height: 15px;
  color: var(--sun);
}
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-bar-social a {
  color: #C7CEDB;
  display: inline-flex;
  align-items: center;
}
.top-bar-social a:hover {
  color: var(--sun);
}
.top-bar-social svg {
  width: 16px;
  height: 16px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 52px;
  height: 38px;
  flex-shrink: 0;
}
.brand-text .brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.brand-text span:not(.brand-name) {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-link {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 2px;
  position: relative;
}
.nav-link:hover {
  color: var(--red-dark);
}
.nav-link.active {
  color: var(--navy);
}
/* Active marker: the logo's "arm" bar */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-agendar-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--red);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
}
.btn-agendar-header:hover {
  background-color: var(--red-dark);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  visibility: hidden; /* keep off-screen links out of the tab order */
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}
.mobile-drawer.open {
  right: 0;
  visibility: visible;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 38, 56, 0.45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  color: var(--navy);
}
.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.drawer-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.drawer-nav a.active {
  color: var(--red-dark);
}
.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background-color: var(--red);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--red-dark);
}
.btn-secondary {
  background-color: var(--navy);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: var(--navy-deep);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #FFFFFF;
}
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
}
.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
}

/* Small "two figures" mark: a navy and a red dot, used before tags */
.hero-tag::before,
.section-tag::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 13px 0 0 var(--red);
  margin-right: 24px;
  flex-shrink: 0;
}

/* Hero */
.hero-section {
  position: relative;
  padding: 72px 0 56px;
  background: #FFFFFF;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 15ch;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 52ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-badge-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-badge-icon svg {
  width: 20px;
  height: 20px;
}
.hero-badge-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.hero-badge-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero media: photos composed with the logo's shapes */
.hero-media {
  position: relative;
  padding: 0 0 48px 40px;
}
.hero-photo-main {
  position: relative;
  z-index: 1;
  border-radius: 280px 280px var(--radius-lg) var(--radius-lg); /* arched top, like the logo's heads */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-photo-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: 45% center;
}
.hero-photo-small {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  animation: hero-pop 0.7s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-photo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.hero-shape-circle {
  top: -28px;
  right: -28px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--red);
  animation: hero-pop 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-shape-bar {
  right: -16px;
  bottom: 22px;
  width: 58%;
  height: 34px;
  background: var(--navy);
  animation: hero-slide 0.7s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-slide {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

/* Inner page intro (about, classes, contact, events) */
.page-hero {
  position: relative;
  background: var(--mist);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border-light);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero .section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  max-width: 18ch;
}
.page-hero .section-subtitle {
  max-width: 60ch;
}

/* Section Header (left-aligned) */
.section-header {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--navy);
}
.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.text-center .section-tag {
  justify-content: center;
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* About: History Grid */
.about-history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Feature pillars: open columns topped by the logo's bar, no boxes */
.features-section {
  padding: 72px 0 96px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
}
.feature-card {
  padding-top: 26px;
  border-top: 6px solid var(--navy);
  display: flex;
  flex-direction: column;
}
.feature-card:nth-child(even) {
  border-top-color: var(--red);
}
.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-coral {
  background: var(--red-soft);
  color: var(--red-dark);
}
.icon-sage,
.icon-blue {
  background: var(--navy-soft);
  color: var(--navy);
}
.icon-honey {
  background: var(--sun-soft);
  color: #9A6400;
}
.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* Classes & Programs */
.classes-section {
  padding: 96px 0;
  background-color: var(--mist);
}
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.class-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.class-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}
.class-card-img {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.class-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.class-age-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--navy);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}
.class-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.class-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.class-card-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.class-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.class-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
}
.class-card-features li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--red);
  flex-shrink: 0;
}

/* Gallery: bento layout */
.gallery-section {
  padding: 96px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--mist);
}
.gallery-item:nth-child(6n+1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item:nth-child(6n+4),
.gallery-item:nth-child(6n+5),
.gallery-item:nth-child(6n+6) {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(29, 38, 56, 0.75) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 36px 18px 16px;
  color: #FFFFFF;
}
.gallery-caption {
  font-size: 0.95rem;
  font-weight: 700;
}

/* School life moments */
.moments-section {
  padding: 96px 0;
  background: var(--mist);
}
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.moment-img {
  height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.moment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moment-info {
  padding: 18px 2px 0;
}
.moment-tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 4px;
}
.moment-info h4 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.moment-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Instagram highlights */
.insta-feed-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.insta-grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  background: var(--line);
}
.insta-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insta-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 38, 56, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 14px;
  text-align: center;
}
.insta-grid-item:hover .insta-grid-overlay,
.insta-grid-item:focus-visible .insta-grid-overlay {
  opacity: 1;
}
.insta-grid-overlay svg {
  width: 28px;
  height: 28px;
}
.insta-grid-tag {
  font-size: 0.85rem;
  font-weight: 700;
}

.instagram-bridge {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.instagram-bridge-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.instagram-bridge h3 {
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.instagram-bridge p {
  color: var(--text-muted);
  font-size: 0.97rem;
}
.insta-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.insta-icon-box svg {
  width: 28px;
  height: 28px;
}

/* FAQ Accordion */
.faq-section {
  padding: 96px 0;
}
/* Two columns: heading on the left (sticky), questions on the right */
.faq-section > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 64px;
  align-items: start;
}
.faq-section .section-header {
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.active {
  border-left-color: var(--red);
}
.faq-question {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  gap: 16px;
}
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-icon svg {
  width: 22px;
  height: 22px;
}
.faq-item.active .faq-icon {
  background: var(--navy);
  color: #FFFFFF;
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}
.faq-answer-inner {
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Visit banner (pre-footer): navy block with the logo's circle and bar */
.tour-banner {
  margin: 0 auto 96px;
}
.tour-banner-inner {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
}
.tour-banner-inner::before {
  content: '';
  position: absolute;
  pointer-events: none;
}
.tour-banner-inner::before {
  top: -90px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--red);
}
.tour-banner-inner > * {
  position: relative;
  z-index: 1;
}
.tour-banner h2 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}
.tour-banner p {
  color: #D5DBE6;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 56ch;
}
.tour-banner-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tour-banner-ctas .btn-white {
  background: #FFFFFF;
  color: var(--navy);
}
.tour-banner-ctas .btn-white:hover {
  background: var(--sun);
  color: var(--navy-deep);
}
.tour-banner-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Contact page map: part of the contact section, styled like its cards */
.contact-map {
  margin-top: 48px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Section & Form */
.contact-section {
  padding: 96px 0;
  background: var(--mist);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}
.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 22px;
  height: 22px;
}
.contact-item-text h4 {
  font-size: 1.08rem;
  margin-bottom: 2px;
}
.contact-item-text p, .contact-item-text a {
  color: var(--text-muted);
  font-size: 0.97rem;
}
.contact-item-text a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.form-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.form-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #C9D0DB;
  background-color: #FFFFFF;
  color: var(--text-main);
  transition: var(--transition);
}
.form-control::placeholder {
  color: var(--text-light);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(41, 53, 77, 0.18);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
}
.form-alert.success {
  display: block;
  background: #E8F8F0;
  color: #15803D;
  border: 1px solid #BBF7D0;
}
.form-alert.error {
  display: block;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* Footer */
.site-footer {
  background-color: var(--navy-deep);
  color: #C7CEDB;
  padding: 72px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.footer-about p {
  color: #A9B4C8;
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #A9B4C8;
  font-size: 0.94rem;
}
.footer-links a:hover {
  color: #FFFFFF;
}
.footer-contact {
  color: #A9B4C8;
  font-size: 0.94rem;
  margin-bottom: 8px;
}
.footer-contact a {
  color: #E6EAF1;
  text-decoration: underline;
  text-decoration-color: rgba(230, 234, 241, 0.35);
  text-underline-offset: 3px;
}
.footer-contact a:hover {
  color: #FFFFFF;
  text-decoration-color: var(--sun);
}
.footer-map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
}
.footer-map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid #34405A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: #A9B4C8;
}

/* Back to Top Button with Scroll Progress */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--navy-soft);
}
.back-to-top svg.progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.back-to-top svg.progress-circle path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  transition: stroke-dashoffset 10ms linear;
}
.back-to-top svg.arrow-icon {
  width: 20px;
  height: 20px;
  color: var(--navy);
  z-index: 2;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.35);
  font-weight: 700;
  font-size: 0.94rem;
}
.floating-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.floating-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
}

/* Image Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(29, 38, 56, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Spinner (contact form submit) */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Keyboard Focus */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.site-footer :focus-visible,
.top-bar :focus-visible,
.tour-banner :focus-visible,
.lightbox-modal :focus-visible {
  outline-color: var(--sun);
}
.form-control:focus-visible {
  outline: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-media {
    max-width: 620px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tour-banner-inner {
    grid-template-columns: 1fr;
    padding: 48px 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .faq-section > .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq-section .section-header {
    position: static;
  }
  .insta-feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-menu {
    gap: 18px;
  }
}

@media (max-width: 868px) {
  .nav-menu,
  .btn-agendar-header,
  .top-bar-social {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .about-history-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 12px;
  }
  .gallery-item:nth-child(6n+5),
  .gallery-item:nth-child(6n+6) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .top-bar {
    display: none;
  }
  .hero-section {
    padding: 44px 0 64px;
  }
  .features-section,
  .classes-section,
  .gallery-section,
  .moments-section,
  .faq-section,
  .contact-section {
    padding: 64px 0;
  }
  .hero-media {
    padding: 0 0 36px 20px;
  }
  .hero-photo-main img {
    height: 340px;
  }
  .hero-photo-small {
    width: 116px;
    height: 116px;
    border-width: 4px;
  }
  .hero-shape-circle {
    width: 84px;
    height: 84px;
    top: -16px;
    right: -12px;
  }
  .hero-shape-bar {
    right: -20px;
    height: 24px;
    bottom: 14px;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-badges {
    grid-template-columns: 1fr;
  }
  .hero-badge-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .insta-feed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px;
  }
  .contact-map {
    height: 300px;
    margin-top: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tour-banner {
    margin-bottom: 64px;
  }
  .tour-banner-inner::before {
    width: 120px;
    height: 120px;
    top: -50px;
    right: -30px;
  }
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 14px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gallery-item:hover img {
    transform: none;
  }
}
