/* src/styles/clarity-contact.css */
.contact-page {
  color: var(--cwc-blue-dark);
  background: var(--cwc-white);
}

.contact-page h1,
.contact-page h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-body);
  font-weight: 840;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4.5rem, 9vw, 8rem);
  background: var(--cwc-white);
}

.contact-hero::after {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -8rem;
  width: min(42vw, 38rem);
  height: 100%;
  border-left: 1px solid color-mix(in srgb, var(--cwc-blue-light) 70%, white);
  background:
    linear-gradient(90deg, transparent 49.8%, color-mix(in srgb, var(--cwc-blue-light) 72%, white) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, color-mix(in srgb, var(--cwc-blue-light) 72%, white) 50%, transparent 50.2%);
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
}

.contact-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
  color: var(--cwc-blue-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.contact-breadcrumb a {
  color: var(--cwc-blue-bright);
  text-decoration: none;
}

.contact-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.contact-breadcrumb a:focus-visible,
.contact-button:focus-visible,
.contact-direct a:focus-visible,
.contact-links a:focus-visible {
  outline: 3px solid var(--color-gold-400);
  outline-offset: 4px;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

.contact-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.1rem, 7vw, 6rem);
}

.contact-hero__copy > p:first-of-type {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  color: var(--color-graphite-700);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.contact-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--cwc-blue-dark);
  border-radius: var(--radius-sm);
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.contact-button svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-button--primary {
  color: var(--cwc-white);
  background: var(--cwc-blue-dark);
}

.contact-button--primary:hover {
  color: var(--cwc-white);
  background: var(--cwc-blue-bright);
  border-color: var(--cwc-blue-bright);
  transform: translateY(-2px);
}

.contact-button--secondary {
  color: var(--cwc-blue-dark);
  background: transparent;
}

.contact-button--secondary:hover {
  color: var(--cwc-white);
  background: var(--cwc-blue-dark);
  transform: translateY(-2px);
}

.contact-hero__note {
  max-width: 43rem;
  margin: 1.15rem 0 0;
  color: var(--color-graphite-700);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-direct {
  position: relative;
  padding: clamp(2rem, 4vw, 3.25rem);
  color: var(--cwc-white);
  background: var(--cwc-blue-dark);
  box-shadow: 0.9rem 1rem 2.5rem color-mix(in srgb, var(--cwc-blue-dark) 20%, transparent);
}

.contact-direct__mark {
  display: grid;
  width: 5.25rem;
  height: 5.25rem;
  place-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--cwc-blue-light);
}

.contact-direct__mark svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-direct > p {
  margin: 0 0 0.45rem;
  color: var(--cwc-blue-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct > a {
  display: inline-block;
  color: var(--cwc-white);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 840;
  letter-spacing: -0.03em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.contact-direct > span {
  display: block;
  max-width: 24rem;
  margin-top: 1rem;
  color: var(--cwc-blue-light);
  line-height: 1.55;
}

.contact-connect {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: var(--color-ivory-50);
}

.contact-connect__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1.25fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.contact-connect h2,
.contact-prepare h2 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.contact-connect__intro p {
  max-width: 33rem;
  margin: 1.2rem 0 0;
  color: var(--color-graphite-700);
  line-height: 1.7;
}

.contact-links {
  border-top: 1px solid var(--color-stone-300);
}

.contact-links a {
  display: flex;
  min-height: 5.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--color-stone-300);
  color: var(--cwc-blue-dark);
  text-decoration: none;
}

.contact-links a:hover strong {
  color: var(--cwc-blue-bright);
}

.contact-links a:hover .contact-links__arrow {
  transform: translate(0.2rem, -0.2rem);
}

.contact-links a:hover .contact-links__brand {
  transform: scale(1.05);
}

.contact-links__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.contact-links__brand {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--cwc-blue-dark);
  background: var(--cwc-white);
  box-shadow: inset 0 0 0 1px var(--cwc-blue-light);
  transition: transform 180ms ease-out;
}

.contact-links__brand svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
  stroke: none;
}

