/* ==========================================================================
   Clapham Surveyors - Main Stylesheet
   Website: claphamsurveyors.com
   ========================================================================== */

/* ── Custom Properties ─────────────────────────────────────────────────── */
:root {
  --primary:       #1a3c5e;   /* Deep navy */
  --primary-dark:  #0f2640;
  --primary-light: #2a5f96;
  --accent:        #c8922a;   /* Gold */
  --accent-light:  #e8b84b;
  --white:         #ffffff;
  --off-white:     #f8f9fa;
  --light-grey:    #e9ecef;
  --mid-grey:      #6c757d;
  --dark-grey:     #343a40;
  --text:          #2d3748;
  --text-light:    #4a5568;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.18);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    .3s ease;
  --font-main:     'Inter', sans-serif;
  --font-heading:  'Playfair Display', serif;
  --max-width:     1200px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent); }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title { margin-bottom: 1rem; }
.section-intro { font-size: 1.1rem; color: var(--text-light); max-width: 700px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

/* ── Navigation ────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(15, 38, 64, .97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.nav-logo .logo-mark {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo .logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.1;
}

.nav-logo .logo-tagline {
  font-size: .68rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--accent-light);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated Ken Burns slideshow */
.hero-bg .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 24s infinite;
}
.hero-bg .slide:nth-child(1) { animation-delay: 0s; }
.hero-bg .slide:nth-child(2) { animation-delay: 8s; }
.hero-bg .slide:nth-child(3) { animation-delay: 16s; }

@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; }
  30%  { opacity: 1; transform: scale(1.08); }
  35%  { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,38,64,.85) 0%,
    rgba(15,38,64,.7) 50%,
    rgba(15,38,64,.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 5rem 0 4rem;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(200,146,42,.2);
  border: 1px solid rgba(200,146,42,.5);
  color: var(--accent-light);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Align hero text to top of form card */
.hero-text {
  padding-top: 0;
  align-self: start;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.hero-text h1 span { color: var(--accent-light); }

.hero-text .hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.8;
}

.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: rgba(255,255,255,.75);
  font-size: .85rem;
}
.trust-item i { color: var(--accent-light); 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.35rem;
  margin-bottom: .5rem;
  color: var(--primary);
}

.hero-form-card .form-subtitle {
  font-size: .875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ── Stats Bar ─────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  padding: 2.5rem 0;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  display: block;
}

.stat-item .stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  margin-top: .4rem;
  letter-spacing: .02em;
}

/* ── Section Layout ────────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}
.section-header.centered .section-intro {
  margin: 0 auto;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body { padding: 1.75rem; }

/* ── Service Cards ─────────────────────────────────────────────────────── */
.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-sm);
  border: 1px solid var(--light-grey);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-light);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: .75rem;
  color: var(--primary);
}

.service-card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}
.service-link:hover { gap: .75rem; color: var(--accent); }

/* ── Why Choose Us ─────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.why-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.why-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.why-badge .badge-text {
  font-size: .65rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  max-width: 80px;
  text-align: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-item .why-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,60,94,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.why-item:hover .why-icon {
  background: var(--primary);
  color: var(--white);
}

.why-item h4 {
  font-size: 1rem;
  margin-bottom: .3rem;
  color: var(--primary);
}

.why-item p {
  font-size: .875rem;
  color: var(--text-light);
  margin: 0;
}

/* ── Accreditation Logos ───────────────────────────────────────────────── */
.accreditation-bar {
  background: var(--primary-dark);
  padding: 1.5rem 0;
}

.accred-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.accred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.accred-logo {
  width: 70px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
}

/* ── Reviews ───────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  color: #fbbf24;
  font-size: 1rem;
}

.review-text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
}

.review-date {
  font-size: .775rem;
  color: var(--mid-grey);
}

/* ── Process Steps ─────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--primary);
  transition: all var(--transition);
}

.process-step:hover .step-number {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent);
}

.process-step h4 { font-size: 1rem; margin-bottom: .5rem; }
.process-step p { font-size: .85rem; color: var(--text-light); }

/* ── Team ──────────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.team-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.team-info { padding: 1.5rem; }

.team-info h3 {
  font-size: 1.2rem;
  margin-bottom: .35rem;
}

.team-role {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.team-bio {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.open { box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--primary);
  user-select: none;
  gap: 1rem;
  background: var(--white);
  transition: background var(--transition);
}

.faq-item.open .faq-question { background: rgba(26,60,94,.04); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; }

/* ── Contact Form Section ──────────────────────────────────────────────── */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .2rem;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  margin-bottom: .5rem;
}

