:root {
  /* Colors */
  --background: #FFFFFF;
  --surface: #F8FAFC;
  --ink: #1E293B;
  --muted: #64748B;
  --primary: #1E40AF;
  --on-primary: #FFFFFF;
  --accent: #F97316;
  --on-accent: #000000;
  --border: #E2E8F0;

  /* Typography */
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type sizes */
  --h1: clamp(28px, 5vw, 42px);
  --h2: clamp(22px, 4vw, 32px);
  --h3: clamp(18px, 3vw, 24px);
  --body: 16px;
  --small: 14px;

  /* Line heights */
  --lh-h1: 1.1;
  --lh-h2: 1.2;
  --lh-h3: 1.3;
  --lh-body: 1.5;
  --lh-small: 1.4;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  /* Radius */
  --radius: 4px;

  /* Shadow */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* Container */
  --container-max: 1100px;
  --container-pad-mobile: 24px;
  --container-pad-desktop: 48px;

  /* Header */
  --header-height-mobile: 56px;
  --header-height-desktop: 64px;
}

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

/* Images should not exceed their container width */
img {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--background);
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: var(--body);
  line-height: var(--lh-body);
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: var(--h1);
  line-height: var(--lh-h1);
}

h2 {
  font-size: var(--h2);
  line-height: var(--lh-h2);
  margin-top: -1px;
}

h3 {
  font-size: var(--h3);
  line-height: var(--lh-h3);
}

/* TBC class for pending values */
.tbc {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dashed;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--container-pad-mobile);
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-2);
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: var(--container-pad-mobile);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  height: var(--header-height-mobile);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: var(--space-2);
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--primary);
}

.nav-list a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* Nav open state */
header nav[aria-label="Main navigation"].open .nav-list {
  display: block;
}

/* Hero section */
#hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  padding-block: var(--space-5);
  padding-inline: 20px;
  background-color: #333; /* Fallback if image doesn't load */
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--on-primary);
  padding: var(--space-5) 0;
}

.hero-content .container {
  padding-inline: 20px;
}

.hero-content h1 {
  color: var(--on-primary);
  margin-bottom: var(--space-3);
}

.hero-subhead {
  color: var(--on-primary);
  font-size: var(--body);
  margin-bottom: var(--space-4);
  max-width: 500px;
}

.image-credit {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  text-align: right;
  font-size: var(--small);
  color: var(--on-primary);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: var(--radius);
}

/* Logo link - prevent clipping at all viewports */
header a[aria-label*="home"] {
  flex-shrink: 0;
  overflow: visible;
}

header svg {
  width: 180px !important;
  height: auto !important;
}
.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #ea580c;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: var(--space-2);
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Pricing section */
.pricing-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pricing-item {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-item h3 {
  margin-bottom: var(--space-1);
}

.pricing-item p {
  margin: 0;
  color: var(--muted);
}

.pricing-note {
  margin-top: var(--space-4);
  color: var(--muted);
  font-style: italic;
}

/* Contact section */
.contact-info {
  margin: var(--space-4) 0;
}

.contact-info p {
  margin: var(--space-2) 0;
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--surface);
  padding: var(--space-4) 0;
  text-align: center;
}

footer p {
  margin: var(--space-2) 0;
}

/* Section padding for non-hero sections */
section:not(#hero) {
  padding-block: var(--space-5);
}

@media (min-width: 768px) {
  section:not(#hero) {
    padding-block: var(--space-6);
  }

  .container {
    padding: 0 var(--container-pad-desktop);
  }
}

/* Desktop styles (768px and above) */
@media (min-width: 768px) {
  header {
    height: var(--header-height-desktop);
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: var(--space-2);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: var(--space-6) 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1180px) {
  header svg {
    width: 160px !important;
    height: auto !important;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }

  .hero-content > * {
    min-width: 0;
    flex: 1 1 30%;
    max-width: 30%;
  }

  .hero-background {
    flex: 0 0 60%;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 480px) {
  header svg {
    width: 140px !important;
    height: auto !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
