/* Brand variants. Each site picks one of each in sites.py (BRANDS "layout"), and the
   body carries the choice as classes: header-*, hero-style-*, topbar-*, wordmark-*. */

/* Wordmarks ------------------------------------------------------------- */
.brand--inline .brand__text { flex-direction: row; align-items: baseline; gap: .35em; flex-wrap: wrap; }
.brand--inline .brand__city { font-size: 1.25rem; }
.brand--inline .brand__trade { font: 400 1.25rem/1.1 var(--heading-font); letter-spacing: 0; text-transform: none; color: inherit; opacity: .75; }
.brand--caps .brand__city { font-family: var(--body-font); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; }
.brand--caps .brand__trade { font-family: var(--heading-font); font-weight: 600; text-transform: none; letter-spacing: .01em; font-size: .95rem; font-style: italic; color: var(--primary-ink); border-top: 1px solid currentColor; padding-top: 3px; margin-top: 3px; }
.brand--footer.brand--caps .brand__trade { color: var(--highlight-color); }
@media (max-width: 420px) { .brand--inline .brand__city, .brand--inline .brand__trade { font-size: 1.05rem; } }

.header__cta { white-space: nowrap; }
.header-dark .brand__mark > circle:first-child, .header-dark .brand__mark > rect:first-child { fill: rgb(255 255 255 / .1); }

/* Top bar ---------------------------------------------------------------- */
.topbar-highlight .topbar { background: var(--highlight-color); color: var(--accent-one); font-weight: 700; }

/* Headers ---------------------------------------------------------------- */
.header__phone--left { display: none; }

