/* =========================================================
   KITCHENS PLUS BATHROOMS — SHARED FUNNEL STYLES
   Brand colours extracted from screenshot + brief
   ========================================================= */

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

:root {
  /* Colour system */
  --red:        #d91e24;
  --red-dark:   #b01820;
  --charcoal:   #2b2d2d;
  --charcoal-2: #3d3f3f;
  --lime:       #c8d400;
  --lime-dark:  #a8b300;
  --white:      #ffffff;
  --off-white:  #f7f7f7;
  --grey-light: #e8e8e8;
  --grey-mid:   #9e9e9e;
  --grey-text:  #555555;
  --success:    #2e7d32;
  --warning:    #e65100;

  /* Typography */
  --font: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fw-normal: 400;
  --fw-bold:   700;

  /* Spacing (8px grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;

  /* Max widths */
  --max-w: 1140px;
  --max-w-narrow: 760px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: var(--fw-normal);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }

/* --- Utility -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-2);
  padding-right: var(--sp-2);
}

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

/* --- Offer Bar ------------------------------------------- */
.offer-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px var(--sp-2);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Header ---------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  padding: var(--sp-2) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.site-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.header-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* --- Trust Badge Strip ----------------------------------- */
.trust-strip {
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-1);
}

@media (min-width: 600px) {
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }
}

.trust-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 0;
}

.trust-strip-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* --- Trustpilot Widget ---------------------------------- */
.trustpilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  white-space: nowrap;
}

.trustpilot-badge .tp-stars { display: flex; gap: 2px; }
.trustpilot-badge .tp-star {
  width: 16px; height: 16px;
  background: #00b67a;
  display: flex; align-items: center; justify-content: center;
}
.trustpilot-badge .tp-star svg { width: 10px; height: 10px; fill: white; }
.trustpilot-badge .tp-logo { color: #00b67a; font-size: 0.7rem; font-weight: var(--fw-bold); letter-spacing: 0.02em; }

/* Inline trust badges (used in hero/sections) */
.trust-badges-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--grey-light);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  white-space: nowrap;
}

.badge-pill.on-dark {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

.badge-pill svg { flex-shrink: 0; }

/* --- Hero (Page 1) --------------------------------------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--sp-6) var(--sp-2) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-offer-badge {
  width: 150px;
  height: 150px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
  padding: var(--sp-2);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.hero-offer-badge .badge-main {
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-offer-badge .badge-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  background: var(--charcoal);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: var(--fw-bold);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 580px;
  margin-bottom: var(--sp-2);
}

.hero p {
  font-size: 1.05rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  max-width: 520px;
  margin-bottom: var(--sp-3);
  opacity: 0.95;
}

/* --- CTA Buttons ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
  min-height: 52px;
  line-height: 1;
  text-align: center;
}

.btn:active { transform: scale(0.98); }

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dark); }

.btn-charcoal {
  background: var(--charcoal);
  color: var(--white);
}
.btn-charcoal:hover { background: var(--charcoal-2); }

.btn-lime {
  background: var(--lime);
  color: var(--charcoal);
}
.btn-lime:hover { background: var(--lime-dark); }

.btn-full { width: 100%; }

/* --- Lead Form Section ---------------------------------- */
.lead-form-section {
  background: var(--off-white);
  padding: var(--sp-6) var(--sp-2);
}

.lead-form-section .container {
  max-width: var(--max-w-narrow);
}

.form-heading {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  margin-bottom: var(--sp-1);
  text-align: center;
}

.form-subheading {
  font-size: 0.95rem;
  color: var(--grey-text);
  text-align: center;
  margin-bottom: var(--sp-3);
}

/* GHL placeholder styles */
#ghl-form-placeholder,
#ghl-form-placeholder-page2 {
  background: var(--white);
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: var(--sp-4);
  text-align: center;
  color: var(--grey-text);
  font-size: 0.85rem;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Why Choose Us Section ------------------------------ */
.why-section {
  padding: var(--sp-8) var(--sp-2);
  background: var(--white);
}

.section-title {
  font-size: clamp(1.3rem, 3.5vw, 1.85rem);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  text-align: center;
  margin-bottom: var(--sp-5);
  line-height: 1.2;
}

.section-title span { color: var(--red); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

.why-card {
  background: var(--off-white);
  border-radius: 4px;
  padding: var(--sp-3);
  text-align: center;
}

.why-card-icon {
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-2);
}

.why-card-icon svg { width: 26px; height: 26px; fill: white; }

.why-card h3 {
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--grey-text);
  line-height: 1.55;
}

/* --- Offer Banner --------------------------------------- */
.offer-banner {
  background: var(--red);
  padding: var(--sp-5) var(--sp-2);
  text-align: center;
  color: var(--white);
}

.offer-banner h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
}

.offer-banner p {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: var(--sp-3);
}

/* --- Footer --------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  padding: var(--sp-6) var(--sp-2) var(--sp-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--sp-2);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 340px;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--sp-2);
}

.footer-list {
  list-style: none;
  font-size: 0.875rem;
  line-height: 2;
  opacity: 0.75;
}

.footer-list li { display: flex; align-items: flex-start; gap: 6px; }
.footer-list svg { flex-shrink: 0; margin-top: 5px; opacity: 0.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-3);
  font-size: 0.78rem;
  opacity: 0.55;
  text-align: center;
}

/* --- Split Hero (Page 1 — form above fold) --------------- */
.split-hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
}

