@charset "UTF-8";
/* =================================================================
   site-shell.css — Centralized Header & Footer System
   ----------------------------------------------------------------
   Identity: Academic / Editorial — restrained, refined, timeless.
   Inspired by classical academic publishing (deep navy, ink black,
   parchment cream, lustrous crimson) with rigorous
   typographic hierarchy and conservative motion.

   Architecture:
     • BEM-style scoping (.site-header__*, .site-footer__*).
     • Logical properties for full RTL + LTR symmetry.
     • Single Source of Truth for #site-header and #site-footer.
     • Per-page CSS MUST NOT override these selectors.

   Standards:
     • WCAG 2.2 AA contrast and focus visibility.
     • prefers-reduced-motion + prefers-color-scheme aware.
     • Print-optimized.
     • Zero layout shift (reserved logo dimensions).
================================================================= */

/* =================================================================
   1. Design Tokens — Academic Palette
================================================================= */
:root {
  /* — Core academic palette — */
  --shell-ink:        #0b1320;   /* Ink black — primary text */
  --shell-navy:       #0f2746;   /* Oxford navy — primary brand */
  --shell-navy-700:   #133564;   /* Hover navy */
  --shell-navy-600:   #1a4280;   /* Active navy */
  --shell-navy-500:   #2456a0;   /* Accent navy */
  --shell-navy-100:   #e7eef7;   /* Soft navy tint */
  --shell-navy-50:    #f3f7fc;   /* Page tint */

  --shell-cardinal:   #b91c2c;   /* Lustrous crimson — primary brand accent */
  --shell-cardinal-700: #8e1320; /* Deep cardinal */
  --shell-cardinal-100: #fde2e6; /* Cardinal tint */

  /* Accent token — kept as --shell-gold-* for backward compatibility,
     now mapped to a luminous crimson palette. */
  --shell-gold:       #dc2230;   /* Lustrous crimson — luminous red */
  --shell-gold-600:   #9c1620;   /* Deep wine */
  --shell-gold-100:   #fde4e6;   /* Crimson tint */

  --shell-cream:      #f9f6ef;   /* Parchment cream */
  --shell-paper:      #ffffff;   /* Paper white */
  --shell-rule:       #e8a3aa;   /* Hairline crimson rule */

  /* — Neutrals — */
  --shell-fg:         var(--shell-ink);
  --shell-muted:      #4a5468;
  --shell-subtle:     #6b7280;
  --shell-border:     #d8dde6;
  --shell-border-soft:#e6eaf1;
  --shell-on-primary: #ffffff;

  /* — Surfaces — */
  --shell-bg:               var(--shell-paper);
  --shell-bg-translucent:   rgb(255 255 255 / 0.92);

  /* — Footer (deep academic navy) — */
  --shell-footer-bg:        #08172e;
  --shell-footer-bg-2:      #0b2244;
  --shell-footer-fg:        #f1ece1;     /* Ivory */
  --shell-footer-muted:     #b8c0cf;
  --shell-footer-border:    rgb(241 236 225 / 0.10);
  --shell-footer-rule:      rgb(220 34 48 / 0.55);  /* Crimson rule */
  --shell-footer-card:      rgb(255 255 255 / 0.035);
  --shell-footer-card-hover:rgb(255 255 255 / 0.065);

  /* — Radii (restrained) — */
  --shell-radius-xs: 0.25rem;
  --shell-radius-sm: 0.375rem;
  --shell-radius-md: 0.5rem;
  --shell-radius-lg: 0.625rem;
  --shell-radius-pill: 9999px;

  /* — Elevation (subtle, paper-like) — */
  --shell-shadow-xs: 0 1px 1px rgb(11 19 32 / 0.04);
  --shell-shadow-sm: 0 1px 2px rgb(11 19 32 / 0.06), 0 1px 1px rgb(11 19 32 / 0.04);
  --shell-shadow-md: 0 2px 6px rgb(11 19 32 / 0.07), 0 1px 2px rgb(11 19 32 / 0.05);
  --shell-shadow-lg: 0 8px 22px rgb(11 19 32 / 0.10), 0 3px 6px rgb(11 19 32 / 0.06);
  --shell-shadow-cta: 0 4px 14px rgb(15 39 70 / 0.22);
  --shell-shadow-cta-hover: 0 8px 22px rgb(185 28 44 / 0.30);

  /* — Layout — */
  --shell-container: 80rem;
  --shell-pad-i: clamp(1rem, 2.5vw, 1.75rem);

  /* — Z-index ladder — */
  --shell-z-skiplink: 200;
  --shell-z-header: 100;
  --shell-z-mobile-menu: 95;

  /* — Motion (conservative, editorial) — */
  --shell-ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --shell-ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --shell-dur-fast:   140ms;
  --shell-dur-base:   220ms;
  --shell-dur-slow:   320ms;
  --shell-transition: var(--shell-dur-base) var(--shell-ease-soft);

  /* — Typography — */
  --shell-font-display: "Cairo", "Source Serif Pro", "Playfair Display", Georgia, serif;
  --shell-font-body:    "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shell-tracking-caps: 0.12em;
  --shell-tracking-tight: -0.005em;
}

