/* ==========================================================================
   APEX HERITAGE BUILDERS — STYLESHEET (10-PAGE ARCHITECTURAL SITE)
   ========================================================================== */

:root {
  --primary: #c28e47;
  --primary-dark: #9a6b2e;
  --primary-light: #dfb273;
  --bg-dark: #18181b;
  --bg-dark-surface: #27272a;
  --text-main: #18181b;
  --text-muted: #71717a;
  --surface: #ffffff;
  --surface-alt: #fbfbf9;
  --border: #e4e4e7;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -5px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 20px 40px -5px rgba(24, 24, 27, 0.16);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: #fafaf9;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top-bar-builder {
  background: #09090b;
  color: #a1a1aa;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-builder a {
  color: #dfb273;
  font-weight: 700;
}

.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--bg-dark);
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #18181b, #27272a);
  border: 1px solid rgba(194, 142, 71, 0.4);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  color: #3f3f46;
  transition: color 0.2s;
  padding: 8px 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--primary-dark);
}

.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-cta-btn {
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.header-cta-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #09090b 0%, #1c1917 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  position: relative;
}

.page-hero-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(194, 142, 71, 0.15);
  border: 1px solid rgba(194, 142, 71, 0.3);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.page-hero p {
  color: #d4d4d8;
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Home Hero */
.builder-home-hero {
  background: linear-gradient(135deg, #09090b 0%, #18181b 100%);
  color: #fff;
  padding: 72px 0 90px;
  position: relative;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.home-hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.home-hero-title span {
  color: var(--primary);
}

.home-hero-lead {
  font-size: 1.15rem;
  color: #d4d4d8;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-stats-row {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
}

.stat-item {
  border-left: 2px solid var(--primary);
  padding-left: 14px;
}

.stat-val {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: #a1a1aa;
}

/* Builder Consultation Lead Card */
.consult-lead-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e4e4e7;
}

.card-header h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--bg-dark);
}

.card-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #3f3f46;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fafaf9;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194, 142, 71, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-builder-lead {
  width: 100%;
  background: var(--primary);
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-builder-lead:hover {
  background: var(--primary-light);
}

/* Section Common */
.section-pad {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-dark);
  background: rgba(194, 142, 71, 0.12);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 900;
  color: var(--bg-dark);
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-top: 10px;
}

/* 3 Core Services Preview Cards */
.services-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.triad-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.triad-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.triad-thumb {
  height: 220px;
  background: #27272a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  overflow: hidden;
}

.triad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.triad-card:hover .triad-thumb img {
  transform: scale(1.05);
}

.triad-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.triad-body h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--bg-dark);
}

.triad-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.triad-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Master Builders 10-Year Guarantee Callout */
.guarantee-band {
  background: #18181b;
  color: #fff;
  padding: 64px 0;
  border-top: 1px solid rgba(194, 142, 71, 0.3);
  border-bottom: 1px solid rgba(194, 142, 71, 0.3);
}

.guarantee-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.guarantee-flex h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 14px;
  color: #fff;
}

.guarantee-flex p {
  color: #d4d4d8;
  font-size: 15px;
  line-height: 1.65;
}

/* Project Gallery Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.project-img-box {
  height: 250px;
  background: #27272a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.06);
}

.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(194, 142, 71, 0.4);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.project-specs {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-bottom: 1px solid #f4f4f5;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.project-content p {
  font-size: 13.5px;
  color: #52525b;
  line-height: 1.55;
}

/* Process Timeline (process.html) */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  border: 2px solid var(--primary);
}

.step-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-info p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Table (pricing-guide.html) */
.pricing-matrix {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}

.pricing-matrix th,
.pricing-matrix td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-matrix th {
  background: #18181b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pricing-matrix td {
  font-size: 14.5px;
}

.pricing-matrix tr:last-child td {
  border-bottom: none;
}

/* Contact Page Layout */
.contact-grid-builder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.builder-info-card {
  background: #18181b;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(194, 142, 71, 0.3);
}

.builder-info-card h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
}

.builder-info-card p {
  color: #d4d4d8;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Footer & Mobile Sticky Bar */
.site-footer {
  background: #09090b;
  color: #a1a1aa;
  padding: 56px 0 32px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-col p {
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}

/* Sticky Mobile Lead Bar */
.sticky-mobile-lead-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-call-btn {
  background: #18181b;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 800;
  font-size: 14px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-quote-btn {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 992px) {
  .home-hero-grid,
  .guarantee-flex,
  .services-triad,
  .contact-grid-builder,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .sticky-mobile-lead-bar {
    display: block;
  }
  body {
    padding-bottom: 64px;
  }
}

