@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

/* === TOKENS === */
:root {
  --forest:      #0f1f3d;
  --forest-mid:  #1a3158;
  --forest-lite: #1e4080;
  --amber:       #e06b18;
  --amber-hi:    #f07820;
  --danger:      #b02e1a;
  --paper:       #f3f5f8;
  --sand:        #e6eaf0;
  --cream:       #f9fafc;
  --white:       #ffffff;
  --ink:         #181810;
  --muted:       #5c5c4a;
  --line:        #d8d3c4;
  --shadow-sm:   0 2px 8px rgba(27,48,32,.09);
  --shadow-md:   0 8px 28px rgba(27,48,32,.13);
  --shadow-lg:   0 18px 52px rgba(27,48,32,.17);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
p { margin: 0; }

/* === TYPOGRAPHY === */

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* Accent underline on headings */
.section-heading {
  position: relative;
  padding-bottom: 0.7rem;
  margin-bottom: 1.4rem;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

/* === LAYOUT === */

/* .container = width constraint only */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* .section = old-style container + padding (inner pages use this) */
.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}
.section.tight { padding-top: 52px; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,.8fr);
  gap: 48px;
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

/* === TOP BAR === */

.topbar {
  background: var(--forest);
  color: rgba(244,240,230,.78);
  font-size: 0.87rem;
}

.topbar-inner,
.topbar .container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
}

.topbar strong { color: var(--amber-hi); }

/* === NAV === */

.nav {
  background: rgba(244,240,230,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner,
.nav .container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest);
  line-height: 1.25;
  flex-shrink: 0;
}

/* Old .brand-mark kept as alias */
.brand-mark,
.brand-badge {
  width: 40px;
  height: 40px;
  background: var(--forest);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--amber-hi);
  font-size: 1.2rem;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
}

.brand-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--amber-hi);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--forest); }

.call-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--amber);
  color: #1a0f00;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.call-button:hover { background: var(--amber-hi); transform: translateY(-1px); }

/* === BUTTONS === */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  background: var(--amber);
  color: #1a0f00;
  box-shadow: 0 3px 12px rgba(190,122,11,.28);
}
.button:hover {
  background: var(--amber-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(190,122,11,.38);
}

.button.secondary {
  background: var(--cream);
  border: 1.5px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.button.secondary:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-sm);
}

/* === HERO === */

.hero {
  background:
    linear-gradient(155deg, rgba(27,48,32,.93) 0%, rgba(27,48,32,.70) 100%),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
  color: var(--cream);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  padding-bottom: 48px;
}

.hero-inner,
.hero .container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(270px,.65fr);
  gap: 52px;
  align-items: center;
  padding: 92px 0 112px;
}

.hero .eyebrow { color: rgba(244,240,230,.65); opacity: 1; }

.hero h1 {
  color: var(--cream);
  max-width: 720px;
}

.hero-lead {
  font-size: 1.13rem;
  color: rgba(244,240,230,.87);
  max-width: 620px;
  margin-top: 1.1rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

/* Fade-up animation for hero text */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text > * {
  animation: fadeUp .7s cubic-bezier(.22,.68,0,1.2) both;
}
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3) { animation-delay: .25s; }
.hero-text > *:nth-child(4) { animation-delay: .35s; }

/* === URGENT PANEL === */

.urgent-panel {
  background: rgba(244,240,230,.96);
  color: var(--ink);
  border-radius: 10px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--danger);
  animation: fadeUp .8s cubic-bezier(.22,.68,0,1.2) .45s both;
}

.urgent-panel h2 {
  font-size: 1.2rem;
  color: var(--danger);
  margin-bottom: 1rem;
  font-family: 'Libre Baskerville', serif;
}

.urgent-panel ul {
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

.urgent-panel li {
  margin: 0.6rem 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.urgent-note {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
}

/* === SERVICE STRIP === */

.service-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.service-strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 28px;
  border-right: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.91rem;
  color: var(--forest);
}
.service-strip-item:last-child { border-right: 0; }
.service-strip-item svg {
  width: 16px;
  height: 16px;
  fill: var(--amber);
  flex-shrink: 0;
}

/* === CARDS === */

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card p, .card .muted { color: var(--muted); font-size: 0.96rem; line-height: 1.62; }
.card h3 { margin-bottom: 0.65rem; }

.card a:not(.button) {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest-lite);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card a:not(.button):hover { color: var(--amber); }

/* Card icon */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--amber-hi);
}

/* === BAND (alternate section bg) === */

.band {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* === CHECK LIST === */

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.5;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M13.5 3.5L6 11 2.5 7.5l-1 1L6 13l8.5-8.5z'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* === FORM === */

.form { display: grid; gap: 14px; }

label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  font: 1rem/1.5 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(190,122,11,.12);
}
textarea { min-height: 110px; resize: vertical; }

/* === NOTICE / ALERT === */

.notice {
  border-left: 4px solid var(--danger);
  background: rgba(140,47,28,.06);
  padding: 14px 18px;
  color: #4a1c10;
  border-radius: 0 7px 7px 0;
  font-size: 0.96rem;
  line-height: 1.56;
}

/* === AREA LIST === */

.area-list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 2rem 0 0;
}
.area-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: box-shadow .15s;
}
.area-list li:hover { box-shadow: var(--shadow-sm); }

/* === PAGE HERO (inner pages) === */

.page-hero {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
}
.page-hero .section { padding: 0; }
.page-hero h1 { max-width: 800px; }
.page-hero p {
  color: var(--muted);
  max-width: 760px;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* === SECTION COPY / MUTED === */

.section-copy, .muted {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* === FOOTER === */

.footer {
  background: var(--forest);
  color: rgba(244,240,230,.72);
  padding: 42px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  color: var(--cream);
  font-size: 1rem;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.footer a { text-decoration: none; color: rgba(244,240,230,.85); transition: color .15s; }
.footer a:hover { color: var(--amber-hi); }

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(244,240,230,.45);
  max-width: 440px;
  line-height: 1.5;
}

/* === RESPONSIVE === */

@media (max-width: 900px) {
  .hero-inner,
  .hero .container {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 68px 0 92px;
    gap: 36px;
  }
  .grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .topbar-inner, .topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-inner, .nav .container { flex-direction: column; align-items: flex-start; padding: 14px 0; min-height: auto; }
  .nav-links { width: 100%; overflow-x: auto; gap: 14px; padding-bottom: 4px; }
  .grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; text-align: center; }
  .area-list { grid-template-columns: 1fr 1fr; }
  .service-strip { flex-direction: column; }
  .service-strip-item { border-right: 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: center; }
  .service-strip-item:last-child { border-bottom: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 440px) {
  .container,
  .section,
  .topbar-inner,
  .nav-inner,
  .footer-inner { width: calc(100% - 28px); }
  .hero-inner,
  .hero .container { padding: 52px 0 76px; }
  .area-list { grid-template-columns: 1fr; }
}