/* =================================================================
   2. Skip link (WCAG 2.4.1)
================================================================= */
.shell-skiplink {
  position: fixed;
  inset-block-start: -120%;
  inset-inline-start: 1rem;
  z-index: var(--shell-z-skiplink);
  padding: 0.75rem 1.5rem;
  background: var(--shell-navy);
  color: var(--shell-on-primary);
  font-family: var(--shell-font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--shell-radius-md);
  border: 1px solid var(--shell-gold);
  text-decoration: none;
  box-shadow: var(--shell-shadow-lg);
  transition: inset-block-start var(--shell-dur-base) var(--shell-ease-out);
}
.shell-skiplink:focus,
.shell-skiplink:focus-visible {
  inset-block-start: 1rem;
  outline: 3px solid var(--shell-gold);
  outline-offset: 3px;
}

/* =================================================================
   3. Header / Top Navigation
================================================================= */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--shell-z-header);
  background: var(--shell-bg-translucent);
  border-block-end: 1px solid var(--shell-border);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  isolation: isolate;
}
/* Lustrous crimson hairline — academic crest detail */
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgb(220 34 48 / 0.35) 18%,
      #dc2230 50%,
      rgb(220 34 48 / 0.35) 82%,
      transparent 100%
    );
  opacity: 0.85;
  box-shadow: 0 0 12px rgb(220 34 48 / 0.35);
  pointer-events: none;
}

.site-header__inner {
  max-inline-size: var(--shell-container);
  margin-inline: auto;
  padding-block: clamp(0.85rem, 1.4vw, 1.15rem);
  padding-inline: var(--shell-pad-i);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* ---- 3.1 Brand mark (academic crest) ----------------------- */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--shell-radius-md);
  transition: opacity var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-header__brand:hover { opacity: 0.92; }

.site-header__logo {
  block-size: clamp(2.75rem, 4.4vw, 3.85rem);
  inline-size: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgb(11 19 32 / 0.15));
}

.site-header__brand-text {
  display: none;
  line-height: 1.15;
  position: relative;
  padding-inline-start: 0.95rem;
}
.site-header__brand-text::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0.15em;
  inline-size: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgb(220 34 48 / 0.85) 25%,
    rgb(220 34 48 / 0.85) 75%,
    transparent 100%
  );
  box-shadow: 0 0 6px rgb(220 34 48 / 0.4);
  opacity: 0.85;
}
@media (min-width: 640px) {
  .site-header__brand-text { display: block; }
}
.site-header__brand-name {
  display: block;
  font-family: var(--shell-font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: var(--shell-tracking-tight);
  color: var(--shell-navy);
}
.site-header__brand-tag {
  display: block;
  margin-block-start: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--shell-tracking-caps);
  color: var(--shell-cardinal);
  text-transform: uppercase;
}

