/* ==========================================================================
   parabrisas.pt — Style System
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; overflow-wrap: break-word; }

/* ---------- Custom Properties (Light) ---------- */
:root {
  /* Brand */
  --deep: #0A2540;
  --blue: #0066CC;
  --blue-light: #3399FF;
  --silver: #E8EEF4;
  --amber: #F5A623;
  --amber-hover: #E09500;

  /* Surfaces */
  --bg: #F7F9FC;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F0F4F8;

  /* Text */
  --text: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-on-deep: #FFFFFF;
  --text-on-blue: #FFFFFF;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: rgba(10, 37, 64, 0.08);

  /* Misc */
  --border: #E2E8F0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 12px 48px rgba(10, 37, 64, 0.10);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-py: clamp(3rem, 8vw, 6rem);
  --container: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* Header */
  --header-h: 72px;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Dark Mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1121;
    --bg-alt: #111827;
    --surface: #1A2332;
    --surface-alt: #1E293B;
    --text: #E2E8F0;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    --border: #2D3748;
    --glass-bg: rgba(26, 35, 50, 0.70);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { max-width: 70ch; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { margin-inline: auto; color: var(--text-secondary); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--section-py); }
.section--alt { background: var(--surface-alt); }
.section--deep {
  background: linear-gradient(135deg, var(--deep) 0%, #0D3158 100%);
  color: var(--text-on-deep);
}
.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4 { color: var(--text-on-deep); }
.section--deep p { color: rgba(255,255,255,0.8); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- Glassmorphism Card ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.card__title { margin-bottom: 0.5rem; }
.card__text { color: var(--text-secondary); font-size: 0.95rem; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap var(--transition);
}
.card__link:hover { gap: 0.6rem; }
.card__link::after { content: '\2192'; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--amber);
  color: var(--deep);
}
.btn--primary:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}
.btn--secondary {
  background: var(--blue);
  color: var(--text-on-blue);
}
.btn--secondary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--text-on-blue);
}
.btn--white {
  background: #fff;
  color: var(--deep);
}
.btn--white:hover {
  background: var(--silver);
  transform: translateY(-2px);
}
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.125rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.header--scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

