/* =========================================================================
   SELECT PAVING AND ROOFING WILTSHIRE — DRIVeway LEAD FUNNEL
   Shared stylesheet for both pages (index.html + thank-you.html)
   Mobile-first. Plain HTML/CSS. No frameworks.
   ========================================================================= */

/* --- Design tokens (sampled from logo) --- */
:root {
  /* Brand colours — approximated from logo, sample exact values from asset */
  --c-primary: #1A1A1A;        /* near-black — headers, nav, section bg */
  --c-primary-soft: #2A2A2A;   /* lighter black — secondary bars */
  --c-secondary: #F5A623;     /* brand orange — supporting bars, subtle bg */
  --c-accent: #F5A623;         /* orange — CTA buttons + offer badge ONLY */
  --c-accent-hover: #E0951A;  /* darker orange for hover */
  --c-white: #FFFFFF;
  --c-off-white: #F7F7F5;
  --c-light-grey: #E5E5E2;
  --c-mid-grey: #888884;
  --c-text: #1A1A1A;
  --c-text-muted: #555555;

  /* Success / warning / error ramps (minimal, for form feedback) */
  --c-success: #2E7D32;
  --c-warning: #F9A825;
  --c-error: #C62828;

  /* Spacing — 8px system */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 80px;

  /* Typography */
  --font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

  /* Layout */
  --max-width: 960px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--c-text);
  background-color: var(--c-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--c-accent); text-decoration: none; font-weight: var(--font-weight-bold); }
a:hover { color: var(--c-accent-hover); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: var(--font-weight-bold); color: var(--c-text); }

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p { margin-bottom: var(--sp-2); }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.section { padding: var(--sp-7) 0; }
.section--tight { padding: var(--sp-5) 0; }
.section--dark { background-color: var(--c-primary); color: var(--c-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-white); }

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

/* --- Header / Nav --- */
.site-header {
  background-color: var(--c-primary);
  padding: var(--sp-2) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.site-header__logo {
  height: 44px;
  width: auto;
  background: var(--c-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.site-header__brand-text {
  color: var(--c-white);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  max-width: 200px;
}

.site-header__cta {
  display: inline-block;
  background-color: var(--c-accent);
  color: var(--c-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.site-header__cta:hover {
  background-color: var(--c-accent-hover);
  color: var(--c-primary);
  transform: translateY(-1px);
}

/* --- Trust badge strip (4 badges) --- */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: var(--sp-3);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-1);
  padding: var(--sp-2);
}

.trust-badge__icon {
  width: 36px;
  height: 36px;
  color: var(--c-accent);
  flex-shrink: 0;
}

.trust-badge__title {
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--c-text);
  line-height: 1.2;
}

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

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-soft) 100%);
  color: var(--c-white);
  padding: var(--sp-7) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(rgba(26,26,26,0.85), rgba(26,26,26,0.92));
  z-index: 0;
}

.hero__bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.hero h1 {
  color: var(--c-white);
  margin-bottom: var(--sp-2);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: var(--sp-3);
}

/* --- Offer badge --- */
.offer-badge {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-primary);
  font-weight: var(--font-weight-bold);
  font-size: 0.95rem;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

/* --- CTA button --- */
.cta-btn {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.05rem;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  line-height: 1.4;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-md);
}

.cta-btn:hover, .cta-btn:focus {
  background: var(--c-accent-hover);
  color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-btn--block { display: block; width: 100%; }

/* --- Form placeholder block --- */
.form-placeholder {
  background: var(--c-white);
  border: 2px dashed var(--c-accent);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  text-align: center;
}

.form-placeholder__heading {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.form-placeholder__text {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--sp-2);
}

.form-placeholder__note {
  font-size: 0.8rem;
  color: var(--c-mid-grey);
  background: var(--c-off-white);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-2);
  display: inline-block;
}

/* --- Why choose us section --- */
.why-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.why-feature {
  background: var(--c-white);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--c-accent);
}

.why-feature h3 { margin-bottom: var(--sp-1); }
.why-feature p { color: var(--c-text-muted); font-size: 0.95rem; }

@media (min-width: 640px) {
  .why-features { grid-template-columns: 1fr 1fr; }
}

/* --- Booking / calendar section --- */
.booking-section {
  background: var(--c-off-white);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.booking-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-6);
}
.booking-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}
.booking-sub {
  color: var(--c-text-muted);
  margin-top: var(--sp-2);
  line-height: 1.65;
}
.booking-bullets {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  text-align: left;
}
.booking-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);
}
.booking-bullets li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-accent);
}
.calendar-embed {
  max-width: 800px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-3);
  overflow: hidden;
}
.calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none;
}

/* --- Review highlight --- */
.review-highlight {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
  margin-top: var(--sp-4);
  position: relative;
}

.review-highlight::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--c-accent);
  line-height: 1;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: var(--sp-1);
}

.review-highlight__text {
  font-size: 1.05rem;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
  font-style: italic;
}

.review-highlight__author {
  font-weight: var(--font-weight-bold);
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* --- Driveway types (Page 2 informational) --- */
.driveway-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.driveway-type {
  background: var(--c-white);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.driveway-type__icon {
  width: 32px;
  height: 32px;
  color: var(--c-accent);
  margin-bottom: var(--sp-1);
}

.driveway-type h3 { margin-bottom: var(--sp-1); }
.driveway-type p { color: var(--c-text-muted); font-size: 0.95rem; }

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

/* --- Next steps (Page 2) --- */
.next-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.next-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  background: var(--c-white);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.next-step__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  color: var(--c-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: 0.95rem;
}

.next-step__body h3 { font-size: 1rem; margin-bottom: 4px; }
.next-step__body p { font-size: 0.9rem; color: var(--c-text-muted); }

/* --- Footer --- */
.site-footer {
  background: var(--c-primary);
  color: var(--c-white);
  padding: var(--sp-5) 0 var(--sp-4);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.site-footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.site-footer__logo {
  height: 100px;
  width: 250px;
  object-fit: contain;
  display: block;
  background: var(--c-white);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.site-footer h4 {
  color: var(--c-white);
  font-size: 0.8rem;
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p, .site-footer li {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  line-height: 1.65;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--sp-3);
  text-align: center;
}

.site-footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* --- Hero two-column split --- */
.hero__inner--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__form-col {
  width: 100%;
}

.hero__form-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-lg);
}

.hero__form-title {
  color: var(--c-text);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: var(--sp-1);
}

.hero__form-sub {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--sp-3);
}

@media (min-width: 768px) {
  .hero__inner--split {
    grid-template-columns: 1fr 420px;
    align-items: center;
  }
}

/* --- Thank you hero --- */
.thankyou-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-soft) 100%);
  color: var(--c-white);
  padding: var(--sp-8) 0;
  text-align: center;
}

.thankyou-hero__icon {
  width: 72px;
  height: 72px;
  color: var(--c-accent);
  margin: 0 auto var(--sp-3);
}

.thankyou-hero h1 { color: var(--c-white); margin-bottom: var(--sp-2); }
.thankyou-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 540px; margin: 0 auto; }

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }
