/* ==========================================================================
   D.Smart Development Inc. — Shared Styles
   ========================================================================== */

:root {
  /* Color tokens */
  --navy-950: #0F1728;
  --navy-900: #16213D;
  --navy-800: #1F3358;
  --navy-700: #2C4670;
  --cream-100: #F4F0E6;
  --cream-50: #FAF8F2;
  --white: #FFFFFF;
  --accent-blue: #8FB3D9;
  --powder-blue: #BBDCF2;
  --accent-yellow: #F2B705;
  --ink: #16213D;
  --text-muted: #5B6472;
  --text-on-navy: #E7ECF5;
  --text-on-navy-muted: #AEBBD4;
  --border-soft: #DDD6C6;
  --success: #2E7D4F;
  --danger: #B3261E;

  /* Type */
  --font-display: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --radius: 4px;
  --max-width: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class], nav ul, nav ol { list-style: none; }
a { color: inherit; }
button { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--navy-900);
}

h1 { font-size: clamp(1.85rem, 6vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.03em; }

p { color: var(--text-muted); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-700);
}
.eyebrow.on-navy { color: var(--accent-blue); }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* ---- Focus visibility (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent-yellow);
  color: var(--navy-950);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

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

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  background: var(--navy-900);
  color: var(--text-on-navy);
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 3px solid var(--accent-yellow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}
.brand-text {
  font-family: var(--font-display);
  line-height: 1.1;
}
.brand-text .b-main {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: block;
}
@media (min-width: 900px) {
  .brand-text .b-main { font-size: 2rem; }
}
.brand-text .b-sub {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  color: var(--accent-blue);
  display: block;
  font-weight: 500;
}
@media (min-width: 900px) {
  .brand-text .b-sub { font-size: 0.92rem; }
}

/* Very narrow phones: scale the brand down just enough to never overflow */
@media (max-width: 360px) {
  .brand-text .b-main { font-size: 1.35rem; }
  .brand-text .b-sub { font-size: 0.63rem; letter-spacing: 0.1em; }
  .header-inner { gap: var(--space-1); }
}

.main-nav ul {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-navy-muted);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--accent-yellow);
}
/* the quote button inside the mobile menu keeps button styling, not link styling */
.main-nav .btn,
.main-nav .btn:hover {
  color: var(--navy-950);
  border-bottom-color: transparent;
}

.header-cta {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
@media (min-width: 900px) {
  .header-cta { display: flex; }
}

/* Phone + quote button live inside the menu on small screens */
.nav-mobile-only { display: none; }
@media (max-width: 899px) {
  .nav-mobile-only { display: block; }
  .main-nav.is-open .nav-mobile-only { margin-top: 0.35rem; }
  .main-nav.is-open .nav-mobile-only .btn { width: 100%; }
}
.header-phone {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  align-items: center;
  gap: 0.4rem;
}
@media (min-width: 900px) {
  .header-phone { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--navy-700);
  color: var(--white);
  padding: 0.55rem 0.7rem;
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle:active { background: var(--navy-800); }
.nav-toggle[aria-expanded="true"] {
  background: var(--navy-800);
  border-color: var(--accent-yellow);
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}
.main-nav {
  display: none;
}
@media (min-width: 900px) {
  .main-nav { display: block; }
}
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--navy-900);
  border-bottom: 3px solid var(--accent-yellow);
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.main-nav.is-open ul {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-yellow);
  color: var(--navy-950);
}
.btn-primary:hover { background: #ffcb2e; }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero (diagonal split — signature motif carried from the flyer)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--text-on-navy);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 560px;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6) var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  max-width: 640px;
}
@media (min-width: 900px) {
  .hero-content { padding: var(--space-6) 0 var(--space-6) var(--space-3); margin-left: auto; }
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--accent-blue); }
.hero-lede { color: var(--text-on-navy-muted); font-size: 1.1rem; max-width: 46ch; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.hero-visual {
  position: relative;
  background: var(--cream-100);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  min-height: 120px;
}
@media (min-width: 900px) {
  .hero-visual { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%); min-height: 0; }
}

/* Trust strip */
.trust-strip {
  background: var(--cream-100);
  border-bottom: 1px solid var(--border-soft);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  padding-block: var(--space-2);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  text-transform: uppercase;
}
.trust-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--navy-700); }

