/* =========================================================
   Kitchen Worktops St Albans / Worktop Warehouse
   Design system: light stone neutrals + red accent
   (palette derived from client's real logo + reference theme)
   ========================================================= */

:root {
  --white: #ffffff;
  --stone: #f3f2ee;
  --stone-alt: #e9e5dd;
  --charcoal: #211f1b;
  --charcoal-2: #17150f;
  --ink: #2b2925;
  --ink-soft: #5c584f;
  --red: #c81826;
  --red-deep: #9a1420;
  --line: #ddd7cb;
  --muted: #8a8478;
  --radius: 4px;
  --max-width: 1180px;
  --shadow-lift: 0 20px 46px rgba(33, 31, 27, 0.14);
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--charcoal);
  margin: 0 0 0.45em 0;
  font-weight: 600;
  line-height: 1.14;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--red); display: inline-block; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Stone vein divider (signature element)
   --------------------------------------------------------- */
.vein-divider {
  display: flex;
  justify-content: center;
  margin: 8px 0;
  opacity: 0.55;
}
.vein-divider svg { width: 220px; height: 20px; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.phone-link {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn-outline:hover { border-color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-2); color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--charcoal);
  }
  .header-bar { position: relative; }
  .phone-link { display: none; }
}

/* ---------------------------------------------------------
   Trust strip
   --------------------------------------------------------- */
.trust-strip { background: var(--charcoal); color: var(--stone); }
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: center;
  padding: 10px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500;
}
.trust-strip span { white-space: nowrap; color: var(--stone); opacity: 0.92; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero { background: var(--stone); padding: 68px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}
.hero-copy p.lead { font-size: 1.1rem; max-width: 46ch; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.hero-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.hero-frame img { width: 100%; height: auto; border-radius: 2px; }
.hero-frame figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase; padding: 10px 4px 2px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-frame { max-width: 420px; margin: 0 auto; }
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.section { padding: 74px 0; }
.section-white { background: var(--white); }
.section-stone { background: var(--stone); }
.section-charcoal { background: var(--charcoal); color: var(--stone); }
.section-charcoal h2, .section-charcoal h3 { color: var(--white); }
.section-charcoal p { color: #cfc9bd; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------
   Material cards
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.material-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.material-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.material-card .material-photo { aspect-ratio: 5/4; overflow: hidden; background: var(--stone-alt); }
.material-card .material-photo img { width: 100%; height: 100%; object-fit: cover; }
.material-card .material-body { padding: 24px 24px 26px; }
.material-card h3 { margin-bottom: 8px; }
.material-card p { font-size: 0.95rem; margin-bottom: 10px; }
.material-card .card-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red);
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.review-card p { color: var(--ink-soft); font-size: 0.98rem; font-style: italic; }
.review-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 20px 4px; cursor: pointer;
  font-family: 'Fraunces', serif; font-size: 1.04rem;
  color: var(--charcoal);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none;
}
.section-charcoal .faq-item summary { color: var(--white); }
.section-charcoal .faq-item { border-bottom-color: rgba(255,255,255,0.14); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: 'IBM Plex Mono', monospace; color: var(--red);
  font-size: 1.3rem; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 22px; margin: 0; }

/* ---------------------------------------------------------
   Coverage
   --------------------------------------------------------- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 22px;
}
@media (max-width: 760px) { .coverage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.96rem;
}
.coverage-item svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

/* ---------------------------------------------------------
   CTA banner
   --------------------------------------------------------- */
.cta-banner { background: var(--red); padding: 54px 0; text-align: center; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-dark { margin-top: 10px; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-row a, .contact-row span.value { color: var(--charcoal); font-size: 1rem; }
.contact-row .label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.hours-row:last-child { border-bottom: none; }

/* ---------------------------------------------------------
   Page hero (inner pages)
   --------------------------------------------------------- */
.page-hero { background: var(--stone); padding: 54px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { background: var(--charcoal-2); color: #cfc9bd; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--red); font-size: 0.76rem; letter-spacing: 0.09em; margin-bottom: 18px; text-transform: uppercase; font-family: 'IBM Plex Mono', monospace;}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #b3ac9d; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; color: #b3ac9d; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: #8f8a7d;
}
.footer-bottom a { color: #8f8a7d; }
.footer-bottom a:hover { color: var(--white); }

/* ---------------------------------------------------------
   Sticky mobile call button
   --------------------------------------------------------- */
.mobile-call-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--red); border-top: 1px solid rgba(0,0,0,0.15); }
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px;
  color: var(--white); font-family: 'IBM Plex Mono', monospace; text-transform: uppercase;
  letter-spacing: 0.07em; font-size: 0.86rem; font-weight: 700;
}
.mobile-call-bar svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .mobile-call-bar { display: block; } body { padding-bottom: 58px; } }

/* ---------------------------------------------------------
   Prose pages / 404
   --------------------------------------------------------- */
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--ink-soft); padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.error-page .code { font-family: 'IBM Plex Mono', monospace; color: var(--red); font-size: 5rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
