/* ==========================================================================
   HARRISON HARDSCAPING LLC (harrisonhardscaping.com) — MASTER STYLESHEET
   Mobile-First 9:16 Architecture | Obsidian Dark & Alabaster Light Themes
   Parent Enterprise: Sons of Harrison (sonsofharrison.com)
   ========================================================================== */

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

:root,
html[data-theme="dark"] {
  --bg-main: #0d0d0d;
  --bg-alt: #141619;
  --bg-elevated: #1b1e23;
  --bg-glass: rgba(13, 13, 13, 0.9);
  --text-main: #f4f4f4;
  --text-muted: #a9a9a9;
  --gold: #c5a059;
  --gold-light: #e8d08d;
  --silver: #a9a9a9;
  --silver-light: #f4f4f4;
  --slate-blue: #2b4c6f;
  --slate-blue-light: #3b628b;
  --slate-surface: rgba(43, 76, 111, 0.18);
  --border-subtle: rgba(197, 160, 89, 0.26);
  --border-silver: rgba(169, 169, 169, 0.22);
  --border-slate: rgba(43, 76, 111, 0.55);
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.68);
  --frame-1x1-bg: #0d0d0d;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[data-theme="light"] {
  --bg-main: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-elevated: #f1f3f5;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --text-main: #2c2c2c;
  --text-muted: #5a6065;
  --gold: #b08d44;
  --gold-light: #c5a059;
  --silver: #7d8287;
  --silver-light: #e2e5e8;
  --slate-blue: #2b4c6f;
  --slate-blue-light: #3b628b;
  --slate-surface: rgba(43, 76, 111, 0.08);
  --border-subtle: rgba(197, 160, 89, 0.38);
  --border-silver: rgba(169, 169, 169, 0.4);
  --border-slate: rgba(43, 76, 111, 0.4);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.08);
  --frame-1x1-bg: #ffffff;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* --- MOBILE CENTER-SCROLL SIMULATOR MODE (data-view="mobile") --- */
html[data-view="mobile"] body {
  max-width: 460px;
  margin: 0 auto;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* --- STICKY EXECUTIVE HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--slate-blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

/* 1:1 Square Logo (Strictly 88px x 88px, Unformatted & Zero Border/Padding) */
.asset-frame-1x1 {
  aspect-ratio: 1 / 1;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.asset-frame-1x1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.brand-subtag {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* --- NAVIGATION & CONTROLS --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: var(--slate-surface);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn,
.mobile-menu-btn {
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.control-btn:hover,
.control-btn.active,
.mobile-menu-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--slate-surface);
}

.mobile-menu-btn {
  display: none;
}

/* --- MAIN LAYOUT & TYPOGRAPHY --- */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: var(--slate-surface);
  border: 1px solid var(--border-slate);
  border-left: 3px solid var(--gold);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.22rem;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

h4 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.lead-copy {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- HERO SPLIT-STAGE (9:16 VERTICAL ARCHITECTURE) --- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  padding: 1rem 0 3rem;
  border-bottom: 1px solid var(--border-silver);
}

.hero-stage-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Strictly 9:16 Vertical Frame — Zero 16:9 Allowed */
.asset-frame-9x16 {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 360px;
  background-color: var(--bg-alt);
  border-radius: 14px;
  border: 2px solid var(--gold);
  outline: 1px solid var(--slate-blue);
  outline-offset: 3px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-frame-9x16 video,
.asset-frame-9x16 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Crest Finish Switcher Bar */
.crest-switcher-bar {
  margin-top: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-slate);
  border-radius: 10px;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 360px;
}

.crest-switcher-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.crest-switcher-pills {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.crest-switch-btn {
  flex: 1;
  background: var(--bg-main);
  color: var(--text-muted);
  border: 1px solid var(--border-silver);
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crest-switch-btn:hover,
.crest-switch-btn.active {
  background: var(--slate-blue);
  color: #f4f4f4;
  border-color: var(--gold);
}

/* --- BUTTONS & CTA GROUP --- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-slate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0d0d0d;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--slate-surface);
  color: var(--gold);
  border-color: var(--gold);
}

.btn-slate {
  background: var(--slate-blue);
  color: #f4f4f4;
  border: 1px solid var(--gold);
}

.btn-slate:hover {
  background: var(--slate-blue-light);
  transform: translateY(-2px);
}

/* --- MASONRY METRICS & STRUCTURAL CALLOUTS --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-slate);
  border-left: 4px solid var(--slate-blue);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- 9:16 HARDSCAPING DIVISION CARDS & GRIDS --- */
.section-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-silver);
}

.section-header {
  max-width: 820px;
  margin-bottom: 2rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.brand-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-silver);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.brand-card.centered-card {
  align-items: center;
  text-align: center;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--slate-blue), var(--gold), var(--silver));
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.brand-card .asset-frame-9x16 {
  max-width: 260px;
  margin: 0 auto 1.25rem;
}

.brand-domain-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--slate-surface);
  border: 1px solid var(--border-slate);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Technical Spec Lists inside Hardscaping Cards */
.spec-list {
  list-style: none;
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--border-silver);
  padding-top: 1rem;
}

.spec-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.spec-list li::before {
  content: '▪';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.spec-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.spec-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-main);
  color: var(--silver);
  border: 1px solid var(--border-slate);
}

/* Mobile Collapsible Card Mechanics */
.collapsible-content {
  width: 100%;
}

.collapsible-content.is-collapsed {
  display: none;
}

.collapse-toggle-btn {
  margin-top: 1rem;
  background: var(--bg-main);
  color: var(--gold);
  border: 1px dashed var(--border-subtle);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.collapse-toggle-btn:hover {
  background: var(--slate-surface);
  border-color: var(--gold);
}

/* --- HERALDIC PILLARS & ENGINEERING STEPS GRID --- */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--slate-blue);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.45rem;
}

/* --- SLATE ARCHITECTURAL CALLOUT & PARENT NEXUS BANNER --- */
.slate-callout {
  background: linear-gradient(135deg, var(--bg-alt), var(--slate-surface));
  border: 1px solid var(--border-slate);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
}

.parent-nexus-banner {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
}

/* --- CONTACT PORTAL --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-card,
.contact-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--slate-blue);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contact-detail-list strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-detail-list a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.contact-detail-list a:hover {
  color: var(--gold);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-silver);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--slate-surface);
}

.form-status-box {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--slate-surface);
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-status-box.active {
  display: block;
}

/* --- ZERO-EDIT MISSING ASSET FALLBACK BOX --- */
.asset-fallback-box {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background: radial-gradient(circle at center, var(--bg-elevated), var(--bg-main));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
}

.fallback-monogram {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.fallback-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
}

.fallback-filename {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--silver);
  background: var(--slate-surface);
  border: 1px solid var(--border-slate);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.logo-monogram-fallback {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-alt);
  border-top: 2px solid var(--slate-blue);
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE BREAKPOINTS (Disabled when data-view="mobile" is active) --- */
@media screen and (min-width: 860px) {
  html:not([data-view="mobile"]) .hero-section {
    grid-template-columns: 1.15fr 0.85fr;
  }

  html:not([data-view="mobile"]) .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  html:not([data-view="mobile"]) .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  html:not([data-view="mobile"]) .contact-wrapper {
    grid-template-columns: 0.9fr 1.1fr;
  }

  html:not([data-view="mobile"]) .parent-nexus-banner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  html:not([data-view="mobile"]) .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media screen and (min-width: 1140px) {
  html:not([data-view="mobile"]) .brands-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 859px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-silver);
  }

  .nav-links.nav-open {
    display: flex;
  }
}