/* Header on dark backgrounds (hero, page-header): white text before scroll */
.header--on-dark .header__logo { color: #fff; }
.header--on-dark .nav__link { color: rgba(255,255,255,0.75); }
.header--on-dark .nav__link:hover,
.header--on-dark .nav__link--active { color: #fff; background: rgba(255,255,255,0.1); }
.header--on-dark .hamburger span { background: #fff; }
.header--on-dark .lang-switch { background: rgba(255,255,255,0.1); }
.header--on-dark .lang-switch__link { color: rgba(255,255,255,0.6); }
.header--on-dark .lang-switch__link--active { background: var(--blue); color: #fff; }
/* When scrolled, revert to normal */
.header--on-dark.header--scrolled .header__logo { color: var(--text); }
.header--on-dark.header--scrolled .nav__link { color: var(--text-secondary); }
.header--on-dark.header--scrolled .nav__link:hover,
.header--on-dark.header--scrolled .nav__link--active { color: var(--blue); background: rgba(0,102,204,0.08); }
.header--on-dark.header--scrolled .hamburger span { background: var(--text); }
.header--on-dark.header--scrolled .lang-switch { background: var(--surface-alt); }
.header--on-dark.header--scrolled .lang-switch__link { color: var(--text-muted); }
.header__logo img {
  width: 32px;
  height: 32px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: var(--blue);
  background: rgba(0, 102, 204, 0.08);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.75rem;
  padding: 0.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.lang-switch__link {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.lang-switch__link--active {
  background: var(--blue);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep) 0%, #0D3158 50%, var(--blue) 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}
.hero__content p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__glass-card {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 420px;
}

/* ---------- Stats Bar ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  margin-bottom: 2rem;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stats__item {
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
}
.stats__number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stats__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.5rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 min(85vw, 320px);
  scroll-snap-align: start;
}
.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.2rem;
}
.carousel__btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Provider Card ---------- */
.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.provider-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.provider-card__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--blue);
}
.provider-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
}
.provider-card__group {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.provider-card__stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}
.provider-card__stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

/* ---------- Comparison Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  background: var(--surface-alt);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-alt); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-inline: auto; margin-bottom: 2rem; }

/* ---------- FAQ Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}
.accordion__trigger:hover { background: var(--surface-alt); }
.accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  font-size: 1.2rem;
  color: var(--blue);
}
.accordion__item.active .accordion__icon { transform: rotate(180deg); }
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion__content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__group { display: flex; flex-direction: column; gap: 0.35rem; }
.form__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.form__input,
.form__select,
.form__textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__error {
  font-size: 0.8rem;
  color: #E53E3E;
  display: none;
}
.form__group--error .form__input,
.form__group--error .form__textarea,
.form__group--error .form__select { border-color: #E53E3E; }
.form__group--error .form__error { display: block; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---------- Page Header ---------- */
.page-header {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--deep) 0%, #0D3158 100%);
  color: #fff;
}
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 600px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ---------- Content ---------- */
.content { line-height: 1.8; }
.content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content p { margin-bottom: 1rem; color: var(--text-secondary); }
.content ul, .content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 0.35rem; color: var(--text-secondary); }
.content strong { color: var(--text); }
.content a { color: var(--blue); text-decoration: underline; }
.content a:hover { color: var(--blue-light); }

/* Info box */
.info-box {
  background: var(--surface-alt);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}
.info-box--amber { border-left-color: var(--amber); }
.info-box p { margin-bottom: 0; }

/* ---------- Tag / Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--blue { background: rgba(0,102,204,0.1); color: var(--blue); }
.badge--amber { background: rgba(245,166,35,0.15); color: #B87D00; }
.badge--green { background: rgba(56,161,105,0.1); color: #38A169; }

/* ---------- Footer ---------- */
.footer {
  background: var(--deep);
  color: rgba(255,255,255,0.7);
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 3rem;
}
.footer__brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}
.footer__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__link:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}
.footer__logo img { width: 28px; height: 28px; }

/* ---------- Ad Slots ---------- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  min-height: 90px;
  text-align: center;
}
.ad-slot--banner { min-height: 90px; }
.ad-slot--inline { min-height: 250px; margin-block: 2rem; }
.ad-slot--sidebar { min-height: 600px; }
.ad-slot:empty::after { content: 'Publicidade'; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}
.cookie-banner__text a { color: var(--blue); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Two-Column Layout (content + sidebar) ---------- */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }

/* ---------- Process Steps ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  counter-increment: step;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}
.step__content h4 { margin-bottom: 0.25rem; }
.step__content p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: linear-gradient(135deg, rgba(0,102,204,0.08), rgba(51,153,255,0.05));
  border: 1px solid rgba(0,102,204,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  margin-block: 2rem;
}

@media (prefers-color-scheme: dark) {
  .highlight-box {
    background: linear-gradient(135deg, rgba(0,102,204,0.15), rgba(51,153,255,0.08));
    border-color: rgba(0,102,204,0.3);
  }
}

/* ---------- Icon list ---------- */
.icon-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; padding: 0; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
}
.icon-list li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56,161,105,0.1);
  color: #38A169;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav__link {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
  .lang-switch { margin-left: 0; margin-top: 0.5rem; align-self: flex-start; }

  .hero { min-height: auto; padding-block: calc(var(--header-h) + 2rem) 2rem; }
  .hero__content h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  .stats { margin-top: -1.5rem; }
  .stats__inner { grid-template-columns: 1fr 1fr; }

  .form__row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .cookie-banner__inner { flex-direction: column; text-align: center; }
  .cookie-banner__actions { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-amber { color: var(--amber); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
