:root {
  --primary: #1e4a81;
  --secondary: #f8d648;
  --trim: #8d8a89;
  --text: #2d2d2d;
  --muted: #6b7280;
  --light-bg: #f7f8fa;
  --footer-bg: #10233d;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Anchor targets land below the fixed header instead of underneath it */
#home, #services, #service-areas, #faq, #why-us, #contact {
  scroll-margin-top: var(--header-h);
}

/* Fixed header, stays pinned on scroll */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary);
  border-bottom: 2px solid var(--secondary);
}

.header-main {
  min-height: var(--header-h);
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text .name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.brand-text .sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

nav a,
nav button.nav-link {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d7dce4;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav button.nav-link:hover {
  color: #fff;
  border-bottom-color: var(--secondary);
}

nav li.emphasis a {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  font-weight: 700;
}

nav .nav-link.disabled {
  color: #6b7688;
  cursor: not-allowed;
  opacity: 0.7;
}

nav .nav-link.disabled:hover {
  color: #6b7688;
  border-bottom-color: transparent;
}

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(10, 26, 48, 0.72), rgba(10, 26, 48, 0.78)),
    url('house-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero-content {
  max-width: 700px;
  padding: 60px 28px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--secondary);
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 28px;
  color: #f1f3f6;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.cta-button {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover { background: #d9b93a; }

/* Generic section */
.section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
}

/* Location page intro copy */
.intro-copy {
  max-width: 760px;
  margin: 0 auto;
}

.intro-copy p {
  margin-bottom: 16px;
  color: var(--text);
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.card-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  border-top: 3px solid var(--trim);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--trim);
}

.alt-bg { background: var(--light-bg); }

/* Service areas */
.area-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.area-chip {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-left: 3px solid var(--trim);
  border-radius: 8px;
  padding: 14px 18px;
}

.area-chip .city {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

a.area-chip .city { text-decoration: underline; text-decoration-color: var(--trim); }

.area-note,
.related-areas {
  text-align: center;
  max-width: 700px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.area-note a,
.related-areas a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--trim);
}

.related-areas .links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

/* FAQ accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid #eee;
  border-left: 3px solid var(--trim);
  border-radius: 8px;
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--trim);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 18px;
  margin-top: -4px;
}

/* Breadcrumb (location pages) */
.breadcrumb {
  font-size: 0.85rem;
  color: #d7dce4;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: inherit;
  border-bottom: 1px solid rgba(215, 220, 228, 0.4);
}

.breadcrumb a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* Trust banner */
.trust-banner {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
  border-top: 4px solid var(--secondary);
  border-bottom: 4px solid var(--trim);
}

.trust-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 18px;
  color: var(--secondary);
}

.trust-banner p {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #a9b4c7;
  padding: 50px 24px 24px;
  border-top: 4px solid var(--trim);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-grid li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-grid a:hover { color: #fff; }

.footer-disclosure {
  max-width: 900px;
  margin: 20px auto 0;
  font-size: 0.78rem;
  color: #7c8798;
  text-align: center;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* Consultation modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 28, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 30px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-top: 4px solid var(--secondary);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover { color: var(--primary); }

.modal-box h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d7dbe2;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--text);
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.293l3.71-4.06a.75.75 0 111.08 1.04l-4.25 4.65a.75.75 0 01-1.08 0l-4.25-4.65a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(248, 214, 72, 0.28);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.turnstile-wrap {
  margin: 22px 0;
  transform-origin: left top;
}

.consent-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 22px;
}

.consent-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--secondary);
  cursor: pointer;
}

.consent-group label {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.modal-submit {
  width: 100%;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.modal-submit:hover:not(:disabled) { background: #d9b93a; }

.modal-submit:disabled {
  background: #cbd2dc;
  color: #8a93a3;
  cursor: not-allowed;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 4px 10px;
}

.form-success.active { display: block; }

.form-success h3 { color: var(--primary); margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* Tablet and below: stack logo above nav */
@media (max-width: 780px) {
  :root { --header-h: 104px; }
  .header-main { flex-direction: column; justify-content: center; gap: 10px; padding: 10px 20px; }
  nav ul { gap: 14px 20px; }
  .hero { min-height: 560px; }
}

/* Small phones: tighten everything further so header + nav don't overflow */
@media (max-width: 480px) {
  :root { --header-h: 134px; }
  .brand-text .name { font-size: 1.1rem; }
  .brand-text .sub { font-size: 0.6rem; letter-spacing: 1.5px; }
  nav ul { gap: 10px 16px; }
  nav a, nav button.nav-link { font-size: 0.7rem; letter-spacing: 1px; }
  .hero { min-height: 460px; }
  .hero-content { padding: 40px 20px; }
  .section { padding: 56px 20px; }
  .section-header { margin-bottom: 34px; }
  .trust-banner { padding: 50px 20px; }
  .card { padding: 26px 22px; }
  .footer-grid { gap: 28px; }
  .modal-box { padding: 28px 20px 22px; }
  .turnstile-wrap { transform: scale(0.9); }
}
