/* ===================================================
   Balham Surveyors – Main Stylesheet
   balhamsurveyors.com
   =================================================== */

/* ── Custom Properties ── */
:root {
  --primary:    #1a3a5c;   /* deep navy */
  --secondary:  #c9a84c;   /* warm gold  */
  --accent:     #2e7d6e;   /* teal green */
  --light:      #f7f8fa;
  --dark:       #0f1e2d;
  --text:       #333d4b;
  --text-light: #6b7a8d;
  --white:      #ffffff;
  --border:     #dce3ec;
  --shadow:     0 4px 24px rgba(26,58,92,.12);
  --shadow-lg:  0 12px 40px rgba(26,58,92,.18);
  --radius:     10px;
  --radius-lg:  18px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset & Base ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img {
  max-width:100%;
  height:auto;
  display:block;
}
a { color: var(--primary); text-decoration:none; transition: var(--transition); }
a:hover { color: var(--secondary); }
ul { list-style:none; }

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position:absolute;
  top:-100%;
  left:1rem;
  background:var(--primary);
  color:var(--white);
  padding:.5rem 1rem;
  border-radius:var(--radius);
  z-index:9999;
  font-size:.875rem;
}
.skip-link:focus { top:1rem; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.25;
  margin-bottom:.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom:1rem; }
.lead { font-size:1.15rem; color:var(--text-light); }
.text-gold  { color:var(--secondary); }
.text-white { color:var(--white); }

/* ── Container ── */
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 1.5rem; }
.container-sm { max-width:860px; }

/* ── Sections ── */
.section { padding:5rem 0; }
.section-sm { padding:3rem 0; }
.section-dark  { background:var(--dark); color:var(--white); }
.section-light { background:var(--light); }
.section-title { text-align:center; margin-bottom:3rem; }
.section-title p { color:var(--text-light); max-width:640px; margin:0 auto; }
.section-title .badge {
  display:inline-block;
  background:rgba(201,168,76,.15);
  color:var(--secondary);
  border:1px solid var(--secondary);
  padding:.25rem .875rem;
  border-radius:50px;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:1rem;
}

/* ── Buttons ── */
.btn {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 2rem;
  border-radius:50px;
  font-weight:600;
  font-size:.95rem;
  transition: var(--transition);
  cursor:pointer;
  border:2px solid transparent;
  text-decoration:none;
  line-height:1;
}
.btn-primary {
  background:var(--secondary);
  color:var(--dark);
  border-color:var(--secondary);
}
.btn-primary:hover {
  background:transparent;
  color:var(--secondary);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(201,168,76,.3);
}
.btn-outline {
  background:transparent;
  color:var(--white);
  border-color:var(--white);
}
.btn-outline:hover {
  background:var(--white);
  color:var(--primary);
  transform:translateY(-2px);
}
.btn-dark {
  background:var(--primary);
  color:var(--white);
  border-color:var(--primary);
}
.btn-dark:hover {
  background:transparent;
  color:var(--primary);
}

/* ── Navigation ── */
#navbar {
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  padding:.75rem 0;
  transition: var(--transition);
  background:transparent;
}
#navbar.scrolled {
  background:rgba(15,30,45,.97);
  backdrop-filter:blur(10px);
  box-shadow:0 2px 20px rgba(0,0,0,.25);
  padding:.5rem 0;
}
.nav-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.nav-logo {
  display:flex;
  align-items:center;
  gap:.75rem;
  text-decoration:none;
}
.nav-logo-icon {
  width:42px;
  height:42px;
  background:var(--secondary);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  color:var(--dark);
  font-weight:900;
  flex-shrink:0;
}
.nav-logo-text { line-height:1.1; }
.nav-logo-text strong {
  display:block;
  font-family:var(--font-head);
  font-size:1.15rem;
  color:var(--white);
  font-weight:700;
}
.nav-logo-text span {
  font-size:.7rem;
  color:var(--secondary);
  letter-spacing:.1em;
  text-transform:uppercase;
}
.nav-menu {
  display:flex;
  align-items:center;
  gap:.25rem;
}
.nav-link {
  padding:.5rem .875rem;
  color:rgba(255,255,255,.9);
  font-size:.875rem;
  font-weight:500;
  border-radius:6px;
  transition:var(--transition);
  white-space:nowrap;
}
.nav-link:hover, .nav-link.active {
  color:var(--secondary);
  background:rgba(255,255,255,.08);
}
.nav-cta {
  background:var(--secondary);
  color:var(--dark) !important;
  padding:.5rem 1.25rem;
  border-radius:50px;
  font-weight:700;
}
.nav-cta:hover {
  background:var(--white);
  color:var(--primary) !important;
  transform:translateY(-1px);
}
.nav-toggle {
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  padding:.5rem;
  background:none;
  border:none;
}
.nav-toggle span {
  display:block;
  width:24px;
  height:2px;
  background:var(--white);
  border-radius:2px;
  transition:var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--dark);
}

/* ── Hero Video Background ── */
.hero-video-bg {
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}
.hero-video {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  /* Subtle slow zoom on video element as well */
  transform-origin:center center;
}

/* ── Hero Image Slider (fallback / decorative) ── */
.hero-slider {
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-slide {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.2s ease-in-out;
  /* Ken Burns zoom on each slide */
  animation: heroKenBurns 8s ease-in-out infinite alternate;
}
.hero-slide.active {
  opacity:1;
}
@keyframes heroKenBurns {
  from { transform:scale(1);    }
  to   { transform:scale(1.08); }
}

/* Slider dots */
.hero-dots {
  position:absolute;
  bottom:2rem;
  left:50%;
  transform:translateX(-50%);
  z-index:3;
  display:flex;
  gap:.5rem;
}
.hero-dot {
  width:10px;
  height:10px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.6);
  background:transparent;
  cursor:pointer;
  transition:background .3s, border-color .3s;
  padding:0;
}
.hero-dot.active {
  background:#c9a84c;
  border-color:#c9a84c;
}

/* Keep old .hero-bg for any pages still using it */
.hero-bg {
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-bg img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform:scale(1); }
  to   { transform:scale(1.08); }
}

.hero-overlay {
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    135deg,
    rgba(15,30,45,.88) 0%,
    rgba(15,30,45,.65) 50%,
    rgba(15,30,45,.45) 100%
  );
}
.hero-particles {
  position:absolute;
  inset:0;
  z-index:2;
  overflow:hidden;
  pointer-events:none;
}
.particle {
  position:absolute;
  width:3px;
  height:3px;
  background:rgba(201,168,76,.5);
  border-radius:50%;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform:translateY(100vh) scale(0); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:.6; }
  100% { transform:translateY(-10vh) scale(1); opacity:0; }
}
.hero-content {
  position:relative;
  z-index:3;
  padding:8rem 0 5rem;
}
.hero-grid {
  display:grid;
  grid-template-columns:1fr 420px;
  gap:4rem;
  align-items:start;
}
.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background:rgba(201,168,76,.2);
  border:1px solid rgba(201,168,76,.6);
  padding:.4rem 1rem;
  border-radius:50px;
  font-size:.8rem;
  font-weight:700;
  color:#f5d87a !important;
  letter-spacing:.05em;
  margin-bottom:1.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color:#ffffff !important;
  margin-bottom:1.25rem;
  line-height:1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-title .highlight {
  color:var(--secondary);
  position:relative;
}
.hero-subtitle {
  font-size:1.1rem;
  color:#ffffff !important;
  margin-bottom:2rem;
  max-width:560px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-actions {
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:2.5rem;
}
.hero-trust {
  display:flex;
  align-items:center;
  gap:1.5rem;
  flex-wrap:wrap;
}
.trust-item {
  display:flex;
  align-items:center;
  gap:.5rem;
  color:#ffffff !important;
  font-size:.82rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.trust-item i { color:var(--secondary); font-size:1rem; }
.hero-form-card {
  background:rgba(255,255,255,.97);
  border-radius:var(--radius-lg);
  padding:2rem;
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(10px);
}
.hero-form-card h3 {
  font-size:1.25rem;
  margin-bottom:.25rem;
  color:var(--primary);
}
.hero-form-card p {
  font-size:.85rem;
  color:var(--text-light);
  margin-bottom:1.5rem;
}

/* ── Stats Strip ── */
.stats-strip {
  background:var(--primary);
  padding:2.5rem 0;
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  text-align:center;
}
.stat-item { padding:1rem; }
.stat-number {
  font-family:var(--font-head);
  font-size:2.5rem;
  color:var(--secondary);
  font-weight:700;
  line-height:1;
  display:block;
}
.stat-label {
  font-size:.82rem;
  color:rgba(255,255,255,.75);
  margin-top:.35rem;
  text-transform:uppercase;
  letter-spacing:.07em;
}

/* ── Cards ── */
.card {
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:var(--transition);
}
.card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow-lg);
}
.card-body { padding:1.75rem; }
.card-icon {
  width:60px;
  height:60px;
  border-radius:12px;
  background:rgba(26,58,92,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  color:var(--primary);
  margin-bottom:1rem;
}
.card-icon.gold {
  background:rgba(201,168,76,.12);
  color:var(--secondary);
}

/* ── Services Grid ── */
.services-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.75rem;
}
.service-card {
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:2rem;
  box-shadow:var(--shadow);
  transition:var(--transition);
  border:2px solid transparent;
  position:relative;
  overflow:hidden;
}
.service-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  background:var(--secondary);
  transform:scaleX(0);
  transition:var(--transition);
}
.service-card:hover::before { transform:scaleX(1); }
.service-card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow-lg);
  border-color:rgba(201,168,76,.2);
}
.service-icon {
  font-size:2.5rem;
  color:var(--secondary);
  margin-bottom:1rem;
}
.service-price {
  display:inline-block;
  background:var(--light);
  padding:.3rem .75rem;
  border-radius:50px;
  font-size:.8rem;
  font-weight:600;
  color:var(--primary);
  margin-top:1rem;
}
.service-link {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:var(--secondary);
  font-weight:600;
  font-size:.9rem;
  margin-top:1.25rem;
  transition:var(--transition);
}
.service-link:hover { gap:.65rem; }

