/* ==========================================================================
   Executive Tomb Finishers — Design System
   Forest green + earth tones. Dignified, warm, unmistakably Ugandan.
   ========================================================================== */

:root {
  /* Brand greens — sampled from the mark */
  --green-950: #0f2b1f;
  --green-900: #16382a;
  --green-800: #1b4332;
  --green-700: #235943;
  --green-600: #2d6a4f;
  --green-100: #e3ece5;
  --green-50:  #f1f6f2;

  /* Earth tones */
  --clay-700: #9a4b28;
  --clay-600: #b5652f;
  --clay-500: #c77b42;
  --sand-100: #f4ede1;
  --sand-50:  #faf6ee;

  /* Neutrals */
  --ink-900: #211f1a;
  --ink-700: #4a463d;
  --ink-500: #736c5e;
  --ink-300: #ab9f8c;
  --paper: #fbf9f4;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--paper);
  --surface: var(--white);
  --surface-alt: var(--sand-50);
  --text: var(--ink-900);
  --text-muted: var(--ink-700);
  --brand: var(--green-800);
  --brand-dark: var(--green-950);
  --accent: var(--clay-600);
  --border: #e6ddc9;

  /* Type */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(15, 43, 31, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 43, 31, 0.12);
  --shadow-lg: 0 20px 48px rgba(15, 43, 31, 0.18);

  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; margin: 0; padding: 0; }
a, button, .btn, .filter-btn, .faq-question, .nav-toggle, .gallery-item, input, select, textarea {
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--brand-dark); margin: 0 0 var(--space-2); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--space-2); color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

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

/* ---- Utility ---- */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--brand-dark); color: var(--sand-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #cfe0d5; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.section-head { max-width: 680px; margin: 0 0 var(--space-4); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head hr {
  width: 56px; height: 3px; border: none; background: var(--accent);
  margin: var(--space-2) 0; border-radius: 2px;
}
.section-head.center hr { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.card { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.filter-btn:active, .gallery-item:active { transform: scale(0.97); }

/* Subtle scroll-reveal (class added by JS only — content stays visible without it) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.masonry .reveal:nth-child(2) { transition-delay: 0.06s; }
.masonry .reveal:nth-child(3) { transition-delay: 0.12s; }
.masonry .reveal:nth-child(4) { transition-delay: 0.18s; }
.masonry .reveal:nth-child(5) { transition-delay: 0.24s; }
.masonry .reveal:nth-child(6) { transition-delay: 0.3s; }
.gallery-item.filter-fade { opacity: 0; transition: opacity 0.18s ease; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--clay-700); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.section:not(.section-dark) .btn-outline { border-color: var(--brand); color: var(--brand); }
.section:not(.section-dark) .btn-outline:hover { background: var(--green-50); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-block { width: 100%; justify-content: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
}

.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.topbar {
  background: var(--brand-dark);
  color: #cfe0d5;
  font-size: 0.82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.topbar a { color: #eef4ee; }
.topbar-links { display: flex; gap: var(--space-3); }
.topbar-links a:hover { color: var(--white); }

.navbar { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 52px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text .name { font-size: 1.15rem; color: var(--brand-dark); display: block; }
.brand-text .name-primary { font-family: var(--font-display); font-weight: 700; font-size: 1.15em; }
.brand-text .name-secondary { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72em; margin-left: 0.2em; }
.brand-text .tagline { font-family: var(--font-body); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-links a { font-weight: 600; font-size: 0.93rem; color: var(--text); position: relative; padding: 0.3rem 0; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }

.has-dropdown { position: relative; padding-bottom: 0.6rem; margin-bottom: -0.6rem; }
.dropdown {
  position: absolute; top: 100%; left: -1rem; min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 0.5rem; margin-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.dropdown a { display: block; padding: 0.55rem 0.75rem; border-radius: 4px; font-weight: 500; }
.dropdown a:hover { background: var(--green-50); }

/* ---- Subtle load-in for hero content ---- */
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-content, .page-hero .container { animation: fadeUpIn 0.6s ease both; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 78vh;
  min-height: 78dvh;
  display: flex; align-items: center;
  color: var(--white);
  background: linear-gradient(rgba(15,43,31,0.72), rgba(15,43,31,0.55)), var(--hero-img) center/cover no-repeat;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #e7efe8; font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.hero-badges { display: flex; gap: var(--space-4); margin-top: var(--space-5); flex-wrap: wrap; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.hero-badge span { font-size: 0.82rem; color: #cfe0d5; }

.page-hero {
  background: linear-gradient(rgba(15,43,31,0.8), rgba(15,43,31,0.72)), var(--hero-img) center/cover no-repeat;
  color: var(--white);
  padding: var(--space-6) 0 var(--space-5);
}
.page-hero h1 { color: var(--white); }
.breadcrumb { font-size: 0.85rem; color: #cfe0d5; margin-bottom: var(--space-2); }
.breadcrumb a:hover { color: var(--white); }

/* ---- Cards / components ---- */
.service-card { padding: var(--space-3); height: 100%; }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--green-100); color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.service-card .icon svg { width: 26px; height: 26px; }

.process-step { display: flex; gap: var(--space-3); }
.process-step .num {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.process-line { width: 2px; background: var(--border); flex: 1; margin: 0.4rem auto; }

.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-900); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Masonry portfolio layout — large tiles, natural aspect ratio, no cropping */
.masonry { column-count: 3; column-gap: var(--space-3); }
.masonry .gallery-item { break-inside: avoid; margin-bottom: var(--space-3); display: inline-block; width: 100%; }
.masonry .gallery-item img { width: 100%; height: auto; aspect-ratio: auto; display: block; }
@media (max-width: 980px) { .masonry { column-count: 2; } }
@media (max-width: 620px) { .masonry { column-count: 1; } }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: var(--space-2);
  background: linear-gradient(transparent, rgba(15,43,31,0.88));
  color: var(--white); font-size: 0.85rem;
}
.gallery-caption .cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sand-100); opacity: 0.85; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-4); }
.filter-btn {
  padding: 0.7rem 1.1rem; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--white); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--brand); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: var(--white); }