.split-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  z-index: 0;
}

.split-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* On mobile the form panel comes first, copy below */
.split-hero-copy {
  order: 2;
  padding: var(--sp-5) 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.split-hero-copy h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 540px;
}

.split-hero-copy p {
  font-size: 1rem;
  color: var(--white);
  opacity: 0.92;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.split-hero-form {
  order: 1;
  background: var(--white);
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  margin: var(--sp-3) calc(-1 * var(--sp-2));
}

.split-hero-form .form-heading {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 4px;
}

.split-hero-form .form-subheading {
  text-align: left;
  margin-bottom: var(--sp-2);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .split-hero-inner {
    flex-direction: row;
    align-items: stretch;
    gap: var(--sp-5);
    min-height: 600px;
    padding: var(--sp-6) var(--sp-2);
  }

  .split-hero-copy {
    order: 1;
    flex: 1 1 0;
    padding: 0;
    justify-content: center;
  }

  .split-hero-form {
    order: 2;
    flex: 0 0 420px;
    margin: 0;
    border-radius: 6px;
    padding: var(--sp-4);
    align-self: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }

  .split-hero-form .form-heading { font-size: 1.35rem; }
}

@media (min-width: 1024px) {
  .split-hero-form { flex: 0 0 460px; }
}

/* =========================================================
   PAGE 2 — GUIDE PRICE STYLES
   ========================================================= */

/* --- Page 2 Header --------------------------------------- */
.p2-hero {
  background: var(--off-white);
  padding: var(--sp-6) var(--sp-2);
  text-align: center;
  border-bottom: 3px solid var(--red);
}

.p2-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  line-height: 1.2;
  max-width: 740px;
  margin: 0 auto var(--sp-2);
}

.p2-hero p {
  font-size: 1rem;
  color: var(--grey-text);
  max-width: 600px;
  margin: 0 auto var(--sp-3);
}

/* --- Guide Price Cards ---------------------------------- */
.guide-price-section {
  padding: var(--sp-8) var(--sp-2);
  background: var(--white);
}

.guide-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

@media (min-width: 640px) {
  .guide-price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .guide-price-grid { grid-template-columns: repeat(4, 1fr); }
}

.price-card {
  background: var(--white);
  border: 2px solid var(--grey-light);
  border-radius: 6px;
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: border-color 0.18s, box-shadow 0.18s;
  position: relative;
}

.price-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(217,30,36,0.12);
}

.price-card.popular {
  border-color: var(--red);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card-tier {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.price-card h3 {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  line-height: 1.2;
}

.price-card-desc {
  font-size: 0.85rem;
  color: var(--grey-text);
  line-height: 1.55;
  flex-grow: 1;
}

.price-card-price {
  background: var(--off-white);
  border-radius: 4px;
  padding: var(--sp-2) var(--sp-2);
  text-align: center;
}

/* PLACEHOLDER — replace with real price ranges */
.price-card-price .price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-text);
  margin-bottom: 4px;
}

.price-card-price .price-value {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  line-height: 1.1;
}

.price-card-price .price-note {
  font-size: 0.72rem;
  color: var(--grey-mid);
  margin-top: 4px;
}

/* PLACEHOLDER — replace with real sales stat */
.price-card-stat {
  font-size: 0.8rem;
  color: var(--grey-text);
  text-align: center;
  font-style: italic;
}

.price-card-feat {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--grey-text);
  line-height: 1.4;
}

.price-card-feat svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

/* --- P2 Reassurance Section ----------------------------- */
.p2-reassurance {
  background: var(--off-white);
  padding: var(--sp-8) var(--sp-2);
  border-top: 1px solid var(--grey-light);
}

.reassurance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

@media (min-width: 640px) {
  .reassurance-grid { grid-template-columns: repeat(3, 1fr); }
}

.reassurance-card {
  text-align: center;
  padding: var(--sp-3);
}

.reassurance-card .r-number {
  font-size: 2.25rem;
  font-weight: var(--fw-bold);
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

.reassurance-card h3 {
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.reassurance-card p {
  font-size: 0.85rem;
  color: var(--grey-text);
  line-height: 1.55;
}

/* --- P2 Booking Form Section ---------------------------- */
.booking-form-section {
  padding: var(--sp-8) var(--sp-2);
  background: var(--charcoal);
  color: var(--white);
}

.booking-form-section .form-heading {
  color: var(--white);
}

.booking-form-section .form-subheading {
  color: rgba(255,255,255,0.75);
}

.selected-tier-display {
  display: none;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px var(--sp-2);
  border-radius: 4px;
  margin-bottom: var(--sp-3);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.selected-tier-display.visible { display: block; }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */

@media (min-width: 768px) {
  .hero-content {
    padding-top: var(--sp-10);
    padding-bottom: var(--sp-10);
  }

  .hero-offer-badge {
    width: 170px;
    height: 170px;
  }

  .hero-offer-badge .badge-main { font-size: 1.75rem; }
}