/* ── Process Steps ── */
.process-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2rem;
  position:relative;
}
.process-grid::before {
  content:'';
  position:absolute;
  top:32px; left:12%; right:12%;
  height:2px;
  background:linear-gradient(90deg, var(--secondary), var(--accent));
}
.process-step { text-align:center; }
.step-number {
  width:64px;
  height:64px;
  border-radius:50%;
  background:var(--primary);
  color:var(--secondary);
  font-family:var(--font-head);
  font-size:1.4rem;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 1.25rem;
  position:relative;
  z-index:1;
  border:4px solid var(--secondary);
}
.process-step h4 { color:var(--primary); }

/* ── Team ── */
.team-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
.team-card {
  text-align:center;
  background:var(--white);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:var(--transition);
}
.team-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.team-img-wrap {
  position:relative;
  overflow:hidden;
  height:300px;
}
.team-img-wrap img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transition:var(--transition);
}
.team-card:hover .team-img-wrap img { transform:scale(1.05); }
.team-info { padding:1.5rem; }
.team-name { font-size:1.2rem; color:var(--primary); margin-bottom:.25rem; }
.team-role { font-size:.85rem; color:var(--secondary); font-weight:600; margin-bottom:.75rem; }
.team-bio { font-size:.875rem; color:var(--text-light); }

/* ── Reviews ── */
.reviews-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.75rem;
}
.review-card {
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:1.75rem;
  box-shadow:var(--shadow);
  border-top:4px solid var(--secondary);
  position:relative;
}
.review-stars { color:#f4c430; font-size:1rem; margin-bottom:.875rem; }
.review-quote { font-size:.95rem; line-height:1.7; color:var(--text); margin-bottom:1.25rem; font-style:italic; }
.review-author { display:flex; align-items:center; gap:.75rem; }
.review-avatar {
  width:44px; height:44px;
  border-radius:50%;
  background:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--secondary);
  font-weight:700;
  font-size:1rem;
}
.review-author-info strong { display:block; color:var(--primary); font-size:.9rem; }
.review-author-info span  { font-size:.78rem; color:var(--text-light); }

/* ── FAQ ── */
.faq-item {
  border:1px solid var(--border);
  border-radius:var(--radius);
  margin-bottom:.875rem;
  overflow:hidden;
  transition:var(--transition);
}
.faq-item.active { border-color:var(--secondary); }
.faq-question {
  width:100%;
  background:var(--white);
  border:none;
  padding:1.25rem 1.5rem;
  text-align:left;
  font-size:1rem;
  font-weight:600;
  color:var(--primary);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  transition:var(--transition);
  font-family:var(--font-body);
}
.faq-question:hover { background:var(--light); }
.faq-icon {
  width:28px; height:28px;
  border-radius:50%;
  background:var(--light);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition:var(--transition);
  color:var(--primary);
}
.faq-item.active .faq-icon { background:var(--secondary); color:var(--dark); transform:rotate(45deg); }
.faq-answer {
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease, padding .3s ease;
  padding:0 1.5rem;
  font-size:.95rem;
  color:var(--text);
  line-height:1.7;
}
.faq-answer.open { max-height:500px; padding:1.25rem 1.5rem; }

