/* ═══════════════════════════════════════════════════════════════
   Susan Hubbard for Probate Court — "Midnight Civic" Theme
   Mobile-first, fluid-responsive campaign site
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Custom Properties ────────────────────────────────────── */
:root {
  /* Palette */
  --midnight:    #0d1b2a;
  --navy:        #1b2d45;
  --slate:       #415a77;
  --steel:       #778da9;
  --gold:        #c9a84c;
  --gold-light:  #dac17a;
  --gold-dim:    rgba(201, 168, 76, 0.15);
  --ivory:       #faf8f5;
  --cream:       #f0ece4;
  --text:        #1a1a2e;
  --text-muted:  #5a6270;
  --white:       #ffffff;
  --border:      rgba(0, 0, 0, 0.07);
  --shadow-sm:   0 1px 3px rgba(13, 27, 42, 0.08);
  --shadow-md:   0 4px 16px rgba(13, 27, 42, 0.1);
  --shadow-lg:   0 8px 32px rgba(13, 27, 42, 0.14);

  /* Typography */
  --font-display: "Libre Baskerville", "Georgia", serif;
  --font-body:    "Outfit", system-ui, -apple-system, sans-serif;

  /* Fluid sizes */
  --text-xs:   clamp(0.75rem,   0.72rem + 0.15vw,  0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.16vw,  0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem  + 0.2vw,   1.0625rem);
  --text-lg:   clamp(1.0625rem, 1rem    + 0.35vw,  1.25rem);
  --text-xl:   clamp(1.25rem,   1.1rem  + 0.6vw,   1.625rem);
  --text-2xl:  clamp(1.5rem,    1.2rem  + 1.3vw,   2.25rem);
  --text-3xl:  clamp(1.875rem,  1.4rem  + 2vw,     3rem);
  --text-4xl:  clamp(2.25rem,   1.5rem  + 3vw,     4rem);

  /* Fluid spacing */
  --space-xs:  clamp(0.5rem,   0.4rem  + 0.5vw,   0.75rem);
  --space-sm:  clamp(0.75rem,  0.6rem  + 0.75vw,  1.25rem);
  --space-md:  clamp(1.25rem,  1rem    + 1.25vw,  2rem);
  --space-lg:  clamp(2rem,     1.5rem  + 2.5vw,   3.5rem);
  --space-xl:  clamp(3rem,     2rem    + 4vw,     5.5rem);
  --space-2xl: clamp(4rem,     2.5rem  + 5vw,     7rem);

  /* Layout */
  --nav-height: clamp(60px, 56px + 1vw, 76px);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration:   0.4s;
}


/* ── 2. Base / Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ivory);
  padding-top: var(--nav-height);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--gold-light);
}

::selection {
  background-color: var(--gold);
  color: var(--midnight);
}


/* ── 3. Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--midnight);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-muted);
}

.section-heading {
  font-weight: 700;
  color: var(--midnight);
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-top: var(--space-xs);
  border-radius: 2px;
}

.text-center .section-heading::after,
.section-heading.text-center::after {
  margin-left: auto;
  margin-right: auto;
}


/* ── 4. Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--midnight);
  display: flex;
  align-items: center;
  transition: background-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.site-nav.scrolled {
  background-color: rgba(13, 27, 42, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  width: min(92%, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease-out);
  white-space: nowrap;
}

.nav-brand:hover {
  color: var(--white);
  opacity: 0.85;
}

.nav-brand img {
  width: clamp(28px, 26px + 0.5vw, 36px);
  height: clamp(28px, 26px + 0.5vw, 36px);
  object-fit: contain;
  border-radius: 4px;
}

/* Desktop nav links */
.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(0.25rem, 0.5vw, 0.75rem);
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.5rem clamp(0.5rem, 0.6vw, 1rem);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--midnight);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-left: 0.5rem;
}

