/* ============================================
   TARDETTI VINHOS — Stylesheet
   Paleta: 60% branco | 30% borgonha | 10% dourado
   ============================================ */

:root {
  --primary:       #8B1A1A;
  --primary-dark:  #5C0E0E;
  --primary-light: #A52020;
  --accent:        #C4A052;
  --accent-dark:   #A0822E;
  --white:         #FFFFFF;
  --off-white:     #FAF6F1;
  --cream:         #F3EBE0;
  --text-dark:     #2C1810;
  --text-mid:      #5C3D2E;
  --text-light:    #7A6A60;
  --border:        #E5D9CE;
  --header-h:      76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ HEADER ============ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

#header.scrolled {
  box-shadow: 0 4px 32px rgba(139,26,26,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link img { height: 54px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul li a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav ul li a:hover         { color: var(--primary); }
nav ul li a:hover::after  { width: 100%; }
nav ul li a.active        { color: var(--primary); }
nav ul li a.active::after { width: 100%; }

/* hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(150deg, rgba(92,14,14,0.83) 0%, rgba(139,26,26,0.78) 45%, rgba(122,16,16,0.82) 70%, rgba(61,8,8,0.92) 100%),
    url('https://images.unsplash.com/photo-1452443191217-08a4f1f238e6?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg-deco {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(196,160,82,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(255,255,255,0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(0,0,0,0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* decorative ring */
.hero-bg-deco::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(196,160,82,0.15);
  box-shadow: inset 0 0 0 40px rgba(196,160,82,0.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 28px 120px;
  width: 100%;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.hero-divider {
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: 24px auto;
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--white);
  clip-path: ellipse(56% 100% at 50% 100%);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(139,26,26,0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196,160,82,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover, .btn-outline:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover, .btn-outline-light:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-lg {
  padding: 15px 38px;
  font-size: 0.88rem;
}

/* ============ SECTIONS ============ */
.section       { padding: 96px 0; }
.section-dark  { background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); }
.section-cream { background: var(--cream); }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-eyebrow.light { color: rgba(196,160,82,0.9); }

/* section h2 default (light bg) */
.section > .container > h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 56px;
  position: relative;
  padding-bottom: 18px;
}
.section > .container > h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 52px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* section h2 dark bg */
.section-dark > .container > h2 { color: var(--white); }
.section-dark > .container > h2::after { background: var(--accent); }

/* section-highlight h2 */
.section-highlight > .container > h2 { color: var(--white); }
.section-highlight > .container > h2::after { background: var(--accent); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.85;
}
.about-text strong { color: var(--primary); }
.about-text .btn { margin-top: 8px; }

.about-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(139,26,26,0.14);
}
.about-circle::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(196,160,82,0.25);
}
.about-circle-inner { display: flex; align-items: center; justify-content: center; }
.about-logo-img { width: 210px; height: auto; }

.about-badge {
  position: absolute;
  bottom: 12px;
  right: -8px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(139,26,26,0.3);
  border: 2px solid var(--accent);
}
.badge-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.badge-text {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  line-height: 1.4;
}

/* ============ MISSION / VISION ============ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mv-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(196,160,82,0.28);
  border-radius: 8px;
  padding: 44px 40px;
  transition: background 0.25s;
}
.mv-card:hover { background: rgba(255,255,255,0.11); }

.mv-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.mv-card h3 {
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.mv-card p {
  color: rgba(255,255,255,0.84);
  line-height: 1.8;
  font-size: 0.98rem;
}

/* ============ VALUES ============ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 32px 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(139,26,26,0.1);
}

.value-icon {
  color: var(--primary);
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============ HIGHLIGHT ============ */
.section-highlight {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.highlight-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.highlight-text {
  flex: 1;
}
.highlight-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 18px;
  position: relative;
}
.highlight-text h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 52px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.highlight-text p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.8;
  max-width: 480px;
}

.highlight-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

.stat-sep {
  width: 1px;
  height: 60px;
  background: rgba(196,160,82,0.3);
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.contact-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(196,160,82,0.22);
  border-radius: 8px;
  padding: 32px 22px;
  text-align: center;
  transition: background 0.25s;
}
.contact-card:hover { background: rgba(255,255,255,0.11); }

.contact-icon {
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.contact-card h3 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.65;
}
.contact-card a:hover { color: var(--accent); text-decoration: underline; }

.contact-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--text-dark);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 52px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand img {
  height: 60px;
  width: auto;
  opacity: 0.95;
}

.footer-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(196,160,82,0.3);
  color: rgba(196,160,82,0.75);
  transition: all 0.2s;
}

.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196,160,82,0.08);
}

.footer-col-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(196,160,82,0.6);
}

.footer-contact-list a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-contact-list a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}

.footer-bottom-right {
  text-align: right;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
}

/* ============ FOCUS / KEYBOARD ============ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ SECTION BACKGROUNDS ============ */