.pricing-card { padding: var(--space-4); text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-8px); }
.pricing-card .featured-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--white); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 999px;
}
.price { font-family: var(--font-display); font-size: 2rem; color: var(--brand-dark); margin: var(--space-2) 0 0.3rem; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.price-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
.pricing-card ul { text-align: left; margin: var(--space-3) 0; }
.pricing-card ul li { padding: 0.4rem 0; padding-left: 1.6rem; position: relative; font-size: 0.92rem; color: var(--text-muted); }
.pricing-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); }
.compare-table th, .compare-table td { padding: 0.85rem 1rem; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.compare-table th { background: var(--brand-dark); color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 700; color: var(--brand-dark); font-family: var(--font-display); }

.price-note {
  font-size: 0.82rem; color: var(--ink-500); background: var(--sand-100);
  border: 1px dashed var(--ink-300); border-radius: var(--radius); padding: var(--space-2); margin-top: var(--space-3);
}

.testimonial-card { padding: var(--space-3); }
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 2.5rem; color: var(--accent); line-height: 1; }
.testimonial-card .stars { color: var(--clay-500); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.testimonial-name { font-weight: 700; margin-top: var(--space-2); }
.testimonial-role { font-size: 0.82rem; color: var(--ink-500); }

.testimonial-pending {
  border: 1.5px dashed var(--ink-300); background: var(--surface-alt); box-shadow: none;
}
.testimonial-pending .pending-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-500); background: var(--sand-100); border-radius: 999px; padding: 0.25rem 0.65rem; margin-bottom: var(--space-2);
}
.testimonial-pending p { color: var(--ink-500); font-style: italic; }
.testimonial-pending .testimonial-name { color: var(--ink-500); font-weight: 500; font-style: normal; }

.testimonial-featured {
  padding: var(--space-5); text-align: center; max-width: 780px; margin: 0 auto var(--space-5);
  border-top: 3px solid var(--accent);
}
.testimonial-featured .quote-mark { font-size: 3.2rem; }
.testimonial-featured p { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand-dark); line-height: 1.45; }
.testimonial-featured .testimonial-name { font-size: 1.05rem; }
.testimonial-card .badge { margin-bottom: var(--space-2); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: var(--space-3) 0; cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem;
}
.faq-question .plus { flex: none; font-size: 1.3rem; color: var(--accent); transition: transform 0.2s ease; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: var(--space-3); }