.nav-links .nav-cta:hover {
  background: var(--gold-light);
  color: var(--midnight);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out),
              opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile off-canvas menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100dvh;
  background-color: var(--midnight);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--duration) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease-out),
              visibility var(--duration) var(--ease-out);
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-links li {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu.open .mobile-menu-links li {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.mobile-menu.open .mobile-menu-links li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-links li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-links li:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu-links a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--gold);
  padding-left: var(--space-xs);
}

.mobile-menu-links .mobile-cta {
  display: inline-block;
  margin-top: var(--space-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--midnight);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 100px;
  border-bottom: none;
  text-align: center;
}

.mobile-menu-links .mobile-cta:hover {
  padding-left: var(--space-lg);
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle,
  .mobile-menu,
  .mobile-backdrop {
    display: none;
  }
}


/* ── 5. Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(60vh, 50vh + 15vw, 85vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--midnight);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 27, 42, 0.92) 0%,
    rgba(27, 45, 69, 0.8) 40%,
    rgba(65, 90, 119, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.hero-content h1 {
  color: var(--white);
  font-size: var(--text-4xl);
  max-width: 18ch;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  max-width: 50ch;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Gold accent line on hero */
.hero-content::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: var(--space-md);
  border-radius: 2px;
}


/* ── 6. Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: clamp(0.75rem, 0.7rem + 0.3vw, 1rem) clamp(1.5rem, 1.25rem + 1vw, 2.5rem);
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--midnight);
  border-color: var(--gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
  color: var(--midnight);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background-color: var(--midnight);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: var(--midnight);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
  color: var(--midnight);
}

.btn-lg {
  font-size: var(--text-base);
  padding: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem) clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1.25rem;
}

.btn-block {
  width: 100%;
}


/* ── 7. Page Headers ─────────────────────────────────────────── */
.page-header {
  background-color: var(--midnight);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  width: min(92%, 1200px);
  margin: 0 auto;
  position: relative;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  max-width: 55ch;
}


/* ── 8. Content Sections ─────────────────────────────────────── */
.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background-color: var(--cream);
}

.section-dark {
  background-color: var(--midnight);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .section-heading::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.container-narrow {
  width: min(92%, 1200px);
  margin: 0 auto;
}

.container-prose {
  width: min(92%, 720px);
  margin: 0 auto;
}


/* ── 9. Grid Layouts ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1.5fr;
  }
  .split-reverse {
    grid-template-columns: 1.5fr 1fr;
  }
}


/* ── 10. Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--border);
}

.card-flat:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.qualification-card {
  text-align: center;
  border-top: 3px solid var(--gold);
  padding-top: var(--space-lg);
}

.qualification-card .card-icon {
  font-size: var(--text-3xl);
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.qualification-card h5 {
  margin-bottom: var(--space-xs);
}

.qualification-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.endorsement-card {
  border-left: 3px solid var(--gold);
  border-top: none;
}

.endorsement-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 var(--space-sm);
}

.endorsement-card .endorser-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--midnight);
  margin-bottom: 2px;
}

.endorsement-card .endorser-title {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.update-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.update-card .card-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.update-card h5 a {
  color: var(--midnight);
  text-decoration: none;
  transition: color 0.2s ease;
}

.update-card h5 a:hover {
  color: var(--gold);
}

.update-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  flex: 1;
}

.update-card .card-img {
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 16 / 9;
}


/* ── 11. Candidate Portrait ──────────────────────────────────── */
.candidate-portrait {
  max-width: clamp(200px, 35vw, 320px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}


/* ── 12. About/Bio Section ───────────────────────────────────── */
.bio-text p {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.bio-text p:first-child {
  font-size: var(--text-lg);
  color: var(--text);
}

.milestone-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--midnight);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.35em 1em;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}


/* ── 13. Post Content ────────────────────────────────────────── */
.post-content h2 {
  margin-top: var(--space-lg);
  font-size: var(--text-2xl);
}

.post-content h3 {
  margin-top: var(--space-md);
  font-size: var(--text-xl);
}

.post-content p {
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.post-content ul,
.post-content ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-sm);
}

.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}


