:root {
  --navy: #0f2942;
  --navy-deep: #0a1d30;
  --gold: #d4af37;
  --ink: #1c1c1c;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --maxw: 1080px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
}
h1,
h2,
h3,
.brand {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  color: var(--gold);
  font-weight: bold;
  font-size: 1.75rem;
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff;
  padding: 88px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95);
}
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--gold);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: 2.8rem;
  margin: 0 0 16px;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 80ch;
}
.hero .lede {
  color: rgba(255, 255, 255, 0.82);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: #c39f2e;
}

/* Sections */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  font-size: 2rem;
  margin: 0 0 24px;
  color: var(--navy);
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.card h3 {
  margin-top: 0;
  color: var(--navy);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.about-grid .lede {
  margin: 0;
}
.about-badge {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 41, 66, 0.78);
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Calculator */
.calc {
  display: flex;
  flex-direction: column;
  margin: 24px 0;
  max-width: 100%;
  border: 1px solid #68686897;
  border-radius: var(--radius);
  padding: 8px 20px;
  background: var(--navy);
}
.calc-row {
  padding: 14px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.calc-row:last-child {
  border-bottom: none;
}
.calc-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.calc-row-head label {
  color: #fff;
  font-weight: 600;
}
.calc-value {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.calc input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}
.calc-note {
  text-align: center;
  padding: 8px 64px;
  max-width: 100%;
  font-size: 1rem;
}
.calc-note a {
  color: var(--navy);
}

.estimate {
  color: #fff;
  padding: 24px 8px 12px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 8px;
}
.estimate-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.estimate-amount {
  display: block;
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  margin: 6px 0;
}
.estimate-breakdown {
  list-style: none;
  margin: 0 auto 12px;
  padding: 0;
  max-width: 360px;
  text-align: left;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.estimate-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.estimate-breakdown li:last-child {
  border-bottom: none;
}
.estimate-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

/* Forms */
.lead-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
}
.lead-form input,
.lead-form textarea {
  padding: 10px;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-status {
  font-weight: 600;
  min-height: 1.4em;
}
.form-status.error {
  color: #b00020;
}
.form-status.success {
  color: #1b7a3d;
}
.contact-direct {
  margin-top: 20px;
  color: var(--muted);
}
.contact-direct a {
  color: var(--navy);
}

/* Admin / leads */
.admin-signout {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
}
.admin-signout:hover {
  background: var(--gold);
  color: var(--navy);
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 48px;
  font-size: 0.9rem;
}
.leads-table th,
.leads-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e3e8ee;
  vertical-align: top;
}
.leads-table th {
  color: var(--navy);
}
.admin-status {
  font-weight: 600;
  min-height: 1.4em;
}
.admin-status.error {
  color: #b00020;
}
.admin-status.success {
  color: #1b7a3d;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.site-footer a {
  color: var(--gold);
}

/* Responsive */
@media (max-width: 860px) {
  .site-header {
    padding: 8px 0px;
  }

  .brand {
    font-size: 1.5rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    padding: 8px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    padding: 10px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