/* ---- 3.2 Desktop navigation -------------------------------- */
.site-header__nav {
  display: none;
}
@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.8vw, 1.65rem);
  }
}
.site-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.4vw, 1.4rem);
}

.site-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 0.5rem;
  padding-inline: 0.2rem;
  font-family: var(--shell-font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--shell-fg);
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color var(--shell-dur-fast) var(--shell-ease-soft);
}
/* Editorial underline — fine crimson rule */
.site-header__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  background: var(--shell-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--shell-dur-base) var(--shell-ease-out);
}
.site-header__link:hover { color: var(--shell-navy); }
.site-header__link:hover::after { transform: scaleX(0.85); }

.site-header__link[aria-current="page"] {
  color: var(--shell-navy);
  font-weight: 800;
}
.site-header__link[aria-current="page"]::after {
  transform: scaleX(1);
  block-size: 3px;
  inset-block-end: -2px;
  background: linear-gradient(90deg, #ef4444 0%, #dc2230 50%, #ef4444 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgb(220 34 48 / 0.55);
}
/* Crimson accent dot above the active link — luminous indicator */
.site-header__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: -0.35rem;
  inline-size: 4px;
  block-size: 4px;
  border-radius: 50%;
  background: #dc2230;
  box-shadow: 0 0 6px rgb(220 34 48 / 0.85);
  transform: translateX(-50%);
  animation: shell-active-pulse 2.4s var(--shell-ease-soft) infinite;
}
@keyframes shell-active-pulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.35); }
}

/* ---- 3.3 CTA & language switch ----------------------------- */
.site-header__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  background: var(--shell-navy);
  color: var(--shell-on-primary);
  font-family: var(--shell-font-body);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--shell-navy);
  border-radius: var(--shell-radius-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shell-shadow-cta);
  isolation: isolate;
  transition:
    background var(--shell-dur-base) var(--shell-ease-out),
    border-color var(--shell-dur-base) var(--shell-ease-out),
    color var(--shell-dur-base) var(--shell-ease-out),
    box-shadow var(--shell-dur-base) var(--shell-ease-out),
    transform var(--shell-dur-fast) var(--shell-ease-soft);
}
/* Inner crimson hairline — academic emblem */
.site-header__cta::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgb(220 34 48 / 0);
  border-radius: calc(var(--shell-radius-md) - 3px);
  pointer-events: none;
  transition: border-color var(--shell-dur-base) var(--shell-ease-out);
}
.site-header__cta:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2230 50%, #9c1620 100%);
  border-color: #ef4444;
  box-shadow:
    0 8px 22px rgb(220 34 48 / 0.45),
    0 0 0 1px rgb(248 113 113 / 0.35);
  transform: translateY(-1px);
}
.site-header__cta:hover::before { border-color: rgb(255 255 255 / 0.35); }
.site-header__cta:active { transform: translateY(0); }

.site-header__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.6rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--shell-font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: var(--shell-tracking-caps);
  color: var(--shell-navy);
  background: var(--shell-paper);
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius-sm);
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color var(--shell-dur-fast) var(--shell-ease-soft),
    background var(--shell-dur-fast) var(--shell-ease-soft),
    border-color var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-header__lang:hover {
  color: var(--shell-paper);
  background: var(--shell-navy);
  border-color: var(--shell-navy);
}

/* ---- 3.4 Mobile menu toggle -------------------------------- */
.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius-sm);
  color: var(--shell-navy);
  font-size: 1.3rem;
  cursor: pointer;
  transition:
    background var(--shell-dur-fast) var(--shell-ease-soft),
    border-color var(--shell-dur-fast) var(--shell-ease-soft),
    color var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-header__toggle:hover {
  background: var(--shell-navy-50);
  border-color: var(--shell-navy);
  color: var(--shell-navy);
}
@media (min-width: 1024px) {
  .site-header__toggle { display: none; }
}

