/* ============================================================
   FUSCA AZUL — styles.css
   Mobile-first, CSS custom properties, smooth animations
   ============================================================ */

/* ---- 0. RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Blue Palette */
  --blue-darkest:  #0a1628;
  --blue-dark:     #0d2b6b;
  --blue-deep:     #0d47a1;
  --blue-mid:      #1565c0;
  --blue-main:     #1976d2;
  --blue-bright:   #2196f3;
  --blue-light:    #42a5f5;
  --blue-lighter:  #90caf9;
  --blue-pale:     #bbdefb;
  --blue-ice:      #e3f2fd;

  /* Accent */
  --gold:          #ffeb3b;
  --gold-light:    #fff9c4;
  --red-accent:    #ff5252;

  /* Neutrals */
  --white:         #ffffff;
  --gray-100:      #f5f7fa;
  --gray-200:      #e9ecf0;
  --gray-400:      #9ea8b8;
  --gray-600:      #5a6470;
  --gray-800:      #2d3340;
  --black:         #0d0e12;

  /* Typography */
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Transitions */
  --trans-fast:   0.15s ease;
  --trans-normal: 0.3s ease;
  --trans-slow:   0.6s ease;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(13,71,161,0.12);
  --shadow-md:  0 8px 32px rgba(13,71,161,0.18);
  --shadow-lg:  0 20px 60px rgba(13,71,161,0.25);
  --shadow-glow:0 0 30px rgba(33,150,243,0.35);

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--blue-darkest); }
::-webkit-scrollbar-thumb {
  background: var(--blue-mid);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-light); }


/* ============================================================
   1. UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-block;
  background: var(--blue-ice);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto;
}


/* ============================================================
   2. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(255, 235, 59, 0.4);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 30px rgba(255, 235, 59, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

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


/* ============================================================
   3. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--trans-normal), box-shadow var(--trans-normal), padding var(--trans-normal);
}

.navbar.scrolled {
  background: rgba(13, 27, 62, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  transition: opacity var(--trans-fast);
}

.nav-logo:hover { opacity: 0.85; }

.logo-icon { font-size: 1.5rem; }
.logo-text { letter-spacing: 0.02em; }

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(13,27,62,0.98);
  padding: 1rem var(--space-md) 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-menu.open { display: flex; }

.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--blue-bright);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-full) !important;
  text-align: center;
  margin-top: 0.25rem;
}

.nav-cta:hover { background: var(--blue-light) !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 0.25rem;
    border: none;
  }

  .nav-cta { margin-top: 0; }
}


/* ============================================================
   4. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem var(--space-md) 4rem;
  text-align: center;
}

/* Gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--blue-darkest) 0%,
    var(--blue-dark) 30%,
    var(--blue-deep) 60%,
    var(--blue-mid) 100%
  );
  z-index: 0;
}

/* Floating bubbles */
.hero-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: radial-gradient(circle at 30% 30%, var(--blue-lighter), var(--blue-deep));
  animation: floatBubble var(--dur, 12s) ease-in-out infinite alternate;
}

.bubble-1 { width: 400px; height: 400px; top: -100px; left: -100px; --dur: 14s; }
.bubble-2 { width: 300px; height: 300px; top: 20%; right: -80px; --dur: 10s; animation-delay: -3s; }
.bubble-3 { width: 500px; height: 500px; bottom: -200px; left: 30%; --dur: 18s; animation-delay: -6s; }
.bubble-4 { width: 200px; height: 200px; top: 60%; left: 10%; --dur: 9s; animation-delay: -1s; }
.bubble-5 { width: 250px; height: 250px; bottom: 10%; right: 15%; --dur: 13s; animation-delay: -4s; }

@keyframes floatBubble {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.1); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--blue-pale);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4em 1.2em;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero-title-line {
  color: var(--white);
  display: block;
}

.hero-title-highlight {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(255,235,59,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero car SVG */
.hero-car {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  margin-top: 3rem;
  animation: fadeSlideUp 1s ease 0.3s both, carFloat 4s ease-in-out 1.3s infinite;
}

.fusca-svg {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(33,150,243,0.4));
}

@keyframes carFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 3px solid rgba(255,255,255,0.6);
  border-bottom: 3px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

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


/* ============================================================
   5. SOBRE (ABOUT)
   ============================================================ */
.sobre {
  background: var(--white);
}

.sobre-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .sobre-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.sobre-text p {
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.sobre-text strong {
  color: var(--blue-deep);
  font-weight: 700;
}

/* Stats */
.sobre-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat {
  flex: 1;
  min-width: 130px;
  background: var(--blue-ice);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border-left: 4px solid var(--blue-mid);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-deep);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue-deep);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Cards grid */
.sobre-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.sobre-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
}