/* ==========================================================================
   Tape-measure divider — signature structural element
   ========================================================================== */
.tape-divider {
  height: 34px;
  width: 100%;
  display: block;
  color: var(--border-soft);
}
.tape-divider.on-navy { color: var(--navy-700); }
.tape-divider rect.tape-bg { fill: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: var(--space-6);
}
.section-navy {
  background: var(--navy-900);
  color: var(--text-on-navy);
}
.section-navy h2 { color: var(--white); }
.section-navy p { color: var(--text-on-navy-muted); }
.section-cream { background: var(--cream-50); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-5);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* Grids */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card-icon {
  width: 48px; height: 48px;
  color: var(--navy-800);
  margin-bottom: var(--space-2);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* Service overview cards (Home) — no icon, so lead with the heading */
.grid-2 > .card { padding: var(--space-4); }
.grid-2 > .card h3 {
  font-size: 1.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 3px solid var(--accent-yellow);
}

.value-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: var(--space-3);
  color: var(--text-on-navy);
}
.value-card .card-icon { color: var(--accent-yellow); }
.value-card h3 { color: var(--white); }
.value-card p { color: var(--text-on-navy-muted); font-size: 0.95rem; }

.checklist { display: flex; flex-direction: column; gap: 0.55rem; margin-top: var(--space-2); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.checklist svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2rem; color: var(--success); }

/* CTA banner */
.cta-banner {
  background: var(--navy-950);
  color: var(--white);
  padding-block: var(--space-5);
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-2); }
.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: var(--text-on-navy-muted);
  padding-block: var(--space-5) var(--space-3);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-4);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-2); }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-weight: 700; letter-spacing: 0.03em; font-size: 1.25rem; }
.site-footer h4 {
  color: var(--powder-blue);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}
