/* ===========================
   SELF-HOSTED FONTS
   =========================== */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/roboto-condensed-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/roboto-condensed-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  --brand: #215269;
  --brand-dark: #1a3f52;
  --footer-bg: #090e11;
  --light-bg: #fafafa;
  --alt-bg: #ebeeef;
  --text-dark: #000000;
  --text-light: #ffffff;
  --font: 'Roboto Condensed', sans-serif;
  --nav-height: 68px;
  --section-padding: 80px 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   NAVIGATION
   =========================== */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: var(--nav-height);
  transition: background 0.3s;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
  flex-shrink: 0;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1050;
  padding: calc(var(--nav-height) + 20px) 24px 24px;
  transition: left 0.3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.mobile-drawer.open {
  left: 0;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  padding: 10px 12px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--alt-bg);
}

.mobile-drawer .nav-link:hover {
  color: var(--brand);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
}

.drawer-overlay.open {
  display: block;
}

/* ===========================
   HERO
   =========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 40px 24px;
  color: var(--text-light);
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
}

.hero-content h2 {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  opacity: 0.92;
}

/* ===========================
   SECTIONS — GENERAL
   =========================== */
.section-brand {
  background: var(--brand);
  color: var(--text-light);
  padding: var(--section-padding);
}

.section-light {
  background: var(--light-bg);
  color: var(--text-dark);
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light);
}

.section-title.dark {
  color: var(--text-dark);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border: none;
  margin: 0 auto 20px;
}

.section-divider.dark {
  background: var(--brand);
}

.section-slogan {
  font-size: 1.05rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   ABOUT
   =========================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 12px;
}

.about-text .section-divider {
  margin-left: 0;
}

.about-text p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  opacity: 0.92;
  margin-top: 12px;
}

/* ===========================
   CARDS GRID
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  border-bottom: 4px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-bottom-color: var(--brand);
}

.card.card-brand {
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border-bottom-color: transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.card.card-brand:hover {
  background: rgba(255,255,255,0.13);
  border-bottom-color: rgba(255,255,255,0.4);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
  flex: 1;
}

.card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-intro {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 10px;
}

.card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-bullets li {
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.85;
  padding: 4px 0 4px 18px;
  position: relative;
}

.card-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: 0.85rem;
}

.card.card-brand .card-bullets li::before {
  color: rgba(255,255,255,0.7);
}

.card-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.85;
}

/* ===========================
   CRA DOWNLOAD BUTTON
   =========================== */
.btn-download {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text-light);
  color: var(--brand);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid var(--text-light);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 40px;
}

.btn-download:hover {
  background: transparent;
  color: var(--text-light);
}

/* ===========================
   CONTACT
   =========================== */
.contact-form {
  max-width: 820px;
  margin: 0 auto 40px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.btn-submit {
  padding: 12px 40px;
  background: var(--brand);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--brand);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-submit:hover {
  background: transparent;
  color: var(--brand);
}

.form-thank-you {
  display: none;
  text-align: center;
  margin-top: 16px;
  padding: 14px;
  background: #e6f4ea;
  color: #256029;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
}

.contact-details {
  text-align: center;
  margin-top: 10px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.75;
}

.contact-locations {
  font-size: 0.95rem;
  color: #555;
  margin-top: 6px;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--footer-bg);
  color: var(--text-light);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer-name {
  font-weight: 700;
  font-size: 1rem;
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
}

/* ===========================
   BACK TO TOP
   =========================== */
#gotoTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#gotoTop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 991px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image img {
    height: 300px;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-text .section-divider {
    margin: 0 auto 12px;
  }

  .about-text p {
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 767px) {
  :root {
    --section-padding: 55px 0;
  }

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  /* Nav logo text hidden on very small screens */
  .nav-logo span {
    display: none;
  }

  /* Hero */
  #hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + 10px);
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-content h2 {
    font-size: 0.95rem;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 48px;
  }

  .about-image img {
    height: 220px;
  }

  .btn-download {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
}

/* Honeypot anti-spam field — hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Privacy notice under contact forms */
.form-privacy-note {
  margin: 14px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}
.form-privacy-note a {
  color: #0a5b7a;
  text-decoration: underline;
}
