/* 1rem = 10px in a browser with the default 16px base */
html { font-size: 62.5%; scroll-behavior: smooth; scroll-padding-top: 10rem; }

:root {
  --blue: #00205b;
  --red: #bf0d3e;
  --text: #222;
  --muted: #444;
  --bg-soft: #f4f5f8;
  --max: 120rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--blue); line-height: 1.2; margin: 0 0 1.6rem; font-weight: normal; }
h1 { font-size: clamp(3.2rem, 2.4rem + 2vw, 4.6rem); }
h2 { font-size: clamp(2.8rem, 2.2rem + 1.4vw, 3.6rem); }
h3 { font-size: 2.4rem; }
p { margin: 0 0 1.6rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e3e5ea;
  box-shadow: 0 2px 8px rgba(0, 32, 91, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 9rem; }
.brand img { height: 7rem; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 3.2rem; }
.site-nav a {
  display: block; padding: .8rem 0;
  font-size: 1.7rem; color: var(--blue); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle { display: none; }

/* Hero */
.hero {
  background: #2b2b2d url("hero.jpg") left center / cover no-repeat;
  min-height: clamp(48rem, 44vw, 72rem);
  display: flex; align-items: center;
  padding: 6.4rem 0;
}
.hero-inner { display: flex; justify-content: flex-end; }
.hero-box {
  width: min(56rem, 48%);
  background: rgba(255, 255, 255, .95);
  border-top: 6px solid var(--red);
  padding: 4rem 4.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.hero-box p { font-size: 1.8rem; color: var(--text); }

/* What we do */
.mission { padding: 8rem 0; }
.mission h2 { text-align: center; margin-bottom: 4.8rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; }
.pillar { border-top: 4px solid var(--blue); padding-top: 2.4rem; }
.pillar p { color: var(--muted); }

/* Notice */
.notice { background: var(--bg-soft); padding: 7.2rem 0; text-align: center; border-top: 4px solid var(--red); }
.notice p { margin: 0 auto; color: var(--muted); }

/* Footer */
.site-footer { background: var(--blue); color: #fff; padding: 2.8rem 0; font-size: 1.5rem; text-align: center; }
.site-footer p { margin: 0 auto; }

/* Tablet: image area shifts so the box stays clear of the pieces */
@media (max-width: 1100px) {
  .hero-box { width: min(52rem, 56%); padding: 3.2rem; }
}

/* Mobile */
@media (max-width: 760px) {
  .header-inner { min-height: 7rem; }
  .brand img { height: 5rem; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 4.4rem; height: 4.4rem; padding: 1rem;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--blue); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e3e5ea;
    box-shadow: 0 8px 16px rgba(0, 32, 91, .1);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .8rem 2.4rem 1.6rem; }
  .site-nav a { padding: 1.2rem 0; border-bottom: 1px solid #eee; }
  .site-nav li:last-child a { border-bottom: 0; }

  /* Image becomes a banner; text box sits below it */
  .hero {
    display: block; min-height: 0; padding: 0;
    background: #fff;
  }
  .hero::before {
    content: ""; display: block;
    aspect-ratio: 1900 / 839;
    background: url("hero.jpg") left center / cover no-repeat;
  }
  .hero-inner { padding: 0; }
  .hero-box { width: 100%; box-shadow: none; padding: 3.2rem 2.4rem; }

  .mission { padding: 5.6rem 0; }
  .mission h2 { margin-bottom: 3.2rem; }
  .pillars { grid-template-columns: 1fr; gap: 2.8rem; }
  .notice { padding: 5.6rem 0; }
}