.contact-links__brand--facebook { color: #0866ff; }
.contact-links__brand--instagram { color: #e4405f; }
.contact-links__brand--tiktok { color: #010101; }
.contact-links__brand--nextdoor { color: #8ed500; }
.contact-links__brand--nextdoor svg { width: 1.9rem; }
.contact-links__brand--yelp { color: #ff1a1a; }
.contact-links__brand--google { color: #4285f4; }

.contact-links strong {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
  transition: color 180ms ease-out;
}

.contact-links small {
  color: var(--color-graphite-700);
  font-size: 0.9rem;
}

.contact-links__arrow {
  width: 1.5rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--cwc-blue-bright);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease-out;
}

.contact-prepare {
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: var(--cwc-white);
  background: var(--cwc-blue-dark);
}

.contact-prepare__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.contact-prepare p {
  max-width: 36rem;
  margin: 1.2rem 0 0;
  color: var(--cwc-blue-light);
  line-height: 1.7;
}

.contact-prepare ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--cwc-blue-light) 45%, transparent);
  list-style: none;
}

.contact-prepare li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 4.7rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cwc-blue-light) 45%, transparent);
  color: var(--cwc-white);
  font-weight: 720;
  line-height: 1.45;
}

.contact-prepare li span {
  color: var(--color-gold-400);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

@media (max-width: 48rem) {
  .contact-hero {
    padding-top: 2.5rem;
  }

  .contact-hero::after {
    display: none;
  }

  .contact-breadcrumb {
    margin-bottom: 2rem;
  }

  .contact-hero__grid,
  .contact-connect__grid,
  .contact-prepare__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.25rem);
  }

  .contact-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }

  .contact-direct {
    padding: 2rem;
  }

  .contact-direct__mark {
    width: 4rem;
    height: 4rem;
    margin-bottom: 2.5rem;
  }

  .contact-connect h2,
  .contact-prepare h2 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .contact-links a {
    min-height: 5.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-button,
  .contact-links strong,
  .contact-links__brand,
  .contact-links__arrow {
    transition: none;
  }
}

/* src/styles/clarity-typography.css */
:root {
  --clarity-font-sans: var(--font-body, Inter, Arial, Helvetica, sans-serif);
  --clarity-font-display: var(--font-display, Inter, Arial, Helvetica, sans-serif);
}
html,
body,
button,
input,
select,
textarea {
  font-family: var(--clarity-font-sans);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--clarity-font-display);
  font-synthesis: none;
}
label,
legend,
button,
input,
select,
textarea {
  font-family: var(--clarity-font-sans);
  font-synthesis: none;
}

/* src/styles/clarity-blue-direction.css */
:root {
  --cwc-blue-dark: #083898;
  --cwc-blue-bright: #0858C8;
  --cwc-blue-light: #C8E8F8;
  --cwc-white: #FFFFFF;

  /* Preserve existing semantic hooks while removing the legacy purple output. */
  --color-purple-950: var(--cwc-blue-dark);
  --color-purple-900: var(--cwc-blue-dark);
  --color-purple-800: var(--cwc-blue-bright);
  --color-purple-700: var(--cwc-blue-bright);
  --color-link: var(--cwc-blue-bright);
  --color-surface-inverse: var(--cwc-blue-dark);
  --color-focus: var(--cwc-blue-bright);
  --ink: var(--cwc-blue-dark);
  --navy: var(--cwc-blue-dark);
  --blue: var(--cwc-blue-bright);
  --sky: var(--cwc-blue-light);
  --service-ink: var(--cwc-blue-dark);
  --service-purple: var(--cwc-blue-dark);
  --service-purple-soft: var(--cwc-blue-bright);
}

/* Imported page shells carried the old dark-purple ink directly. */
body .about-page[data-astro-cid-ta2fbyqs],
body .areas-hub[data-astro-cid-akg3ssuo],
body .area-page[data-astro-cid-kxybgtfe],
body .commercial-page[data-astro-cid-i3pgwcpy],
body .service-child-page[data-astro-cid-s5jzzfkt],
body .window-cleaning-parent[data-astro-cid-h6n2ly34],
body .about-page,
body .areas-hub,
body .area-page,
body .commercial-page,
body .service-child-page,
body .window-cleaning-parent {
  color: var(--cwc-blue-dark);
}

body h1 {
  color: var(--cwc-blue-dark);
}

body .service-page {
  --service-ink: var(--color-graphite-900);
  --service-muted: var(--color-graphite-700);
}

body .service-contact[data-astro-cid-5t2z3xfm] h2[data-astro-cid-5t2z3xfm] {
  color: var(--cwc-blue-dark);
}

/* Blue action treatment; gold and light button variants keep their own roles. */
body .button--header,
body .button--primary,
body .button--service,
body .service-hero-estimate__button {
  color: var(--cwc-white);
  background: var(--cwc-blue-dark);
  border-color: var(--cwc-blue-dark);
}

body .button--header:hover,
body .button--primary:hover,
body .button--service:hover,
body .service-hero-estimate__button:hover {
  background: var(--cwc-blue-bright);
  border-color: var(--cwc-blue-bright);
}

