/* ==========================================================================
   AM Sprachschule — style.css
   Design language: German Bauhaus-inspired — geometric structure, primary
   color blocking, disciplined grid, sharp-not-soft corners. Built for an
   international-student audience: confident, institutional, welcoming.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --paper: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #f2efe8;
  --ink: #14151a;
  --ink-soft: #4b4e58;
  --ink-faint: #83848c;
  --line: #e3e0d8;
  --line-strong: #c9c6bc;

  /* Always-dark surface — intentionally NOT redefined in dark mode, used for
     elements like the footer and cookie banner that stay dark in both themes */
  --ink-fixed-dark: #14151a;

  --cobalt: #1e3a8a;
  --cobalt-deep: #142860;
  --cobalt-tint: #e8edf9;
  --signal-red: #d62828;
  --signal-red-deep: #a81f1f;
  --gold: #e0a233;
  --gold-deep: #b8811f;

  --success: #2f7d4f;

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-label: 'Open Sans', 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1220px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --speed: 200ms;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(20, 21, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 21, 26, 0.10);
  --shadow-lg: 0 20px 48px rgba(20, 21, 26, 0.16);
}

/* Dark mode — toggled by JS adding .dark-mode to <body> */
body.dark-mode {
  --paper: #111217;
  --surface: #181a20;
  --surface-alt: #1e2028;
  --ink: #f2f1ec;
  --ink-soft: #c2c3ca;
  --ink-faint: #8a8c96;
  --line: #2c2e37;
  --line-strong: #3a3d48;
  --cobalt-tint: #1c2b52;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
address { font-style: normal; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--ink-soft); }

/* Visible focus ring everywhere — accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}
body.dark-mode a:focus-visible, body.dark-mode button:focus-visible {
  outline-color: var(--gold);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--cobalt); color: #fff;
  padding: .75rem 1.25rem; z-index: 999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-label); font-weight: 600;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Shared section chrome ---------- */
section { padding: 5.5rem 0; }
.section-header {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-header p { margin-top: .75rem; font-size: 1.05rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: .9rem;
}
.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  background: var(--signal-red);
  display: inline-block;
}
body.dark-mode .section-eyebrow { color: #8fa8e8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--gold); color: #23180a; }
.btn-secondary:hover { background: var(--gold-deep); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }

.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }

/* Outline button sitting on dark hero media needs light border */
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-outline:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
}
.logo img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.main-nav ul { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  position: relative;
  font-family: var(--font-label);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .4rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--signal-red);
  transition: width var(--speed) var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .9rem; }

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 40px;
}
.search-form input {
  border: none; background: transparent;
  padding: 0 .8rem; height: 100%;
  width: 150px;
  font-size: .85rem;
  color: var(--ink);
}
.search-form input:focus { outline: none; }
.search-form button {
  height: 100%; padding: 0 .8rem;
  background: var(--surface-alt);
  font-size: .9rem;
}

.dark-mode-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--speed) var(--ease);
}
.dark-mode-toggle:hover { border-color: var(--cobalt); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: var(--cobalt-deep);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .78;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,12,20,.92) 0%, rgba(10,12,20,.55) 45%, rgba(10,12,20,.25) 100%);
}
/* Bauhaus signature — a cut color block anchoring the hero content */
.hero::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: min(46vw, 640px);
  height: 8px;
  background: linear-gradient(90deg, var(--signal-red) 0 33%, var(--gold) 33% 66%, var(--cobalt) 66% 100%);
  z-index: 3;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
  padding-top: calc(var(--header-h) + 3rem);
  max-width: 780px;
  color: #fff;
}
.tagline-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--signal-red);
  color: #fff;
  padding: .5rem .9rem;
  margin-bottom: 1.3rem;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-subheading {
  color: rgba(255,255,255,.86);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-image { position: relative; }
.about-image img {
  border-radius: var(--radius-md);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--surface-alt);
}
.about-image::after {
  content: '';
  position: absolute;
  width: 90px; height: 90px;
  background: var(--gold);
  bottom: -18px; right: -18px;
  z-index: -1;
  border-radius: var(--radius-sm);
}
.about-content p { margin-bottom: 1.1rem; }
.about-content .btn { margin-top: .6rem; }

/* ---------- Why choose / feature grid ---------- */
.why-choose { background: var(--surface-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cobalt);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--cobalt);
  color: #fff;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: .4rem; font-size: 1.02rem; }
.feature-card p { font-size: .92rem; margin: 0; }

/* ---------- Courses ---------- */
.course-filter {
  display: flex;
  gap: .5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .8rem 1.3rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--cobalt); border-color: var(--signal-red); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card img {
  width: 100%; aspect-ratio: 16/10.4; object-fit: cover;
  background: var(--surface-alt);
}
.course-card-body { padding: 1.5rem; position: relative; }
.course-level {
  position: absolute;
  top: -16px; left: 1.5rem;
  background: var(--signal-red);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .35rem .7rem;
  border-radius: var(--radius-sm);
}
.course-card-body h3 { margin: .6rem 0 .5rem; }
.course-card-body p { font-size: .92rem; margin-bottom: 1rem; }
.course-meta { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.course-meta li {
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-faint);
  padding-left: 1.1rem;
  position: relative;
}
.course-meta li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--gold);
}

/* ---------- Intensive ---------- */
.intensive { background: var(--cobalt-deep); }
.intensive-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.intensive .section-eyebrow { color: #a9c1f0; }
.intensive .section-eyebrow::before { background: var(--gold); }
.intensive h2, .intensive p { color: #fff; }
.intensive p { color: rgba(255,255,255,.82); }
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem 1.5rem;
  margin: 1.8rem 0 2rem;
}
.checklist-grid li {
  color: #fff;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .92rem;
  padding-left: 1.4rem;
  position: relative;
}
.checklist-grid li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 9px; height: 9px;
  background: var(--gold);
}
.intensive-image img {
  border-radius: var(--radius-md);
  aspect-ratio: 4/3.1;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}

