/* ==========================================================================
   FIVE-STAR HOME CENTER — site theme
   Lead color: Five-Star navy. Accent: gold. Secondary: teal.
   Loaded after base.css. Only role tokens + Five-Star-specific components.
   ========================================================================== */
:root {
  --brand: #083d77;
  --brand-deep: #041626;
  --brand-soft: #e8f0f9;
  --accent: #f4d35e;
  --accent-hover: #ebc83f;
  --on-accent: #083d77;
  --heading: #083d77;
  --eyebrow: #2a7874;
  --link: #083d77;
  --tint: #f6f8fb;
}

.page-hero { border-bottom: 4px solid var(--gold); }

/* Hero visual with the "since 1967" heritage seal */
.hero__visual { position: relative; }
.seal {
  position: absolute; left: -1.1rem; bottom: -1.4rem; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: .1rem;
  width: 7.4rem; height: 7.4rem; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  border: 3px solid var(--navy-deep); box-shadow: 0 0 0 3px var(--gold), var(--shadow-md);
  transform: rotate(-8deg); text-align: center;
}
.seal small { font: 800 .6rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.seal strong { font: 900 1.9rem/1 var(--font-display); letter-spacing: -.02em; }

/* Karsten video band */
.video-band { position: relative; display: grid; align-items: center; min-height: 32rem; color: #fff; overflow: hidden; background: var(--navy-deep) center / cover no-repeat var(--poster); }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 22, 38, .92) 0%, rgba(4, 22, 38, .62) 48%, rgba(4, 22, 38, .2) 100%); }
.video-band__inner { position: relative; z-index: 1; display: grid; gap: 1.2rem; justify-items: start; max-width: 36rem; padding-block: clamp(3rem, 7vw, 5rem); }
.video-band h2 { color: #fff; }
.video-band p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.logo-tile { display: inline-grid; place-items: center; background: var(--navy); border-radius: var(--radius); padding: .85rem 1.4rem; }
.logo-tile img { height: 2.4rem; width: auto; }
.video-band .logo-tile { background: transparent; padding: 0; }
.video-band .logo-tile img { height: 3.2rem; }
@media (prefers-reduced-motion: reduce) { .video-band video { display: none; } }

/* Financing feature panel */
.lender-feature {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff;
  border-radius: var(--radius-lg); border-bottom: 4px solid var(--gold);
  padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow-lg);
}
.lender-feature h2, .lender-feature h3 { color: var(--gold); }
.lender-feature p { color: rgba(255, 255, 255, .86); }
.lender-feature .stack { --space: 1rem; }
.avatar { position: relative; width: 9rem; height: 9rem; border-radius: 50%; border: 4px solid var(--gold); object-fit: cover; box-shadow: var(--shadow-md); }
.avatar-wrap { position: relative; justify-self: center; }
.avatar-wrap .chip { position: absolute; z-index: 2; bottom: -.7rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.kicker { font: 700 .8rem/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }

.lender { display: flex; flex-direction: column; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.lender__logo { height: 4.5rem; display: flex; align-items: center; }
.lender__logo img { max-height: 3.8rem; width: auto; object-fit: contain; }
.lender__officer { display: flex; gap: 1.1rem; align-items: center; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.lender__officer img { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; flex: none; }
.lender__meta { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; }
.lender__meta strong { display: block; color: var(--ink); font-size: 1rem; }
.lender__meta a { color: var(--eyebrow); font-weight: 600; word-break: break-word; }

/* Brand tiles + featured floor plan (New Homes) */
.brand-tile { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.brand-tile__logo { min-height: 4.2rem; display: flex; align-items: center; }
.brand-tile__logo > img { height: 2.8rem; width: auto; }
.brand-tile p { color: var(--ink-soft); }
.brand-tile .btn { margin-top: auto; }
.plan { display: grid; gap: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.plan__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.plan__specs { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; }
.plan__specs li { display: grid; }
.plan__specs b { font: 700 1.5rem/1.1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.plan__specs span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.plan__img { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.plan__img img { width: 100%; }
.plan__body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

@media (max-width: 960px) {
  .lender-feature { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .lender-feature .cluster { justify-content: center; }
  .plan__body { grid-template-columns: 1fr; }
  .seal { left: .6rem; bottom: -1.6rem; width: 6.2rem; height: 6.2rem; }
  .seal strong { font-size: 1.55rem; }
}
