/* Solid Ground Home Solutions — Design tokens */
:root {
  --color-green: #5a5a5a; /* Mid graphite (cards, accents) */
  --color-green-dark: #242424; /* Near-black graphite */
  --color-green-light: #707070; /* Lighter graphite */
  --color-sand: #f2f2f2; /* Light neutral grey */
  --color-sand-dark: #dddddd; /* Neutral border grey */
  --color-cream: #ffffff; /* Clean White Background */
  --color-charcoal: #1a1a1a; /* Near-black text */
  --color-charcoal-muted: #6b6b6b; /* Muted graphite text */
  --color-gold: #c5a059; /* Gold */
  --color-gold-hover: #b08d4b; /* Darker Gold */
  --color-red: #c0392b; /* Red Accent */
  --color-white: #ffffff;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 72px;
  --header-logo-h: 62px;
  --header-logo-ratio: 2.65;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-charcoal);
  background: var(--color-cream);
}

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

a {
  color: var(--color-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #a93226;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-green-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.btn-primary:hover {
  background: var(--color-gold-hover);
  color: var(--color-charcoal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-sand-dark);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-height);
  max-height: var(--header-height);
  padding-right: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.92;
}

.logo-img {
  display: block;
  object-fit: contain;
  object-position: center;
}

.logo--header {
  flex: 0 1 auto;
  max-width: calc(100% - 3.25rem);
  display: flex;
  align-items: center;
}

/* Logo is ~2.6:1 — width scales with height (~30% larger than previous sizes) */
.logo--header .logo-img--top {
  display: block;
  height: var(--header-logo-h);
  width: calc(var(--header-logo-h) * var(--header-logo-ratio));
  max-width: calc(100vw - 4rem);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 480px) {
  :root {
    --header-logo-h: 65px;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 76px;
    --header-logo-h: 70px;
  }

  .header-inner {
    padding-right: 0;
  }

  .logo--header {
    max-width: calc(var(--header-logo-h) * var(--header-logo-ratio) + 0.5rem);
  }

  .site-nav {
    flex: 0 0 auto;
  }
}

@media (min-width: 900px) {
  :root {
    --header-height: 80px;
    --header-logo-h: 75px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .logo--header {
    position: static;
    grid-column: 1;
    justify-self: start;
    max-width: calc(var(--header-logo-h) * var(--header-logo-ratio) + 0.5rem);
    z-index: 1;
  }

  .site-nav {
    grid-column: 2;
    justify-self: center;
  }
}

.logo-img--footer {
  max-height: 72px;
  max-width: min(260px, 90vw);
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-charcoal);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-sand-dark);
  box-shadow: var(--shadow-md);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 0.875rem 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-sand-dark);
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-nav .nav-phone {
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  text-align: center;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius);
  border-bottom: none;
}

.site-nav .nav-phone:hover {
  background: #a93226;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    padding-right: 0;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0;
    border: none;
    font-size: 0.875rem;
  }

  .site-nav .nav-phone {
    margin-top: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 900px) {
  .site-nav {
    justify-content: center;
    gap: 1.75rem;
  }

  .site-nav a {
    font-size: 0.9375rem;
  }

  .site-nav .nav-phone {
    font-size: 0.9375rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 0 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(36, 36, 36, 0.95) 0%, rgba(30, 30, 30, 0.92) 50%, rgba(24, 24, 24, 0.94) 100%),
    url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1600&q=80") center / cover no-repeat;
  z-index: 0;
}

.hero-tagline-wrap {
  position: relative;
  z-index: 1;
  padding: 0.875rem 0 1rem;
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
}

.hero-tagline strong {
  font-weight: 700;
}