.footer-list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-list a { text-decoration: none; color: var(--powder-blue); font-size: 0.95rem; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }
.footer-contact-item { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--powder-blue); }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; color: var(--powder-blue); }
.footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-header {
  background: var(--navy-900);
  color: var(--white);
  padding-block: var(--space-5) var(--space-4);
  position: relative;
}
.page-header .eyebrow { color: var(--accent-blue); margin-bottom: 0.35rem; display: block; }
.page-header h1 { color: var(--white); }
.page-header p { color: var(--text-on-navy-muted); max-width: 60ch; margin-top: 0.75rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-on-navy-muted);
  margin-bottom: var(--space-2);
}
.breadcrumb a { color: var(--accent-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Services page specific
   ========================================================================== */
.service-list {
  display: grid;
  gap: var(--space-4) var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .service-list { grid-template-columns: 1fr 1fr; }
}
.service-item {
  border-left: 3px solid var(--accent-yellow);
  padding: 0.1rem 0 0.1rem var(--space-3);
}
.service-item h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}
.service-item p {
  font-size: 0.97rem;
  max-width: 48ch;
}

/* Illustration panel (About page story section) */
.story {
  display: grid;
  gap: var(--space-2) var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .story { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}
.story-head .eyebrow { display: block; margin-bottom: 0.5rem; }
.story-body p { max-width: 62ch; font-size: 1.03rem; }
.story-body p + p { margin-top: var(--space-2); }

.service-num {
  font-family: var(--font-display);
  color: var(--accent-blue-dark, var(--navy-700));
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  display: block;
}

/* ==========================================================================
   About page specific
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 620px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  text-align: center;
  padding: var(--space-3) var(--space-1);
  border-left: 3px solid var(--accent-yellow);
  background: var(--navy-800);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.stat .label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-on-navy-muted);
}

/* ==========================================================================
   Contact page / Forms
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 1.1fr 0.9fr; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.form-row { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.field .hint { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid #C9C2AE;
  border-radius: var(--radius);
  background: var(--cream-50);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-700);
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(44,70,112,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
fieldset {
  border: 1.5px solid #C9C2AE;
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3) var(--space-3);
  margin: 0 0 var(--space-3);
}
fieldset legend {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-800);
  padding-inline: 0.4rem;
}
.radio-group { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 0.4rem; }
.radio-option { display: flex; align-items: center; gap: 0.5rem; }
.radio-option input { width: 18px; height: 18px; accent-color: var(--navy-800); }
.radio-option label { text-transform: none; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; color: var(--ink); }

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}
.required-star { color: var(--danger); }

.contact-info-card {
  background: var(--navy-900);
  color: var(--text-on-navy);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.contact-info-card h3 { color: var(--white); margin-bottom: var(--space-2); }
.contact-info-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.contact-info-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-info-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-yellow); }
.contact-info-item a { color: var(--text-on-navy); text-decoration: none; }
.contact-info-item a:hover { color: var(--accent-blue); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 0.35rem 0; border-bottom: 1px solid var(--navy-800); color: var(--text-on-navy-muted); }
.hours-table td:last-child { text-align: right; color: var(--white); font-weight: 500; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  margin-top: var(--space-3);
}
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

/* Success message */
.form-success {
  display: none;
  background: #EAF6EE;
  border: 1.5px solid var(--success);
  color: #1E5A38;
  padding: var(--space-3);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}
.form-success.is-visible { display: block; }
.form-success strong { display: block; margin-bottom: 0.25rem; font-family: var(--font-display); letter-spacing: 0.03em; }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }

/* ==========================================================================
   Intro splash — brand mark on first load of a visit
   The dismissal is a pure CSS animation, so it clears itself even if
   JavaScript fails. JS only decides whether to show it at all.
   ========================================================================== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  animation: splash-out 0.55s ease 2.45s forwards;
}
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  animation: splash-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes splash-in {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.splash-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.splash-name .s-main {
  color: var(--white);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
@media (min-width: 700px) {
  .splash-name .s-main { font-size: 3.1rem; }
}
.splash-name .s-sub {
  color: var(--accent-blue);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 500;
}
@media (min-width: 700px) {
  .splash-name .s-sub { font-size: 1.05rem; }
}
.splash-name .s-rule {
  display: block;
  width: 0;
  height: 3px;
  background: var(--accent-yellow);
  animation: splash-rule 0.7s ease 0.3s forwards;
}
@keyframes splash-rule {
  to { width: 90px; }
}

/* Already seen this visit: never render it at all */
.splash-seen #splash { display: none; }

/* Respect a reduced-motion preference: no animation, no splash */
@media (prefers-reduced-motion: reduce) {
  #splash { display: none; }
}

/* ==========================================================================
   Mobile refinements
   On a phone the nested padding (container > card > fieldset > input) ate
   about half the screen width, and a bordered fieldset inside a bordered
   card read as visual clutter. Here the boxes are flattened into plainly
   spaced sections and the padding is reclaimed.
   ========================================================================== */
@media (max-width: 700px) {

  /* reclaim horizontal space */
  .container { padding-inline: 1.15rem; }
  .section { padding-block: var(--space-5); }
  .page-header { padding-block: var(--space-4) var(--space-3); }

  /* cards: lighter padding so content isn't squeezed */
  .form-card,
  .contact-info-card { padding: var(--space-3); }
  .contact-layout { gap: var(--space-4); }

  /* flatten the fieldset: no box-inside-a-box, just a titled section */
  .form-card fieldset {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 var(--space-4);
  }
  .form-card fieldset legend {
    padding-inline: 0;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }
  .form-card fieldset + .form-row { margin-top: var(--space-4); }

  /* radio choices stack, with tap targets big enough for a thumb */
  .radio-group {
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    border: 1.5px solid #C9C2AE;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .radio-option {
    width: 100%;
    padding: 0.85rem 0.85rem;
    gap: 0.75rem;
    background: var(--cream-50);
  }
  .radio-option + .radio-option { border-top: 1.5px solid #C9C2AE; }
  .radio-option input { width: 21px; height: 21px; }
  .radio-option label { flex: 1; }

  /* comfortable field spacing and taller inputs for touch */
  .form-row { margin-bottom: var(--space-3); }
  .field label { font-size: 0.82rem; }
  .field input,
  .field select,
  .field textarea { padding: 0.85rem 0.8rem; }
  .field textarea { min-height: 140px; }

  /* the map is supporting info, not the main event */
  .map-embed iframe { height: 180px; }

  /* headings sit closer to their content on a small screen */
  .section-head { margin-bottom: var(--space-4); }
  .hero-content {
    padding-block: var(--space-5) var(--space-4);
    padding-inline: 0;  /* .container already pads; avoid double indent */
  }
}