/* ---- 3.5 Mobile menu drawer -------------------------------- */
.site-header__mobile {
  overflow: hidden;
  max-block-size: 0;
  opacity: 0;
  pointer-events: none;
  background: rgb(255 255 255 / 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--shell-border);
  box-shadow: var(--shell-shadow-md);
  transition:
    max-block-size var(--shell-dur-slow) var(--shell-ease-out),
    opacity var(--shell-dur-base) var(--shell-ease-out);
}
.site-header__mobile[data-open="true"] {
  max-block-size: 80vh;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}
@media (min-width: 1024px) {
  .site-header__mobile { display: none; }
}
.site-header__mobile-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.site-header__mobile-link {
  position: relative;
  display: block;
  padding: 0.9rem 1.05rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--shell-fg);
  border-radius: var(--shell-radius-sm);
  text-decoration: none;
  border-inline-start: 2px solid transparent;
  transition:
    background var(--shell-dur-fast) var(--shell-ease-soft),
    color var(--shell-dur-fast) var(--shell-ease-soft),
    border-color var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-header__mobile-link:hover {
  background: var(--shell-navy-50);
  color: var(--shell-navy);
  border-inline-start-color: var(--shell-gold);
}
.site-header__mobile-link[aria-current="page"] {
  position: relative;
  background: linear-gradient(
    90deg,
    rgb(220 34 48 / 0.06) 0%,
    rgb(220 34 48 / 0.02) 100%
  );
  color: var(--shell-navy);
  border-inline-start: 3px solid #dc2230;
  font-weight: 800;
  padding-inline-start: calc(1.05rem - 1px);
  box-shadow: inset 0 0 0 1px rgb(220 34 48 / 0.08);
}
.site-header__mobile-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline-end: 1rem;
  inset-block: 50%;
  inline-size: 6px;
  block-size: 6px;
  margin-block-start: -3px;
  border-radius: 50%;
  background: #dc2230;
  box-shadow: 0 0 8px rgb(220 34 48 / 0.7);
}
.site-header__mobile-cta {
  display: block;
  margin: 0.75rem 1rem 0.4rem;
  padding: 0.9rem 1rem;
  background: var(--shell-navy);
  color: var(--shell-on-primary);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-align: center;
  border: 1px solid var(--shell-navy);
  border-radius: var(--shell-radius-md);
  text-decoration: none;
  box-shadow: var(--shell-shadow-cta);
  transition:
    background var(--shell-dur-base) var(--shell-ease-out),
    border-color var(--shell-dur-base) var(--shell-ease-out);
}
.site-header__mobile-cta:hover {
  background: var(--shell-cardinal);
  border-color: var(--shell-cardinal);
}
.site-header__mobile-lang {
  display: block;
  margin: 0.4rem 1rem 0.85rem;
  padding: 0.7rem 1rem;
  background: var(--shell-paper);
  color: var(--shell-navy);
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius-sm);
  font-weight: 800;
  letter-spacing: var(--shell-tracking-caps);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background var(--shell-dur-fast) var(--shell-ease-soft),
    color var(--shell-dur-fast) var(--shell-ease-soft),
    border-color var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-header__mobile-lang:hover {
  background: var(--shell-navy);
  color: var(--shell-paper);
  border-color: var(--shell-navy);
}

/* =================================================================
   4. Footer — Editorial / Academic dark
================================================================= */
.site-footer {
  position: relative;
  margin-block-start: 0;
  padding-block: clamp(2.5rem, 4.5vw, 3.75rem) 1.75rem;
  background:
    linear-gradient(180deg, var(--shell-footer-bg) 0%, var(--shell-footer-bg-2) 100%);
  color: var(--shell-footer-fg);
  font-family: var(--shell-font-body);
  isolation: isolate;
  overflow: hidden;
}
/* Top crimson rule — editorial divider with luminous glow */
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgb(220 34 48 / 0.45) 20%,
      #ef4444 50%,
      rgb(220 34 48 / 0.45) 80%,
      transparent 100%
    );
  opacity: 0.9;
  box-shadow: 0 0 18px rgb(220 34 48 / 0.45);
  pointer-events: none;
}
/* Restrained academic vignette — subtle crimson glow accents */
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50rem 18rem at 85% -8%, rgb(36 86 160 / 0.10), transparent 55%),
    radial-gradient(40rem 14rem at 10% 108%, rgb(220 34 48 / 0.08), transparent 55%);
  pointer-events: none;
}

