/* ============================================
   BARKING SURVEYORS - Main Stylesheet
   barkingsurveyors.com
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #c8922a;
  --accent-light: #e0ac4a;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --mid-bg: #eef1f6;
  --text-dark: #1a1a2e;
  --text-mid: #3d4f6b;
  --text-light: #6b7c9a;
  --border: #d4dbe8;
  --success: #2a9d4e;
  --star: #f4b942;
  --shadow-sm: 0 2px 8px rgba(26,58,92,0.08);
  --shadow-md: 0 6px 24px rgba(26,58,92,0.13);
  --shadow-lg: 0 16px 48px rgba(26,58,92,0.18);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Poppins', 'Inter', 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-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

/* ---------- Utility Classes ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-accent { color: var(--accent) !important; }
.bg-light { background: var(--light-bg); }
.bg-mid { background: var(--mid-bg); }
.bg-primary { background: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---------- Section Headers ---------- */
.section-header { margin-bottom: 50px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }
.divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 16px 0 0;
}
.divider.center { margin: 16px auto 0; }

/* ============================================
   NAVIGATION
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 18px 0;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo .logo-mark {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.nav-logo .logo-text { line-height: 1.2; }
.nav-logo .logo-text .name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  transition: color var(--transition);
}
.nav-logo .logo-text .tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  display: block;
  transition: color var(--transition);
}
#site-header.scrolled .nav-logo .logo-text .name { color: var(--primary); }
#site-header.scrolled .nav-logo .logo-text .tagline { color: var(--text-light); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
#site-header.scrolled .nav-menu a { color: var(--text-mid); }
#site-header.scrolled .nav-menu a:hover { background: var(--light-bg); color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.875rem; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
#site-header.scrolled .nav-hamburger span { background: var(--primary); }

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ---- Video hero background ---- */
.hero-video-wrap { background: var(--primary-dark); }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* subtle slow zoom mirrors static hero aesthetic */
  animation: heroZoom 30s ease-in-out infinite alternate;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-video.loaded { opacity: 1; }
.hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
/* Hide fallback once video is playing */
.hero-video.loaded ~ .hero-fallback-img,
.hero-video-playing .hero-fallback-img { opacity: 0; transition: opacity 0.8s ease; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,25,50,0.88) 0%,
    rgba(15,37,64,0.78) 50%,
    rgba(26,58,92,0.65) 100%
  );
  z-index: 1;
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 120px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: start;
}
.hero-text {
  align-self: start;
  padding-top: 0;
}
.hero-text .trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,146,42,0.2);
  border: 1px solid rgba(200,146,42,0.4);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}
.trust-badge svg { width: 14px; height: 14px; }
.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-text h1 span { color: var(--accent-light); }
.hero-text .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  font-family: var(--font-heading);
}
.hero-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* Hero Form Card */
.hero-form-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-form-card .form-header { margin-bottom: 24px; }
.hero-form-card .form-header h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 6px; }
.hero-form-card .form-header p { color: var(--text-light); font-size: 0.875rem; }
.hero-form-card .hs-form-private { font-size: 0.875rem; }

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 14px; opacity: 0.3; }
}

/* ============================================
   ACCREDITATION BAR
   ============================================ */
.accreditation-bar {
  background: var(--primary);
  padding: 20px 0;
  border-bottom: 3px solid var(--accent);
}
.accreditation-bar .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.accred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
}
.accred-item .icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.accred-divider { color: rgba(255,255,255,0.2); font-size: 1.5rem; }