.hero-tagline em {
  font-style: italic;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

.hero-content {
  color: var(--color-white);
}

.hero-content h1 {
  color: var(--color-white);
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-lead strong {
  font-weight: 700;
  font-size: 1.375rem;
}

.text-red,
.text-gold {
  color: var(--color-gold);
  font-weight: 600;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
}

.hero-highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
}

.hero-form-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-card-title {
  font-size: 1.375rem;
  margin-bottom: 0.375rem;
}

.form-card-sub {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .hero {
    padding: 0 0 5rem;
  }

  .hero-tagline-wrap {
    padding: 1rem 0 1.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 420px;
  }
}

/* Forms */
.lead-form .form-group {
  margin-bottom: 1rem;
}

.lead-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.optional {
  font-weight: 400;
  color: var(--color-charcoal-muted);
}

.required-mark {
  color: var(--color-red);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-sand-dark);
  border-radius: var(--radius);
  background: var(--color-cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lead-form textarea {
  min-height: 88px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-consent {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--color-charcoal-muted);
  line-height: 1.4;
}

.form-message {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.form-message.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-message.error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.lead-form.is-submitting .btn-primary {
  opacity: 0.7;
  pointer-events: none;
}

/* Trust strip */
.trust-strip {
  background: var(--color-green-dark);
  color: var(--color-white);
  padding: 1rem 0;
  text-align: center;
}

.trust-strip p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.trust-strip strong {
  font-weight: 700;
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--color-charcoal-muted);
  margin-bottom: 0;
}

.section-header--light h2,
.section-header--light p {
  color: var(--color-white);
}

.section-header--light p {
  opacity: 0.9;
}

/* Benefits */
.benefits {
  padding: 4.5rem 0;
  background: var(--color-sand);
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-card--accent {
  background: var(--color-gold);
  color: var(--color-charcoal);
  border: 1px solid var(--color-gold-hover);
}

.benefit-card--accent h3 {
  color: var(--color-charcoal);
}

.benefit-card--accent p {
  color: rgba(26, 26, 26, 0.88);
}

.benefit-card--accent a {
  color: var(--color-charcoal);
  font-weight: 600;
  text-decoration: underline;
}

.benefit-card--accent .benefit-icon {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-charcoal);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-red);
  border-radius: var(--radius);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin-bottom: 0;
}

/* How it works */
.how-it-works {
  padding: 4.5rem 0;
  background: var(--color-green-dark);
  color: var(--color-white);
}

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  position: relative;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
}

.step h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.steps-cta {
  text-align: center;
}

.steps-cta .btn-primary {
  min-width: 280px;
}

/* Why us */
.why-us {
  padding: 4.5rem 0;
  background: var(--color-cream);
}

.why-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.why-content p {
  color: var(--color-charcoal-muted);
}

.why-list {
  margin-top: 1.5rem;
}

.why-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-red);
}

.why-image {
  min-height: 280px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(to bottom, transparent 40%, rgba(36, 36, 36, 0.75)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1200&q=80") center / cover no-repeat;
  box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
  .why-image {
    min-height: 400px;
  }
}

/* FAQ */
.faq {
  padding: 4.5rem 0;
  background: var(--color-white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-sand-dark);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-sand-dark);
}

.faq-item summary {
  padding: 1.25rem 2rem 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-green-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-red);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin-bottom: 0;
}

/* CTA bottom */
.cta-bottom {
  padding: 4.5rem 0;
  background: var(--color-green-dark);
  color: var(--color-white);
}

.cta-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
  }
}

.cta-content h2 {
  color: var(--color-white);
}

.cta-content > p {
  opacity: 0.9;
}

.cta-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.cta-phone:hover {
  color: var(--color-sand-dark);
}

.cta-name {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.cta-scroll {
  margin-top: 0.5rem;
}

.cta-form-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-form-card .form-card-title {
  margin-bottom: 1.25rem;
}

/* Thank you */
.thank-you {
  padding: 4rem 0;
  background: var(--color-sand);
  text-align: center;
}

.thank-you-inner h2 {
  margin-bottom: 1rem;
}

.thank-you-inner .btn {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  background: var(--color-green-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.logo--footer {
  margin-bottom: 0.75rem;
}

.footer-area {
  margin: 0;
  opacity: 0.8;
}

.footer-contact p {
  margin: 0 0 0.25rem;
}

.footer-contact a {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-sand-dark);
}

.footer-legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-legal p {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.disclaimer {
  line-height: 1.5;
}