.site-footer__inner {
  max-inline-size: var(--shell-container);
  margin-inline: auto;
  padding-inline: var(--shell-pad-i);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1.25fr 0.95fr 1.15fr 1.05fr; }
}
.site-footer__column { min-inline-size: 0; }

/* ---- 4.1 Section headings (editorial) ---------------------- */
.site-footer__heading {
  position: relative;
  margin: 0 0 1.5rem;
  padding-block-end: 0.85rem;
  font-family: var(--shell-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--shell-footer-fg);
  letter-spacing: var(--shell-tracking-tight);
}
/* Double-rule under heading — luminous crimson editorial pattern */
.site-footer__heading::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  inline-size: 3rem;
  block-size: 1px;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    #dc2230 60%,
    rgb(220 34 48 / 0.3) 100%
  );
  box-shadow: 0 0 8px rgb(220 34 48 / 0.45);
}
.site-footer__heading::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 3px;
  inline-size: 4.5rem;
  block-size: 1px;
  background: linear-gradient(
    90deg,
    rgb(220 34 48 / 0.45) 0%,
    rgb(220 34 48 / 0.18) 100%
  );
}
.site-footer__heading--sub {
  margin-block-start: 2.25rem;
  margin-block-end: 1.1rem;
  padding-block-start: 1.5rem;
  padding-block-end: 0.6rem;
  border-block-start: 1px solid var(--shell-footer-border);
  color: var(--shell-footer-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--shell-tracking-caps);
}
.site-footer__heading--sub::before,
.site-footer__heading--sub::after {
  background: rgb(220 34 48 / 0.45);
}
.site-footer__heading--sub::after { background: rgb(220 34 48 / 0.18); }

/* ---- 4.2 Brand block --------------------------------------- */
.site-footer__brand-logo {
  display: block;
  block-size: clamp(4rem, 7vw, 7rem);
  inline-size: auto;
  filter: brightness(1.85) drop-shadow(0 2px 10px rgb(220 34 48 / 0.22));
  margin-block-end: 1.4rem;
}
.site-footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--shell-footer-muted);
  max-inline-size: 34ch;
}

/* ---- 4.3 Link lists ---------------------------------------- */
.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--shell-footer-muted);
  text-decoration: none;
  padding-block: 0.3rem;
  padding-inline-start: 1.05rem;
  border-radius: var(--shell-radius-xs);
  transition:
    color var(--shell-dur-fast) var(--shell-ease-soft),
    padding-inline-start var(--shell-dur-base) var(--shell-ease-out);
}
/* Editorial bullet — fine line */
.site-footer__link::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0.7em;
  inline-size: 8px;
  block-size: 1px;
  background: var(--shell-footer-muted);
  opacity: 0.5;
  transition:
    inline-size var(--shell-dur-base) var(--shell-ease-out),
    background var(--shell-dur-fast) var(--shell-ease-soft),
    opacity var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-footer__link:hover {
  color: var(--shell-paper);
  padding-inline-start: 1.5rem;
}
.site-footer__link:hover::before {
  inline-size: 16px;
  background: var(--shell-gold);
  opacity: 1;
}
/* Active page in the footer — luminous crimson signature */
.site-footer__link[aria-current="page"] {
  color: #fff5f5 !important;
  color: var(--shell-cream) !important;
  font-weight: 800;
  padding-inline-start: 1.55rem;
}
.site-footer__link[aria-current="page"]::before {
  inline-size: 14px !important;
  block-size: 2px !important;
  inset-block: 0.65em !important;
  background: linear-gradient(90deg, #ef4444 0%, #dc2230 100%) !important;
  opacity: 1 !important;
  border-radius: 1px;
  box-shadow: 0 0 6px rgb(220 34 48 / 0.65);
}
.site-footer__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  inset-block: 0.55em;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: #dc2230;
  box-shadow: 0 0 6px rgb(220 34 48 / 0.85);
}