/* ============================================
   INTRO / WHY US
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-image-wrap {
  position: relative;
}
.intro-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.intro-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
}
.intro-badge .big { font-size: 1.8rem; display: block; font-family: var(--font-heading); }
.intro-content .feature-list { margin: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-item .fi-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a5080 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--white);
}
.feature-item .fi-text h4 { margin-bottom: 4px; font-size: 1rem; }
.feature-item .fi-text p { font-size: 0.875rem; color: var(--text-light); }

/* ============================================
   SERVICES CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--accent);
}
.service-card .card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .card-img img { transform: scale(1.05); }
.service-card .card-img .card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.service-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--light-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  transition: background var(--transition);
}
.service-card:hover .card-icon { background: var(--accent); }
.service-card .card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card .card-body p { font-size: 0.875rem; color: var(--text-light); flex: 1; }
.service-card .card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}
.service-card .card-body .card-link:hover { gap: 10px; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { background: var(--primary); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  z-index: 0;
}
.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}
.step-item h4 { color: var(--white); margin-bottom: 8px; }
.step-item p { font-size: 0.875rem; color: rgba(255,255,255,0.65); }

/* ============================================
   SURVEY TYPES / COMPARISON TABLE
   ============================================ */
.survey-comparison {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
}
.survey-comparison thead {
  background: var(--primary);
  color: var(--white);
}
.survey-comparison thead th { padding: 18px 20px; text-align: left; font-weight: 700; }
.survey-comparison thead th:first-child { width: 30%; }
.survey-comparison tbody tr:nth-child(even) { background: var(--light-bg); }
.survey-comparison tbody tr:hover { background: var(--mid-bg); }
.survey-comparison tbody td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.survey-comparison .check { color: var(--success); font-size: 1.1rem; }
.survey-comparison .recommended {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  margin-left: 8px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease;
}
.testimonial-card {
  min-width: calc(33.333% - 19px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.testimonial-card .stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-card .stars svg { width: 18px; height: 18px; fill: var(--star); }
.testimonial-card .review-text {
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.reviewer-info .name { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.reviewer-info .location { font-size: 0.78rem; color: var(--text-light); }
.testimonials-nav { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }
.testimonials-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.testimonials-nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.testimonials-dots { display: flex; gap: 8px; align-items: center; }
.testimonials-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.testimonials-dots .dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ============================================
   STATS COUNTER
   ============================================ */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; padding: 20px; }
.stat-item .stat-num {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--accent-light);
  font-family: var(--font-heading);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-item .stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.65); }

/* ============================================
   AREAS COVERED
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.area-card:hover {
  border-color: var(--accent);
  background: var(--light-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.area-card .area-icon { font-size: 1.5rem; margin-bottom: 8px; }
.area-card h4 { font-size: 0.9rem; color: var(--primary); margin-bottom: 4px; }
.area-card p { font-size: 0.78rem; color: var(--text-light); margin: 0; }

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.team-card .team-img {
  height: 280px;
  overflow: hidden;
}
.team-card .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img img { transform: scale(1.04); }
.team-card .team-body { padding: 24px; }
.team-card .team-body h3 { margin-bottom: 4px; font-size: 1.1rem; }
.team-card .team-role { color: var(--accent); font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; }
.team-card .team-bio { font-size: 0.85rem; color: var(--text-light); }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  gap: 16px;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--accent);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-mid); font-size: 0.9rem; line-height: 1.7; }

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.blog-card .blog-img {
  height: 200px;
  overflow: hidden;
}
.blog-card .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-card .blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,146,42,0.1);
  padding: 3px 10px;
  border-radius: 50px;
}
.blog-date { font-size: 0.78rem; color: var(--text-light); }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a { color: var(--primary); text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card .excerpt { font-size: 0.875rem; color: var(--text-light); flex: 1; }
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */
.article-header {
  background: var(--primary);
  padding: 120px 0 60px;
}
.article-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.article-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.article-header .breadcrumb a:hover { color: var(--accent-light); }
.article-header h1 { color: var(--white); max-width: 800px; }
.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.article-header .article-meta span { font-size: 0.85rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 6px; }
.article-body { padding: 60px 0 80px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.article-content { max-width: 720px; }
.article-content h2 { margin: 2rem 0 1rem; }
.article-content h3 { margin: 1.5rem 0 0.75rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-mid);
}
.article-content li { margin-bottom: 0.5rem; }
.article-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
  width: 100%;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-mid);
}
.article-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 { color: var(--primary); margin-bottom: 16px; font-size: 1rem; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================
   CONTACT FORM SECTION
   ============================================ */
.contact-section { background: var(--light-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info .contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-detail .cd-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.contact-detail .cd-text h5 { color: var(--primary); margin-bottom: 4px; }
.contact-detail .cd-text p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { margin-bottom: 6px; }
.contact-form-card .sub { color: var(--text-light); font-size: 0.9rem; margin-bottom: 28px; }

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .logo-mark {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-heading);
}
.footer-brand .brand-name { color: var(--white); font-size: 1.15rem; font-weight: 800; font-family: var(--font-heading); }
.footer-brand .brand-tag { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; color: #ffffff; }
.footer-accreds { display: flex; gap: 10px; flex-wrap: wrap; }
.accred-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.footer-col h5 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(200,146,42,0.4);
  border: none;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-3px); background: var(--accent-light); }

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE — COMPREHENSIVE MOBILE-FIRST
   barkingsurveyors.com
   ============================================ */

/* ---------- Global Mobile Fixes ---------- */
html, body { overflow-x: hidden; max-width: 100vw; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Table overflow on small screens ---------- */
@media (max-width: 600px) {
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

/* ============================================
   BREAKPOINT: 1200px — Extra Large Laptops
   ============================================ */
@media (max-width: 1200px) {
  .container { max-width: 100%; padding: 0 32px; }
  .hero-grid { grid-template-columns: 1fr 400px; gap: 40px; }
}

/* ============================================
   BREAKPOINT: 968px — Small Laptops / Large Tablets
   ============================================ */
@media (max-width: 968px) {
  /* Hero — switch to single column, keep form visible */
  .hero-grid { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; gap: 32px; }
  .hero-text { align-self: auto; text-align: center; }
  .hero-text .trust-badges { justify-content: center; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text .lead { font-size: 1rem; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-form-card { width: 100%; max-width: 500px; margin: 0 auto; display: block; }

  /* Grids */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-image-wrap { max-width: 560px; margin: 0 auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 50px 32px; }
}

/* ============================================
   BREAKPOINT: 768px — Tablets / Mobile Menu
   ============================================ */
@media (max-width: 768px) {

  /* --- NAVIGATION --- */
  .nav-cta { display: none; }
  .nav-hamburger {
    display: flex;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: relative;
  }
  .nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
  }

  /* Hamburger → X animation */
  .nav-hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Mobile full-screen menu */
  .nav-menu {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-dark);
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 1000;
    padding: 80px 24px 40px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .nav-menu.nav-open {
    transform: translateX(0);
    pointer-events: all;
  }
  .nav-menu li { width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-menu li:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-menu a {
    display: block;
    font-size: 1.15rem;
    color: var(--white) !important;
    padding: 16px 24px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
  }
  .nav-menu a:hover, .nav-menu a[aria-current="page"] { background: rgba(200,146,42,0.15); color: var(--accent-light) !important; }

  /* Header z-index management */
  #site-header { z-index: 1002; }

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

  /* Hero — hide video on tablet/mobile, show fallback image */
  .hero-video { display: none !important; }
  .hero-fallback-img { opacity: 1 !important; }
  .hero-content { padding: 100px 0 60px; }
  .hero-text h1 { font-size: 1.9rem; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-stats { gap: 20px; justify-content: center; }
  .testimonial-card { min-width: 100%; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Accreditation bar */
  .accreditation-bar .inner { flex-direction: column; gap: 12px; text-align: center; }
  .accred-divider { display: none; }

  /* CTA Section */
  .cta-section { padding: 40px 24px; border-radius: 12px; margin: 0 16px; }
  .cta-section h2 { font-size: 1.5rem; }

  /* Container & section spacing */
  .container { padding: 0 20px; }
  .section-pad { padding: 60px 0; }

  /* FAQ */
  .faq-item { margin-bottom: 10px; }
  .faq-question { padding: 16px 18px; font-size: 0.95rem; line-height: 1.45; }
  .faq-answer { padding: 12px 18px 16px; }
}

/* ============================================
   BREAKPOINT: 600px — Mobile Landscape
   ============================================ */
@media (max-width: 600px) {

  /* Hero */
  .hero-content { padding: 90px 0 50px; }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-text .lead { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 1.5rem; }
  .trust-badge { font-size: 0.7rem; padding: 4px 10px; }
  .hero-form-card { padding: 24px 20px; }
  .hero-form-card .form-header h3 { font-size: 1.1rem; }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 0.9rem; min-height: 44px; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { display: block; width: 100%; text-align: center; margin: 4px 0; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card { margin-bottom: 0; }
  .blog-body h3 { font-size: 1.05rem; }

  /* Blog article page */
  .article-header { padding: 80px 0 40px; }
  .article-header h1 { font-size: 1.5rem; }
  .article-main h2 { font-size: 1.25rem; }
  .article-main h3 { font-size: 1.1rem; }
  .article-body { padding: 0; }

  /* Service items */
  .service-card { padding: 24px 20px; }
  .service-icon { font-size: 2rem; }
  .service-card h3 { font-size: 1.1rem; }

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

  /* Areas grid */
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { padding: 20px; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; }

  /* Section headers */
  .section-tag { font-size: 0.7rem; }
  .section-title { font-size: 1.45rem; }
  .section-intro { font-size: 0.95rem; }

  /* CTA */
  .cta-section h2 { font-size: 1.25rem; }
  .cta-section p { font-size: 0.95rem; margin-bottom: 20px; }

  /* Footer */
  .footer-brand p { font-size: 0.85rem; }
  .footer-accreds { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .footer-bottom { font-size: 0.78rem; }

  /* HubSpot form fields */
  .hs-form-field { margin-bottom: 12px !important; }
  .hs-input { padding: 10px 12px !important; font-size: 16px !important; }
  .hs-button { width: 100% !important; padding: 12px !important; font-size: 1rem !important; }
  .hs-form-field label { font-size: 0.875rem !important; }

  /* Contact page */
  .contact-form-wrapper { padding: 20px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 2rem; }

  /* Scroll indicator */
  .scroll-indicator { display: none; }

  /* Team cards */
  .team-card { max-width: 320px; margin: 0 auto; }

  /* Intro section */
  .intro-badge { bottom: -16px; right: 12px; padding: 12px 16px; }
  .intro-badge .big { font-size: 1.8rem; }
}

/* ============================================
   BREAKPOINT: 480px — Mobile Portrait
   ============================================ */
@media (max-width: 480px) {

  html { font-size: 14px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  p { font-size: 0.95rem; line-height: 1.6; }

  .container { padding: 0 14px; }
  .section-pad { padding: 50px 0; }
  .section-pad-sm { padding: 36px 0; }

  /* Hero */
  .hero-text h1 { font-size: 1.35rem; }
  .hero-text .lead { font-size: 0.9rem; }
  .hero-form-card { padding: 20px 16px; }
  .hero-form-card .form-header h3 { font-size: 1rem; }
  .hero-actions { align-items: stretch; }
  .hero-stats { flex-direction: column; align-items: center; gap: 12px; }
  .hero-stat { text-align: center; }

  /* Nav logo text */
  .logo-text .tagline { display: none; }

  /* Areas grid stays 2 col on 480 for space efficiency */
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Blog */
  .blog-img img { height: 180px; object-fit: cover; }

  /* Buttons full width */
  .btn { width: 100%; justify-content: center; text-align: center; }
  .cta-section .btn { width: auto; padding: 12px 28px; }

  /* Testimonials */
  .testimonials-nav { display: none; }

  /* Footer accreds stack */
  .footer-accreds { flex-direction: column; align-items: flex-start; gap: 6px; }
  .accred-pill { font-size: 0.7rem; }

  /* Back to top position */
  #back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }

  /* FAQ */
  .faq-question { padding: 14px 16px; font-size: 0.9rem; }
  .faq-toggle { font-size: 1.1rem; }
}

/* ============================================
   BREAKPOINT: min-width 1400px — Large Desktops
   ============================================ */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-grid { grid-template-columns: 1fr 480px; gap: 80px; }
  .hero-text h1 { font-size: 3.4rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