.form-note {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ── HubSpot Form Override ─────────────────────────────────────────────── */
.hs-form fieldset { max-width: 100% !important; }
.hs-form input,
.hs-form select,
.hs-form textarea {
  width: 100%;
  border: 1px solid var(--light-grey) !important;
  border-radius: var(--radius) !important;
  padding: .75rem 1rem !important;
  font-size: .9rem !important;
  font-family: var(--font-main) !important;
  transition: border-color var(--transition) !important;
}
.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
  border-color: var(--primary) !important;
  outline: none !important;
}
.hs-form .hs-button {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: .875rem 2rem !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all var(--transition) !important;
}
.hs-form .hs-button:hover {
  background: var(--accent) !important;
  transform: translateY(-2px) !important;
}

/* ── 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-sm);
  border: 1px solid var(--light-grey);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--mid-grey);
  margin-bottom: .875rem;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: .75rem;
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: var(--primary);
  transition: color var(--transition);
}
.blog-card-body h3 a:hover { color: var(--accent); }

.blog-card-body p {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  transition: gap var(--transition);
}
.read-more:hover { gap: .75rem; color: var(--accent); }

/* ── Areas Grid ────────────────────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.area-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.area-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: .5rem; display: block; }
.area-card:hover i { color: var(--accent-light); }
.area-card strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.area-card span { font-size: .78rem; color: var(--mid-grey); }
.area-card:hover span { color: rgba(255,255,255,.65); }

/* ── Page Hero (Inner Pages) ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 8rem 0 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/building-survey-inspection.jpg') center/cover;
  opacity: .12;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }

.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { opacity: .5; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1.25rem; }

.footer-desc {
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-accred {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.accred-badge {
  background: rgba(255,255,255,.1);
  color: var(--accent-light);
  font-size: .7rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .625rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links { display: flex; flex-direction: column; gap: .625rem; }

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: .25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: .8rem; margin: 0; }

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--accent-light); }

/* ── Scroll Animations ─────────────────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(-30px);
}
[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(30px);
}
[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

/* ── Back to Top ───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  cursor: pointer;
  border: none;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }



/* ── Floating Particles ────────────────────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-form-card { max-width: 500px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1rem; }
  .nav-toggle { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .accred-items { gap: 1.5rem; }
}

/* ── Utility ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.gap-1 { gap: 1rem; }

/* ── Survey Comparison Table ───────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead tr {
  background: var(--primary);
  color: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .9rem;
}

.comparison-table th { font-weight: 600; }

.comparison-table tbody tr:nth-child(even) { background: var(--off-white); }
.comparison-table tbody tr:hover { background: rgba(26,60,94,.06); }

.comparison-table td:first-child { font-weight: 500; }

.check { color: #22c55e; }
.cross { color: #ef4444; }
.partial { color: var(--accent); }

/* ── Blog Article Page ─────────────────────────────────────────────────── */
.blog-article-hero {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 1.75rem 0 .75rem;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}

.article-content li {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: .5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(200,146,42,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 { margin-bottom: 1rem; font-size: 1rem; }

.toc-list { display: flex; flex-direction: column; gap: .5rem; }

.toc-list a {
  font-size: .875rem;
  color: var(--text-light);
  padding: .35rem .75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  border-left: 2px solid transparent;
  display: block;
}

.toc-list a:hover {
  color: var(--primary);
  border-left-color: var(--accent);
  background: rgba(26,60,94,.05);
  padding-left: 1rem;
}

.related-posts { display: flex; flex-direction: column; gap: .875rem; }

.related-post {
  display: flex;
  gap: .875rem;
  align-items: center;
  padding: .75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.related-post:hover { background: var(--off-white); }

.related-post img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-post-info {
  font-size: .82rem;
}

.related-post-info a {
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  display: block;
  margin-bottom: .25rem;
}

.related-post-info span { color: var(--mid-grey); }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* ── Map placeholder ────────────────────────────────────────────────────── */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Page transitions ──────────────────────────────────────────────────── */
.page-transition {
  animation: pageIn .4s ease forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Highlight box ─────────────────────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(26,60,94,.06), rgba(200,146,42,.08));
  border: 1px solid rgba(200,146,42,.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