/* ── Areas Map Section ── */
.areas-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:start;
}
.area-tags { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.25rem; }
.area-tag {
  background:var(--light);
  border:1px solid var(--border);
  padding:.4rem .875rem;
  border-radius:50px;
  font-size:.82rem;
  color:var(--primary);
  font-weight:500;
  transition:var(--transition);
  cursor:default;
}
.area-tag:hover { background:var(--primary); color:var(--white); border-color:var(--primary); }
.area-map {
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}
.area-map iframe { display:block; width:100%; height:420px; border:none; }

/* ── CTA Band ── */
.cta-band {
  background:linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding:4rem 0;
  text-align:center;
}
.cta-band h2 { color:var(--white); margin-bottom:1rem; }
.cta-band p  { color:rgba(255,255,255,.8); margin-bottom:2rem; max-width:560px; margin-left:auto; margin-right:auto; }

/* ── Contact ── */
.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4rem;
  align-items:start;
}
.contact-info-item {
  display:flex;
  gap:1rem;
  margin-bottom:1.75rem;
}
.contact-info-icon {
  width:48px; height:48px;
  border-radius:12px;
  background:rgba(201,168,76,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--secondary);
  font-size:1.25rem;
  flex-shrink:0;
}

/* ── Blog Cards ── */
.blog-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
.blog-card {
  background:var(--white);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:var(--transition);
  display:flex;
  flex-direction:column;
}
.blog-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.blog-card-img {
  height:210px;
  overflow:hidden;
  position:relative;
}
.blog-card-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:var(--transition);
}
.blog-card:hover .blog-card-img img { transform:scale(1.06); }
.blog-cat-badge {
  position:absolute;
  top:.875rem; left:.875rem;
  background:var(--secondary);
  color:var(--dark);
  font-size:.7rem;
  font-weight:700;
  padding:.25rem .65rem;
  border-radius:50px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.blog-card-body { padding:1.5rem; flex:1; display:flex; flex-direction:column; }
.blog-card-meta {
  font-size:.78rem;
  color:var(--text-light);
  margin-bottom:.75rem;
  display:flex;
  align-items:center;
  gap:.875rem;
}
.blog-card-body h3 { font-size:1.05rem; margin-bottom:.625rem; }
.blog-card-body p  { font-size:.875rem; color:var(--text-light); flex:1; }
.blog-read-more {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:var(--secondary);
  font-weight:600;
  font-size:.875rem;
  margin-top:1rem;
}
.blog-read-more:hover { gap:.65rem; }

/* ── Single Blog Post ── */
.post-hero {
  padding:8rem 0 4rem;
  background:linear-gradient(135deg, var(--dark), var(--primary));
  color:#ffffff;
}
.post-hero h1 {
  color:#ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.post-hero h2,
.post-hero h3 {
  color:#ffffff !important;
}
.post-meta {
  display:flex;
  align-items:center;
  gap:1rem;
  font-size:.85rem;
  color:rgba(255,255,255,.85);
  margin-bottom:1.5rem;
  flex-wrap:wrap;
}
.post-body {
  padding:4rem 0;
}
.post-content {
  font-size:1.05rem;
  line-height:1.85;
  color:var(--text);
}
.post-content h2 { margin-top:2.5rem; margin-bottom:1rem; }
.post-content h3 { margin-top:2rem; margin-bottom:.75rem; }
.post-content ul,
.post-content ol {
  margin:1rem 0 1.5rem 1.5rem;
}
.post-content ul { list-style:disc; }
.post-content ol { list-style:decimal; }
.post-content li { margin-bottom:.5rem; }
.post-content blockquote {
  border-left:4px solid var(--secondary);
  padding:1rem 1.5rem;
  margin:2rem 0;
  background:var(--light);
  border-radius:0 var(--radius) var(--radius) 0;
  font-style:italic;
  color:var(--text-light);
}
.post-content figure {
  margin:2rem 0;
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.post-content figcaption {
  font-size:.82rem;
  color:var(--text-light);
  text-align:center;
  padding:.625rem;
  background:var(--light);
}
.post-sidebar { position:sticky; top:5.5rem; }
.sidebar-card {
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:1.75rem;
  box-shadow:var(--shadow);
  margin-bottom:1.75rem;
}
.sidebar-card h4 {
  font-size:1rem;
  margin-bottom:1rem;
  color:var(--primary);
  padding-bottom:.75rem;
  border-bottom:2px solid var(--secondary);
}
.sidebar-link {
  display:block;
  padding:.5rem 0;
  border-bottom:1px solid var(--border);
  color:var(--text);
  font-size:.875rem;
}
.sidebar-link:last-child { border:none; }
.sidebar-link:hover { color:var(--secondary); }

/* ── Footer ── */
footer {
  background:var(--dark);
  color:rgba(255,255,255,.75);
  padding:4rem 0 0;
}
.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:3rem;
  padding-bottom:3rem;
}
.footer-brand p { font-size:.875rem; max-width:300px; margin-top:.75rem; }
.footer-col h4 {
  color:var(--white);
  font-size:1rem;
  margin-bottom:1.25rem;
  font-family:var(--font-body);
  font-weight:700;
}
.footer-links li { margin-bottom:.5rem; }
.footer-links a {
  color:rgba(255,255,255,.65);
  font-size:.875rem;
  display:inline-flex;
  align-items:center;
  gap:.375rem;
  transition:var(--transition);
}
.footer-links a:hover { color:var(--secondary); }
.footer-links a i { font-size:.7rem; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1);
  padding:1.5rem 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1rem;
  font-size:.82rem;
}
.footer-accreditations {
  display:flex;
  align-items:center;
  gap:1rem;
}
.accred-badge {
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  padding:.3rem .75rem;
  border-radius:6px;
  font-size:.75rem;
  color:var(--secondary);
  font-weight:700;
  letter-spacing:.05em;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding:8rem 0 4rem;
  background:linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--accent) 100%);
  position:relative;
  overflow:hidden;
}
.page-hero::before {
  content:'';
  position:absolute;
  inset:0;
  background:url('../images/balham-aerial.jpg') center/cover no-repeat;
  opacity:.12;
}
.page-hero-content {
  position:relative;
  z-index:1;
  color:#ffffff;
}
.page-hero-content h1 {
  color:#ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.page-hero-content h2 {
  color:#ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.page-hero-content p,
.page-hero-content .lead {
  color:#ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.page-hero-content .badge {
  background:rgba(201,168,76,.2);
  border:1px solid rgba(201,168,76,.5);
  color:var(--secondary);
  padding:.3rem .875rem;
  border-radius:50px;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:1rem;
  display:inline-block;
}
.breadcrumb {
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.82rem;
  color:rgba(255,255,255,.85);
  margin-bottom:1rem;
}
.breadcrumb a { color:rgba(255,255,255,.85); }
.breadcrumb a:hover { color:#ffffff; }
.breadcrumb a:hover { color:var(--secondary); }
.breadcrumb-sep { font-size:.65rem; }

/* ── Scroll Animations ── */
.fade-up {
  opacity:0;
  transform:translateY(30px);
  transition:opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity:1;
  transform:translateY(0);
}
.fade-left {
  opacity:0;
  transform:translateX(-30px);
  transition:opacity .6s ease, transform .6s ease;
}
.fade-left.visible { opacity:1; transform:translateX(0); }
.fade-right {
  opacity:0;
  transform:translateX(30px);
  transition:opacity .6s ease, transform .6s ease;
}
.fade-right.visible { opacity:1; transform:translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay:.1s; }
.delay-2 { transition-delay:.2s; }
.delay-3 { transition-delay:.3s; }
.delay-4 { transition-delay:.4s; }
.delay-5 { transition-delay:.5s; }

/* ── Counters ── */
.counter { display:inline-block; }

/* ── Tabs ── */
.tab-nav {
  display:flex;
  gap:.5rem;
  border-bottom:2px solid var(--border);
  margin-bottom:2.5rem;
  flex-wrap:wrap;
}
.tab-btn {
  padding:.75rem 1.5rem;
  background:none;
  border:none;
  border-bottom:3px solid transparent;
  margin-bottom:-2px;
  cursor:pointer;
  font-weight:600;
  font-size:.9rem;
  color:var(--text-light);
  transition:var(--transition);
  font-family:var(--font-body);
}
.tab-btn.active,
.tab-btn:hover {
  color:var(--primary);
  border-bottom-color:var(--secondary);
}
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ── Sticky CTA ── */
.sticky-cta {
  position:fixed;
  bottom:2rem; right:2rem;
  z-index:500;
  opacity:0;
  transform:translateY(20px);
  transition:var(--transition);
  pointer-events:none;
}
.sticky-cta.visible {
  opacity:1;
  transform:translateY(0);
  pointer-events:all;
}
.sticky-cta .btn {
  box-shadow:0 8px 24px rgba(26,58,92,.35);
}

/* ── Cookie Banner ── */
.cookie-banner {
  position:fixed;
  bottom:0; left:0; right:0;
  background:var(--dark);
  color:rgba(255,255,255,.9);
  padding:1.25rem;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  transform:translateY(100%);
  transition:transform .5s ease;
}
.cookie-banner.show { transform:translateY(0); }
.cookie-banner p { font-size:.875rem; margin:0; flex:1; }
.cookie-banner a { color:var(--secondary); }
.cookie-banner .btn { flex-shrink:0; padding:.5rem 1.25rem; font-size:.875rem; }

/* ── Utilities ── */
.text-center { text-align:center; }
.text-right  { text-align:right; }
.mt-1 { margin-top:.5rem; }
.mt-2 { margin-top:1rem; }
.mt-3 { margin-top:1.5rem; }
.mt-4 { margin-top:2rem; }
.mb-1 { margin-bottom:.5rem; }
.mb-2 { margin-bottom:1rem; }
.mb-3 { margin-bottom:1.5rem; }
.mb-4 { margin-bottom:2rem; }
.d-flex { display:flex; }
.align-center { align-items:center; }
.gap-1 { gap:.5rem; }
.gap-2 { gap:1rem; }
.fw-600 { font-weight:600; }
.fw-700 { font-weight:700; }
.divider {
  height:3px;
  width:60px;
  background:var(--secondary);
  border-radius:3px;
  margin:1rem auto;
}
.divider-left { margin-left:0; }

/* ── HubSpot Form Override ── */
.hs-form-frame,
.hsform-wrapper { width:100% !important; }
.hbspt-form { width:100% !important; }

/* ── Progress Bar ── */
.reading-progress {
  position:fixed;
  top:0; left:0;
  height:3px;
  background:var(--secondary);
  z-index:9999;
  transition:width .1s linear;
}

/* ── Back to Top ── */
.back-to-top {
  position:fixed;
  bottom:6rem; right:2rem;
  width:44px; height:44px;
  border-radius:50%;
  background:var(--primary);
  color:var(--white);
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(10px);
  transition:var(--transition);
  z-index:499;
}
.back-to-top.visible {
  opacity:1;
  transform:translateY(0);
}
.back-to-top:hover { background:var(--secondary); color:var(--dark); }

/* ══════════════════════════════════════════════════
   RESPONSIVE DESIGN – COMPREHENSIVE BREAKPOINTS
   Balham Surveyors | balhamsurveyors.com
   ══════════════════════════════════════════════════ */

/* ── Global Mobile Fixes ── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
* { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
@media (max-width: 600px) {
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ══ BREAKPOINT: Extra Large (max-width: 1200px) ══ */
@media (max-width: 1200px) {
  .container { max-width: 100%; padding: 0 2rem; }
  .hero-grid { grid-template-columns: 1fr 380px; gap: 2.5rem; }
}

/* ══ BREAKPOINT: Large / Small Laptops (max-width: 968px) ══ */
@media (max-width: 968px) {
  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-form-card {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }

  /* Grids */
  .services-grid    { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid     { grid-template-columns: repeat(2, 1fr); }
  .blog-grid        { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid      { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .process-grid     { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .areas-grid       { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 2rem; }

  /* CTA Band */
  .cta-band { padding: 3rem 0; }
}

/* ══ BREAKPOINT: Tablets (max-width: 768px) ══ */
@media (max-width: 768px) {
  /* Base font */
  html { font-size: 15px; }

  /* Container & Section */
  .container { padding: 0 1.5rem; }
  .section    { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .section-title { margin-bottom: 2rem; }

  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* ── Navigation ── */
  .nav-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
    padding: .6rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle span {
    width: 26px;
    height: 2.5px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(15, 30, 45, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 5.5rem 2rem 2rem;
    overflow-y: auto;
    gap: .25rem;
    z-index: 999;
    animation: menuSlideIn .3s ease;
  }
  .nav-menu.open { display: flex; }
  @keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    margin-top: .75rem;
    text-align: center;
    justify-content: center;
    padding: .875rem 1.25rem;
  }

  /* ── Hero ── */
  .hero-content { padding: 7rem 0 4rem; }
  .hero-title   { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; max-width: 100%; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: .875rem;
  }
  .hero-actions .btn { width: auto; min-width: 200px; justify-content: center; }
  .hero-trust { gap: 1rem; }
  .hero-form-card { padding: 1.75rem; }

  /* ── Grids ── */
  .services-grid  { grid-template-columns: 1fr; }
  .reviews-grid   { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .team-grid      { grid-template-columns: 1fr; }
  .process-grid   { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }

  /* ── Footer ── */
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .footer-accreditations { justify-content: center; display: flex; flex-wrap: wrap; gap: .5rem; }

  /* ── Sticky / Back-to-top ── */
  .sticky-cta    { bottom: 1rem; right: 1rem; }
  .back-to-top   { bottom: 5rem; right: 1rem; }

  /* ── Contact page ── */
  .contact-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info  { order: 2; }
  .contact-form  { order: 1; }

  /* ── CTA Band ── */
  .cta-band { padding: 2.5rem 1.5rem; }
  .cta-band h2 { font-size: 1.5rem; }
  .cta-band p  { font-size: .95rem; }
  .cta-band .hero-actions { align-items: center; }

  /* ── FAQ ── */
  .faq-question { padding: 1rem 1.25rem; font-size: .95rem; line-height: 1.45; }
  .faq-answer   { padding: 0 1.25rem; }
  .faq-answer.open { padding: 1rem 1.25rem; }

  /* ── Blog Article ── */
  .post-hero { padding: 6rem 0 3rem; }
  .post-body { padding: 3rem 0; }
  .post-layout { grid-template-columns: 1fr !important; }
  .post-sidebar { display: none; }

  /* ── HubSpot Form ── */
  .hs-form-field { margin-bottom: .75rem !important; }
  .hs-input      { padding: .7rem !important; font-size: 16px !important; }
  .hs-button     { width: 100% !important; padding: .85rem !important; font-size: 1rem !important; }

  /* ── Areas page ── */
  .area-map iframe { height: 320px; }
}

/* ══ BREAKPOINT: Small / Mobile Landscape (max-width: 600px) ══ */
@media (max-width: 600px) {
  /* Container */
  .container { padding: 0 1rem; }
  .section    { padding: 2.75rem 0; }

  /* Hero */
  .hero-content  { padding: 6rem 0 3rem; }
  .hero-title    { font-size: 1.6rem; line-height: 1.2; }
  .hero-subtitle { font-size: .95rem; }
  .hero-badge    { font-size: .75rem; padding: .4rem .875rem; }
  .hero-form-card { padding: 1.25rem; margin: 0 .25rem; }
  .hero-form-card h3 { font-size: 1.1rem; }
  .hero-form-card p  { font-size: .82rem; margin-bottom: 1rem; }

  /* Buttons */
  .btn {
    padding: .75rem 1.5rem;
    font-size: .9rem;
    min-height: 44px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-actions .btn-outline {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.7);
    color: #fff;
  }

  /* Stats strip */
  .stat-number { font-size: 2rem; }
  .stat-label  { font-size: .78rem; }

  /* Service cards */
  .service-card { padding: 1.5rem; }
  .service-icon { font-size: 2rem; }
  .service-card h3 { font-size: 1.05rem; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-card-body h3 { font-size: 1rem; }
  .blog-card-img { height: 180px; }

  /* Blog Article */
  .post-hero h1  { font-size: 1.5rem; }
  .post-hero     { padding: 5.5rem 0 2.5rem; }
  .post-meta     { gap: .75rem; font-size: .8rem; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-brand p { font-size: .82rem; }
  .footer-col h4 { font-size: 1rem; margin-top: .5rem; }
  .accred-badge  { font-size: .7rem; padding: .25rem .6rem; }

  /* FAQ */
  .faq-item       { margin-bottom: .625rem; }
  .faq-question   { padding: .875rem 1rem; font-size: .9rem; }
  .faq-answer.open { padding: .875rem 1rem; font-size: .9rem; }
  .faq-icon       { width: 24px; height: 24px; font-size: 1rem; }

  /* Section titles */
  .section-title h2 { font-size: 1.5rem; }
  .section-title p  { font-size: .9rem; }

  /* CTA sections */
  .cta-band { padding: 2rem 1rem; border-radius: 0; }
  .cta-band h2 { font-size: 1.3rem; }
  .cta-band p  { font-size: .9rem; margin-bottom: 1.25rem; }

  /* HubSpot Form */
  .hero-form-card .hs-input,
  .hs-input    { font-size: 16px !important; padding: .65rem !important; }
  .hs-button   { width: 100% !important; padding: .8rem !important; }

  /* Contact page */
  .contact-form-wrapper  { padding: 1.25rem; }
  .contact-info-item     { flex-direction: column; gap: .75rem; }
  .contact-info-icon     { width: 42px; height: 42px; font-size: 1rem; }

  /* Areas page */
  .areas-grid  { grid-template-columns: 1fr; gap: 1.5rem; }
  .area-card   { padding: 1.25rem; }
  .area-tags   { gap: .375rem; }
  .area-tag    { font-size: .78rem; padding: .35rem .75rem; }

  /* Process */
  .step-number { width: 52px; height: 52px; font-size: 1.2rem; }

  /* Team */
  .team-img-wrap { height: 240px; }

  /* Reviews */
  .reviews-grid  { grid-template-columns: 1fr; }
  .review-card   { padding: 1.25rem; }

  /* Page hero (inner pages) */
  .page-hero { padding: 6rem 0 3rem; }
  .page-hero-content h1 { font-size: 1.75rem !important; }
  .page-hero-content .lead { font-size: .95rem; }
}

/* ══ BREAKPOINT: Extra Small / Mobile Portrait (max-width: 480px) ══ */
@media (max-width: 480px) {
  /* Base font */
  html { font-size: 14px; }

  /* Container */
  .container { padding: 0 .875rem; }
  .section    { padding: 2.25rem 0; }

  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  p  { font-size: .95rem; line-height: 1.65; }

  /* Hero */
  .hero-content  { padding: 5.5rem 0 2.5rem; }
  .hero-title    { font-size: 1.35rem; }
  .hero-subtitle { font-size: .875rem; }
  .hero-badge    { font-size: .7rem; padding: .35rem .75rem; gap: .35rem; }
  .hero-trust    { flex-direction: column; align-items: flex-start; gap: .625rem; }
  .trust-item    { font-size: .78rem; }
  .hero-form-card { padding: 1rem .875rem; }
  .hero-form-card h3 { font-size: 1rem; }

  /* Buttons */
  .btn { padding: .7rem 1.25rem; font-size: .875rem; }

  /* Stats */
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-number   { font-size: 1.75rem; }
  .stat-item     { padding: .875rem .5rem; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-bottom { padding: 1rem; }
  .footer-accreditations { gap: .375rem; }

  /* Blog Article */
  .post-hero h1  { font-size: 1.25rem; }
  .post-hero     { padding: 5rem 0 2rem; }
  .post-body     { padding: 2rem 0; }

  /* Section header */
  .section-header { margin-bottom: 1.75rem; }
  .section-title  { margin-bottom: 1.75rem; }
  .section-title h2 { font-size: 1.3rem; }

  /* Page hero */
  .page-hero-content h1 { font-size: 1.5rem !important; }

  /* CTA */
  .cta-band h2  { font-size: 1.2rem; }
  .cta-band p   { font-size: .875rem; }

  /* Sticky elements */
  .sticky-cta   { bottom: .75rem; right: .75rem; }
  .back-to-top  { bottom: 4.5rem; right: .75rem; width: 40px; height: 40px; }

  /* Service card */
  .service-card { padding: 1.25rem; }

  /* Feature grid */
  .feature-grid { grid-template-columns: 1fr !important; }
  .feature-item { padding: 1rem; text-align: center; }
  .feature-icon { font-size: 2rem; margin-bottom: .5rem; }

  /* Contact */
  .contact-form-wrapper { padding: 1rem; }

  /* Table */
  table { font-size: .85rem; }
}

/* ══ BREAKPOINT: XXL Large Desktops (min-width: 1400px) ══ */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-grid { grid-template-columns: 1fr 460px; gap: 5rem; }
  .hero-title { font-size: 3.8rem; }
  .services-grid  { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .reviews-grid   { grid-template-columns: repeat(3, 1fr); }
  .blog-grid      { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
}

/* ══ Hero Video: Mobile Optimisation ══
   On narrow screens hide the video (bandwidth & battery saving)
   and rely entirely on the image slider instead.             */
@media (max-width: 768px) {
  .hero-video-bg { display: none; }
  .hero-slider   { display: block; }
  .hero-dots     { bottom: 1.25rem; }
}

/* On large screens the video takes priority; slider still renders
   but JS fades it out once video is playing.                  */
@media (min-width: 769px) {
  /* Ensure video fills its container perfectly */
  .hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
  }
}

/* Reduced-motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
  .hero-slide    { animation: none; }
  .hero-slide.active { opacity: 1; }
}

/* ══ HAMBURGER ANIMATION (Enhanced) ══ */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══ OVERLAY when mobile menu is open ══ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

/* ══ TOUCH TARGETS – Accessibility ══ */
@media (max-width: 768px) {
  .btn, a.btn, button {
    min-height: 44px;
  }
  .footer-links a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: .2rem 0;
  }
}

/* ══ PRINT ══ */
@media print {
  .navbar, .sticky-cta, .back-to-top, .cookie-banner,
  .nav-toggle, .hero-particles { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a    { color: #000; text-decoration: underline; }
}
