/* Shared landing page design system — 3tone Digital / Clifton Park Spark */

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

:root {
  --lp-navy: #0f172a;
  --lp-navy-soft: #1e293b;
  --lp-accent: #e85d4c;
  --lp-accent-hover: #d14a3a;
  --lp-bg: #f8fafc;
  --lp-surface: #ffffff;
  --lp-text: #334155;
  --lp-text-muted: #64748b;
  --lp-border: #e2e8f0;
  --lp-success: #059669;
  --lp-radius: 12px;
  --lp-radius-lg: 20px;
  --lp-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --lp-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --lp-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --lp-display: 'Fraunces', Georgia, serif;
  --lp-container: min(1120px, 100% - 2rem);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

a { color: var(--lp-accent); }
a:hover { color: var(--lp-accent-hover); }

.lp-container {
  width: var(--lp-container);
  margin-inline: auto;
}

.lp-section {
  padding: 4rem 0;
}

.lp-section--alt {
  background: var(--lp-surface);
  border-block: 1px solid var(--lp-border);
}

.lp-section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin: 0 0 0.5rem;
}

.lp-section h2 {
  font-family: var(--lp-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--lp-navy);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.lp-section__lead {
  font-size: 1.125rem;
  color: var(--lp-text-muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

/* Hero */
.lp-hero {
  position: relative;
  padding: 3rem 0 4rem;
  background: linear-gradient(145deg, var(--lp-navy) 0%, #1a365d 45%, var(--lp-navy-soft) 100%);
  color: #fff;
  overflow: hidden;
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% 20%, rgba(232, 93, 76, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

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

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

.lp-hero__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}

.lp-hero h1 {
  font-family: var(--lp-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
}

.lp-hero__sub {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.5rem;
}

.lp-hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.lp-hero__phone:hover { color: #fff; }

.lp-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-trust-bar span::before {
  content: '✓ ';
  color: var(--lp-accent);
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--lp-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--lp-radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.lp-btn:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 2px;
}

.lp-btn--primary {
  background: var(--lp-accent);
  color: #fff;
}

.lp-btn--primary:hover {
  background: var(--lp-accent-hover);
  color: #fff;
}

.lp-btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.lp-btn--secondary:hover {
  border-color: #fff;
  color: #fff;
}

.lp-btn--dark {
  background: var(--lp-navy);
  color: #fff;
}

.lp-btn--dark:hover {
  background: var(--lp-navy-soft);
  color: #fff;
}

.lp-btn--block { width: 100%; }

/* Cards */
.lp-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 900px) {
  .lp-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 1.5rem;
  box-shadow: var(--lp-shadow);
}

.lp-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.lp-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lp-navy);
  margin: 0 0 0.5rem;
}

.lp-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--lp-text-muted);
}

/* Stats */
.lp-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 2rem 0;
}

.lp-stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--lp-surface);
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
}

.lp-stat__value {
  font-family: var(--lp-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lp-accent);
  display: block;
}

.lp-stat__label {
  font-size: 0.875rem;
  color: var(--lp-text-muted);
}

/* Steps */
.lp-steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

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

.lp-step {
  position: relative;
  padding-left: 3rem;
}

.lp-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--lp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-navy);
  margin: 0 0 0.35rem;
}

.lp-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--lp-text-muted);
}

/* Testimonials */
.lp-testimonials {
  display: grid;
  gap: 1.5rem;
}

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

.lp-testimonial {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--lp-shadow);
}

.lp-testimonial__quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--lp-navy);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.lp-testimonial__quote::before {
  content: '"';
  color: var(--lp-accent);
  font-size: 1.5rem;
  line-height: 0;
}

.lp-testimonial__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lp-testimonial__logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.lp-testimonial__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lp-navy);
}

.lp-testimonial__result {
  font-size: 0.8125rem;
  color: var(--lp-accent);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Project showcase */
.lp-showcase {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

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

.lp-showcase__item {
  border-radius: var(--lp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow);
}

.lp-showcase__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lp-showcase__caption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--lp-text-muted);
}

.lp-showcase__caption strong {
  color: var(--lp-navy);
  display: block;
  margin-bottom: 0.25rem;
}

/* Logo strip */
.lp-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
  padding: 2rem 0;
  opacity: 0.85;
}

.lp-logo-strip img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(20%);
}

/* Why us / team */
.lp-team {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .lp-team { grid-template-columns: 1fr 1.2fr; }
}

.lp-team__photos {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.lp-team__photos img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--lp-surface);
  box-shadow: var(--lp-shadow-lg);
}

/* FAQ */
.lp-faq {
  max-width: 40rem;
}

.lp-faq details {
  border-bottom: 1px solid var(--lp-border);
  padding: 1rem 0;
}

.lp-faq summary {
  font-weight: 600;
  color: var(--lp-navy);
  cursor: pointer;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}

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

.lp-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  color: var(--lp-accent);
  font-size: 1.25rem;
}

.lp-faq details[open] summary::after { content: '−'; }

.lp-faq p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--lp-text-muted);
}

/* Forms */
.lp-form-card {
  background: var(--lp-surface);
  border-radius: var(--lp-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--lp-shadow-lg);
}

.lp-hero .lp-form-card {
  color: var(--lp-text);
}

.lp-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lp-navy);
  margin-top: 1rem;
}

.lp-form label:first-of-type { margin-top: 0; }

.lp-form input:not([type="radio"]):not([type="checkbox"]),
.lp-form textarea {
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  font-family: var(--lp-font);
  font-size: 1rem;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-form input:not([type="radio"]):not([type="checkbox"]):focus,
.lp-form textarea:focus {
  outline: none;
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 1px var(--lp-accent), 0 0 0 4px rgba(232, 93, 76, 0.12);
}

.lp-form .lp-btn { margin-top: 1.25rem; }

.lp-form__status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  min-height: 1.5em;
}

.lp-form__status--success { color: var(--lp-success); font-weight: 500; }
.lp-form__status--error { color: #dc2626; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Problem list */
.lp-problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.lp-problem-list li {
  padding-left: 1.75rem;
  position: relative;
}

.lp-problem-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--lp-accent);
  font-weight: 700;
}

.lp-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.lp-check-list li {
  padding-left: 1.75rem;
  position: relative;
}

.lp-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lp-success);
  font-weight: 700;
}

/* CTA band */
.lp-cta-band {
  text-align: center;
  padding: 3rem 0;
  background: var(--lp-navy);
  color: #fff;
}

.lp-cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.lp-cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
}

/* Footer */
.lp-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--lp-text-muted);
  border-top: 1px solid var(--lp-border);
}

.lp-footer img {
  height: 32px;
  width: auto;
  margin: 0 auto 1rem;
  opacity: 0.7;
}

/* Sticky mobile CTA */
.lp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

@media (max-width: 768px) {
  .lp-sticky-cta { display: block; }
  body { padding-bottom: 4.5rem; }
}

/* Quote section */
#quote-form {
  scroll-margin-top: 1.5rem;
}

.lp-quote-section .lp-form-card {
  max-width: 40rem;
  margin-inline: auto;
}
