/* Homepage layout matching the approved commercial-first reference. Loaded only on "/". */

.home-eyebrow { margin: 0 0 10px; color: var(--edge-blue); font-family: var(--edge-font-heading); font-size: .78rem; font-weight: 700; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; }

/* Hero: commercial photo dominates; white-to-transparent overlay keeps the copy readable. */
.home-hero { position: relative; isolation: isolate; overflow: hidden; background: #eef2f7; }
.home-hero-media { position: absolute; inset: 0; z-index: -2; }
.home-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 32%; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 30%, rgba(255,255,255,.5) 44%, rgba(255,255,255,0) 58%); }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: center; gap: 48px; min-height: 600px; padding: 44px 0 52px; }
.home-hero-copy { max-width: 680px; }
.home-hero h1 { max-width: none; margin: 0 0 18px; color: var(--edge-navy); font-size: clamp(2.6rem, 3.9vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
.home-hero-lede { max-width: 500px; margin: 0 0 26px; color: var(--edge-charcoal); font-size: 1.08rem; line-height: 1.6; }
.home-hero-actions { display: grid; justify-items: start; gap: 12px; }
.home-hero-secondary { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero-secondary .btn { min-width: 152px; }

/* Hero placement of the shared estimate wizard (component styles live in site.css). */
.home-wizard { justify-self: end; width: 100%; max-width: 430px; }

/* Trust strip */
.home-trust { background: #fff; border-bottom: 1px solid var(--line); }
.home-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 26px 24px; border-left: 1px solid var(--line); }
.home-trust-item:first-child { padding-left: 0; border-left: 0; }
.home-trust-item .icon { width: 36px; height: 36px; color: var(--edge-navy); }
.home-trust-item strong { display: block; margin-bottom: 4px; color: var(--edge-navy); font-family: var(--edge-font-heading); font-size: .98rem; line-height: 1.25; }
.home-trust-item span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; }

/* Section shells */
.home-section { padding: 68px 0; }
.home-section-tint { background: #f5f8fb; }
.home-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 16px 48px; margin-bottom: 30px; }
.home-section-head h2, .home-why h2, .home-process h2 { margin: 0; color: var(--edge-navy); font-size: clamp(1.75rem, 2.6vw, 2.35rem); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.home-section-head > p { margin: 0; padding-left: 20px; color: var(--muted); font-size: .98rem; border-left: 2px solid #dbe4ef; }

/* Image-first cards (services, property types, project placeholders) */
.home-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; background: #fff; border: 1px solid #dfe6ee; border-radius: 10px; box-shadow: 0 4px 14px rgba(11,45,91,.06); transition: border-color .15s, box-shadow .15s; }
.home-card:hover { border-color: #b8cbe3; box-shadow: 0 8px 22px rgba(11,45,91,.1); }
.home-card > img { display: block; width: 100%; height: 180px; object-fit: cover; }
.home-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px; }
.home-card h3 { margin: 0 0 8px; color: var(--edge-navy); font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.home-card p { flex: 1; margin: 0 0 16px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.home-card-more { display: flex; align-items: center; justify-content: space-between; color: var(--edge-blue); font-size: .9rem; font-weight: 700; }
.home-card-arrow { width: 30px; height: 30px; color: var(--edge-blue); }

/* Why Edge + Process side by side */
.home-why-process { padding: 72px 0; }
.home-wp-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 56px; }
.home-why { padding-right: 56px; border-right: 1px solid var(--line); }
.home-why h2, .home-process h2 { margin-bottom: 28px; }
.home-values { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.home-value { display: flex; align-items: flex-start; gap: 14px; }
.home-value .icon { width: 32px; height: 32px; color: var(--edge-navy); }
.home-value h3, .home-steps h3 { margin: 0 0 4px; color: var(--edge-navy); font-size: .98rem; font-weight: 700; line-height: 1.25; }
.home-value p, .home-steps p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.home-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.home-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.home-steps li + li::before { content: ""; position: absolute; top: 19px; right: calc(50% + 26px); left: calc(-50% + 6px); border-top: 2px dashed #c7d6ea; }
.home-step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; color: #fff; font-family: var(--edge-font-heading); font-weight: 700; background: var(--edge-blue); border-radius: 50%; }
.home-steps .icon { width: 28px; height: 28px; margin: 4px 0 2px; color: var(--edge-navy); }

/* Family-owned three-part band: navy panel / photo / checklist */
.home-family { padding: 0 0 72px; }
.home-family-grid { display: grid; grid-template-columns: 45fr 30fr 25fr; min-height: 320px; overflow: hidden; background: #f5f8fb; border: 1px solid #dfe6ee; border-radius: 12px; }
.home-family-panel { position: relative; overflow: hidden; padding: 40px 44px; color: #fff; background: var(--edge-navy); }
.home-family-panel .home-eyebrow { color: #8fc1ff; }
.home-family-panel h2 { position: relative; z-index: 1; margin: 0 0 14px; color: #fff; font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 800; line-height: 1.12; }
.home-family-panel p { position: relative; z-index: 1; max-width: 440px; margin: 0 0 22px; color: #d6e2f1; font-size: .95rem; }
.home-family-panel .btn { position: relative; z-index: 1; min-height: 44px; }
.home-family-texas { position: absolute; right: -10px; bottom: -14px; width: 220px; height: auto; color: rgba(255,255,255,.14); }
.home-family-photo { min-height: 220px; }
.home-family-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-family-list { display: grid; align-content: center; gap: 18px; margin: 0; padding: 32px 28px; list-style: none; }
.home-family-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--edge-navy); font-size: .92rem; font-weight: 600; line-height: 1.4; }
.home-family-list .icon { width: 24px; height: 24px; color: var(--edge-blue); }

/* Project placeholders (not real work) */
.home-projects { padding-top: 0; }
.home-section-head a { color: var(--edge-blue); font-weight: 700; }
.home-project-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 180px; margin: 0; padding: 16px; color: #43566c; font-weight: 700; background: repeating-linear-gradient(135deg, #eef2f7 0 12px, #f8fafc 12px 24px); border: 1px dashed #9aaabd; border-radius: 10px; }
.home-project-tag { align-self: flex-start; padding: 2px 8px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: #fff; border: 1px solid #9aaabd; border-radius: 4px; }

/* Compact final CTA */
.home-cta { padding: 28px 0; background: #f5f8fb; border-top: 1px solid var(--line); }
.home-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.home-cta h2 { margin: 0 0 4px; color: var(--edge-navy); font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.home-cta p { margin: 0; color: var(--muted); font-size: .9rem; }
.home-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1200px) {
  .home-wp-grid { grid-template-columns: 1fr; gap: 48px; }
  .home-why { padding: 0 0 48px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .home-trust-item, .home-trust-item:first-child { padding: 18px 16px 18px 0; border-left: 0; }
  .home-section-head { grid-template-columns: 1fr; }
  .home-section-head > p { padding-left: 0; border-left: 0; }
  .home-family-grid { grid-template-columns: 1fr 1fr; }
  .home-family-panel { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .home-hero { background: #fff; }
  .home-hero::before { display: none; }
  .home-hero-media { position: relative; inset: auto; z-index: 0; height: clamp(220px, 46vw, 380px); }
  .home-hero-inner { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 28px 0 40px; }
  .home-hero-copy { max-width: 640px; }
  .home-wizard { justify-self: stretch; max-width: 560px; }
}
@media (max-width: 640px) {
  .home-hero-media { height: 220px; }
  .home-hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .home-hero-lede { font-size: 1rem; }
  .home-hero-actions { justify-items: stretch; }
  .home-hero-actions .btn { width: 100%; }
  .home-hero-actions .btn-lg { padding: 0 12px; font-size: .92rem; }
  .home-hero-secondary { display: grid; grid-template-columns: 1fr; }
  .home-section, .home-why-process { padding: 52px 0; }
  .home-card-grid, .home-values, .home-trust-grid { grid-template-columns: 1fr; }
  .home-card > img { height: 190px; }
  .home-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .home-steps li + li::before { display: none; }
  .home-family { padding-bottom: 52px; }
  .home-family-grid { grid-template-columns: 1fr; }
  .home-family-photo { height: 200px; }
  .home-family-panel { padding: 30px 22px; }
  .home-cta-actions { display: grid; width: 100%; }
}
