/* ==========================================================================
   Vans Land Hardscaping Design System
   Palette: deep pine, terracotta, warm sand, charcoal, soft gold
   ========================================================================== */

:root {
  --pine-900: #1b3327;
  --pine-800: #234030;
  --pine-700: #2f5240;
  --terracotta-600: #995327;
  --terracotta-500: #c97440;
  --gold-500: #c89b4c;
  --gold-400: #d9b06c;
  --sand-50: #faf6ee;
  --sand-100: #f4ecdd;
  --sand-200: #ece0c8;
  --charcoal-900: #241f1a;
  --charcoal-700: #443c33;
  --charcoal-500: #6b6055;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(36, 31, 26, 0.08);
  --shadow-md: 0 8px 28px rgba(36, 31, 26, 0.12);
  --shadow-lg: 0 20px 60px rgba(27, 51, 39, 0.18);

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal-900);
  background: var(--sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--pine-900);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--charcoal-700); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--terracotta-600);
  display: inline-block;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--pine-900);
  color: var(--sand-100);
}
.section--dark h2, .section--dark h3 { color: var(--sand-50); }
.section--dark p { color: #cfd9d0; }
.section--sand { background: var(--sand-100); }

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--terracotta-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--terracotta-500); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--pine-900);
  color: var(--pine-900);
}
.btn-outline-dark:hover { background: var(--pine-900); color: var(--white); }
.btn-gold {
  background: var(--gold-500);
  color: var(--pine-900);
}
.btn-gold:hover { background: var(--gold-400); }

/* ============================= HEADER ============================= */
.topbar {
  background: var(--pine-900);
  color: var(--sand-100);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--gold-400); font-weight: 600; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(36,31,26,0.08);
}
/* Same-page anchor targets (#hardscaping, #delivery, etc.) need to land below
   the sticky header, not underneath it. */
#home, #hardscaping, #delivery { scroll-margin-top: 96px; }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pine-900);
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-600);
}

nav.main-nav { display: flex; align-items: center; gap: 34px; }
nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal-900);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--terracotta-600); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--terracotta-600);
}

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; font-size: 1.02rem; color: var(--pine-900); }
.header-phone span { display: block; font-size: 0.7rem; color: var(--charcoal-500); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--pine-900);
  position: relative;
  transition: all 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/hero-materials.jpg') center/cover no-repeat;
  transform: scale(1.05);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,51,39,0.78) 0%, rgba(27,51,39,0.55) 45%, rgba(20,32,25,0.9) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero .lede {
  font-size: 1.18rem;
  max-width: 560px;
  color: #edeee0;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 30px;
  max-width: 880px;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-400);
}
.hero-stat span { font-size: 0.85rem; color: #d8ddd2; }

/* ============================= TRUST STRIP ============================= */
.trust-strip {
  background: var(--sand-100);
  border-bottom: 1px solid var(--sand-200);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item .icon-wrap {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pine-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item .icon-wrap svg { width: 22px; height: 22px; stroke: var(--gold-400); }
.trust-item strong { display: block; font-size: 0.95rem; color: var(--pine-900); }
.trust-item small { color: var(--charcoal-500); font-size: 0.82rem; }

/* ============================= MATERIALS GRID ============================= */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.material-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.material-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.material-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.material-card:hover img { transform: scale(1.08); }
.material-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,51,39,0) 40%, rgba(20,26,20,0.88) 100%);
}
.material-card .content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
  color: var(--white);
}
.material-card .content .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: block;
  margin-bottom: 6px;
}
.material-card .content h3 { color: var(--white); margin-bottom: 4px; font-size: 1.15rem; }
.material-card .content p { color: #e4e6dc; font-size: 0.85rem; margin-bottom: 0; }

.materials-cta { text-align: center; margin-top: 48px; }

/* ============================= WHY US ============================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}
.why-card .icon-wrap {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: var(--sand-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card .icon-wrap svg { width: 26px; height: 26px; stroke: var(--terracotta-600); }
.why-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.why-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ============================= SPLIT / DELIVERY ============================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split-reverse { grid-template-columns: 1fr 1fr; }
.split-reverse .split-media { order: 2; }
.check-list { list-style: none; padding: 0; margin: 26px 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-weight: 500;
  color: var(--charcoal-900);
}
.check-list svg { width: 20px; height: 20px; stroke: var(--terracotta-600); flex-shrink: 0; margin-top: 2px; }

/* ============================= CTA BAND ============================= */
.cta-band {
  background: linear-gradient(120deg, var(--pine-900), var(--pine-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #d8ddd2; margin-bottom: 0; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================= FOOTER ============================= */
footer.site-footer {
  background: var(--charcoal-900);
  color: #c9c2b7;
  padding: 70px 0 26px;
}
footer.site-footer p { color: #c9c2b7; font-size: 0.92rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 14px; }
.footer-logo .logo-mark { width: 34px; height: 34px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-400); text-decoration: underline; }

/* ============================= PAGE HERO (inner pages) ============================= */
.page-hero {
  background: var(--pine-900);
  color: var(--white);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,155,76,0.25), transparent 70%);
}
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero .eyebrow::before { background: var(--gold-400); }
.page-hero h1 { color: var(--white); max-width: 700px; }
.page-hero p.lede { color: #d8ddd2; max-width: 560px; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: #b9c1b3; margin-bottom: 18px; }
.breadcrumb a { color: var(--gold-400); font-weight: 600; }

/* ============================= FULL MATERIALS PAGE ============================= */
.materials-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.materials-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--sand-200);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--charcoal-700);
  transition: all 0.2s ease;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--pine-900);
  border-color: var(--pine-900);
  color: var(--white);
}

