/* MAIN */
:root{
  /* Core brand */
  --brand:#041562;
  --brand-600:#11468F;
  --on-brand:#F2F2F2;

  /* Text & neutrals */
  --text:#424142;
  --text-white: #ffffff;
  --muted:#6b7280;
  --bg:#ffffff;
  --bg-gray: #ebebeb;
  --surface:#ffffff;
  --panel:#f5f7f9;
  --border:rgba(0,0,0,.08);

  /* Typography */
  --font-display: 'Anton', sans-serif;      /* For big headlines */
  --font-heading: 'Bebas Neue', sans-serif; /* For subheads or nav */
  --font-body: 'Inter', 'Segoe UI', sans-serif; /* For paragraph text */

  /* Layout & effects */
  --page-max:1200px;
  --gutter:clamp(16px,2vw,24px);
  --radius:10px;
  --radius-sm:6px;
  --radius-lg:16px;
  --shadow:0 6px 24px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.06);

  /* States */
  --success:#16a34a;
  --info:#0b6fbf;
  --warning:#c2410c;
  --danger:#b91c1c;

  /* Focus */
  --focus:#38bdf8;
  --focus-ring:0 0 0 3px rgba(56,189,248,.45);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

.wrapper-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.5;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
}

h2 {
  font-size: 2.8rem;
  line-height: 1.5;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
}

h3 {
  font-size: 2.6rem;
  line-height: 1.5;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
}

p {
  font-size: 1.4rem;
  line-height: 1.75;
  font-family: var(--font-body);
  text-align: left;
}

a {
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1.75;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-white);
  transition: all 0.5s;
  z-index: 9999;
}

.header-scrolled {
  background: linear-gradient(135deg, rgba(4, 21, 98, 0.88) 0%, rgba(10, 42, 110, 0.88) 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.left-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  filter: brightness(0) invert(1);
  height: 50px;
  width: auto;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  position: relative;
}

.links li:has(.link-quote) {
  margin-left: auto;
}

.header .links .link {
  font-family: var(--font-body);
  position: relative;
  text-decoration: none;
  font-size: 1.6rem;
  color: var(--text-white);
  transition: color 0.3s ease;
}

.header .links .link:not(.link-quote)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.25s ease;
}

.header .links .link:hover::after {
  width: 100%;
}

.link-quote {
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text-white);
  background-color: #ff2e2e;
  margin-left: 12px;
  padding: 8px 22px;
  border: none;
  border-radius: 30px;
  font-family: var(--font-body);
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 46, 46, 0.35);
}

.link-quote:hover {
  background-color: #e62626;
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 46, 46, 0.45);
}

.link-login {
  cursor: pointer;
  font-size: 1.6rem;
  color: #fff;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.link-login::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.25s ease;
}

.link-login:hover {
  color: #fff;
}

.link-login:hover::after {
  width: 100%;
}

.link-logout {
  cursor: pointer;
  font-size: 1.6rem;
  color: #fff;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-logout:hover {
  opacity: 0.8;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--brand) 0%, #020617 100%);
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 999;
  transition: right 0.35s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-links li a {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-white);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-links li a:hover {
  color: #ff2e2e;
  padding-left: 10px;
}

.mobile-menu-cta {
  display: inline-block;
  text-align: center;
  padding: 16px 24px;
  background: #ff2e2e;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-menu-cta:hover {
  background: #e62626;
  transform: scale(1.02);
}

.mobile-menu-contact {
  margin-top: auto;
  text-align: center;
}

.mobile-menu-contact a {
  font-family: var(--font-body);
  font-size: 1.8rem;
  color: var(--text-white);
  text-decoration: none;
  opacity: 0.9;
}

.mobile-menu-contact a:hover {
  opacity: 1;
}

/* Mobile menu backdrop */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .links,
  .right-side {
    display: none;
  }

  .header {
    padding: 12px 20px;
  }

  .logo {
    height: 40px;
  }
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: var(--text-white);
  padding: 3rem 1.5rem 1rem;
  font-family: var(--font-body);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo {
  width: 160px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-white);
  line-height: 1.4;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-column h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin: 0.35rem 0;
}

.footer-column a {
  color: var(--text-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #38bdf8;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-socials a {
  color: var(--text-white);
  font-size: 1.3rem;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
  }
}

/* CTA SECTION (shared across pages) */
.cta {
  padding: 64px var(--gutter) 80px;
  background: var(--bg-gray);
}

.cta-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  box-shadow: 0 10px 40px rgba(4, 21, 98, 0.3);
}

.cta-content {
  flex: 1;
  min-width: 280px;
}

.cta-content h3 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.cta-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: #ff2e2e;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 46, 46, 0.35);
}

.cta-btn.primary:hover {
  background: #e62626;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 46, 46, 0.45);
}

.cta-btn.primary i {
  font-size: 0.9rem;
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .cta-content h3 {
    font-size: 1.6rem;
  }

  .cta-actions {
    justify-content: center;
    width: 100%;
  }

  .cta-btn {
    flex: 1;
    min-width: 140px;
  }
}

/* ===== MOBILE EMERGENCY BANNER ===== */
.emergency-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.emergency-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
}

.emergency-link > i:first-child {
  font-size: 1.5rem;
  animation: pulse-phone 1.5s ease-in-out infinite;
}

.emergency-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.emergency-text strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.emergency-text span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.emergency-link > i:last-child {
  font-size: 1rem;
  opacity: 0.7;
}

@keyframes pulse-phone {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Show only on mobile/tablet */
@media (max-width: 768px) {
  .emergency-banner {
    display: block;
  }
  
  /* Add padding so banner doesn't cover header */
  body {
    padding-top: 52px;
  }
}

/* Active/hover state for the banner */
.emergency-link:active {
  background: rgba(0, 0, 0, 0.1);
}