/* Everglow v2 design system (staging, 2026-11-18).
   Uses only the existing palette tokens from styles.css (blue, gray, accent); no new color values. */
:root {
  --v2-space-1: .5rem; --v2-space-2: .75rem; --v2-space-3: 1rem; --v2-space-4: 1.5rem;
  --v2-space-5: 2rem; --v2-space-6: 3rem; --v2-space-7: 4.5rem;
  --v2-radius: .75rem; --v2-radius-lg: 1.25rem;
  --v2-fs-sm: .9375rem; --v2-fs-base: 1.0625rem; --v2-fs-lead: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  --v2-fs-h3: 1.25rem; --v2-fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); --v2-fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --v2-shadow: 0 10px 30px rgb(0 0 0 / .25);
}

/* Layout */
.v2-container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--v2-space-4); }
.v2-section { padding-block: var(--v2-space-7); }
.v2-section--alt { background-color: var(--color-gray-darkest); }
.v2-section__head { max-width: 46rem; margin: 0 auto var(--v2-space-5); text-align: center; }
.v2-center { text-align: center; margin-top: var(--v2-space-5); }
@media (max-width: 47.99rem) { .v2-section { padding-block: var(--v2-space-6); } .v2-container { padding-inline: var(--v2-space-3); } }

/* Type scale */
.v2-eyebrow { font: 600 .8125rem/1.2 var(--font-inter); letter-spacing: .12em; text-transform: uppercase; color: var(--color-blue-lightest); margin: 0 0 var(--v2-space-2); }
.v2-h1, .v2-h2, .v2-h3 { color: #fff; margin: 0; letter-spacing: -.01em; }
.v2-h1 { font: 700 var(--v2-fs-h1)/1.1 var(--font-inter); margin-bottom: var(--v2-space-3); }
.v2-h2 { font: 700 var(--v2-fs-h2)/1.15 var(--font-inter); margin-bottom: var(--v2-space-3); }
.v2-h3 { font: 600 var(--v2-fs-h3)/1.3 var(--font-inter); margin-bottom: var(--v2-space-1); }
.v2-lead { font-size: var(--v2-fs-lead); line-height: 1.6; color: rgb(255 255 255 / .88); margin: 0 0 var(--v2-space-4); max-width: 38rem; }
.v2-sub, .v2-section p { font-size: var(--v2-fs-base); line-height: 1.65; color: rgb(255 255 255 / .82); }
.v2-textlink { color: var(--color-blue-lightest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Buttons */
.v2-actions { display: flex; flex-wrap: wrap; gap: var(--v2-space-2); margin-bottom: var(--v2-space-4); }
.v2-actions--center { justify-content: center; }
.v2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-inter); text-decoration: none; transition: background-color .15s, border-color .15s, transform .15s; }
.v2-btn:hover { transform: translateY(-1px); }
.v2-btn:focus-visible, .v2-card__link:focus-visible, .v2-areas a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.v2-btn--primary { background-color: var(--color-blue-dark); color: #fff; box-shadow: var(--v2-shadow); }
.v2-btn--primary:hover { background-color: var(--color-blue-darker); }
.v2-btn--ghost { border: 2px solid rgb(255 255 255 / .6); color: #fff; background: transparent; }
.v2-btn--ghost:hover { border-color: #fff; background-color: rgb(255 255 255 / .1); }
@media (max-width: 29.99rem) { .v2-actions .v2-btn { flex: 1 1 100%; } }

/* Hero */
.v2-hero { padding-block: var(--v2-space-6) var(--v2-space-7); }
.v2-hero__grid { display: grid; gap: var(--v2-space-5); align-items: center; }
.v2-hero__copy, .v2-hero__media { min-width: 0; }
.v2-hero__media { width: 100%; }
.v2-hero__caption { margin: var(--v2-space-2) 0 0; font-size: .875rem; color: rgb(255 255 255 / .75); text-align: center; }
@media (min-width: 64rem) { .v2-hero__grid { grid-template-columns: 1fr 1.05fr; gap: var(--v2-space-6); } }

/* Nextdoor award (official Nextdoor 2025 badge, verified on the Everglow Nextdoor page) */
.v2-award { display: inline-flex; align-items: center; gap: .75rem; margin-top: var(--v2-space-4); padding: .5rem 1rem .5rem .625rem; border-radius: var(--v2-radius);
  background-color: var(--color-gray-darker); border: 1px solid rgb(255 255 255 / .12); color: rgb(255 255 255 / .85); text-decoration: none; font-size: .875rem; line-height: 1.35; }
.v2-award strong { color: #fff; font-size: .9375rem; }
.v2-award img { flex: none; width: 36px; height: 48px; }
.v2-award:hover { border-color: var(--color-blue-lightest); }

/* Trust strip */
.v2-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-1) var(--v2-space-4); }
.v2-trust li { position: relative; padding-left: 1.5rem; font-size: var(--v2-fs-sm); font-weight: 600; color: #fff; }
.v2-trust li::before { content: ""; position: absolute; left: 0; top: .3rem; width: .875rem; height: .5rem; border-left: 3px solid var(--color-blue-lightest); border-bottom: 3px solid var(--color-blue-lightest); transform: rotate(-45deg); }

/* Cards */
.v2-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--v2-space-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.v2-card { position: relative; background-color: var(--color-gray-darker); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--v2-radius); padding: var(--v2-space-4); transition: border-color .15s, transform .15s; }
.v2-card:hover { border-color: var(--color-blue-lightest); transform: translateY(-2px); }
.v2-card p { margin: 0 0 var(--v2-space-3); font-size: var(--v2-fs-sm); }
.v2-card__link { color: #fff; text-decoration: none; }
.v2-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.v2-card__more { font-weight: 600; font-size: var(--v2-fs-sm); color: var(--color-blue-lightest); }
.v2-more { margin-top: var(--v2-space-4); display: flex; flex-wrap: wrap; gap: var(--v2-space-1) var(--v2-space-3); justify-content: center; align-items: center; }
.v2-more span { color: rgb(255 255 255 / .75); }
.v2-more a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding-block: .5rem; }

/* Pricing */
.v2-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--v2-space-3); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.v2-price { background-color: var(--color-gray-darker); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--v2-radius); padding: var(--v2-space-4); }
.v2-price--featured { border: 2px solid var(--color-blue-lightest); }
.v2-price__amount { font: 700 2.25rem/1.1 var(--font-inter); color: #fff !important; margin: var(--v2-space-1) 0 var(--v2-space-2); }
.v2-price__amount span { font-size: 1rem; font-weight: 500; color: rgb(255 255 255 / .75); }
.v2-price p:last-child { margin: 0; font-size: var(--v2-fs-sm); }

/* Steps */
.v2-steps { list-style: none; margin: 0; padding: 0; counter-reset: v2step; display: grid; gap: var(--v2-space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.v2-steps li { counter-increment: v2step; background-color: var(--color-gray-darker); border-radius: var(--v2-radius); padding: var(--v2-space-4); }
.v2-steps li::before { content: counter(v2step); display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; margin-bottom: var(--v2-space-2);
  background-color: var(--color-blue-medium); color: #fff; font-weight: 700; }
.v2-steps p { margin: 0; font-size: var(--v2-fs-sm); }

/* Gallery strip */
.v2-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--v2-space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .v2-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v2-gallery__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--v2-radius); }

/* Owner */
.v2-owner { display: grid; gap: var(--v2-space-4); align-items: center; justify-items: center; text-align: center; max-width: 52rem; }
.v2-owner__img { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-blue-lightest); }
@media (min-width: 48rem) { .v2-owner { grid-template-columns: 160px 1fr; justify-items: start; text-align: left; } }

/* Service areas */
.v2-areas__group { margin-top: var(--v2-space-4); text-align: center; }
.v2-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--v2-space-1); }
.v2-areas a { display: inline-block; padding: .625rem 1rem; border-radius: 999px; background-color: var(--color-gray-darker); color: #fff; text-decoration: none; font-size: var(--v2-fs-sm); border: 1px solid rgb(255 255 255 / .1); }
.v2-areas a:hover { border-color: var(--color-blue-lightest); }

/* Header: topbar estimate link */
.v2-topbar-cta { white-space: nowrap; display: inline-flex; align-items: center; min-height: 2.25rem; padding: .375rem 1rem; border-radius: 999px; background-color: var(--color-blue-dark); color: #fff !important; font-weight: 600; font-size: .875rem; text-decoration: none; }
.v2-topbar-cta:hover { background-color: var(--color-blue-darker); }
.v2-topbar-hours { white-space: nowrap; font-size: .875rem; color: rgb(255 255 255 / .8); }

/* Footer */
.v2-footer { display: grid; gap: var(--v2-space-5); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding-block: var(--v2-space-5) var(--v2-space-4); text-align: left; }
.v2-footer h2 { font: 600 1rem/1.3 var(--font-inter); color: #fff; margin: 0 0 var(--v2-space-2); text-transform: uppercase; letter-spacing: .08em; }
.v2-footer ul { list-style: none; margin: 0; padding: 0; }
.v2-footer li { margin-bottom: .25rem; }
.v2-footer a { color: rgb(255 255 255 / .85); text-decoration: none; display: inline-block; padding-block: .3rem; }
.v2-footer a:hover { color: #fff; text-decoration: underline; }
.v2-footer p, .v2-footer address { color: rgb(255 255 255 / .8); font-style: normal; line-height: 1.6; margin: 0 0 var(--v2-space-2); }
.v2-footer__logo { display: block; width: 10rem; height: auto; margin-bottom: var(--v2-space-2); }
.v2-footer__ctas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--v2-space-2); }
.v2-footer__ctas .v2-btn { color: #fff; padding-block: .625rem; }
.v2-footer__ctas .v2-btn:hover { text-decoration: none; }
.v2-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--v2-space-3); justify-content: space-between; align-items: center; border-top: 1px solid rgb(255 255 255 / .1); padding-top: var(--v2-space-3); }

/* Sticky mobile Call / Free Estimate bar */
.v2-mobilebar { display: none; }
@media (max-width: 47.99rem) {
  .v2-mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; inset: auto 0 0 0; z-index: 70; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
    background-color: var(--color-gray-darkest); border-top: 1px solid rgb(255 255 255 / .15); }
  .v2-mobilebar a { display: flex; align-items: center; justify-content: center; min-height: 3rem; border-radius: 999px; font: 600 1rem/1 var(--font-inter); text-decoration: none; color: #fff; }
  .v2-mobilebar__call { border: 2px solid rgb(255 255 255 / .6); }
  .v2-mobilebar__quote { background-color: var(--color-blue-dark); }
  body.body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}

/* Inner pages (Phase D, 2026-11-18). Scoped to every page except the homepage, so the approved homepage stays identical.
   Uses only the existing palette tokens. */
/* Hero areas: flat brand blue like the homepage, no drip divider */
#site-content:not(:has(> .v2-hero)) .subpage-hero { background: transparent; padding: 3rem 1.5rem 3.5rem; }
#site-content:not(:has(> .v2-hero)) .subpage-hero-divider, #site-content:not(:has(> .v2-hero)) > section:has(> img[src$="divider.svg"]) { display: none; }
#site-content:not(:has(> .v2-hero)) :is(.subpage-hero__eyebrow, .site-heading-eyebrow, .site-section__eyebrow) { font: 600 .8125rem/1.2 var(--font-inter); letter-spacing: .12em; text-transform: uppercase; color: var(--color-blue-lightest); }
#site-content:not(:has(> .v2-hero)) .subpage-hero__title { font: 700 var(--v2-fs-h1)/1.1 var(--font-inter); letter-spacing: -.01em; text-transform: none; color: #fff; max-width: 52rem; margin-inline: auto; }
#site-content:not(:has(> .v2-hero)) .subpage-hero__text { font-size: var(--v2-fs-lead); line-height: 1.6; color: rgb(255 255 255 / .88); max-width: 44rem; margin-inline: auto; }
#site-content:not(:has(> .v2-hero)) > header h1 { font: 700 var(--v2-fs-h1)/1.1 var(--font-inter) !important; letter-spacing: -.01em; color: #fff; max-width: 52rem; }
#site-content:not(:has(> .v2-hero)) > header p { color: rgb(255 255 255 / .88); line-height: 1.6; }

/* Headings: Inter like the homepage */
#site-content:not(:has(> .v2-hero)) :is(h2, h3, h4).font-oswald, #site-content:not(:has(> .v2-hero)) .font-oswald { font-family: var(--font-inter); font-weight: 700; letter-spacing: -.01em; text-transform: none; }
#site-content:not(:has(> .v2-hero)) :is(.home-problem__title, .home-services__title, .home-faq__title, .site-section__title, .contact-title, .site-panel__subtitle) { font-family: var(--font-inter); font-weight: 700; letter-spacing: -.01em; text-transform: none; color: #fff; }
#site-content:not(:has(> .v2-hero)) :is(.home-problem__title, .home-services__title, .home-faq__title) { font-size: var(--v2-fs-h2); line-height: 1.15; }
#site-content:not(:has(> .v2-hero)) p { line-height: 1.65; }

/* Cards and panels */
#site-content:not(:has(> .v2-hero)) :is(.glass-panel, .site-panel, .service-detail-card, .quote-panel, .site-surface, .rounded-xl.bg-gray-dark) { background-color: var(--color-gray-darker); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--v2-radius); filter: none; box-shadow: none; }

/* Buttons: same pills as the homepage */
#site-content:not(:has(> .v2-hero)) .site-button { min-height: 3rem; padding: .75rem 1.5rem; border-radius: 999px; font: 600 1rem/1.2 var(--font-inter); letter-spacing: normal; text-transform: none; box-shadow: none; }
#site-content:not(:has(> .v2-hero)) .site-button--primary { background: var(--color-blue-dark); color: #fff; }
#site-content:not(:has(> .v2-hero)) .site-button--primary::before { display: none; }
#site-content:not(:has(> .v2-hero)) .site-button--primary:hover { background: var(--color-blue-darker); }
#site-content:not(:has(> .v2-hero)) .site-button--primary:is(:disabled, [disabled], .is-disabled) { opacity: .55; cursor: not-allowed; }
#site-content:not(:has(> .v2-hero)) .site-button--secondary { background: transparent; border: 2px solid rgb(255 255 255 / .6); color: #fff; }
#site-content:not(:has(> .v2-hero)) .site-button--secondary:hover { border-color: #fff; background-color: rgb(255 255 255 / .1); }
#site-content:not(:has(> .v2-hero)) .site-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Form fields */
#site-content:not(:has(> .v2-hero)) .contact-field__label { font: 600 .875rem/1.3 var(--font-inter); letter-spacing: .02em; color: #fff; }
#site-content:not(:has(> .v2-hero)) .contact-field__control { min-height: 3rem; border-radius: .5rem; background-color: var(--color-gray-darkest); border: 1px solid rgb(255 255 255 / .15); color: #fff; font-size: 1rem; }
#site-content:not(:has(> .v2-hero)) .contact-field__control:focus { outline: 3px solid var(--color-blue-lightest); outline-offset: 1px; border-color: var(--color-blue-lightest); }

/* Services page quick menu: a chip row in the page instead of a floating box over the header */
#site-content:not(:has(> .v2-hero)) .services-menu { position: static; width: auto; height: auto; margin: 0 auto 2rem; padding: 0; border: 0; border-radius: 0; background: transparent; }
#site-content:not(:has(> .v2-hero)) .services-menu__list { display: flex; flex-flow: row wrap; justify-content: center; gap: .5rem; padding: 0; }
#site-content:not(:has(> .v2-hero)) .services-menu__list > li { margin: 0 !important; }
#site-content:not(:has(> .v2-hero)) .services-menu__link { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border-radius: 999px; background-color: var(--color-gray-darker); border: 1px solid rgb(255 255 255 / .1); color: #fff; font-size: .9375rem; text-decoration: none; }
#site-content:not(:has(> .v2-hero)) .services-menu__link:hover { border-color: var(--color-blue-lightest); }

/* 2026-11-18 post launch: keep inner page hero buttons on one line (the About hero button wrapped to two lines). */
#site-content:not(:has(> .v2-hero)) header .site-button { width: auto; height: auto; max-width: 100%; white-space: nowrap; }
/* 2026-11-18 post launch: photo upload hint on the estimate form failed contrast (3.7:1); use the existing lighter neutral. */
.quote-upload__hint { color: var(--color-neutral-300); }
/* 2026-11-18 trim: keep the subpage hero estimate button on one line (Services hero label is longer now). */
.subpage-hero__cta { width: auto; height: auto; max-width: 100%; white-space: nowrap; }
@media (max-width: 359px) { .subpage-hero__cta { white-space: normal; } }

/* 2026-11-20 epoxy flooring page: photo grids by space and the Polyaspartic HS data tables. */
.epx-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.epx-photos > .epx-photo:nth-child(3):last-child { grid-column: 1 / -1; }
.epx-photos > .epx-photo:nth-child(3):last-child img { aspect-ratio: 4 / 3; }
@media (min-width: 48rem) {
  .epx-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .epx-photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epx-photos > .epx-photo:nth-child(3):last-child { grid-column: auto; }
  .epx-photos > .epx-photo:nth-child(3):last-child img { aspect-ratio: 4 / 5; }
}
.epx-photo, .epx-panel-photo { margin: 0; }
.epx-photo img, .epx-panel-photo img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: .5rem; background-color: var(--color-gray-darker); }
.epx-photo img { aspect-ratio: 4 / 5; }
.epx-photos--2 .epx-photo img { aspect-ratio: 4 / 3; }
.epx-panel-photo { margin-bottom: 1rem; }
.epx-panel-photo img { aspect-ratio: 4 / 3; }
.epx-space, #polyaspartic-topcoat { scroll-margin-top: 6rem; }
.epx-table-wrap { margin-top: 1rem; overflow-x: auto; border: 1px solid rgb(255 255 255 / .1); border-radius: .5rem; }
.epx-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; color: var(--color-neutral-300); }
.epx-table caption { caption-side: bottom; padding: .75rem; text-align: left; font-size: .8125rem; color: rgb(255 255 255 / .65); }
.epx-table th, .epx-table td { padding: .625rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(255 255 255 / .08); }
.epx-table thead th { background-color: rgb(255 255 255 / .04); color: #fff; font-weight: 600; white-space: nowrap; }
.epx-table tbody th { width: 38%; color: #fff; font-weight: 600; }
.epx-table--cure tbody th { width: auto; white-space: nowrap; }
.epx-table--cure td { white-space: nowrap; }
@media (max-width: 30rem) { .epx-table { font-size: .875rem; } .epx-table th, .epx-table td { padding: .5rem; } .epx-table--cure td, .epx-table--cure thead th { white-space: normal; } .epx-table--cure th, .epx-table--cure td { padding: .5rem .375rem; font-size: .8125rem; } }
.epx-source { margin-top: .75rem; font-size: .875rem; color: rgb(255 255 255 / .65); }
