/* ----------------------------------------
   1. Reset and Base Styles
---------------------------------------- */
:root {
  --site-max: 1400px;
  --content-max: 1200px;
  --site-gutter: clamp(1rem, 4vw, 4rem);
  --card-radius: 10px;
  --card-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.14);
  --nav-top-offset: 2.5em; /* your current nav top */
  --nav-height: 3em; /* matches #nav link height/line-height */
  --hero-gutter: 1rem; /* side padding inside hero */
  --hero-max-width: 900px; /* max width for hero message box */
  --hero-title-gap: 1.1rem; /* gap between title and box */
}

/* General Reset */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Typography Reset */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* General Link Styling */
a {
  color: #1566a0; /* Passes WCAG AA on light backgrounds */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Link Hover State — works on dark sections; light sections override below */
a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Link Focus State */
a:focus {
  outline: 2px solid #cd533b;
  outline-offset: 2px;
}

/* Visited Links */
a:visited {
  color: #1566a0;
}

body {
  overflow-x: hidden;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.lead-section {
  text-align: center;
  padding: 3em 1.5em;
  background-color: rgba(255, 255, 255, 0.85);
  padding-bottom: 4em;
}

.lead-quote {
  margin: 0 0 1.5em 0;
  font-style: italic;
}

.lead-quote p {
  font-size: 1.4em;
  font-style: italic;
  letter-spacing: 0.03em;
}

.lead-quote footer {
  margin-top: 0.75em;
  font-size: 0.9em;
  opacity: 0.8;
}

.lead-in {
  max-width: 700px;
  margin: 2em auto 0 auto;
  line-height: 1.7;
  font-size: 1.05em;
}

/* ----------------------------------------
   Section Title (Global)
---------------------------------------- */
section {
  position: relative;
}

.section-title {
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -2em; /* closer to old wrapper feel, adjust if needed */

  /* wider like the old template */
  width: min(30em, calc(90vw - (2 * var(--site-gutter))));
  text-align: center;

  font-weight: 800;
  letter-spacing: 0.22em; /* old was wider tracking */
  text-transform: uppercase;

  /* keep your responsive sizing, but you can bump the max a bit */
  font-size: clamp(0.95em, 1.6vw, 1.35em);

  /* taller like the old template */
  height: 3.25em;
  line-height: 3.25em;

  /* horizontal padding still helps on small screens */
  padding: 0 2.25rem;

  border-radius: 6px;
  background: inherit;

  z-index: 10;
  pointer-events: none;
}

/* the two little "tab" corners */
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 10px;
  height: 10px;
  background: inherit; /* same as the tab background */
  transform: rotate(45deg);
  z-index: -1; /* sits behind the tab */
}

.section-title::before {
  left: -5px;
}
.section-title::after {
  right: -5px;
}

.section-title.light {
  color: #0a2463;
  background: inherit;
  text-shadow:
    0 1px 0 rgba(252, 251, 251, 0.85),
    0 0 12px rgba(51, 50, 50, 0.95);
}

.section-title.dark {
  color: #ffffff;
  background: inherit;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 0 10px rgba(25, 76, 194, 0.85),
    0 0 22px rgba(20, 67, 177, 0.95);
}

/* ----------------------------------------
   Global Container
---------------------------------------- */
.container,
section .container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

.container.narrow {
  max-width: var(--content-max);
}

/* Global button styling */
.actions .button,
.button {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: #cd533b;
  color: #fff;
  border-radius: var(--card-radius);
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.actions .button:hover,
.button:hover {
  background: #b44733;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.actions .button:active,
.button:active {
  transform: translateY(0px);
}