/* ---------- Timeline (signature element) ---------- */
.timeline-section, .admission-process { background: var(--surface); }
.progress-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding-top: 8px;
  margin-bottom: 2.5rem;
}
.progress-timeline::before {
  content: '';
  position: absolute;
  top: 15px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--gold) 60%, var(--signal-red));
}
.progress-timeline li {
  position: relative;
  flex: 1;
  text-align: center;
}
.timeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.timeline-dot::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: var(--surface);
  border: 3px solid var(--cobalt);
  margin: 0 auto .7rem;
  position: relative;
  z-index: 2;
}
.progress-timeline li:nth-child(3n+2) .timeline-dot::before { border-color: var(--gold); }
.progress-timeline li:nth-child(3n) .timeline-dot::before { border-color: var(--signal-red); }
.timeline-final .timeline-dot::before {
  background: var(--signal-red);
  border-color: var(--signal-red);
}
.timeline-final { color: var(--signal-red); font-weight: 800; }

/* ---------- Weekly learning ---------- */
.weekly-learning { background: var(--surface-alt); }
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.weekly-item {
  background: var(--surface);
  border-left: 3px solid var(--cobalt);
  padding: 1.4rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.weekly-item:nth-child(3n+2) { border-color: var(--gold); }
.weekly-item:nth-child(3n) { border-color: var(--signal-red); }
.weekly-item h3 { font-size: 1rem; margin-bottom: .35rem; }
.weekly-item p { font-size: .88rem; margin: 0; }

/* ---------- Student services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}
.service-card {
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.service-card:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.service-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.service-card p { font-size: .88rem; margin: 0; }
.services-cta { text-align: center; }

/* ---------- Stats ---------- */
.stats {
  background: var(--ink-fixed-dark);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0 1rem;
  border-left: 1px solid rgba(255,255,255,.14);
}
.stat-item:first-child { border-left: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-item p {
  color: rgba(255,255,255,.8);
  font-family: var(--font-label);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .3rem;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
}
.testimonial-card img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-alt);
  margin-bottom: .9rem;
}
.stars { color: var(--gold); font-size: .85rem; letter-spacing: .1em; margin-bottom: .8rem; }
.testimonial-card blockquote {
  font-size: .96rem;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.testimonial-card figcaption {
  font-family: var(--font-label);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cobalt);
  transition: transform var(--speed) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .9rem; font-size: .95rem; max-width: 68ch; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: .8rem;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  transition: transform var(--speed) var(--ease), filter var(--speed) var(--ease);
}
.gallery-grid img:hover { transform: scale(1.03); filter: saturate(1.15); }
.gallery-grid img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img:nth-child(6) { grid-column: span 2; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.contact-info address p { margin-bottom: .9rem; font-size: .95rem; }
.contact-info address a:hover { color: var(--cobalt); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; filter: grayscale(.3); transition: filter var(--speed) var(--ease); }
.map-embed:hover iframe { filter: grayscale(0); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: var(--surface-alt);
  padding: 2rem;
  border-radius: var(--radius-md);
}
.contact-form label {
  font-family: var(--font-label);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: -.7rem;
}
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  color: var(--ink);
  transition: border-color var(--speed) var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--cobalt); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; margin-top: .3rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--cobalt); }
.newsletter-inner { text-align: center; max-width: 560px; }
.newsletter h2 { color: #fff; margin-bottom: .6rem; }
.newsletter p { color: rgba(255,255,255,.82); margin-bottom: 1.8rem; }
.newsletter-form {
  display: flex;
  gap: .7rem;
  background: #fff;
  padding: .4rem;
  border-radius: var(--radius-sm);
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: .7rem 1rem;
  font-size: .95rem;
}
.newsletter-form input:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-fixed-dark);
  color: rgba(255,255,255,.72);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--signal-red), var(--gold), var(--cobalt)) 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 1.5rem 2.5rem;
}
.footer-brand h3 { color: #fff; margin-bottom: .6rem; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-links h4, .footer-legal h4, .footer-social h4 {
  font-family: var(--font-label);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-links li, .footer-legal li { margin-bottom: .6rem; font-size: .9rem; }
.footer-links a:hover, .footer-legal a:hover { color: var(--gold); }
.social-icons { display: flex; gap: .7rem; }
.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-size: .74rem;
  font-weight: 700;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.3rem 1.5rem;
  text-align: center;
  font-size: .82rem;
}

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  max-width: 560px;
  background: var(--ink-fixed-dark);
  color: #fff;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 800;
}
.cookie-consent p { color: rgba(255,255,255,.82); font-size: .86rem; margin: 0; }
.cookie-consent a { text-decoration: underline; color: #fff; }
.cookie-consent .btn { flex-shrink: 0; padding: .7rem 1.2rem; }

/* ---------- Floating buttons ---------- */
.whatsapp-float, .back-to-top {
  position: fixed;
  right: 1.5rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  z-index: 700;
  transition: transform var(--speed) var(--ease);
}
.whatsapp-float { bottom: 1.5rem; background: #25d366; color: #fff; }
.back-to-top { bottom: 6rem; background: var(--cobalt); color: #fff; }
.whatsapp-float:hover, .back-to-top:hover { transform: translateY(-3px); }

/* ---------- Live chat placeholder ---------- */
.live-chat-placeholder { display: none; }