/* ---- 4.4 Contact block ------------------------------------- */
.site-footer__contact {
  font-size: 0.875rem;
  color: var(--shell-footer-muted);
}
.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-block: 0.85rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--shell-radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  line-height: 1.55;
  transition:
    color var(--shell-dur-fast) var(--shell-ease-soft),
    background var(--shell-dur-fast) var(--shell-ease-soft),
    border-color var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-footer__contact-item:hover {
  color: var(--shell-paper);
  background: var(--shell-footer-card);
  border-color: var(--shell-footer-border);
}
.site-footer__contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.05rem;
  block-size: 1.05rem;
  min-inline-size: 1.05rem;
  min-block-size: 1.05rem;
  margin-block-start: 0.25rem;
  color: var(--shell-gold) !important;
  font-size: 1rem;
  line-height: 1;
  transition: color var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-footer__contact-item:hover .site-footer__contact-icon {
  color: var(--shell-cream) !important;
}

/* ---- 4.5 Social row ---------------------------------------- */
.site-footer__social {
  display: flex;
  gap: 0.55rem;
  margin-block-start: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__social-link {
  position: relative;
  inline-size: 2.35rem;
  block-size: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shell-footer-card);
  border: 1px solid var(--shell-footer-border);
  border-radius: 50%;
  color: var(--shell-footer-fg);
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    color var(--shell-dur-fast) var(--shell-ease-soft),
    background var(--shell-dur-base) var(--shell-ease-out),
    border-color var(--shell-dur-base) var(--shell-ease-out),
    transform var(--shell-dur-base) var(--shell-ease-out);
}
.site-footer__social-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ef4444 0%, #dc2230 100%);
  border-color: rgb(239 68 68 / 0.6);
  color: var(--shell-cream);
  box-shadow:
    0 6px 18px rgb(220 34 48 / 0.45),
    0 0 0 1px rgb(248 113 113 / 0.35);
}

/* ---- 4.6 Newsletter form ----------------------------------- */
.site-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Higher specificity (.site-footer .site-footer__*) to defeat Tailwind preflight,
   per-page CSS, and aggressive content-blocking shields (Brave/uBlock).
   Hex fallbacks precede var() declarations to survive any token resolution failure. */
