/* ============================================================
   Kingsley Bathroom Plumbing & Heating Centre — site styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #c8102e;
  --red-dark: #9c0c23;
  --black: #14100f;
  --white: #ffffff;
  --grey-bg: #f4f3f1;
  --grey-line: #dcd9d5;
  --grey-text: #55504c;
  --header-h: 84px;
  --header-h-scrolled: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Archivo Black', 'Inter', Arial, sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

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

/* Every anchor target sits under the sticky header */
section[id] {
  scroll-margin-top: var(--header-h);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
}

.top-bar {
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { color: var(--red); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.logo img { height: 48px; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--black); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,16,15,0.88) 0%, rgba(20,16,15,0.55) 48%, rgba(20,16,15,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 80px 0;
  max-width: 640px;
}
.eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  margin: 22px 0 30px;
  font-size: 1.1rem;
  color: #ece9e6;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.stat-strip {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-strip .container {
  display: flex;
  flex-wrap: wrap;
}
.stat-strip .stat {
  flex: 1 1 200px;
  padding: 18px 24px;
  border-left: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #cfcac5;
}
.stat-strip .stat:first-child { border-left: none; }
.stat-strip .stat strong {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
}

/* ---------------- Brand marquee ---------------- */
.brand-strip { padding: 40px 0 0; background: var(--white); }
.brand-strip-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-text);
  margin: 0 0 24px;
}
.brand-marquee {
  overflow: hidden;
  padding: 0 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: brand-scroll 70s linear infinite;
}
.brand-track img {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; overflow-x: auto; }
}

/* ---------------- Generic sections ---------------- */
.section { padding: 88px 0; }
.section-grey { background: var(--grey-bg); }
.section-black { background: var(--black); color: var(--white); }
.section-red { background: var(--red); color: var(--white); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 14px;
}
.section-black .kicker, .section-red .kicker { color: var(--white); }
.kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--red);
}
.section-black .kicker::before, .section-red .kicker::before { background: var(--white); }

.section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.section .intro { max-width: 640px; color: var(--grey-text); font-size: 1.05rem; }
.section-black .intro, .section-red .intro { color: rgba(255,255,255,0.85); }

/* Stock grid */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--grey-line);
}
.stock-card {
  border-right: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
}
.stock-card:last-child { border-right: none; }
.stock-card-body { padding: 24px; }
.stock-card .num { color: var(--red); font-weight: 700; font-family: 'Archivo Black'; }
.stock-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey-bg);
}
.stock-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.stock-card h3 { font-size: 1.15rem; margin: 10px 0 10px; }
.stock-card p { color: var(--grey-text); font-size: 0.95rem; margin: 0; }

/* Two column with image */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col img { width: 100%; height: 460px; object-fit: cover; }

.value-list { margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.2); }
.value-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}
.value-item .n { color: var(--red); font-family: 'Archivo Black'; }
.value-item h4 { margin: 0 0 6px; font-size: 1rem; text-transform: uppercase; }
.value-item p { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.92rem; }

/* Branches */
.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.branch-card {
  border: 1px solid var(--grey-line);
  background: var(--white);
}
.branch-media {
  width: 100%;
  height: 220px;
  background: var(--grey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.branch-media img { width: 100%; height: 100%; object-fit: cover; }
.branch-logo-panel { background: var(--black); }
.branch-logo-panel img { width: auto; height: auto; max-width: 62%; max-height: 56%; object-fit: contain; }
.branch-card iframe { width: 100%; height: 220px; border: 0; display: block; }
.branch-body { padding: 24px; }
.branch-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.branch-body p { margin: 4px 0; color: var(--grey-text); }
.branch-body .btn { margin-top: 16px; }

/* Trade account */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--grey-line);
  padding: 40px;
  margin-top: 40px;
}
.form-section-title {
  font-family: 'Archivo Black';
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--red);
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-line);
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  padding: 11px 12px;
  border: 1px solid #c9c5c0;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 90px; }
.radio-row { display: flex; gap: 20px; align-items: center; }
.radio-row label { font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.legal-box {
  background: var(--grey-bg);
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--grey-text);
  margin: 18px 0;
  border-left: 3px solid var(--red);
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-size: 0.9rem; }
.form-note { font-size: 0.8rem; color: var(--grey-text); margin-top: 14px; }

/* Social */
.social-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  padding: 40px;
}
.social-placeholder {
  background: var(--grey-bg);
  border: 1px dashed #b8b3ad;
  padding: 60px 24px;
  text-align: center;
}
.fb-icon {
  width: 44px; height: 44px;
  background: #1877f2;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a {
  width: 38px; height: 38px;
  border: 1px solid var(--grey-line);
  display: flex; align-items: center; justify-content: center;
}
.social-icons a svg { width: 17px; height: 17px; fill: currentColor; }
.section-black .social-icons a,
.footer .social-icons a { border-color: rgba(255,255,255,0.3); color: #fff; }
.social-icons a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* CTA band */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--black); color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer p, .footer a { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--white); }
.footer .logo img { height: 40px; margin-bottom: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

.trading-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  max-width: 640px;
  margin-top: 10px;
}

/* Simple legal page */
.legal-page .section { padding-top: 56px; }
.legal-page h2 { font-size: 1.3rem; margin: 32px 0 12px; text-transform: none; font-family: 'Inter'; font-weight: 700; }
.legal-page p, .legal-page li { color: var(--grey-text); font-size: 0.98rem; }
.legal-hero { background: var(--black); color: var(--white); padding: 70px 0; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-hero .updated { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 14px; }

/* Utility */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .two-col, .branch-grid, .footer-grid { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr 1fr; }
  .stock-card { border-right: none; }
  .stock-card:nth-child(odd) { border-right: 1px solid var(--grey-line); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--grey-line);
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-card { border-right: none !important; }
  .hero { min-height: 480px; text-align: left; }
  .hero-content { padding: 56px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