/* Replace hard-coded legacy-purple links with the active brand blue. */
body .area-page__hero[data-astro-cid-kxybgtfe] p[data-astro-cid-kxybgtfe] a[data-astro-cid-kxybgtfe],
body .area-page__actions[data-astro-cid-kxybgtfe] a[data-astro-cid-kxybgtfe],
body .commercial-page__hero[data-astro-cid-i3pgwcpy] p[data-astro-cid-i3pgwcpy] a[data-astro-cid-i3pgwcpy],
body .window-cleaning-parent[data-astro-cid-h6n2ly34] article[data-astro-cid-h6n2ly34] a[data-astro-cid-h6n2ly34],
body .service-child-page__parent-link,
body .service-child-page__content a {
  color: var(--cwc-blue-bright);
}

/* Template-specific imported colors that bypassed the shared tokens. */
body .form-field > label,
body .hero-form form[data-instatic-form-id="form"] label {
  color: var(--color-graphite-900);
}

body .coverage__list[data-astro-cid-lcdefpme] a[data-astro-cid-lcdefpme] {
  color: var(--cwc-blue-bright);
}

body .about-page__approach-section[data-astro-cid-ta2fbyqs] p[data-astro-cid-ta2fbyqs],
body .about-page__values[data-astro-cid-ta2fbyqs] li[data-astro-cid-ta2fbyqs] {
  color: var(--cwc-blue-light);
}

body .commercial-page__hero[data-astro-cid-i3pgwcpy] nav[data-astro-cid-i3pgwcpy] a[data-astro-cid-i3pgwcpy] {
  color: var(--cwc-blue-bright);
}

/* Footer copy used a muted purple that no longer belongs to the brand direction. */
body .site-footer,
body .site-footer__intro > p,
body .site-footer__group a,
body .site-footer__bottom,
body .site-footer__credit {
  color: var(--cwc-blue-dark);
}

body .site-footer__bottom {
  border-top-color: var(--cwc-blue-light);
}

body .site-footer__credit a {
  text-decoration-color: var(--cwc-blue-bright);
}

/* Light-blue secondary copy keeps contrast on dark-blue sections. */
body .checklist-layout p,
body .estimate-panel p,
body .local-bar[data-astro-cid-lcdefpme] span[data-astro-cid-lcdefpme],
body .how-it-works__heading[data-astro-cid-lcdefpme] > p[data-astro-cid-lcdefpme]:last-child,
body .steps[data-astro-cid-lcdefpme] p[data-astro-cid-lcdefpme],
body .estimate-prep[data-astro-cid-p6xn5dwj] > p[data-astro-cid-p6xn5dwj],
body .estimate-prep__grid[data-astro-cid-p6xn5dwj] > div[data-astro-cid-p6xn5dwj] > p[data-astro-cid-p6xn5dwj]:last-child,
body .estimate-call-cta[data-astro-cid-ghwmmcbn] p[data-astro-cid-ghwmmcbn],
body .area-page__next[data-astro-cid-kxybgtfe] p[data-astro-cid-kxybgtfe],
body .commercial-page__next[data-astro-cid-i3pgwcpy] p[data-astro-cid-i3pgwcpy],
body .estimate-prep[data-astro-cid-p6xn5dwj] li[data-astro-cid-p6xn5dwj] {
  color: var(--cwc-blue-light);
}

body .estimate-prep[data-astro-cid-p6xn5dwj] li[data-astro-cid-p6xn5dwj] span[data-astro-cid-p6xn5dwj],
body .button--gold-2 {
  color: var(--cwc-blue-dark);
}

/* Compact breadcrumbs: ancestor links, separators, and current page. */
body nav[aria-label="Breadcrumb"] {
  color: var(--cwc-blue-dark);
}

body nav[aria-label="Breadcrumb"] > a {
  color: var(--cwc-blue-bright);
}

body nav[aria-label="Breadcrumb"] > span[aria-hidden="true"] {
  color: var(--cwc-blue-bright);
}

body nav[aria-label="Breadcrumb"] > span:not([aria-hidden="true"]) {
  color: var(--cwc-blue-dark);
}

body nav[aria-label="Breadcrumb"] > a:hover {
  color: var(--cwc-blue-dark);
  text-decoration-color: var(--cwc-blue-bright);
}

body nav[aria-label="Breadcrumb"] > a:focus-visible {
  color: var(--cwc-blue-dark);
  outline-color: var(--cwc-blue-bright);
}
