@font-face {
  font-family: "Open Sans";
  src: url(fonts/OpenSans.ttf) format("truetype");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url(fonts/Roboto.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #103e62;
  --secondary: #0076bf;
  --base: #031120;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 16px/1.6 "Open Sans", system-ui, sans-serif;
  color: var(--base);
}

main { flex: 1; }

h1, h2 { font-family: Roboto, system-ui, sans-serif; }

a { color: inherit; }

.container {
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
}

/* Header */
.topbar-bg { background: #f1f1f1; }
.topbar {
  display: flex;
  justify-content: flex-end;
}
.topbar a, .mobile-menu a {
  padding: 1rem 1.25rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.topbar a:last-child { padding-right: 0; }
.topbar a:hover, .topbar a:focus-visible, .mobile-menu a:hover { color: var(--secondary); }

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
}
.header-row > a { min-width: 0; }
.logo { display: block; max-width: 100%; height: auto; }

.burger {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  position: relative;
  width: 2.25rem;
  height: 4px;
  border-radius: 4px;
  background: var(--primary);
  transition: transform .2s, background .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; }
.burger span::before { top: -10px; }
.burger span::after { top: 10px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-10px) rotate(-45deg); }

.mobile-menu:not([hidden]) { display: flex; flex-direction: column; border-top: 1px solid #ddd; }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: 455px; /* ponytail: min not fixed, so long text on mobile grows instead of clipping */
  padding-block: 2rem;
  background: url(assets/hero.jpg) center no-repeat;
  background-size: cover;
  color: var(--white);
}
.hero-text { width: 50%; }
.hero h1 { margin: 0; font-size: 43px; line-height: 1.15; }
.hero p { margin: 1rem 0 0; font-size: 18px; }

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--primary); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-block: 4rem;
}
.cards h2 { margin: 0; color: var(--primary); }
.cards p { margin: 1rem 0 0; }

/* Footer */
.site-footer {
  padding-block: 5rem 3rem;
  background: var(--primary);
  color: var(--white);
}
.footer-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 3rem; }
.footer-links nav { display: flex; flex-direction: column; gap: .3rem; }
.footer-links a { font-size: 1.1rem; text-decoration: none; }

@media (max-width: 991px) {
  .topbar-bg { display: none; }
  .burger { display: block; }
  .hero-text { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