/* Sobre — adega com barris de carvalho */
#sobre {
  background:
    linear-gradient(rgba(248,244,241,0.88), rgba(248,244,241,0.88)),
    url('https://images.unsplash.com/photo-1694781558887-d84d9ba7603f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Missão & Visão — degustação em grupo */
#missao {
  background:
    linear-gradient(145deg, rgba(92,14,14,0.87) 0%, rgba(139,26,26,0.87) 100%),
    url('https://images.unsplash.com/photo-1516600164266-f3b8166ae679?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Valores — uvas e vinho sendo servido */
#valores {
  background:
    linear-gradient(rgba(243,235,224,0.88), rgba(243,235,224,0.88)),
    url('https://images.unsplash.com/photo-1703509564275-13e6b7422b65?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Destaques — coleção elegante de garrafas */
.section-highlight {
  background:
    linear-gradient(135deg, rgba(92,14,14,0.87) 0%, rgba(139,26,26,0.87) 100%),
    url('https://images.unsplash.com/photo-1500669950830-1a4f3a4b0879?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Contato — vinhas ao entardecer */
#contato {
  background:
    linear-gradient(145deg, rgba(92,14,14,0.87) 0%, rgba(139,26,26,0.87) 100%),
    url('https://images.unsplash.com/photo-1567072629554-20e689de2400?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* ================================================
   EFEITOS MODERNOS
   ================================================ */

/* Scrollbar personalizada */
::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Barra de progresso de scroll */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--primary));
  z-index: 2001;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── Hero: animação de entrada escalonada ── */
@keyframes tv-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tv-lineGrow {
  from { width: 0; }
  to   { width: 64px; }
}
@keyframes tv-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-label      { animation: tv-fadeIn  0.7s ease 0.1s  both; }
.hero-content h1 { animation: tv-fadeUp  0.9s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
.hero-divider    { width: 0; animation: tv-lineGrow 0.7s ease 0.55s both; }
.hero-content h2 { animation: tv-fadeUp  0.8s ease 0.68s both; }
.hero-actions    { animation: tv-fadeUp  0.7s ease 0.88s both; }

/* ── Sistema de Reveal ao rolar ── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1),
              transform 0.85s cubic-bezier(0.22,1,0.36,1);
}
.reveal.from-left  { transform: translateX(-38px); }
.reveal.from-right { transform: translateX(38px); }
.reveal.scale-in   { transform: scale(0.92); }
.reveal.visible    { opacity: 1 !important; transform: none !important; }

/* ── Heading: sublinhado que cresce ao entrar na tela ── */
.section > .container > h2::after,
.highlight-text h2::after {
  width: 0;
  transition: width 0.75s cubic-bezier(0.22,1,0.36,1) 0.3s;
}
.section > .container > h2.heading-visible::after,
.highlight-text h2.heading-visible::after {
  width: 52px;
}

/* ── Shimmer nos botões accent ── */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::before {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  animation: tv-shimmer 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tv-shimmer {
  0%      { left: -90%; }
  45%, 100% { left: 130%; }
}

/* ── Stats: gradiente dourado animado ── */
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, #F0D27A 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tv-goldFlow 4s ease infinite;
}
@keyframes tv-goldFlow {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── Value cards: glow dourado na borda ao hover ── */
.value-card { position: relative; }
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.35s ease;
  pointer-events: none;
}
.value-card:hover::after { border-color: var(--accent); }

/* ── MV cards: linha dourada desliza na base ── */
.mv-card { position: relative; overflow: hidden; }
.mv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: width 0.55s ease;
  pointer-events: none;
}
.mv-card:hover::after { width: 100%; }

/* ── Contact cards: elevação ao hover ── */
.contact-card {
  transition: background 0.25s, transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}

/* ── Highlight-text heading underline ── */
.highlight-text h2 {
  position: relative;
  padding-bottom: 18px;
}
.highlight-text h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.75s cubic-bezier(0.22,1,0.36,1) 0.3s;
}
.highlight-text h2.heading-visible::after { width: 52px; }

/* ── Parallax: imagens fixas nas seções (desktop) ── */
@media (min-width: 769px) {
  #sobre             { background-attachment: scroll, fixed; }
  #missao            { background-attachment: scroll, fixed; }
  #valores           { background-attachment: scroll, fixed; }
  .section-highlight { background-attachment: scroll, fixed; }
  #contato           { background-attachment: scroll, fixed; }
}

/* ============================================
   RESPONSIVE — Todos os tamanhos de tela
   ============================================ */

/* ── 1200px: Tablet grande / desktop pequeno ── */
@media (max-width: 1200px) {
  .about-grid      { gap: 52px; }
  .highlight-inner { gap: 48px; }
}

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
  .values-grid     { grid-template-columns: repeat(2, 1fr); }
  .contact-grid    { grid-template-columns: repeat(2, 1fr); }
  .highlight-stats { gap: 24px; }
  .about-grid      { gap: 44px; }
}

/* ── 900px: Tablet retrato ── */
@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .about-visual     { order: -1; }
  .about-circle     { width: 240px; height: 240px; }
  .about-logo-img   { width: 150px; }
  .about-badge      { right: 4px; bottom: -4px; padding: 10px 16px; }
  .badge-number     { font-size: 1.5rem; }

  .mv-grid          { grid-template-columns: 1fr; gap: 20px; }
  .mv-card          { padding: 32px 28px; }

  .highlight-inner  { flex-direction: column; gap: 36px; }
  .highlight-stats  { width: 100%; justify-content: center; }
  .highlight-text p { max-width: 100%; }

  .section > .container > h2 { margin-bottom: 40px; }
  .section-highlight { padding: 72px 0; }
}

/* ── 768px: Mobile grande / landscape ── */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .logo-link img { height: 46px; }
  .menu-toggle   { display: flex; }

  /* Nav: overlay full-screen no mobile */
  nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 16px 28px 40px;
    overflow-y: auto;
    z-index: 998;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  nav.open { display: block; }
  nav ul   { flex-direction: column; gap: 0; }
  nav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
  }
  nav ul li:last-child a { border-bottom: none; }

  .section           { padding: 72px 0; }
  .section-highlight { padding: 72px 0; }
  .values-grid       { grid-template-columns: 1fr; }

  /* Touch targets maiores */
  .btn { min-height: 48px; }

  /* Contact CTA */
  .contact-cta         { flex-direction: column; align-items: center; }
  .contact-cta .btn    { width: 100%; max-width: 320px; justify-content: center; }
}