.materials-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.materials-sort label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal-500);
  white-space: nowrap;
}
.materials-sort select {
  padding: 9px 34px 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--sand-200);
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23443C33" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 12px center;
  background-size: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--charcoal-700);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.materials-sort select:focus { outline: 2px solid var(--terracotta-600); outline-offset: 2px; }

.materials-grid--full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.material-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.material-detail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.material-detail-card .photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }

.material-detail-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.yard-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(27, 51, 39, 0.82);
  color: var(--gold-400);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
}
.material-detail-card .body { padding: 22px 24px 26px; }
.material-detail-card .category {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--terracotta-600); margin-bottom: 6px; display: block;
}
.material-detail-card h3 { margin-bottom: 8px; }
.material-detail-card p { font-size: 0.92rem; margin-bottom: 14px; }
.use-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.use-tags span {
  font-size: 0.76rem;
  background: var(--sand-100);
  color: var(--pine-900);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
}

/* ============================= ABOUT PAGE ============================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  padding: 30px;
  background: var(--sand-100);
  border-radius: var(--radius-md);
}
.value-card h3 { font-size: 1.08rem; }
.timeline { border-left: 3px solid var(--sand-200); padding-left: 30px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -37px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--terracotta-600);
  border: 3px solid var(--sand-50);
}

/* ============================= CONTACT PAGE ============================= */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pine-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card .icon-wrap svg { width: 20px; height: 20px; stroke: var(--gold-400); }
.contact-card strong { display: block; color: var(--pine-900); margin-bottom: 2px; }
.contact-card span, .contact-card a { font-size: 0.92rem; color: var(--charcoal-700); }

.contact-cta-band {
  max-width: 940px;
  margin: 32px auto 0;
  background: linear-gradient(120deg, var(--pine-900), var(--pine-800));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-cta-band p { color: #d8ddd2; margin: 0; max-width: 480px; font-size: 1rem; }

.faq-item {
  border-bottom: 1px solid var(--sand-200);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pine-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta-600);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; }

/* ============================= REVEAL ANIMATION =============================
   Progressive enhancement: content is fully visible by default. The hidden
   starting state only applies once JS confirms it can run the reveal
   (html.js-reveal, set in main.js) so no-JS / slow-JS visitors and crawlers
   always see full content immediately. */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================= RESPONSIVE ============================= */
@media (max-width: 980px) {
  .materials-grid, .materials-grid--full, .why-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Header switches to the hamburger nav earlier than the 760px content
   breakpoint: the full desktop nav row (logo + 5 links + phone + CTA
   button) starts wrapping and overlapping around ~870px, which lands
   right in the middle of common tablet widths (768-834px). */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .logo { font-size: 1.1rem; }
  .logo-text small { font-size: 0.56rem; }
  .header-cta { gap: 10px; }
  .header-phone { display: none; }
  .header-cta .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
}

@media (max-width: 760px) {
  .topbar .topbar-item:not(:first-child) { display: none; }
  .materials-grid, .materials-grid--full, .why-grid, .value-grid { grid-template-columns: 1fr; }
  .cta-band, .contact-cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding-top: 40px; }
}

nav.main-nav.open {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--sand-50);
  flex-direction: column;
  padding: 20px 24px 30px;
  gap: 18px;
  box-shadow: var(--shadow-md);
}