.sobre-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}

.sobre-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.sobre-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.4rem;
}

.sobre-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}


/* ============================================================
   6. HISTORY / TIMELINE
   ============================================================ */
.historia {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-light), var(--blue-pale), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-right {
  margin-left: auto;
  transform: translateX(20px);
}

.timeline-right.visible {
  transform: translateX(0);
}

/* Dot */
.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--blue-mid);
  border: 3px solid var(--white);
  border-radius: 50%;
  right: -8.5%;
  top: 6px;
  box-shadow: 0 0 0 3px var(--blue-light);
  z-index: 1;
}

.timeline-right .timeline-dot {
  left: -8.5%;
  right: auto;
}

.timeline-dot-today {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,235,59,0.5);
  animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,235,59,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(255,235,59,0.15); }
}

/* Content box */
.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--trans-fast), transform var(--trans-fast);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2em 0.8em;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Mobile: single column */
@media (max-width: 639px) {
  .timeline::before { left: 14px; }

  .timeline-item,
  .timeline-right {
    width: 100%;
    margin-left: 0;
    padding-left: 40px;
    transform: translateX(0);
  }

  .timeline-dot,
  .timeline-right .timeline-dot {
    left: 6px;
    right: auto;
    top: 8px;
  }
}


/* ============================================================
   7. GALLERY
   ============================================================ */
.galeria {
  background: var(--blue-darkest);
}

.galeria .section-tag {
  background: rgba(255,255,255,0.1);
  color: var(--blue-pale);
}

.galeria .section-title { color: var(--white); }
.galeria .section-desc  { color: var(--blue-pale); }

/* Filter buttons */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  background: rgba(255,255,255,0.06);
  color: var(--blue-pale);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
}

.filter-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.filter-btn.active {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-card-large {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-card-large {
    grid-column: span 1;
    grid-row: span 2;
  }
}

/* Cards */
.gallery-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(33,150,243,0.4);
}

.gallery-card.hidden {
  display: none;
}

.gallery-art {
  width: 100%;
  overflow: hidden;
  background: var(--blue-dark);
}

.gallery-art svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--trans-slow);
}

.gallery-card:hover .gallery-art svg {
  transform: scale(1.04);
}

.gallery-card-large .gallery-art {
  height: 100%;
  min-height: 280px;
}

.gallery-card-large .gallery-art svg {
  height: 100%;
  object-fit: cover;
}

.gallery-info {
  padding: var(--space-sm) var(--space-md);
}

.gallery-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--blue-lighter);
}


/* ============================================================
   8. QUOTE SECTION
   ============================================================ */
.quote-section {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: var(--space-2xl) 0;
  text-align: center;
}

.quote {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.quote-marks {
  display: block;
  font-size: 8rem;
  line-height: 0.5;
  color: rgba(255,255,255,0.15);
  font-family: Georgia, serif;
  margin-bottom: 1rem;
}

.quote p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.quote cite {
  font-size: 0.9rem;
  color: var(--blue-pale);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
}


/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  background: var(--blue-darkest);
  padding-bottom: var(--space-lg);
  position: relative;
}

.footer-waves {
  line-height: 0;
  margin-top: -1px;
}

.footer-waves svg {
  width: 100%;
  height: 80px;
}

.footer-content {
  padding-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; gap: var(--space-lg); }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon { font-size: 1.8rem; }

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 250px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-lighter);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: lowercase;
  transition: background var(--trans-fast), color var(--trans-fast), transform var(--trans-fast);
}

.social-btn:hover {
  background: var(--blue-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--trans-fast), padding-left var(--trans-fast);
}

.footer-links a:hover {
  color: var(--blue-lighter);
  padding-left: 4px;
}

.footer-newsletter h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-newsletter > p {
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 160px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  color: var(--white);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--trans-fast);
}

.newsletter-input::placeholder { color: var(--gray-400); }

.newsletter-input:focus {
  border-color: var(--blue-light);
  background: rgba(255,255,255,0.1);
}

.newsletter-btn {
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans-fast), transform var(--trans-fast);
}

.newsletter-btn:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
}

.newsletter-thanks {
  display: none;
  font-size: 0.88rem;
  color: var(--blue-lighter);
  margin-top: 0.75rem;
}

.newsletter-thanks.visible { display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer-credit {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.25) !important;
}


/* ============================================================
   10. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--trans-normal), transform var(--trans-normal), background var(--trans-fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
}


/* ============================================================
   11. SECTION REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay: 0.55s; }


/* ============================================================
   12. SELECTION & FOCUS STYLES
   ============================================================ */
::selection {
  background: var(--blue-light);
  color: var(--white);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}
