/* =====================================================================
   BOP Retaining Walls — Stylesheet
   Earthy, grounded design system for a Bay of Plenty trades business.
   Palette: clay / sand / stone / charcoal on a warm off-white base.
   ===================================================================== */

:root {
  --clay: #b3592d;          /* primary terracotta accent */
  --clay-dark: #8f4421;
  --clay-soft: #e8c8b0;
  --sand: #f0c090;          /* highlight on dark surfaces */
  --stone: #6f6a60;         /* muted body text */
  --charcoal: #2c2c2a;      /* dark surfaces + headings */
  --charcoal-2: #3a3935;
  --cream: #faf6f0;         /* page background */
  --cream-2: #f3ece1;       /* alt section background */
  --line: #e4ddd0;          /* hairline borders */
  --white: #ffffff;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(44, 44, 42, 0.08);
  --shadow: 0 8px 24px rgba(44, 44, 42, 0.10);
  --shadow-lg: 0 20px 50px rgba(44, 44, 42, 0.16);

  --maxw: 1180px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--clay); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--clay-dark); }

h1, h2, h3, h4 {
  font-family: var(--head);
  line-height: 1.08;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.text-muted { color: var(--stone); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.2rem; padding: 1rem 1.9rem; }

.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; box-shadow: var(--shadow); }

.btn-secondary { background: var(--charcoal); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; }

.btn-outline { background: transparent; color: var(--clay); border-color: var(--clay); }
.btn-outline:hover { background: var(--clay); color: #fff; }

/* ----- Top Bar ----- */
.topbar {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: .55rem; padding-bottom: .55rem; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: 1.5rem; }
.topbar a { color: rgba(255, 255, 255, 0.82); }
.topbar a:hover { color: var(--sand); }
.topbar strong { color: var(--sand); }

/* ----- Header / Nav ----- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }

.logo {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
  position: relative;
}
.logo span { color: var(--clay); }
.logo small {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: .25rem;
}

nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
nav ul li a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
nav ul li a:hover { color: var(--clay); }
.nav-cta {
  background: var(--clay);
  color: #fff !important;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--clay-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 26px;
  background: var(--charcoal);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(28,27,25,0.92) 0%, rgba(44,44,42,0.72) 55%, rgba(143,68,33,0.55) 100%),
    repeating-linear-gradient(115deg, #4a443c 0 38px, #443e37 38px 40px),
    var(--charcoal);
  overflow: hidden;
}
.hero::after {
  /* layered "wall course" texture along the base */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 76px),
              repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 38px);
  opacity: .5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; padding: 5.5rem 0 5rem; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--sand);
  background: rgba(240, 192, 144, 0.12);
  border: 1px solid rgba(240, 192, 144, 0.3);
  padding: .4rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--sand); font-style: normal; }
.hero-sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.hero-trust-item { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.hero-trust-item .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--clay); color: #fff; font-size: .8rem; font-weight: 700;
}

