/* ===== WWG Site — Global Styles ===== */
:root {
  --color-bg: #faf9f6;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-heading: #1a3a1a;
  --color-accent: #3d6b35;
  --color-accent-light: #4a7f40;
  --color-warm: #8b6e4e;
  --color-border: #d4cfc7;
  --color-card-bg: #ffffff;
  --color-hero-overlay: rgba(26, 58, 26, 0.65);
  --color-footer-bg: #1a2e1a;
  --color-footer-text: #d4cfc7;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --gap: 2rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-light); }

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

/* ===== Header / Nav ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-heading);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.site-logo span { color: var(--color-accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: .3s; }

.main-nav ul { display: flex; list-style: none; gap: 2rem; }
.main-nav a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 780px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  opacity: .92;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Sections ===== */
section { padding: 4rem 0; }
section:nth-child(even):not(.cta-banner):not(.trust-strip):not(.hero) { background: #f3f1ec; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 700px;
  margin: -1rem auto 2.5rem;
  font-size: 1.05rem;
}

/* ===== Cards / Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-heading);
  margin-bottom: .5rem;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .3s;
}
.gallery img:hover { transform: scale(1.03); }

/* ===== Materials List ===== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
/* Variant: max 3 columns, last partial row centred */
.materials-grid.materials-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.materials-grid.materials-grid--centered .material-card {
  flex: 0 1 calc((100% - 2 * var(--gap)) / 3);
  min-width: 280px;
}
.material-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
}
.material-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-heading);
  margin-bottom: .75rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: .5rem;
  display: inline-block;
}
.material-card ul { list-style: none; padding: 0; }
.material-card li {
  padding: .4rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--color-text-light);
}
.material-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* ===== Colour swatches ===== */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.color-swatch {
  flex: 0 1 calc((100% - 3 * 1.25rem) / 4);
  min-width: 130px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
}
.color-chip {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.08);
}
.color-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
}
@media (max-width: 600px) {
  .color-swatch { flex-basis: calc((100% - 1.25rem) / 2); max-width: none; }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: .75rem;
}
.cta-banner p { opacity: .9; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, transform .15s;
}
.btn-white { background: #fff; color: var(--color-accent); }
.btn-white:hover { background: #f0f0f0; color: var(--color-accent); transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-light); color: #fff; transform: translateY(-2px); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.contact-info p { margin-bottom: .75rem; color: var(--color-text-light); }
.contact-info strong { color: var(--color-text); }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .9rem;
  color: var(--color-text-light);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.contact-form textarea { min-height: 130px; resize: vertical; }

.form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 4px;
  font-size: .95rem;
  text-align: center;
  line-height: 1.5;
}
.form-status--pending {
  background: #f0eee8;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}
.form-status--success {
  background: #e6f0e1;
  color: #1a3a1a;
  border: 1px solid #b6d3a7;
}
.form-status--error {
  background: #fbe8e8;
  color: #6b1f1f;
  border: 1px solid #e0a8a8;
}

/* ===== BBB Badge ===== */
.bbb-badge {
  display: inline-block;
}
.bbb-badge img { height: auto; max-width: 140px; display: block; }

/* ===== Trust strip (homepage badge row) ===== */
.trust-strip { background: #fff; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 2.5rem;
}
.badge-row img {
  height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(.15);
  opacity: .92;
  transition: filter .25s, opacity .25s, transform .25s;
}
.badge-row img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}
.badge-row a { display: block; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 2rem;
  font-size: .9rem;
  line-height: 1.8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap);
}
.site-footer h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.site-footer a { color: var(--color-footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { padding: .2rem 0; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8rem;
  opacity: .7;
}

/* ===== Prose (page body text) ===== */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-heading);
  margin: 2rem 0 .75rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }

/* ===== Responsive ===== */
/* Tablet / small laptop: tighten gaps and reduce headline sizes */
@media (max-width: 1024px) {
  :root { --gap: 1.5rem; }
  section { padding: 3rem 0; }
  .section-title { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .card img, .gallery img { height: 200px; }
}

/* Phone / narrow tablet: hamburger nav + single-column stacks */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 1.1rem; }
  section { padding: 2.5rem 0; }
  .section-title { font-size: 1.55rem; margin-bottom: 1.25rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

  .site-header .container { height: 64px; }
  .site-logo { font-size: 1.1rem; }

  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem 0; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 1rem; }

  .hero { min-height: 320px; }
  .hero p { font-size: 1rem; }

  .card-grid { grid-template-columns: 1fr; }
  .card img { height: 220px; }
  .materials-grid { grid-template-columns: 1fr; }
  .material-card { padding: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .bbb-badge img { margin: 0 auto; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
  .gallery img { height: 150px; border-radius: 4px; }

  .cta-banner { padding: 2.25rem 1.25rem; }
  .cta-banner h2 { font-size: 1.5rem; }

  .badge-row { gap: 1rem 1.5rem; }
  .badge-row img { height: 48px; }
}

/* Very narrow phones */
@media (max-width: 400px) {
  .site-logo { font-size: .95rem; white-space: normal; }
  .hero h1 { font-size: 1.85rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 130px; }
}
