/* ==========================================================================
   Informática Sevilla — Main Stylesheet
   ==========================================================================
   Structure:
   1. Design Tokens (variables)
   2. Base Reset & Global Styles
   3. Layout Utilities
   4. Navigation (desktop + mobile)
   5. Language Switcher
   6. Hero Section
   7. Buttons
   8. Section Common Styles
   9. Services Grid
   10. Advantages Grid
   11. Contact Section & Form
   12. Footer
   13. Scroll Animations
   14. Accessibility (reduced motion)
   15. Responsive Breakpoints
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ---------------------------------------------------------------
   Centralized color palette, spacing, and visual constants.
   Modify these values to retheme the entire site.
   ========================================================================== */
:root {
  /* Brand colors */
  --color-primary: #2B5F8A;
  --color-primary-light: #3A7CB8;
  --color-accent: #E74D3C;
  --color-accent-hover: #C0392B;

  /* Surface colors */
  --color-bg: #F8FAFB;
  --color-surface: #FFFFFF;
  --color-ink: #1A202C;
  --color-muted: #718096;
  --color-border: #E2E8F0;
  --color-hero-bg: #1A3A54;

  /* WhatsApp brand color (used for CTA buttons) */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5A;

  /* Geometry */
  --radius-card: 12px;
  --radius-btn: 8px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1140px;
  --section-py: 100px;
}


/* ==========================================================================
   2. BASE RESET & GLOBAL STYLES
   ---------------------------------------------------------------
   Minimal reset + smooth scroll + anti-aliased fonts.
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}


/* ==========================================================================
   4. NAVIGATION
   ---------------------------------------------------------------
   Fixed top bar with backdrop blur.
   Contains: logo, desktop links, lang switcher, phone, burger (mobile).
   ========================================================================== */

/* --- Main nav bar --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #fff;
  transition: box-shadow 0.3s ease;
}

/* Shadow appears after scroll (toggled via JS) */
.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* Inner container aligns items horizontally */
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo with icon */
.nav-logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

/* Desktop links (hidden on mobile) */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-primary);
}

/* SVG icons in desktop nav links */
.nav-links a svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Phone number link (desktop only) */
.nav-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-phone svg {
  width: 18px;
  height: 18px;
}

/* Burger button (mobile only, toggled via media query) */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-burger svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-ink);
}


/* ==========================================================================
   5. LANGUAGE SWITCHER
   ---------------------------------------------------------------
   Reusable component used in nav, mobile menu, and footer.
   Active language gets a colored border indicator.
   ========================================================================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  transform: scale(1.15);
}

.lang-btn.active {
  border-color: var(--color-primary);
}

.lang-btn svg {
  width: 24px;
  height: 16px;
  display: block;
  border-radius: 2px;
}


/* ==========================================================================
   6. MOBILE MENU OVERLAY
   ---------------------------------------------------------------
   Fullscreen overlay + sliding panel from the right.
   Opened via JS by adding class "open".
   ========================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(26, 32, 44, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in panel */
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--color-surface);
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--color-primary);
}

/* SVG icons in mobile menu */
.mobile-menu a svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Language switcher inside mobile menu */
.mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-lang-switch .lang-btn svg {
  width: 32px;
  height: 21px;
}


/* ==========================================================================
   6. THEME TOGGLE (Dark / Light)
   ---------------------------------------------------------------
   Sun/Moon icon button. The .dark class on <body> switches to dark theme.
   ========================================================================== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--color-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Show moon icon by default (light mode), hide sun */
.theme-icon-moon {
  display: none;
}
.theme-icon-sun {
  display: block;
}

/* In dark mode, show sun icon (to switch back to light), hide moon */
body.dark .theme-icon-moon {
  display: block;
}
body.dark .theme-icon-sun {
  display: none;
}

/* Mobile header theme toggle */
.mobile-header-theme-toggle {
  display: none;
}

/* Mobile menu theme toggle — inline style inside the panel */
.mobile-theme-toggle {
  display: flex;
  width: 100%;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  margin-top: 16px;
  gap: 8px;
}

.mobile-theme-toggle:hover {
  border-color: var(--color-primary);
}


/* ==========================================================================
   6b. DARK THEME
   ---------------------------------------------------------------
   Color overrides applied when <body> has class "dark".
   ========================================================================== */
body.dark {
  --color-bg: #121212;
  --color-surface: #1E1E1E;
  --color-ink: #E8E8E8;
  --color-muted: #A0A0A0;
  --color-border: #2E2E2E;
  --color-hero-bg: #0D1B26;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Nav in dark mode */
body.dark .nav {
  background: rgba(30, 30, 30, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark .nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

body.dark .nav-logo {
  color: #fff;
}

body.dark .nav-logo img {
  filter: brightness(0) invert(1);
}

body.dark .nav-phone {
  color: #fff;
}

body.dark .nav-links a:hover {
  color: #fff;
}

body.dark .nav-burger svg {
  stroke: var(--color-ink);
}

/* Mobile menu in dark mode */
body.dark .mobile-menu {
  background: rgba(0, 0, 0, 0.6);
}

body.dark .mobile-menu a {
  color: var(--color-ink);
  border-bottom-color: var(--color-border);
}

body.dark .mobile-menu a:hover {
  color: #fff;
}

/* Hero in dark mode */
body.dark .hero {
  background: var(--color-bg);
}

body.dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-ink);
}

body.dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

body.dark .hero-badge {
  background: rgba(43, 95, 138, 0.2);
  border-color: rgba(43, 95, 138, 0.3);
}

/* Services & Advantages in dark mode */
body.dark .services {
  background: var(--color-surface);
}

body.dark .service-card {
  background: var(--color-bg);
  border-color: var(--color-border);
}

body.dark .service-icon {
  background: rgba(43, 95, 138, 0.15);
}

body.dark .advantages {
  background: var(--color-bg);
}

/* Contact in dark mode */
body.dark .contact {
  background: var(--color-surface);
}

body.dark .contact::after {
  background: rgba(0, 0, 0, 0.45);
}

body.dark .contact-item-icon {
  background: rgba(43, 95, 138, 0.15);
}

body.dark .contact-form {
  background: var(--color-bg);
  border-color: var(--color-border);
}

body.dark .form-group input,
body.dark .form-group textarea,
body.dark .form-group select {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-border);
}

body.dark .form-group input:focus,
body.dark .form-group textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(58, 124, 184, 0.2);
}

/* Theme toggle in dark mode */
body.dark .theme-toggle {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink);
}

/* Footer in dark mode */
body.dark .footer {
  background: var(--color-hero-bg);
}


/* ==========================================================================
   7. HERO SECTION
   ---------------------------------------------------------------
   Full-viewport intro with background image (right side, desktop).
   Contains: badge, headline, subtitle, CTA buttons.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fff;
  color: var(--color-ink);
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-lottie {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-lottie svg {
  width: 100% !important;
  height: 100% !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  padding-right: 2rem;
}

/* Status badge ("Accepting requests now") */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 95, 138, 0.08);
  border: 1px solid rgba(43, 95, 138, 0.15);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
  color: var(--color-primary);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Headline with accent word */
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--color-accent);
}

/* Subtitle / description */
.hero-sub {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* CTA button row */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ==========================================================================
   8. BUTTONS
   ---------------------------------------------------------------
   Two variants: primary (green WhatsApp) and outline.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 32px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* WhatsApp-style primary CTA */
.btn-primary {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-primary:hover {
  background: var(--color-whatsapp-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Secondary outline button (Call) */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid rgba(43, 95, 138, 0.3);
}

.btn-outline:hover {
  background: rgba(43, 95, 138, 0.08);
  border-color: rgba(43, 95, 138, 0.5);
}

.btn-outline svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}


/* ==========================================================================
   9. SECTION COMMON STYLES
   ---------------------------------------------------------------
   Shared header pattern: label + title + optional description.
   ========================================================================== */
.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Small colored eyebrow text */
.section-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}

.section-desc {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 540px;
  margin: 16px auto 0;
  line-height: 1.6;
}

/* Contact section description: darker for readability over bg image */
.contact .section-desc {
  color: #2D3748;
}

body.dark .contact .section-desc {
  color: rgba(255, 255, 255, 0.92);
}


/* ==========================================================================
   10. SERVICES GRID
   ---------------------------------------------------------------
   3-column card grid. Cards lift up on hover.
   ========================================================================== */
.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Icon inside colored circle */
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(43, 95, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-ink);
}

.service-card p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}


/* ==========================================================================
   11. ADVANTAGES GRID
   ---------------------------------------------------------------
   3-column numbered cards. Numbers are in large circles.
   ========================================================================== */
.advantages {
  background: var(--color-bg);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.adv-card {
  text-align: center;
  padding: 40px 28px;
}

.adv-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.adv-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-ink);
}

.adv-card p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}


/* ==========================================================================
   12. CONTACT SECTION & FORM
   ---------------------------------------------------------------
   Two-column layout: info (left) + form (right).
   ========================================================================== */
.contact {
  background: var(--color-surface);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-background.svg') center / contain no-repeat;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* Overlay to ensure text readability over the background image */
.contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  z-index: 0;
  pointer-events: none;
}

/* Dark theme overlay */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* --- Contact info column --- */
.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-ink);
}

/* Single info item (icon + text) */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(43, 95, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-label {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink);
}

.contact-item-value a {
  transition: color 0.2s ease;
}

.contact-item-value a:hover {
  color: var(--color-primary);
}

/* WhatsApp CTA inside contact info */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Netlify Contact Form --- */
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px;
}

.contact-form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-ink);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 95, 138, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}


/* ==========================================================================
   13. FOOTER
   ---------------------------------------------------------------
   Dark bar with language switcher, phone, and WhatsApp link.
   ========================================================================== */
.footer {
  background: var(--color-hero-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer .lang-btn svg {
  width: 24px;
  height: 16px;
}

.footer .lang-btn.active {
  border-color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   14. SCROLL ANIMATIONS (IntersectionObserver)
   ---------------------------------------------------------------
   Elements with .reveal start hidden and fade-in when entering viewport.
   The "visible" class is added via JS (see ui.js).
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   15. ACCESSIBILITY — Reduced Motion
   ---------------------------------------------------------------
   Disable animations for users who prefer reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-badge-dot {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet: 2-column grids */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: single column, stacked layout */
@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  /* Hide desktop-only elements */
  .nav-links,
  .nav-phone,
  .nav-lang,
  .theme-toggle {
    display: none;
  }

  /* Show burger + mobile theme toggle + mobile menu */
  .nav-burger,
  .mobile-header-theme-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Hero: stack lottie + content vertically on mobile */
  .hero {
    text-align: center;
    padding: 120px 24px 60px;
    background-position: calc(50% - 20px) 50px;
    background-size: 110% auto;
    background-repeat: no-repeat;
    flex-direction: column;
    justify-content: flex-start;
  }

/* Lottie: stack above content on mobile */
  .hero-lottie {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 300px;
    margin-bottom: 24px;
    z-index: 0;
  }

  .hero-content {
    padding-right: 0;
    padding-top: 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  /* Stack CTA buttons */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Single-column grids */
  .services-grid,
  .advantages-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Contact background: fill entire section on mobile */
  .contact::before {
    background-size: cover;
    background-position: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
