/* ------------------------------------------------------------------
   First Site Home Solutions — base stylesheet
   Palette is intentionally neutral; swap --brand to rebrand.
------------------------------------------------------------------ */

:root {
  --brand: #1f4d6b;
  --brand-dark: #163a52;
  --accent: #d98b3a;
  --ink: #1c2530;
  --ink-soft: #4a5562;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e3e7ec;
  --radius: 10px;
  --max-w: 1120px;
  --shadow: 0 6px 20px rgba(20, 30, 50, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----- Header / Nav ----- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand span { color: var(--brand); font-weight: 600; }

.primary-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.primary-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a.active { color: var(--brand); }
.primary-nav a:hover { text-decoration: none; color: var(--brand); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ----- Hero ----- */
.hero {
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
  padding: 4rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy .lead {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.trust li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}
.hero-art {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(31,77,107,0.9), rgba(217,139,58,0.85)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- Sections ----- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5rem; color: var(--brand); }
.card p { margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullets li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  color: var(--ink-soft);
}
.bullets li:last-child { border-bottom: 0; }
.bullets strong { color: var(--ink); }

/* ----- Page header (interior pages) ----- */
.page-header {
  background: var(--bg-alt);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header .lead {
  font-size: 1.1rem;
  max-width: 640px;
}

.narrow { max-width: 760px; }

/* ----- Services list ----- */
.service-list {
  display: grid;
  gap: 2rem;
}
.service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.service h2 { color: var(--brand); margin-bottom: 0.5rem; }
.service ul { padding-left: 1.25rem; color: var(--ink-soft); }
.service li { margin-bottom: 0.25rem; }

/* ----- CTA band ----- */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta-inner {
  text-align: center;
}
.cta-band .btn-primary {
  background: var(--accent);
}
.cta-band .btn-primary:hover { background: #c2762a; }

/* ----- Contact form ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.contact-form .btn { justify-self: start; }
.contact-info p { margin-bottom: 1rem; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: #cfd6df;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: var(--accent); }
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.site-footer a { color: #cfd6df; }
.site-footer a:hover { color: #fff; }
.muted { color: #9aa4b1; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #9aa4b1;
}

/* ----- Responsive ----- */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .primary-nav a {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero-grid,
  .two-col,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero { padding: 2.5rem 0; }
  .section { padding: 2.5rem 0; }
}