.team-card { text-align: center; padding: var(--space-3); }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto var(--space-2);
  border: 3px solid var(--sand-100); box-shadow: var(--shadow-sm); overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  color: var(--white); font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  letter-spacing: 0.02em; box-shadow: inset 0 0 0 2px rgba(199, 123, 66, 0.55);
}

.material-card { overflow: hidden; }
.material-card .swatch { aspect-ratio: 16/10; overflow: hidden; }
.material-card .swatch img { width: 100%; height: 100%; object-fit: cover; }
.material-card .body { padding: var(--space-3); }

/* ---- CTA band ---- */
.cta-band {
  background: var(--brand-dark);
  color: var(--white);
  padding: var(--space-5) 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfe0d5; max-width: 560px; margin: 0 auto var(--space-3); }
.cta-band .hero-actions { justify-content: center; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; width: 100%; box-sizing: border-box; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.form-field label .req { color: var(--clay-700); }
.form-field .hint { font-size: 0.78rem; color: var(--ink-500); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand);
}
.radio-group { display: flex; gap: var(--space-3); flex-wrap: wrap; width: 100%; box-sizing: border-box; }
.radio-group label { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }

.form-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius);
  padding: var(--space-2); font-size: 0.85rem; color: var(--green-800); margin-top: var(--space-3);
  width: 100%; box-sizing: border-box;
}

.contact-info-card { padding: var(--space-3); }
.contact-info-row { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--green-100); color: var(--green-800); display: flex; align-items: center; justify-content: center; }
.contact-info-row .icon svg { width: 20px; height: 20px; }

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---- Footer ---- */
.site-footer { background: var(--brand-dark); color: #cfe0d5; padding-top: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-4); padding-bottom: var(--space-5); }
.footer-brand { display: flex; gap: 0.7rem; align-items: center; margin-bottom: var(--space-2); }
.footer-brand img { height: 52px; width: auto; border-radius: 6px; }
.footer-brand .name { color: var(--white); font-size: 1.1rem; }
.footer-brand .name-primary { font-family: var(--font-display); font-weight: 700; font-size: 1.15em; }
.footer-brand .name-secondary { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72em; margin-left: 0.2em; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); }
.site-footer a { color: #cfe0d5; }
.site-footer a:hover { color: var(--white); }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-2); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-2) 0; font-size: 0.82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  color: #a9c2b1;
}

/* ---- Misc pages ---- */
.value-row { display: flex; gap: var(--space-2); align-items: flex-start; margin-bottom: var(--space-3); }
.value-row .icon { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--green-100); color: var(--green-800); display: flex; align-items: center; justify-content: center; }
.stat-row { display: flex; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-4); }
.stat-row strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--brand); }
.stat-row span { font-size: 0.85rem; color: var(--ink-500); }

.blog-card { overflow: hidden; }
.blog-card .thumb { aspect-ratio: 16/10; background: var(--green-100); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: var(--space-3); }
.blog-meta { font-size: 0.78rem; color: var(--ink-500); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }

.area-pill-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-pill { padding: 0.55rem 1rem; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600; color: var(--brand-dark); }

.notice-box {
  background: var(--sand-100); border: 1px dashed var(--clay-500); border-radius: var(--radius);
  padding: var(--space-3); font-size: 0.88rem; color: var(--ink-700);
}