/* ----- Intro Strip ----- */
.intro-strip { background: var(--clay); color: #fff; }
.intro-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; flex-wrap: wrap; }
.intro-strip p { font-family: var(--head); font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.intro-strip p span { color: rgba(255,255,255,0.78); font-weight: 400; }
.intro-strip .btn-secondary { background: #fff; color: var(--clay); }
.intro-strip .btn-secondary:hover { background: var(--charcoal); color: #fff; }

/* ----- Sections ----- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--cream-2); }
.section-header { max-width: 720px; margin-bottom: 3rem; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--clay);
  margin-bottom: .7rem;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .9rem; }
.section-header p { font-size: 1.12rem; }

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--clay-soft); }
.service-icon {
  font-size: 1.8rem;
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream-2);
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.service-card p { color: var(--stone); font-size: 1rem; }

/* ----- Why Us ----- */
.why-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.why-grid h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.why-list { display: flex; flex-direction: column; gap: 1.4rem; }
.why-item { display: flex; gap: 1rem; }
.why-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.why-text h4 { font-size: 1.3rem; margin-bottom: .15rem; }
.why-text p { color: var(--stone); font-size: 1rem; }
.why-image { position: relative; }
.why-image img {
  width: 100%; height: 100%; min-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.why-badge {
  position: absolute;
  bottom: -1.2rem; left: -1.2rem;
  background: var(--clay);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-badge small {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  margin-top: .3rem;
  max-width: 200px;
}

/* ----- Process ----- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  counter-reset: step;
  position: relative;
}
.process-step { text-align: center; position: relative; padding-top: .5rem; }
.step-num {
  width: 58px; height: 58px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal);
  color: var(--sand);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--cream);
  position: relative;
  z-index: 1;
}
.process-step h4 { font-size: 1.25rem; margin-bottom: .4rem; }
.process-step p { color: var(--stone); font-size: 0.98rem; }
/* connecting line */
.process-steps::before {
  content: "";
  position: absolute;
  top: 29px; left: 10%; right: 10%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

/* ----- Trust / Testimonials ----- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--clay); letter-spacing: 0.15em; font-size: 1.15rem; margin-bottom: .9rem; }
.trust-card blockquote { font-size: 1.04rem; color: var(--charcoal-2); font-style: italic; margin-bottom: 1.1rem; }
.trust-author { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.trust-author span { color: var(--stone); font-weight: 400; font-size: 0.95rem; }

.credentials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.credential-item { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-family: var(--head); font-size: 1.08rem; letter-spacing: .01em; }
.cred-icon { color: var(--clay); font-weight: 700; }

/* ----- FAQ ----- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--charcoal);
  background: transparent;
  border: none;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}
.faq-question:hover { color: var(--clay); }
.faq-icon { flex-shrink: 0; font-size: 1.6rem; color: var(--clay); line-height: 1; transition: transform .25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 1.4rem 1.3rem; color: var(--stone); }

/* ----- Locations ----- */
.locations-grid { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.location-chip {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  padding: .65rem 1.3rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}
.location-chip:hover { background: var(--clay); color: #fff; border-color: var(--clay); transform: translateY(-2px); }

/* ----- Quote Form ----- */
.form-section { background: var(--cream-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
.form-info h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.form-info > p { color: var(--stone); margin-bottom: 1.4rem; }
.form-info ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; }
.form-info ul li { position: relative; padding-left: 1.8rem; color: var(--charcoal-2); }
.form-info ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--clay); font-weight: 700;
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.quote-form h3 { font-size: 1.7rem; margin-bottom: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  margin-bottom: .35rem;
  color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .8rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(179, 89, 45, 0.15);
}
.form-submit { width: 100%; margin-top: .4rem; }
.form-note { text-align: center; font-size: 0.88rem; color: var(--stone); margin-top: .8rem; }
.form-success {
  background: #e8f3e8;
  border: 1px solid #b8d8b8;
  color: #2f6b34;
  border-radius: var(--radius);
  padding: 1.2rem;
  font-weight: 500;
  text-align: center;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ----- CTA Banner ----- */
.cta-section {
  background:
    linear-gradient(120deg, rgba(28,27,25,0.95), rgba(143,68,33,0.85)),
    var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}
.cta-section h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin: .4rem 0 1rem; }
.cta-section p { color: rgba(255,255,255,0.88); max-width: 620px; margin: 0 auto 1.6rem; font-size: 1.15rem; }
.cta-phone {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--sand);
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}
.cta-phone:hover { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-section .btn-secondary { background: #fff; color: var(--charcoal); }
.cta-section .btn-secondary:hover { background: var(--sand); }

/* ----- Footer ----- */
footer { background: var(--charcoal); color: rgba(255,255,255,0.72); padding: 4rem 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .logo { color: #fff; }
.footer-brand .logo small { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: 0.96rem; }
footer h4 { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
footer ul li a { color: rgba(255,255,255,0.72); font-size: 0.96rem; }
footer ul li a:hover { color: var(--sand); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  padding-top: 1.5rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
}

/* ----- Location-page content (prose) ----- */
.page-hero {
  background:
    linear-gradient(115deg, rgba(28,27,25,0.92), rgba(143,68,33,0.6)),
    var(--charcoal);
  color: #fff;
  padding: 4rem 0;
}
.page-hero .breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: .8rem; }
.page-hero .breadcrumb a { color: var(--sand); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); color: #fff; margin-bottom: 1rem; }
.page-hero h1 em { color: var(--sand); font-style: normal; }
.page-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.88); max-width: 680px; }
.page-hero .hero-actions { margin-top: 1.8rem; margin-bottom: 0; }

.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.4rem; margin: 1.6rem 0 .5rem; }
.prose p { color: var(--charcoal-2); margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; color: var(--charcoal-2); }
.prose ul li { margin-bottom: .5rem; }
.prose strong { color: var(--charcoal); }

.local-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.local-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.local-aside h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.local-aside ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.4rem; }
.local-aside ul li { position: relative; padding-left: 1.6rem; color: var(--charcoal-2); font-size: 0.98rem; }
.local-aside ul li::before { content: "✓"; position: absolute; left: 0; color: var(--clay); font-weight: 700; }
.local-aside .btn { width: 100%; }
.local-phone { display: block; text-align: center; font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: var(--clay); margin-top: .8rem; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-image img { min-height: 320px; }
  .form-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-steps::before { display: none; }
  .local-grid { grid-template-columns: 1fr; }
  .local-aside { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .menu-toggle { display: flex; }
  nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  nav.open { max-height: 460px; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.5rem 1.2rem; }
  nav ul li { border-bottom: 1px solid var(--line); }
  nav ul li:last-child { border-bottom: none; }
  nav ul li a { display: block; padding: .85rem 0; font-size: 1.15rem; }
  .nav-cta { text-align: center; margin-top: .6rem; }

  .hero-content { padding: 3.5rem 0; }
  .intro-strip .container { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .why-badge { left: 0; }
  .footer-bottom { flex-direction: column; }
}
