/* ============================================================
   Goodyear Hardscape Pros — design system
   Palette: sand / charcoal / teal / rust (desert-stone inspired)
   Type: Roboto Slab (display) + Inter (body/UI)
   ============================================================ */

:root {
  --sand-50: #FAF6EE;
  --sand-100: #F3EBDA;
  --sand-200: #E7DAC0;
  --ink-900: #241F1A;
  --ink-700: #3B342C;
  --ink-500: #5C5348;
  --teal-700: #1E5C58;
  --teal-600: #256E69;
  --teal-100: #DCEBE9;
  --rust-600: #B4552D;
  --rust-700: #963F1E;
  --rust-100: #F3DFD1;
  --line: #DED2B8;
  --white: #FFFFFF;

  --font-display: "Roboto Slab", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(36, 31, 26, 0.06), 0 4px 16px rgba(36, 31, 26, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--rust-600);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--ink-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--sand-100); }
.section-ink { background: var(--ink-900); color: var(--sand-100); }
.section-ink h2, .section-ink h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--rust-600); color: var(--white); }
.btn-primary:hover { background: var(--rust-700); }
.btn-outline { background: transparent; border-color: var(--sand-100); color: var(--sand-100); }
.btn-outline:hover { background: var(--sand-100); color: var(--ink-900); }
.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { background: var(--ink-700); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--sand-50);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-900);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--rust-600), var(--teal-700));
  flex-shrink: 0;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--ink-500); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.main-nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--teal-700); }
.main-nav a.is-active { color: var(--rust-600); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-weight: 700; color: var(--ink-900); font-size: 0.98rem; white-space: nowrap; }
.header-phone span { display: block; font-weight: 400; font-size: 0.7rem; color: var(--ink-500); }

.nav-toggle { display: none; }

@media (max-width: 1320px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink-900); }
  .header-phone span { display: none; }
}

@media (max-width: 560px) {
  .header-phone { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(24,20,16,0.86) 0%, rgba(24,20,16,0.72) 55%, rgba(24,20,16,0.88) 100%),
    repeating-linear-gradient(135deg, #2c2620 0px, #2c2620 2px, #241f1a 2px, #241f1a 42px);
  color: var(--sand-50);
  padding: 76px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.hero h1 { color: var(--white); }
.hero .lede { color: var(--sand-100); max-width: 52ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(250,246,238,0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--sand-100);
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-form {
  background: var(--sand-50);
  color: var(--ink-900);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.hero-form h3 { margin-bottom: 4px; }
.hero-form p { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink-900);
}
.field textarea { resize: vertical; min-height: 80px; }
.form-fineprint { font-size: 0.75rem; color: var(--ink-500); margin-top: 10px; }

.form-success {
  text-align: center;
  padding: 12px 4px 4px;
}
.form-success h3 { color: var(--teal-700); margin-bottom: 8px; }
.form-success h3::before { content: "✓  "; }
.form-success p { color: var(--ink-700); margin-bottom: 0; }
.form-success a { color: var(--teal-700); font-weight: 600; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Chip list ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-700);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rust-600); }

/* ---------- Thumbnail service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.service-card-media {
  height: 130px;
  background: linear-gradient(135deg, var(--teal-700), var(--ink-900));
  position: relative;
}
.service-card-media.rust { background: linear-gradient(135deg, var(--rust-600), var(--ink-900)); }
.photo-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Photo credit strip (Unsplash attribution) ---------- */
.photo-credit {
  font-size: 0.72rem;
  color: var(--sand-200);
  opacity: 0.7;
  margin-top: 6px;
}
.photo-credit a { color: var(--sand-200); }
.service-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { font-size: 0.92rem; margin-bottom: 16px; }
.service-card-body .btn { margin-top: auto; align-self: flex-start; padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Two column w/ sticky sidebar (service pages) ---------- */
.service-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.sidebar-card {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.sidebar-card h3 { font-size: 1.1rem; }
.sidebar-list { list-style: none; padding: 0; margin: 18px 0; }
.sidebar-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  display: flex; gap: 8px;
}
.sidebar-list li:first-child { border-top: none; }

@media (max-width: 900px) {
  .service-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.process-step { position: relative; padding-left: 0; }
.process-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal-700); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: none; border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-900);
  cursor: pointer;
}
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--rust-600);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.15s ease; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 20px; color: var(--ink-700); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  background: var(--white);
  border-left: 3px solid var(--rust-600);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.testimonial-card p { font-size: 0.95rem; font-style: italic; }
.testimonial-name { font-weight: 700; color: var(--ink-900); font-size: 0.9rem; }
.testimonial-stars { color: var(--rust-600); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding: 28px 0;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-700); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-700), var(--ink-900));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--sand-100); margin-bottom: 0; }

/* ---------- Get to Know Us / cross-reference section ---------- */
.about-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.about-note a { color: var(--teal-700); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--sand-100); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(250,246,238,0.14);
}
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--sand-200); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; font-size: 0.82rem; color: var(--sand-200);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--teal-700); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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