.header-dark .header { background: var(--accent-one); box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
.header-dark .brand { color: #fff; }
.header-dark .brand__trade { color: var(--highlight-color); }
.header-dark .brand--inline .brand__trade { color: #fff; }
.header-dark .nav__link, .header-dark .menu > summary { color: #fff; }
.header-dark .nav__link:hover, .header-dark .menu > summary:hover, .header-dark .menu[open] > summary { background: rgb(255 255 255 / .1); color: #fff; }
.header-dark .header__phone { color: #fff; }
.header-dark .nav-toggle { background: rgb(255 255 255 / .12); }
.header-dark .nav-toggle__bars, .header-dark .nav-toggle__bars::before, .header-dark .nav-toggle__bars::after { background: #fff; }
.header-dark .topbar { background: var(--footer-bg); }

.header-minimal .header { box-shadow: none; border-bottom: 1px solid var(--line); }
.header-minimal .header__inner { min-height: 84px; }
.header-minimal .nav__link, .header-minimal .menu > summary { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.header-minimal .header__cta { background: transparent; border-color: var(--accent-one); color: var(--accent-one); box-shadow: none; }
.header-minimal .header__cta:hover { background: var(--accent-one); color: #fff; }

@media (min-width: 1100px) {
  .header-centered .header__inner {
    display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "phone brand actions" "nav nav nav";
    row-gap: 0; padding-top: 14px;
  }
  .header-centered .brand { grid-area: brand; justify-self: center; }
  .header-centered .header__phone--left { grid-area: phone; display: inline-flex; justify-self: start; }
  .header-centered .header__phone--right { display: none !important; }
  .header-centered .header__actions { grid-area: actions; justify-self: end; margin: 0; }
  .header-centered .nav { grid-area: nav; margin: 10px 0 0; justify-self: stretch; border-top: 1px solid var(--line); padding: 4px 0; }
  .header-centered .nav__list { justify-content: center; gap: 18px; }
  .header-centered .menu--mega .menu__panel { left: 50%; transform: translateX(-40%); }
  .header-centered .brand__mark { width: 52px; height: 52px; }
}

/* Heroes ----------------------------------------------------------------- */
/* split: light, photograph beside the text. */
.hero--split { background: var(--neutral-color); color: var(--text); }
.hero--split::before { display: none; }
.hero--split h1 { color: var(--accent-one); }
.hero--split .hero__intro { color: var(--muted); }
.hero--split .crumbs, .hero--split .crumbs a { color: var(--muted); }
.hero--split .eyebrow--hero { color: var(--primary-ink); }
.hero--split .button--ghost { border-color: var(--accent-one); color: var(--accent-one); background: transparent; }
.hero--split .hero__points { color: var(--accent-one); }
.hero--split .hero__points .icon { color: var(--accent-two); }
.hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder {
  height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 0, transparent 14px, rgb(255 255 255 / .08) 15px, rgb(255 255 255 / .08) 17px, transparent 18px) 0 0 / 36px 18px,
    linear-gradient(135deg, var(--accent-one), var(--accent-two));
}
.hero__placeholder .brand__mark { width: 120px; height: 120px; border-radius: var(--radius); box-shadow: 0 0 0 10px rgb(255 255 255 / .08); }
@media (min-width: 900px) { .hero--split .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
@media (max-width: 899px) { .hero--split .hero__media { display: none; } }

/* centered: everything centred over the photograph. */
.hero--centered .hero__inner { text-align: center; justify-items: center; }
.hero--centered .hero__text { max-width: 860px; }
.hero--centered h1 { max-width: none; margin-inline: auto; }
.hero--centered .hero__intro { margin-inline: auto; }
.hero--centered .hero__actions, .hero--centered .hero__points, .hero--centered .crumbs { justify-content: center; }
.hero--centered.hero--home .hero__inner { padding: 110px 0 120px; }
@media (min-width: 900px) { .hero--centered.hero--photo::after { background: radial-gradient(ellipse 60% 70% at 50% 50%, rgb(10 25 40 / .7) 0%, rgb(10 25 40 / .35) 70%, rgb(10 25 40 / .15) 100%); } }
.hero--centered h1::after { content: ""; display: block; width: 72px; height: 3px; background: var(--highlight-color); margin: 22px auto 0; }

/* angled: a diagonal bottom edge and a brighter blue. */
.hero--angled { background: linear-gradient(120deg, var(--accent-one) 0%, var(--primary-ink) 100%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); padding-bottom: 40px; }
.hero--angled::before { opacity: .06; }
@media (min-width: 900px) { .hero--angled.hero--home .hero__inner { grid-template-columns: 1fr 380px; } }

/* editorial: tall, big type, text at the bottom left. */
.hero--editorial .hero__inner { min-height: 440px; align-items: end; }
@media (min-width: 900px) { .hero--editorial.hero--photo::after { background: linear-gradient(180deg, rgb(10 25 40 / 0) 30%, rgb(10 25 40 / .45) 60%, rgb(10 25 40 / .8) 100%); } }
.hero--editorial.hero--home .hero__inner { min-height: min(78vh, 720px); }
.hero--editorial h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 700; max-width: 16ch; letter-spacing: -.02em; }
.hero--editorial .eyebrow--hero { display: flex; align-items: center; gap: 12px; color: #fff; }
.hero--editorial .eyebrow--hero::before { content: ""; width: 40px; height: 1px; background: var(--highlight-color); }
.hero--editorial .hero__points { font-weight: 600; letter-spacing: .02em; }

/* bold: heavy uppercase type and stripes. */
.hero--bold { background: var(--accent-one); }
.hero--bold::before {
  opacity: 1; left: auto; width: 46%;
  background: repeating-linear-gradient(-55deg, transparent 0 26px, rgb(255 255 255 / .04) 26px 52px);
}
.hero--bold h1 { text-transform: uppercase; font-weight: 800; letter-spacing: .01em; }
.hero--bold h1::after { content: ""; display: block; width: 90px; height: 6px; background: var(--highlight-color); margin-top: 16px; border-radius: 3px; }
@media (min-width: 900px) {
  .hero--bold.hero--home .hero__inner { grid-template-columns: 380px 1fr; gap: 56px; }
  .hero--bold.hero--home .hero__card { order: -1; }
  .hero--bold.hero--home.hero--photo::after { background: linear-gradient(270deg, rgb(10 25 40 / .8) 0%, rgb(10 25 40 / .55) 40%, rgb(10 25 40 / .15) 75%); }
}

/* Estimate band (brands without a form in the hero) ---------------------- */
.estimate-band { background: var(--accent-one); color: #fff; padding: 36px 0; }
.estimate-band h2 { color: #fff; margin-bottom: .3em; }
.estimate-band p { margin: 0; color: rgb(255 255 255 / .8); }
.estimate-band__inner { display: grid; gap: 24px; align-items: center; }
.estimate-band__form { display: grid; gap: 12px; }
.estimate-band__form label { font-weight: 700; font-size: .85rem; color: rgb(255 255 255 / .85); }
.estimate-band__form input { margin-top: 4px; border-color: transparent; border-radius: var(--button-radius); }
@media (min-width: 1000px) {
  .estimate-band__inner { grid-template-columns: 1fr 1.6fr; }
  .estimate-band__form { grid-template-columns: 1fr 1fr .8fr auto; align-items: end; }
}
.hero-style-editorial .estimate-band { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.hero-style-editorial .estimate-band h2 { color: var(--accent-one); }
.hero-style-editorial .estimate-band p, .hero-style-editorial .estimate-band__form label { color: var(--muted); }
.hero-style-editorial .estimate-band__form input { border-color: var(--line-strong); }
.hero-style-split .estimate-band { background: var(--accent-two); }

/* Trust rows ------------------------------------------------------------- */
.trust--ribbon { background: var(--accent-two); border: 0; }
.trust--ribbon .trust__title { color: #fff; }
.trust--ribbon .trust__item p { color: rgb(255 255 255 / .78); }
.trust--ribbon .trust__icon { background: rgb(255 255 255 / .12); color: var(--highlight-color); box-shadow: none; }
.trust--cards { background: #fff; border: 0; padding-top: 8px; }
.trust--cards .trust__item { background: var(--neutral-color); border-radius: var(--radius); padding: 20px; flex-direction: column; }
.trust--cards .trust__icon { background: var(--highlight-color); color: var(--accent-one); border-radius: 50%; }

/* Services --------------------------------------------------------------- */
.service-tile__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.services--rows .service-grid { gap: 0 48px; }
@media (min-width: 640px) { .services--rows .service-grid { grid-template-columns: 1fr 1fr; } }
.services--rows .service-tile { flex-direction: row; align-items: center; gap: 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 22px 4px; background: transparent; }
.services--rows .service-tile:hover { transform: none; box-shadow: none; border-color: var(--primary-color); }
.services--rows .service-tile__icon { flex: none; background: var(--neutral-color); color: var(--accent-two); border-radius: var(--radius); }
.services--rows .service-tile__body { gap: 2px; }
.services--rows .card__more { margin: 0; }

.services--numbered .service-tile { border-top: 4px solid var(--highlight-color); }
.services--numbered .service-tile__num { font: 700 2.4rem/1 var(--heading-font); color: var(--highlight-color); }

.services--icons .service-tile { align-items: center; text-align: center; background: var(--neutral-color); border-color: transparent; }
.services--icons .service-tile__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-color); color: #fff; }
.services--icons .service-tile__icon .icon { width: 28px; height: 28px; }
/* Hairline icons are drawn on a larger grid and read small at the usual size. */
.service-tile__icon .icon--fine, .trust__icon .icon--fine { width: 30px; height: 30px; }

.services--panels .service-tile:nth-child(-n+2) { background: var(--accent-one); color: #fff; border: 0; padding: 36px; min-height: 230px; justify-content: flex-end; }
.services--panels .service-tile:nth-child(-n+2) .service-tile__title { color: #fff; font-size: 1.6rem; }
.services--panels .service-tile:nth-child(-n+2) .service-tile__text { color: rgb(255 255 255 / .8); }
.services--panels .service-tile:nth-child(-n+2) .card__more { color: var(--highlight-color); }
.services--panels .service-tile:nth-child(-n+2) .service-tile__icon { background: transparent; border: 1px solid rgb(255 255 255 / .35); }
@media (min-width: 1000px) {
  .services--panels .service-grid { grid-template-columns: repeat(6, 1fr); }
  .services--panels .service-tile { grid-column: span 2; }
  .services--panels .service-tile:nth-child(-n+2) { grid-column: span 3; }
  .services--panels .service-tile:nth-child(n+3) { grid-column: span 2; }
}
.services--panels .service-tile:nth-child(n+3) { border-width: 0 0 1px; border-radius: 0; padding: 18px 2px; }
.services--panels .service-tile:nth-child(n+3) .service-tile__icon { display: none; }
.services--panels .service-tile:hover { transform: none; }

.services--bold { background: var(--accent-one); }
.services--bold h2, .services--bold .section-lede { color: #fff; }
.services--bold .section-lede { color: rgb(255 255 255 / .75); }
.services--bold .eyebrow { color: var(--highlight-color); }
.services--bold .service-tile { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); }
.services--bold .service-tile:hover { border-color: var(--highlight-color); }
.services--bold .service-tile__title { color: #fff; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }
.services--bold .service-tile__text { color: rgb(255 255 255 / .72); }
.services--bold .service-tile__icon { background: var(--highlight-color); color: var(--accent-one); }
.services--bold .card__more { color: var(--highlight-color); }

/* Process ---------------------------------------------------------------- */
.process--timeline .process__steps { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .process--timeline .process__steps { grid-template-columns: repeat(5, 1fr); position: relative; }
  .process--timeline .process__steps::before { content: ""; position: absolute; top: 17px; left: 10%; right: 10%; height: 2px; background: var(--line-strong); }
  .process--timeline .process__steps li { flex-direction: column; align-items: center; text-align: center; position: relative; }
}
.process--timeline .process__num { background: var(--primary-color); color: #fff; position: relative; }
.process--timeline .process__step { color: var(--accent-one); font-weight: 800; margin-bottom: 4px; }
.process--timeline .process__steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.process--cards { background: var(--neutral-color); }
.process--cards .process__steps { display: grid; gap: 16px; }
@media (min-width: 700px) { .process--cards .process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process--cards .process__steps { grid-template-columns: repeat(5, 1fr); } }
.process--cards .process__steps li { flex-direction: column; gap: 12px; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.process--cards .process__step { color: var(--accent-one); font-weight: 800; margin-bottom: 4px; }
.process--cards .process__steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.process--cards .process__num { border-radius: var(--radius); }

.story:not(.story--panel) .story__text { max-width: 820px; }
.hero-style-centered .story:not(.story--panel) .story__text { margin-inline: auto; }

/* Odds and ends that should follow the brand ---------------------------- */
.hero-style-bold .cta-band { background: var(--highlight-color); color: var(--accent-one); }
.hero-style-bold .cta-band h2 { color: var(--accent-one); text-transform: uppercase; }
.hero-style-bold .cta-band p { color: var(--accent-one); }
.hero-style-bold .cta-band .button--cta { background: var(--accent-one); color: #fff; }
.hero-style-bold .cta-band .button--ghost { border-color: var(--accent-one); color: var(--accent-one); }
.hero-style-editorial .cta-band { background: var(--accent-one); }
.hero-style-editorial h2 { font-weight: 700; }
.hero-style-centered .section-head { margin-inline: auto; text-align: center; }
.hero-style-centered .area-pills { justify-content: center; }
.hero-style-angled .cta-band { background: linear-gradient(120deg, var(--primary-ink), var(--accent-one)); }
.hero-style-split .cta-band { background: var(--accent-two); }

/* ===================================================================================
   Orange County: glass header, panorama hero, mosaic services, process strip, regions.
   =================================================================================== */

/* Wordmark: the county name large, the trade in spaced capitals under a terracotta rule. */
.brand--county .brand__text { gap: 2px; }
.brand--county .brand__city { font: 700 1.3rem/1 var(--heading-font); letter-spacing: -.01em; }
.brand--county .brand__trade { font: 600 .66rem/1 var(--body-font); letter-spacing: .24em; text-transform: uppercase; padding-top: 5px; border-top: 2px solid var(--highlight-color); color: inherit; opacity: .9; }

/* Header: deep navy glass, sticky, with a terracotta hairline. */
.header-glass .topbar { display: none; }
.header-glass .header { background: rgb(12 44 62 / .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: inset 0 -2px 0 var(--highlight-color); }
.header-glass .brand { color: #fff; }
.header-glass .brand__mark > rect:first-child { fill: rgb(255 255 255 / .08); }
.header-glass .nav__link, .header-glass .menu > summary { color: #E9EEF1; font-weight: 600; }
.header-glass .nav__link:hover, .header-glass .menu > summary:hover, .header-glass .menu[open] > summary { background: rgb(255 255 255 / .1); color: #fff; }
.header-glass .header__phone { color: #fff; }
.header-glass .nav-toggle { background: rgb(255 255 255 / .12); }
.header-glass .nav-toggle__bars, .header-glass .nav-toggle__bars::before, .header-glass .nav-toggle__bars::after { background: #fff; }

/* Hero: a tall full-bleed panorama, text anchored low on a navy fade. */
.hero-style-panorama .hero--photo::after { background: linear-gradient(0deg, rgb(12 44 62 / .92) 0%, rgb(12 44 62 / .55) 45%, rgb(12 44 62 / .15) 100%); }
.hero-style-panorama .hero--home .hero__inner { grid-template-columns: 1fr; min-height: min(78vh, 760px); align-items: end; padding-bottom: 64px; }
.hero-style-panorama .hero--home h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; letter-spacing: -.02em; }
.hero-style-panorama .hero--home .hero__intro { max-width: 58ch; font-size: 1.15rem; }
.hero-style-panorama .hero__points { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-style-panorama .hero__points li { background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; padding: 6px 14px; }
.hero-style-panorama .eyebrow--hero { display: inline-block; color: #fff; background: var(--highlight-color); letter-spacing: .18em; padding: 6px 12px; border-radius: 999px; text-shadow: none; font-size: .72rem; }
.hero-style-panorama .hero:not(.hero--home) .hero__inner { padding-top: 56px; }

/* Services: nine equal cards, three by three, with a terracotta top rule. */
.services--mosaic { background: var(--neutral-color); }
.services--mosaic .service-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .services--mosaic .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services--mosaic .service-grid { grid-template-columns: repeat(3, 1fr); } }
.services--mosaic .service-tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.services--mosaic .service-tile { border-top: 3px solid var(--highlight-color); }
.services--mosaic .service-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgb(12 44 62 / .45); }
.services--mosaic .service-tile__icon svg { width: 40px; height: 40px; color: var(--highlight-color); }
.services--mosaic .service-tile__title { font: 600 1.15rem/1.25 var(--heading-font); color: var(--accent-one); display: block; }
.services--mosaic .service-tile__text { color: var(--muted); font-size: .95rem; display: block; margin-top: 4px; }
.services--mosaic .card__more { margin-top: auto; color: var(--primary-ink); font-weight: 700; }

/* Process: a connected strip of five chevrons. */
.process--strip { background: var(--accent-one); color: #fff; }
.process--strip .eyebrow { color: var(--highlight-color); }
.process--strip h2 { color: #fff; }
.process--strip .process__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: none; }
@media (min-width: 900px) { .process--strip .process__steps { grid-template-columns: repeat(5, 1fr); } }
.process--strip .process__steps li { display: flex; gap: 12px; align-items: flex-start; padding: 20px 22px; background: rgb(255 255 255 / .06); border-top: 3px solid var(--highlight-color); }
@media (min-width: 900px) { .process--strip .process__steps li { flex-direction: column; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); padding: 22px 28px; } .process--strip .process__steps li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); } }
.process--strip .process__num { font: 700 1.6rem/1 var(--heading-font); color: var(--highlight-color); background: none; width: auto; height: auto; }
.process--strip .process__step { color: #fff; font-weight: 700; margin: 0 0 4px; }
.process--strip .process__steps p { margin: 0; color: #C9D6DE; font-size: .93rem; }

/* Regions: the 27 communities grouped by part of the county. */
.regions__grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .regions__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .regions__grid { grid-template-columns: repeat(5, 1fr); } }
.region { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--primary-color); }
.region:nth-child(2n) { border-top-color: var(--highlight-color); }
.region__name { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.05rem; color: var(--accent-one); }
.region__name svg { width: 26px; height: 26px; color: var(--primary-color); }
.region__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.region__list a { color: var(--text); text-decoration: none; font-weight: 500; }
.region__list a:hover { color: var(--highlight-color); }
.regions__all { margin-top: 26px; }
.prose .directory__region { margin: 1.6em 0 .5em; font-size: 1.05rem; color: var(--primary-ink); }

/* Terra icons sit on their own soft disc. */
.icon--terra { color: var(--highlight-color); }
.trust__icon .icon--terra { width: 34px; height: 34px; }

/* Long lists: the 27 communities in columns, in the footer and the Service Areas menu. */
.header-glass .footer__col ul:has(> li:nth-child(15)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
@media (min-width: 1000px) {
  .header-glass .menu__panel ul:has(> li:nth-child(15)) { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); column-gap: 24px; min-width: 560px; }
}
@media (min-width: 1100px) { .header-glass .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr) 1.6fr; } }