.site-footer .site-footer__newsletter-input,
.site-footer input.site-footer__newsletter-input {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  block-size: auto !important;
  padding: 0.95rem 1.1rem !important;
  margin: 0 !important;
  background: #0a1d3a !important;
  background: rgb(8 23 46 / 0.65) !important;
  background-image: none !important;
  background-color: rgb(8 23 46 / 0.65) !important;
  border: 1px solid #1e293b !important;
  border: 1px solid var(--shell-footer-border) !important;
  border-radius: 0.375rem !important;
  border-radius: var(--shell-radius-sm) !important;
  color: #f1ece1 !important;
  color: var(--shell-footer-fg) !important;
  font-family: "Cairo", system-ui, -apple-system, sans-serif !important;
  font-family: var(--shell-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  direction: ltr !important;
  text-align: start !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease !important;
}
.site-footer .site-footer__newsletter-input::placeholder {
  color: #b8c0cf !important;
  color: rgb(184 192 207 / 0.6) !important;
  opacity: 1 !important;
}
.site-footer .site-footer__newsletter-input:hover {
  border-color: rgb(241 236 225 / 0.18) !important;
}
.site-footer .site-footer__newsletter-input:focus,
.site-footer .site-footer__newsletter-input:focus-visible {
  outline: none !important;
  border-color: #dc2230 !important;
  border-color: var(--shell-gold) !important;
  background: rgb(8 23 46 / 0.85) !important;
  background-color: rgb(8 23 46 / 0.85) !important;
  box-shadow: 0 0 0 3px rgb(220 34 48 / 0.22) !important;
}

.site-footer__newsletter-error,
.site-footer__newsletter-success {
  font-size: 0.8125rem;
  text-align: center;
  padding-block: 0.55rem;
  padding-inline: 0.75rem;
  border-radius: var(--shell-radius-xs);
  font-weight: 700;
}
.site-footer__newsletter-error {
  color: #f4b4ba;
  background: rgb(185 28 44 / 0.18);
  border: 1px solid rgb(185 28 44 / 0.45);
}
.site-footer__newsletter-success {
  color: #d2e6c9;
  background: rgb(64 113 56 / 0.22);
  border: 1px solid rgb(64 113 56 / 0.45);
}

/* Newsletter button — luminous crimson with hand-crafted gradient + glow.
   Hardened against Tailwind preflight, ad-blockers and Brave Shields.
   Hex fallbacks precede var() to survive any token resolution failure. */
.site-footer .site-footer__newsletter-button,
.site-footer button.site-footer__newsletter-button,
button.site-footer__newsletter-button[type="submit"] {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  block-size: auto !important;
  padding: 0.95rem 1.1rem !important;
  margin: 0 !important;
  background: #dc2230 !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2230 50%, #9c1620 100%) !important;
  background-color: #dc2230 !important;
  color: #fff7f7 !important;
  color: var(--shell-cream) !important;
  font-family: "Cairo", system-ui, -apple-system, sans-serif !important;
  font-family: var(--shell-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  border: 1px solid #dc2230 !important;
  border: 1px solid rgb(239 68 68 / 0.7) !important;
  border-radius: 0.375rem !important;
  border-radius: var(--shell-radius-sm) !important;
  cursor: pointer !important;
  box-shadow:
    0 4px 14px rgb(220 34 48 / 0.40),
    inset 0 1px 0 rgb(255 255 255 / 0.18) !important;
  appearance: button !important;
  -webkit-appearance: button !important;
  outline: none !important;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.25) !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 140ms ease !important;
}
.site-footer .site-footer__newsletter-button:hover,
.site-footer button.site-footer__newsletter-button:hover {
  background: #ef4444 !important;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2230 100%) !important;
  background-color: #ef4444 !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 24px rgb(220 34 48 / 0.55),
    0 0 0 1px rgb(248 113 113 / 0.45),
    inset 0 1px 0 rgb(255 255 255 / 0.25) !important;
}
.site-footer .site-footer__newsletter-button:active { transform: translateY(0) !important; }
.site-footer .site-footer__newsletter-button:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.site-footer__honeypot {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 4.7 Copyright bar ------------------------------------- */
.site-footer__copyright {
  position: relative;
  max-inline-size: var(--shell-container);
  margin-block-start: clamp(2.75rem, 5vw, 4rem);
  margin-inline: auto;
  padding-block-start: 2rem;
  padding-inline: var(--shell-pad-i);
  font-family: var(--shell-font-display);
  font-size: 0.85rem;
  letter-spacing: 0.015em;
  color: var(--shell-footer-muted);
  text-align: center;
}
.site-footer__copyright::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: var(--shell-pad-i);
  block-size: 1px;
  background: var(--shell-footer-rule);
  opacity: 0.55;
}
.site-footer__copyright a {
  color: inherit;
  text-decoration: none;
  border-block-end: 1px solid transparent;
  transition:
    color var(--shell-dur-fast) var(--shell-ease-soft),
    border-color var(--shell-dur-fast) var(--shell-ease-soft);
}
.site-footer__copyright a:hover {
  color: var(--shell-gold-100);
  border-block-end-color: var(--shell-gold);
}

/* =================================================================
   5. WhatsApp floating widget
================================================================= */
#wa-widget {
  position: fixed;
  inset-inline-end: 1.5rem;
  inset-block-end: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.wa-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #0e7a5d 100%);
  color: #fff;
  text-decoration: none;
  border: 2px solid rgb(241 236 225 / 0.92);
  box-shadow:
    0 6px 18px rgb(14 122 93 / 0.45),
    0 2px 6px rgb(11 19 32 / 0.25);
  transition:
    transform var(--shell-dur-base) var(--shell-ease-out),
    box-shadow var(--shell-dur-base) var(--shell-ease-out);
}
.wa-fab::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgb(37 211 102 / 0.30);
  z-index: -1;
  animation: wa-pulse 2.6s var(--shell-ease-out) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(0.85); opacity: 0.65; }
  70%  { transform: scale(1.4);  opacity: 0;    }
  100% { transform: scale(1.4);  opacity: 0;    }
}
.wa-fab:hover {
  transform: scale(1.06);
  box-shadow:
    0 10px 26px rgb(14 122 93 / 0.55),
    0 4px 10px rgb(11 19 32 / 0.30);
}
.wa-fab:focus-visible {
  outline: 3px solid var(--shell-gold);
  outline-offset: 4px;
}

