/* =====================================================
   BASE TYPOGRAPHY
===================================================== */

html body,
body p,
body li,
body span,
body div,
.site,
.site-grid,
.com-content-article,
.com-content-article p,
.com-content-article li {
  font-family: "Chivo", sans-serif;
  color: #1a1a1a;
}


/* =====================================================
   HEADINGS
===================================================== */

h1,
.page-header h1,
.com-content-article h1 {
  font-family: "Bungee", serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 400;
  color: #db0027;
  line-height: 1.1;
}

h2,
.page-header h2,
.com-content-article h2 {
  font-family: "Bungee", serif;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 400;
  color: #2a2a2a;
  line-height: 1.25;
}

h3,
.page-header h3,
.com-content-article h3 {
  font-family: "Chivo", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}


/* =====================================================
   W3 NORMALISATION
===================================================== */

.w3-black {
  background-color: #0f0f10 !important;
  color: #ffffff !important;
}

.w3-white {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
}

.w3-red {
  background-color: #db0027 !important;
  color: #ffffff !important;
}


/* =====================================================
   LINKS & ACCESSIBILITY
===================================================== */

a {
  color: #a1001d;
  text-decoration: underline;
}

a:hover,
a:focus {
  text-decoration: none;
}

*:focus-visible {
  outline: 3px solid #db0027;
  outline-offset: 2px;
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


/* =====================================================
   HEADER RESET (ALL NON‑LANDING PAGES)
===================================================== */

.header.container-header,
.header.container-header::before,
.header.container-header::after {
  background: #ffffff;
  border-bottom: none;
  box-shadow: none;
}

.navbar-brand span {
  display: none;
}

.container-nav {
  margin-left: auto;
}


/* =====================================================
   MAIN MENU (TOP LEVEL)
===================================================== */

.container-nav > ul > li {
  position: relative;
}

.container-nav > ul > li > a {
  font-family: "Bungee", serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  text-decoration: none;
  padding: 0.75rem 0.9rem;
  position: relative;
  text-align: left;
}

/* underline base */
.container-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background-color: #db0027;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* hover = red text + underline */
.container-nav > ul > li > a:hover {
  color: #db0027;
}

.container-nav > ul > li > a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* active = underline only */
.container-nav > ul > li.active > a {
  color: #1a1a1a;
}

.container-nav > ul > li.active > a::after {
  opacity: 1;
  transform: scaleX(1);
}


/* =====================================================
   DROPDOWN MENU
===================================================== */

.container-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  padding: 0.5rem 0;
  min-width: max-content;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.container-nav ul ul li a {
  font-family: "Chivo", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  padding: 0.6rem 1.2rem;
  text-align: left;
  white-space: nowrap;
}

.container-nav ul ul li a:hover {
  color: #db0027;
  background: none;
}


/* =====================================================
   MENU ON RED BACKGROUND
===================================================== */

.w3-red .container-nav > ul > li > a {
  color: #ffffff;
}

.w3-red .container-nav > ul > li > a::after {
  background-color: #ffffff;
}

.w3-red .container-nav > ul > li > a:hover {
  color: #ffffff;
}


/* =====================================================
   LANDING PAGE BEHAVIOUR
===================================================== */

.landing .container-header {
  background: transparent;
  border-bottom: none;
}

.landing .container-nav {
  display: none;
}

.landing .navbar-toggler {
  display: block;
}

.landing .header.container-header {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-toggler {
  color: #1a1a1a;
}