/* ── 14. Donate Page ─────────────────────────────────────────── */
.donate-terms {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  margin-bottom: var(--space-lg);
}

.donate-terms h5 {
  color: var(--midnight);
  margin-bottom: var(--space-sm);
}

.donate-terms ul {
  padding-left: 1.25rem;
}

.donate-terms li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: var(--text-sm);
}

.donate-terms .small-note {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-top: var(--space-sm);
}

.donate-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
}

.preset-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-amount {
  min-width: clamp(70px, 15vw, 90px);
  padding: 0.6rem 1rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--midnight);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.preset-amount:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.preset-amount.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: var(--midnight);
}

.donation-summary {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.donation-summary .fee-row {
  color: var(--text-muted);
  font-size: var(--text-sm);
}


/* ── 15. Forms ───────────────────────────────────────────────── */
.form-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-control,
.form-select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.65rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  outline: none;
}

.form-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px var(--gold-dim);
  border-color: var(--gold);
}

.input-group-text {
  background-color: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-muted);
}

.alert {
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
}


/* ── 16. CTA Sections ────────────────────────────────────────── */
.cta-section {
  background-color: var(--midnight);
  color: var(--white);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
  font-size: var(--text-lg);
}


/* ── 17. Footer ──────────────────────────────────────────────── */
.site-footer {
  background-color: var(--midnight);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  width: min(92%, 1200px);
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-img {
  max-width: clamp(220px, 40vw, 400px);
  border-radius: var(--radius-sm);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h6 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: var(--space-md) 0;
}

.footer-legal {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.footer-legal p {
  margin: 0 0 0.25rem;
}


/* ── 18. Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 var(--space-xs);
  font-size: var(--text-sm);
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--gold);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-item.active {
  color: var(--white);
}


/* ── 19. Status/Result Pages ─────────────────────────────────── */
.result-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  display: block;
}

.result-icon.success { color: #2ecc71; }
.result-icon.error   { color: var(--steel); }

.result-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 5vw, 8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: var(--space-sm);
}


/* ── 20. Scroll Reveal Animations ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }


/* ── 21. Utility Classes ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }

.mb-0  { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.flex-wrap { flex-wrap: wrap; }
.d-flex    { display: flex; }
.d-block   { display: block; }
.d-none    { display: none; }
.d-inline-block { display: inline-block; }

.justify-between { justify-content: space-between; }
.align-center    { align-items: center; }
.align-start     { align-items: flex-start; }

.w-100 { width: 100%; }

.fw-bold { font-weight: 700; }
.fst-italic { font-style: italic; }

.rounded { border-radius: var(--radius-md); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

.bg-cream { background-color: var(--cream); }
.bg-white { background-color: var(--white); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-danger { color: #dc3545; }
.text-success { color: #2ecc71; }

/* Alert variants */
.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger,
.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-dismissible {
  position: relative;
  padding-right: 3rem;
}

.btn-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
  line-height: 1;
  padding: 0.25rem;
}

.btn-close::after {
  content: "\00d7";
}

.btn-close:hover {
  opacity: 1;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: var(--text-xs);
  margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-check-input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
}

.form-check-label {
  font-size: var(--text-sm);
}


/* ── 22. Bootstrap Overrides ─────────────────────────────────── */
/* Override Bootstrap primary colors to match our palette */
.bg-primary-dark {
  background-color: var(--midnight) !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.text-primary {
  color: var(--gold) !important;
}

.bg-light {
  background-color: var(--cream) !important;
}

.btn-outline-primary {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--text-sm);
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--midnight);
}

.btn-primary-bs {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--midnight);
}

.bg-primary {
  background-color: var(--gold) !important;
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--midnight);
}


/* ── 23. Grain/Texture Overlay ───────────────────────────────── */
.page-header::after,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ── 24. Print Styles ────────────────────────────────────────── */
@media print {
  .site-nav,
  .nav-toggle,
  .mobile-menu,
  .mobile-backdrop,
  .cta-section {
    display: none;
  }

  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }

  .page-header {
    background: #333;
    color: #fff;
  }
}