.wa-fab__badge {
  position: absolute;
  inset-block-start: -0.3rem;
  inset-inline-end: -0.3rem;
  inline-size: 1.35rem;
  block-size: 1.35rem;
  border-radius: 50%;
  background: var(--shell-cardinal);
  color: var(--shell-cream);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--shell-cream);
  box-shadow: 0 2px 5px rgb(185 28 44 / 0.5);
}

.wa-balloon {
  position: relative;
  background: linear-gradient(
    150deg,
    var(--shell-footer-bg-2) 0%,
    var(--shell-footer-bg) 100%
  );
  color: var(--shell-cream);
  border: 1px solid rgb(220 34 48 / 0.30);
  border-radius: 0.75rem 0.75rem 0.25rem 0.75rem;
  padding: 1.05rem 1.3rem;
  max-inline-size: 17rem;
  box-shadow:
    0 14px 36px rgb(8 23 46 / 0.55),
    0 4px 12px rgb(8 23 46 / 0.35);
  opacity: 0;
  transform: translateY(0.5rem) scale(0.96);
  transition:
    opacity var(--shell-dur-base) var(--shell-ease-out),
    transform var(--shell-dur-base) var(--shell-ease-out);
  pointer-events: none;
}
.wa-balloon--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-balloon__close {
  position: absolute;
  inset-block-start: 0.45rem;
  inset-inline-end: 0.45rem;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--shell-footer-muted);
  cursor: pointer;
  line-height: 1;
  transition:
    color var(--shell-dur-fast) var(--shell-ease-soft),
    background var(--shell-dur-fast) var(--shell-ease-soft);
}
.wa-balloon__close:hover {
  color: var(--shell-cream);
  background: rgb(255 255 255 / 0.08);
}
.wa-balloon__title {
  font-family: var(--shell-font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  padding-inline-end: 1.6rem;
  line-height: 1.4;
  color: var(--shell-cream);
}
.wa-balloon__text {
  font-size: 0.825rem;
  color: var(--shell-footer-muted);
  margin: 0;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .wa-balloon,
  .wa-fab { transition: none !important; }
  .wa-fab::before { animation: none !important; }
}

/* =================================================================
   6. Focus visibility (WCAG 2.2 AA)
================================================================= */
.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 3px solid var(--shell-gold);
  outline-offset: 2px;
  border-radius: var(--shell-radius-xs);
}

/* =================================================================
   7. Reduced motion
================================================================= */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header *,
  .site-footer,
  .site-footer * {
    transition: none !important;
    animation: none !important;
  }
  .site-header__link::after,
  .site-footer__link::before { transition: none !important; }
}

/* =================================================================
   8. Print
================================================================= */
@media print {
  .site-header,
  .site-footer__newsletter,
  .site-footer__social,
  .shell-skiplink,
  #wa-widget {
    display: none !important;
  }
  .site-footer {
    background: transparent;
    color: #000;
    margin: 0;
    padding: 1rem 0;
    box-shadow: none;
  }
  .site-footer::before,
  .site-footer::after { display: none !important; }
  .site-footer__heading,
  .site-footer__heading::before,
  .site-footer__heading::after,
  .site-footer__link,
  .site-footer__contact-item,
  .site-footer__copyright,
  .site-footer__copyright a {
    color: #000 !important;
    background: transparent !important;
  }
}
