/* ==========================================================================
   Garage Conversions Truro — Wren Builders Ltd
   Palette derived from client logo: charcoal/black, gold, off-white
   ========================================================================== */

:root {
  --charcoal: #0d0d0e;
  --charcoal-2: #17181b;
  --charcoal-3: #202125;
  --gold: #ab8a59;
  --gold-light: #d4b483;
  --gold-pale: #f1e6d3;
  --cream: #f7f4ee;
  --cream-2: #efe9df;
  --ink: #1a1a1a;
  --grey: #5b5c5f;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 12px 32px rgba(13, 13, 14, 0.14);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

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

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--charcoal); }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(171, 138, 89, 0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--cream-2);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--gold-light); }

.header-cta {
  background: var(--gold);
  color: var(--charcoal) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.header-cta:hover { background: var(--gold-light); color: var(--charcoal) !important; }

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  border: 2px solid rgba(171, 138, 89, 0.25);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 { color: var(--white); }

.hero p.lead {
  color: var(--cream-2);
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-badge {
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}
.hero-badge strong {
  display: block;
  font-size: 1.4rem;
  color: var(--gold-light);
  font-family: var(--font-head);
}
.hero-badge span { font-size: 0.82rem; color: var(--cream-2); }

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-primary:hover { background: var(--gold-light); color: var(--charcoal); }
.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--white); }

.hero-panel {
  background: var(--charcoal-2);
  border: 1px solid rgba(171, 138, 89, 0.3);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-panel h3 { color: var(--gold-light); font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-panel ul { margin: 0; padding-left: 20px; color: var(--cream-2); }
.hero-panel li { margin-bottom: 8px; }

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(171, 138, 89, 0.35);
  box-shadow: var(--shadow);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-charcoal { background: var(--charcoal); color: var(--cream-2); }
.section-charcoal h2, .section-charcoal h3 { color: var(--white); }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card .icon {
  width: 44px; height: 44px;
  margin-bottom: 14px;
}

.card-dark {
  background: var(--charcoal-2);
  border: 1px solid rgba(171, 138, 89, 0.25);
  color: var(--cream-2);
}
.card-dark h3 { color: var(--gold-light); }

.area-card, .service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.area-card:hover, .service-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.area-card h3, .service-card h3 { color: var(--charcoal); margin-bottom: 6px; font-size: 1.1rem; }
.area-card span.meta, .service-card span.meta { font-size: 0.85rem; color: var(--grey); }

/* ---------- Process / timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.timeline-step {
  position: relative;
  padding-top: 46px;
}
.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
}
.timeline-step h3 { font-size: 1.05rem; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 24px;
}
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-meta { font-size: 0.82rem; color: var(--grey); margin-top: 14px; }

.checkatrade-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--charcoal-2);
  border: 1px solid rgba(171, 138, 89, 0.3);
  border-radius: var(--radius);
  padding: 20px 26px;
  color: var(--cream-2);
}
.checkatrade-strip strong { color: var(--gold-light); font-family: var(--font-head); font-size: 1.6rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--cream-2);
  padding: 20px 0;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--grey); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold);
  color: var(--charcoal);
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { color: var(--charcoal); }
.cta-band .btn-primary { background: var(--charcoal); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--charcoal-2); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--grey);
  padding: 16px 0;
  background: var(--cream-2);
}
.breadcrumbs a { color: var(--grey); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream-2);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(171, 138, 89, 0.25);
}
.footer-grid h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--cream-2); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand img { height: 60px; margin-bottom: 14px; }
.footer-brand p { color: var(--cream-2); font-size: 0.9rem; max-width: 32ch; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--grey);
}
.footer-bottom a { color: var(--grey); }

/* ---------- Sticky mobile call button ---------- */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--gold);
  color: var(--charcoal);
  text-align: center;
  font-weight: 700;
  padding: 14px;
  z-index: 200;
  box-shadow: 0 -6px 20px rgba(13,13,14,0.2);
}

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding: 100px 0;
}
.error-page .code {
  font-family: var(--font-head);
  font-size: 6rem;
  color: var(--gold);
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .main-nav { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta-row .btn { width: 100%; }
  .sticky-call { display: block; }
  body { padding-bottom: 58px; }
  .header-cta { display: none; }
}

/* ---------- Enquiry form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 6px; }
.form-intro { color: var(--grey); font-size: 0.95rem; margin-bottom: 26px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-row-full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-field .req { color: var(--gold); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid #d8d2c6;
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b5c5f' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(171, 138, 89, 0.22);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-actions .btn { border: 0; cursor: pointer; font-family: var(--font-body); }
.form-privacy { font-size: 0.82rem; color: var(--grey); margin: 0; max-width: 34ch; }

/* Visually hidden honeypot — not type="hidden", which many bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  background: #fdf1ef;
  border: 1px solid #e2b4ab;
  border-left: 4px solid #b4402b;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.94rem;
  color: #7d2a1b;
}
.form-error p { margin: 0; }
.form-error a { color: #7d2a1b; text-decoration: underline; }

/* ---------- Thank you page ---------- */
.thanks-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: thanks;
}
.thanks-steps li {
  position: relative;
  padding: 0 0 18px 46px;
  counter-increment: thanks;
}
.thanks-steps li::before {
  content: counter(thanks);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-steps strong { display: block; color: var(--charcoal); }

@media (max-width: 640px) {
  .form-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .form-privacy { max-width: none; }
}

/* CTA band with a second, outline action alongside the phone number */
.cta-band .btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  margin-left: 12px;
}
.cta-band .btn-outline:hover { background: var(--charcoal); color: var(--white); }

@media (max-width: 640px) {
  .cta-band .btn { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
  .cta-band .btn-outline { margin: 12px auto 0; }
}
