/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #12202e;
  background-color: #eef1f6;
}

/* Anchor offset so jumps don't hide under header */
:where(section[id]) {
  scroll-margin-top: 90px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #0b3a5d;
  color: #fff;
  z-index: 1000;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-light {
  background-color: #ffffff;
}

.section-gray {
  background: radial-gradient(circle at top left, #f7f9fc, #dde5f1);
}

.section-dark {
  background: linear-gradient(120deg, #071c30, #0b3a5d);
  color: #f5f9ff;
}

/* Fade-in animation */
.fade-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.fade-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Typography */
h1, h2, h3 {
  color: #0b3a5d;
  line-height: 1.3;
}

.section-dark h2,
.section-dark h3 {
  color: #f8fbff;
}

h1 {
  font-size: clamp(2rem, 2.7vw, 2.6rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 0;
}

/* Section titles with accent */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb347, #f49c1e);
}

/* Small notes */
.small-note {
  font-size: 0.9rem;
  color: #4a5a6b;
}
.section-dark .small-note {
  color: #d7e3f5;
}

/* Header */
.site-header {
  background: linear-gradient(120deg, #071c30, #0b3a5d);
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  transition: padding 0.2s ease;
}

body.header-condensed .header-inner {
  padding: 0.55rem 0;
}

body.header-condensed .site-header {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background-color: #071c30;
}

/* Branding */
.branding {
  display: flex;
  flex-direction: column;
}

.logo-script {
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

.logo-tagline {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Nav */
.main-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #f5f9ff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.12);
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(circle at top left, #114d7a 0, #0b3a5d 30%, #071c30 100%);
  color: #ffffff;
}

/* Ensure hero heading is visible */
.hero-text h1 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-bg-accent {
  position: absolute;
  right: -18%;
  top: -35%;
  width: 55%;
  height: 190%;
  background: linear-gradient(150deg, rgba(255, 179, 71, 0.16), rgba(255, 255, 255, 0.03));
  transform: skewX(-18deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr);
  gap: 2.6rem;
  align-items: stretch;
}

.hero-text p {
  color: #eaf3fb;
  max-width: 40rem;
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background-color: #ffb347;
  border-color: #ffb347;
  color: #1b2833;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #f49c1e;
  border-color: #f49c1e;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Hero side panel */
.hero-panel {
  background-color: #ffffff;
  color: #12202e;
  border-radius: 1.1rem;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  align-self: center;
}

.hero-panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.hero-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.hero-panel li {
  margin-bottom: 0.35rem;
  font-size: 0.96rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.stat-card {
  padding: 1.1rem 1.3rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.2), rgba(7, 28, 48, 0.9));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stat-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
}

.stat-card p {
  margin-top: 0.6rem;
  font-size: 0.96rem;
}

/* GPS layout (reused) */
.gps-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1.4rem;
}

.gps-block {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 26px rgba(12, 27, 46, 0.15);
  border: 1px solid #d1d9e4;
}

.gps-block h3 {
  margin-top: 0;
}

/* Inline link */
.inline-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #0b3a5d;
  text-decoration: none;
}

.inline-link::after {
  content: "→";
  margin-left: 0.25rem;
}

.inline-link:hover,
.inline-link:focus {
  text-decoration: underline;
}

/* Tabs (County services) */
.tabs {
  margin-top: 1.8rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tab-link {
  border: 1px solid #d1d9e4;
  background-color: #f5f7fb;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  color: #0b3a5d;
}

.tab-link.active {
  background-color: #ffb347;
  border-color: #ffb347;
  color: #1b2833;
}

.tab-panel {
  display: none;
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid #d1d9e4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tab-panel.active {
  display: block;
}

/* Process */
.process-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.process-list li {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-card {
  background-color: rgba(7, 28, 48, 0.9);
  border-radius: 0.9rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.contact-card h3 {
  margin-top: 0;
  color: #ffffff;
}

/* Links */
a {
  color: #0b3a5d;
}

.section-dark a {
  color: #ffcf7a;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #071c30;
  color: #eaf3fb;
  padding: 1.2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.footer-meta {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 1.4rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .section {
    padding: 2.4rem 0;
  }

  .hero {
    padding-top: 2.2rem;
    padding-bottom: 2.6rem;
  }
}