/* ── 640px: Mobile ── */
@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .section           { padding: 60px 0; }
  .section-highlight { padding: 60px 0; }

  /* Hero */
  .hero-content      { padding: 48px 20px 90px; }
  .hero-content h2   { font-size: 1rem; }
  .hero-actions      { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  /* About */
  .about-circle      { width: 210px; height: 210px; }
  .about-logo-img    { width: 130px; }
  .about-badge       { right: 2px; bottom: -6px; padding: 9px 14px; }
  .badge-number      { font-size: 1.4rem; }
  .badge-text        { font-size: 0.64rem; }

  /* Contact */
  .contact-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-card  { padding: 22px 14px; }

  /* Values */
  .value-card { padding: 24px 20px; }

  /* Highlight stats: remove separador, quebra em wrap */
  .highlight-stats { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .stat-sep        { display: none; }
  .stat-num        { font-size: 2.2rem; }

  /* Footer */
  .footer-main          { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 0 36px; }
  .footer-brand         { grid-column: 1 / -1; }
  .footer-tagline       { max-width: 100%; }
  .footer-bottom-inner  { flex-direction: column; align-items: center; text-align: center; }
}

/* ── 480px: Mobile pequeno ── */
@media (max-width: 480px) {
  :root { --header-h: 60px; }

  .container { padding: 0 16px; }
  .section   { padding: 52px 0; }
  .section-highlight { padding: 52px 0; }

  .logo-link img { height: 40px; }

  /* Hero */
  .hero-content     { padding: 40px 16px 80px; }
  .hero-content h1  { font-size: clamp(2.4rem, 11vw, 3rem); }

  /* Seção headings */
  .section > .container > h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    padding-bottom: 14px;
  }

  /* Contact: 1 coluna */
  .contact-grid  { grid-template-columns: 1fr; }
  .contact-cta .btn { max-width: 100%; }

  /* Stats */
  .stat-num  { font-size: 2rem; }
  .stat-item { min-width: 90px; }

  /* MV cards */
  .mv-card    { padding: 26px 20px; }
  .mv-card h3 { font-size: 1.2rem; }

  /* About badge: esconde para não sobrepor */
  .about-badge { display: none; }

  /* Section about: centraliza visual */
  .about-text .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── 360px: Telas muito pequenas (SE, Android antigo) ── */
@media (max-width: 360px) {
  .container { padding: 0 14px; }

  .logo-link img { height: 36px; }

  .hero-content h1  { font-size: 2.2rem; }
  .hero-content h2  { font-size: 0.92rem; }
  .hero-actions .btn { max-width: 100%; }

  .btn    { padding: 12px 18px; font-size: 0.76rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.8rem; }

  .about-circle   { width: 180px; height: 180px; }
  .about-logo-img { width: 110px; }

  .section > .container > h2 { font-size: 1.55rem; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
  .footer-brand { grid-column: auto; }
}

/* ── iOS Safari: background-attachment fixed não funciona ── */
@supports (-webkit-touch-callout: none) {
  #sobre, #missao, #valores, .section-highlight, #contato {
    background-attachment: scroll, scroll;
  }
}