/* ---- Material swatches (CSS-generated, no photo needed) ---- */
.swatch-css { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.swatch-black-granite { background: radial-gradient(circle at 30% 20%, #3a3a3a 0%, #161616 55%, #0a0a0a 100%); }
.swatch-black-granite::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1.5px); background-size: 7px 7px; }
.swatch-grey-granite { background: linear-gradient(135deg, #c7c7c2, #9a9a94); }
.swatch-grey-granite::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle, rgba(30,30,30,0.25) 1px, transparent 1.5px); background-size: 6px 6px; }
.swatch-white-marble { background: linear-gradient(135deg, #f7f6f2, #e6e3da); }
.swatch-white-marble::after { content:""; position:absolute; inset:0; background:
  linear-gradient(120deg, transparent 40%, rgba(120,120,110,0.25) 41%, transparent 43%),
  linear-gradient(65deg, transparent 60%, rgba(120,120,110,0.18) 61%, transparent 63%); }
.swatch-terrazzo { background: linear-gradient(135deg, #ece4d3, #ddd2ba); }
.swatch-terrazzo::after { content:""; position:absolute; inset:0; background-image:
  radial-gradient(circle, #7a6a4f 2px, transparent 2.5px),
  radial-gradient(circle, #b5652f 1.5px, transparent 2px),
  radial-gradient(circle, #3a3a3a 1.5px, transparent 2px);
  background-size: 34px 34px, 28px 28px, 22px 22px;
  background-position: 0 0, 10px 14px, 20px 4px; }

/* ---- Article layout with sidebar ---- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: var(--space-5); align-items: start; }
.article-sidebar { position: sticky; top: 90px; }

.sidebar-cta {
  background: var(--brand-dark); color: #cfe0d5; border-radius: 10px;
  padding: var(--space-4) var(--space-3); text-align: center;
  box-shadow: var(--shadow-md);
}
.sidebar-cta h3 { color: var(--white); font-size: 1.25rem; margin-bottom: var(--space-2); }
.sidebar-cta p { color: #cfe0d5; font-size: 0.88rem; }
.sidebar-cta .sidebar-phone {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: var(--space-3) 0; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white);
}
.sidebar-cta .sidebar-phone svg { flex: none; color: var(--clay-500); }
.sidebar-cta .btn-sidebar {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.85rem;
  border: none; transition: filter 0.15s ease, transform 0.15s ease;
}
.sidebar-cta .btn-sidebar:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sidebar-cta .btn-sidebar svg { transition: transform 0.15s ease; }
.sidebar-cta .btn-sidebar:hover svg { transform: translateX(3px); }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; max-width: 420px; margin: 0 auto; }
}

/* ---- Site alert popup ---- */
.site-alert-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,43,31,0.55);
  display: none; align-items: center; justify-content: center; padding: var(--space-3);
  opacity: 0; transition: opacity 0.25s ease;
}
.site-alert-overlay.show { display: flex; }
.site-alert-overlay.visible { opacity: 1; }
.site-alert-modal {
  position: relative; width: 100%; max-width: 420px;
  background:
    linear-gradient(120deg, transparent 42%, rgba(120,120,110,0.10) 43%, transparent 45%),
    linear-gradient(65deg, transparent 58%, rgba(120,120,110,0.08) 59%, transparent 61%),
    var(--sand-50);
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-4) var(--space-3);
  text-align: center;
  transform: translateY(12px); transition: transform 0.25s ease;
}
.site-alert-overlay.visible .site-alert-modal { transform: translateY(0); }
.site-alert-modal img { height: 44px; width: auto; margin: 0 auto var(--space-2); }
.site-alert-modal h3 { margin-bottom: var(--space-2); }
.site-alert-modal p { font-size: 0.92rem; }
.site-alert-close {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.site-alert-close:hover { background: var(--sand-100); }
.site-alert-actions { display: flex; gap: 0.6rem; justify-content: center; margin-top: var(--space-3); flex-wrap: wrap; }
.site-alert-actions .btn-outline { border-color: var(--brand); color: var(--brand); }
.site-alert-actions .btn-outline:hover { background: var(--green-50); }

/* ==========================================================================
   UNIFIED RESPONSIVE SYSTEM ARCHITECTURE (Clean Mobile, Tablet, Desktop)
   No device-name hacks, no cascade conflicts, content-driven breakpoints.
   ========================================================================== */

/* Visually hidden honeypot field for spam prevention */
.hp-field {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Accessibility focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-bottom-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   1. TABLET & MEDIUM PORTABLE ENVIRONMENT (768px to 1024px)
   Covers iPad Mini (768px), iPad Air (820px), Surface Pro (912px), iPad Pro (1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; width: 100%; max-width: 100%; margin-top: var(--space-4); }

  /* Off-canvas navigation menu drawer for Tablet & Mobile */
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-lg);
    z-index: 102;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 0.7rem 0; width: 100%; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    pointer-events: auto; transition: none; box-shadow: none; border: none;
    padding-left: 1rem; margin-top: 0;
  }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer;
    padding: 0.4rem; z-index: 103;
  }
  .nav-toggle span {
    width: 22px; height: 2px; background: var(--brand-dark);
    transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(15,43,31,0.5); z-index: 101;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .nav-actions .btn-outline { display: none; }

  /* Uncrowded Header for Tablets & Mobile */
  .site-header .nav-actions { display: none !important; }
  .brand-text .tagline { display: none !important; }
}

/* --------------------------------------------------------------------------
   2. MOBILE ENVIRONMENT (<= 767px)
   Covers iPhone SE (375px), Galaxy S8+ (360px), S20 Ultra (412px), iPhone 12-16 Pro Max (390-430px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Body & Container Base */
  body {
    padding-bottom: 72px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Prevent 320px–360px text overflows */
  body, p, a, span, div, li, h1, h2, h3, h4, .topbar-links a {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .topbar {
    display: none;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-text .name {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .brand-text .name-primary,
  .brand-text .name-secondary {
    display: inline-block;
  }

  .brand-text .name-secondary {
    margin-left: 0.2rem;
  }

  /* Hero Section: Content-Driven Height */
  .hero {
    min-height: auto !important;
    padding: var(--space-4) 0 var(--space-4) !important;
    background-position: center 30%;
    text-align: left;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: var(--space-2);
  }

  .hero-content .lead {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--space-3);
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    box-sizing: border-box;
    margin: 0;
  }

  .hero-actions .btn:nth-child(n+3) {
    display: flex !important;
  }

  .hero-badges {
    gap: var(--space-2);
    margin-top: var(--space-3);
  }

  .hero-badge strong {
    font-size: 1.15rem;
  }

  /* Grid Layouts: Single Column */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-3);
  }

  .page-hero {
    padding: var(--space-4) 0 var(--space-3) !important;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.25;
  }

  .section {
    padding: var(--space-4) 0 !important;
  }

  /* Mobile App Dock (Bottom Navigation Bar) */
  body.keyboard-open .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    z-index: 9999;
    background-color: var(--green-950);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -3px 12px rgba(15, 43, 31, 0.25);
  }

  .mobile-nav-item {
    flex: 1 1 0%;
    min-width: 0;
    width: 20%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--sand-100);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    gap: 0.2rem;
    padding: 6px 0;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, transform 0.12s ease;
  }

  .mobile-nav-item svg {
    stroke: var(--sand-100);
    transition: stroke 0.15s ease;
  }

  .mobile-nav-item:active {
    transform: scale(0.93);
  }

  .mobile-nav-item.active {
    color: #e3c9a8;
    font-weight: 700;
  }

  .mobile-nav-item.active svg {
    stroke: #e3c9a8;
  }

  /* Footer Space Fix */
  .site-footer {
    padding: var(--space-4) 0 var(--space-3) !important;
  }

  .footer-bottom {
    margin-top: var(--space-3);
    padding-top: var(--space-2);
  }

  /* Google Map Mobile Optimization */
  iframe[src*="google.com/maps"] {
    height: 220px !important;
    border-radius: 8px;
    touch-action: pan-x pan-y;
  }

  /* Forms & Inputs Sizing */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-2);
    width: 100%;
    box-sizing: border-box;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .radio-group label {
    padding: 0.6rem 0.85rem;
    background: var(--sand-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
  }

  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  textarea {
    min-height: 100px;
  }

  /* Comparison Tables & Overflow Scroll */
  .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius);
  }

  .compare-table th,
  .compare-table td {
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  /* Team Cards & Director Section */
  .team-card.card {
    max-width: 100% !important;
    margin: 0 auto;
  }

  /* Area Pills & Tags */
  .area-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
  }

  .area-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* CTA Bands & Action Buttons */
  .cta-band {
    padding: var(--space-5) 0 !important;
  }

  .cta-band .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: var(--space-3);
  }

  .cta-band .hero-actions .btn {
    width: 100% !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   3. SMALL MOBILE ENVIRONMENT (<= 380px)
   Covers iPhone SE (375px), Galaxy S8+ (360px), Small Phones (320px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-actions .btn {
    font-size: 0.88rem;
    padding: 0.75rem 0.8rem;
  }

  .nav-links {
    inset: 0 0 0 15%;
  }

  .mobile-nav-item {
    font-size: 0.65rem;
  }
}





