/*
 * Chips Clips Lawncare MN — Clearwater Heritage light theme
 * Loaded after the legacy stylesheets as the final visual override layer.
 * Uses only local/system font families and existing site assets.
 */

:root {
  color-scheme: light;

  --light-bg: #ffffff;
  --light-surface: #edf7f4;
  --light-soft: #e2f1ec;
  --light-card: #ffffff;
  --light-card-hover: #f7fcfa;
  --light-input: #fbfefd;
  --light-text: #18332d;
  --light-muted: #506760;
  --light-faint: #70827d;
  --light-primary: #176b5b;
  --light-primary-hover: #0f5548;
  --light-accent: #477f21;
  --light-border: #d3e6e0;
  --light-border-strong: #abcfc5;
  --light-primary-border: #69a99a;
  --light-focus: #d17a00;
  --light-focus-ring: rgba(209, 122, 0, 0.2);
  --light-shadow: 0 7px 22px rgba(20, 72, 62, 0.08);
  --light-shadow-strong: 0 18px 42px rgba(20, 72, 62, 0.14);
  --light-footer: #143f38;
  --light-footer-text: #ffffff;
  --light-footer-muted: #c6ded8;
  --light-footer-accent: #a9e0a1;
  --light-footer-border: rgba(255, 255, 255, 0.14);

  /* Replace the dark theme tokens used by 137bf045_styles.css. */
  --bg-base: var(--light-bg);
  --bg-surface: var(--light-surface);
  --bg-raised: var(--light-soft);
  --bg-card: var(--light-card);
  --bg-card-hover: var(--light-card-hover);
  --bg-overlay: #173b35;
  --green-vivid: var(--light-primary);
  --green-vivid-hover: var(--light-primary-hover);
  --gold: var(--light-primary);
  --text-white: var(--light-text);
  --text-muted: var(--light-muted);
  --text-faint: var(--light-faint);
  --border: var(--light-border);
  --border-strong: var(--light-border-strong);
  --border-card: var(--light-border);
  --glass-bg: var(--light-card);
  --glass-bg-strong: var(--light-card-hover);
  --glass-bg-subtle: var(--light-soft);
  --glass-bg-green: var(--light-soft);
  --glass-border: var(--light-border);
  --glass-border-strong: var(--light-border-strong);
  --glass-border-subtle: var(--light-border);
  --glass-shadow: var(--light-shadow);
  --glass-shadow-strong: var(--light-shadow-strong);
}

html {
  background: var(--light-bg) !important;
}

body {
  color: var(--light-text) !important;
  background: var(--light-bg) !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

button,
input,
select,
textarea {
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

h1,
h2,
h3,
.brand,
#header_logo {
  color: var(--light-text) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  text-transform: none !important;
  letter-spacing: -0.025em !important;
}

h1,
h2 {
  line-height: 1.04 !important;
}

h3 {
  line-height: 1.3 !important;
}

::selection {
  color: #ffffff;
  background: var(--light-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--light-focus) !important;
  outline-offset: 3px !important;
}

.skip-link {
  color: #ffffff !important;
  background: var(--light-primary) !important;
  border: 1px solid var(--light-primary-hover) !important;
  box-shadow: var(--light-shadow-strong) !important;
}

/* Header and navigation */
.site-header,
.site-header.is-scrolled {
  color: var(--light-text) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border-top: 4px solid #4f9636 !important;
  border-bottom: 1px solid var(--light-border) !important;
  box-shadow: 0 1px 0 var(--light-border), 0 8px 30px rgba(23, 52, 35, 0.06) !important;
  backdrop-filter: blur(16px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
}

.site-header .brand,
.site-header #header_logo {
  color: var(--light-text) !important;
  background: transparent !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  mix-blend-mode: normal !important;
}

.site-header .brand:hover,
.site-header .brand:focus-visible,
.site-header #header_logo:hover,
.site-header #header_logo:focus-visible {
  color: var(--light-primary) !important;
}

.brand-mark {
  color: #ffffff !important;
  background: var(--light-primary) !important;
  border-color: var(--light-primary) !important;
  box-shadow: 0 4px 14px rgba(23, 107, 91, 0.2) !important;
}

.brand-copy {
  color: var(--light-text) !important;
}

.brand-copy small {
  color: var(--light-muted) !important;
}

.nav-links,
.nav-links a,
.v7-nav-dropdown__trigger {
  color: var(--light-muted) !important;
}

/* Beat the legacy `nav a[href]:not(...) { color: inherit !important; }` rule. */
.site-header nav.nav-shell .nav-links > a,
.site-header nav.nav-shell .v7-nav-dropdown__trigger {
  color: var(--light-muted) !important;
}

.nav-links > a:hover,
.nav-links > a:focus-visible,
.nav-links > a[aria-current="page"],
.nav-links > a.active,
.v7-nav-dropdown__trigger:hover,
.v7-nav-dropdown__trigger:focus-visible,
.v7-nav-dropdown__trigger[aria-current="page"],
.v7-nav-dropdown.is-open > .v7-nav-dropdown__trigger,
.v7-nav-dropdown:focus-within > .v7-nav-dropdown__trigger {
  color: var(--light-primary) !important;
}

.site-header nav.nav-shell .nav-links > a:hover,
.site-header nav.nav-shell .nav-links > a:focus-visible,
.site-header nav.nav-shell .nav-links > a[aria-current="page"],
.site-header nav.nav-shell .nav-links > a.active,
.site-header nav.nav-shell .v7-nav-dropdown__trigger:hover,
.site-header nav.nav-shell .v7-nav-dropdown__trigger:focus-visible,
.site-header nav.nav-shell .v7-nav-dropdown__trigger[aria-current="page"],
.site-header nav.nav-shell .v7-nav-dropdown.is-open > .v7-nav-dropdown__trigger,
.site-header nav.nav-shell .v7-nav-dropdown:focus-within > .v7-nav-dropdown__trigger {
  color: var(--light-primary) !important;
}

@media (min-width: 821px) {
  .site-header .v7-nav-dropdown:focus-within > .v7-nav-dropdown__panel {
    display: flex !important;
  }
}

.nav-links a::after {
  background: var(--light-primary) !important;
}

.v7-nav-dropdown__panel {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
  border: 1px solid var(--light-border) !important;
  box-shadow: var(--light-shadow-strong) !important;
}

@media (min-width: 821px) {
  .site-header .v7-nav-dropdown__panel {
    top: calc(100% - 2px) !important;
    transform: translateX(-50%) !important;
  }

  .site-header .v7-nav-dropdown::after {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 100%;
    height: 12px;
  }
}

nav .v7-nav-dropdown__panel .v7-nav-dropdown__item,
.site-header .v7-nav-dropdown__panel .v7-nav-dropdown__item {
  color: var(--light-text) !important;
  background: transparent !important;
  border-color: var(--light-border) !important;
}

nav .v7-nav-dropdown__panel .v7-nav-dropdown__item:hover,
nav .v7-nav-dropdown__panel .v7-nav-dropdown__item:focus-visible,
.site-header .v7-nav-dropdown__panel .v7-nav-dropdown__item:hover,
.site-header .v7-nav-dropdown__panel .v7-nav-dropdown__item:focus-visible,
.site-header .v7-nav-dropdown__panel .v7-nav-dropdown__item[aria-current="page"] {
  color: var(--light-primary) !important;
  background: var(--light-soft) !important;
}

.nav-toggle {
  color: var(--light-text) !important;
  background: var(--light-soft) !important;
  border: 1px solid var(--light-border-strong) !important;
  box-shadow: none !important;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle[aria-expanded="true"] {
  color: var(--light-primary) !important;
  background: var(--light-card) !important;
  border-color: var(--light-primary) !important;
}

.nav-toggle span:not(.sr-only) {
  background: currentColor !important;
}

.site-header nav.nav-shell a.nav-cta,
.site-header nav.nav-shell a.nav-cta:visited {
  color: #ffffff !important;
  background: var(--light-primary) !important;
  border-color: var(--light-primary) !important;
}

.site-header nav.nav-shell a.nav-cta:hover,
.site-header nav.nav-shell a.nav-cta:focus-visible {
  color: #ffffff !important;
  background: var(--light-primary-hover) !important;
  border-color: var(--light-primary-hover) !important;
}

.site-header nav.nav-shell a.nav-phone,
.site-header nav.nav-shell a.nav-phone:visited {
  color: var(--light-primary) !important;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header nav.nav-shell a.nav-phone:hover,
.site-header nav.nav-shell a.nav-phone:focus-visible {
  color: var(--light-primary-hover) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Buttons and shared interaction states */
.btn-primary,
.btn-cta {
  color: #ffffff !important;
  background: var(--light-primary) !important;
  border-color: var(--light-primary) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(23, 107, 91, 0.19) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-cta:hover,
.btn-cta:focus-visible {
  color: #ffffff !important;
  background: var(--light-primary-hover) !important;
  border-color: var(--light-primary-hover) !important;
  box-shadow: 0 12px 28px rgba(23, 107, 91, 0.27) !important;
  transform: translateY(-1px);
}

.btn-outline-white {
  color: var(--light-text) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--light-border-strong) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  color: var(--light-primary) !important;
  background: var(--light-soft) !important;
  border-color: var(--light-primary) !important;
}

.btn-primary:disabled,
.btn-cta:disabled,
.btn-outline-white:disabled,
.btn-primary[aria-disabled="true"],
.btn-cta[aria-disabled="true"],
.btn-outline-white[aria-disabled="true"] {
  opacity: 0.55 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Home hero: full photograph, no gradient or color overlay. */
.hero {
  color: #ffffff !important;
  background: #173b35 !important;
}

.hero-media img {
  opacity: 0.9 !important;
  filter: brightness(1.18) saturate(0.78) hue-rotate(7deg) contrast(0.91) !important;
  transform: scale(1.015);
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background: none !important;
}

.hero-content h1,
.hero .eyebrow,
.hero .eyebrow a,
.hero-lede {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(7, 27, 18, 0.72) !important;
}

.hero-content h1 {
  max-width: 650px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

.hero .eyebrow a {
  text-decoration-color: rgba(255, 255, 255, 0.72) !important;
}

.hero .btn-outline-white {
  color: #ffffff !important;
  background: rgba(10, 38, 31, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.hero .btn-outline-white:hover,
.hero .btn-outline-white:focus-visible {
  color: #ffffff !important;
  background: rgba(10, 38, 31, 0.52) !important;
  border-color: #ffffff !important;
}

.hero-stats {
  color: var(--light-text) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--light-border) !important;
  border-left: 5px solid var(--light-primary) !important;
  box-shadow: var(--light-shadow-strong) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
}

.hero-stats div {
  border-color: var(--light-border) !important;
}

.hero-stats dt {
  color: var(--light-primary) !important;
}

.hero-stats dd {
  color: var(--light-muted) !important;
}

/* Inner-page hero */
.page-hero {
  color: var(--light-text) !important;
  background:
    radial-gradient(circle at 78% 20%, rgba(23, 107, 91, 0.11), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fcfa 55%, var(--light-soft) 100%) !important;
  border-bottom-color: var(--light-border) !important;
}

.page-hero::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), transparent 34%),
    repeating-linear-gradient(90deg, rgba(23, 107, 91, 0.035) 0 1px, transparent 1px 96px) !important;
  opacity: 0.72 !important;
}

.page-hero h1,
.page-hero h2,
.page-hero h3 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

.page-hero-lede {
  color: var(--light-muted) !important;
}

.breadcrumb {
  color: var(--light-faint) !important;
}

.breadcrumb a {
  color: var(--light-primary) !important;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--light-primary-hover) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.breadcrumb span {
  color: var(--light-muted) !important;
}

.hero-proof-panel {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
  border-color: var(--light-border) !important;
  box-shadow: var(--light-shadow-strong) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-proof-list div {
  border-color: var(--light-border) !important;
}

.hero-proof-list dt {
  color: var(--light-primary) !important;
}

.hero-proof-list dd {
  color: var(--light-muted) !important;
}

/* Light sections and type colors */
main {
  color: var(--light-text) !important;
  background: var(--light-bg) !important;
}

.intro-section,
.portfolio-section,
.consultation-section,
.template-band {
  color: var(--light-text) !important;
  background: var(--light-bg) !important;
  border-color: var(--light-border) !important;
}

.founder-section,
.testimonials-section,
.template-band.alt {
  color: var(--light-text) !important;
  background: var(--light-surface) !important;
  border-color: var(--light-border) !important;
}

.template-band.raised {
  color: var(--light-text) !important;
  background: var(--light-soft) !important;
  border-color: var(--light-border) !important;
}

.eyebrow,
.founder-link,
.testimonial figcaption,
.quote-card figcaption,
.form-note.is-success {
  color: var(--light-primary) !important;
}

.intro-text,
.founder-copy p,
.portfolio-card p,
.icon-card p,
.testimonial blockquote,
.consultation-copy p,
.section-heading p,
.copy-stack p,
.content-flow p,
.article-body p,
.template-card p,
.step-card p,
.post-card p,
.contact-method p,
.location-panel p,
.quote-card p,
.sidebar-panel p,
.section-cta p {
  color: var(--light-muted) !important;
}

.article-meta {
  color: var(--light-faint) !important;
}

/* Keep compact UI copy readable; legacy custom.css justifies every article paragraph. */
.icon-card p,
.portfolio-card p,
.testimonial p,
.template-card p,
.step-card p,
.post-card p,
.contact-method p,
.location-panel p,
.quote-card p,
.section-cta p,
.sidebar-panel p,
.consultation-form p {
  text-align: left !important;
  text-justify: auto !important;
  -webkit-hyphens: manual !important;
  -ms-hyphens: manual !important;
  hyphens: manual !important;
}

.signature {
  border-color: var(--light-border) !important;
}

.signature strong {
  color: var(--light-primary) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

main p a[href],
main li a[href],
.copy-stack a,
.content-flow a,
.article-body a,
.post-card a,
.sidebar-panel a:not(.btn-primary):not(.btn-outline-white) {
  color: var(--light-primary) !important;
  text-decoration-color: rgba(23, 107, 91, 0.42) !important;
}

main p a[href]:hover,
main p a[href]:focus-visible,
main li a[href]:hover,
main li a[href]:focus-visible,
.copy-stack a:hover,
.copy-stack a:focus-visible,
.content-flow a:hover,
.content-flow a:focus-visible,
.article-body a:hover,
.article-body a:focus-visible,
.post-card a:hover,
.post-card a:focus-visible,
.sidebar-panel a:not(.btn-primary):not(.btn-outline-white):hover,
.sidebar-panel a:not(.btn-primary):not(.btn-outline-white):focus-visible {
  color: var(--light-primary-hover) !important;
  text-decoration-color: currentColor !important;
}

/* Cards, panels and card interaction */
.icon-card,
.portfolio-card,
.testimonial,
.consultation-form,
.template-card,
.step-card,
.post-card,
.contact-method,
.location-panel,
.quote-card,
.sidebar-panel > div,
.faq-list details {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
  border-color: var(--light-border) !important;
  box-shadow: var(--light-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.icon-card,
.portfolio-card {
  border-bottom: 3px solid #bcded5 !important;
}

.icon-card h3,
.portfolio-card h3,
.template-card h3,
.step-card h3,
.post-card h3,
.contact-method h3,
.location-panel h3,
.quote-card h3,
.testimonial blockquote,
.quote-card blockquote,
.sidebar-panel h2,
.sidebar-panel h3 {
  color: var(--light-text) !important;
}

.icon-card:hover,
.portfolio-card:hover,
.testimonial:hover,
.template-card:hover,
.post-card:hover,
.contact-method:hover,
.v7-related__card:hover {
  background: var(--light-card-hover) !important;
  border-color: var(--light-primary-border) !important;
  box-shadow: var(--light-shadow-strong) !important;
  transform: translateY(-4px) !important;
}

.icon-card:focus-within,
.portfolio-card:focus-within,
.testimonial:focus-within,
.template-card:focus-within,
.post-card:focus-within,
.contact-method:focus-within,
.v7-related__card:focus-visible {
  border-color: var(--light-primary) !important;
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.13), var(--light-shadow-strong) !important;
}

.icon-wrap,
.port-num,
.card-index {
  color: var(--light-primary) !important;
  background: var(--light-soft) !important;
  border-color: var(--light-border) !important;
  box-shadow: none !important;
}

.icon-wrap svg {
  stroke: var(--light-primary) !important;
}

.founder-copy {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
  border-color: var(--light-border) !important;
  box-shadow: var(--light-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.founder-photo-wrap {
  background: var(--light-soft) !important;
  border: 1px solid var(--light-border) !important;
}

.founder-photo-wrap img {
  width: 100% !important;
  height: 520px !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.section-cta {
  color: var(--light-text) !important;
  background: linear-gradient(135deg, rgba(23, 107, 91, 0.1), rgba(255, 255, 255, 0.86)), var(--light-card) !important;
  border-color: var(--light-border-strong) !important;
  box-shadow: var(--light-shadow-strong) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Forms */
.form-row label,
.template-form label {
  color: var(--light-muted) !important;
}

.form-row input,
.form-row select,
.form-row textarea,
.template-form input,
.template-form select,
.template-form textarea,
#premiumContactForm input,
#premiumContactForm select,
#premiumContactForm textarea {
  color: var(--light-text) !important;
  background: var(--light-input) !important;
  border-color: var(--light-border-strong) !important;
  color-scheme: light !important;
}

.form-row input::placeholder,
.form-row textarea::placeholder,
.template-form input::placeholder,
.template-form textarea::placeholder,
#premiumContactForm input::placeholder,
#premiumContactForm textarea::placeholder {
  color: var(--light-faint) !important;
  opacity: 1 !important;
}

.form-row select option,
.template-form select option,
#premiumContactForm select option {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover,
.template-form input:hover,
.template-form select:hover,
.template-form textarea:hover,
#premiumContactForm input:hover,
#premiumContactForm select:hover,
#premiumContactForm textarea:hover {
  border-color: var(--light-primary-border) !important;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.template-form input:focus,
.template-form select:focus,
.template-form textarea:focus,
#premiumContactForm input:focus,
#premiumContactForm select:focus,
#premiumContactForm textarea:focus {
  border-color: var(--light-primary) !important;
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.14) !important;
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"],
.template-form input[aria-invalid="true"],
.template-form select[aria-invalid="true"],
.template-form textarea[aria-invalid="true"] {
  border-color: #a6382f !important;
  box-shadow: 0 0 0 4px rgba(166, 56, 47, 0.12) !important;
}

.form-row input:disabled,
.form-row select:disabled,
.form-row textarea:disabled,
.template-form input:disabled,
.template-form select:disabled,
.template-form textarea:disabled {
  color: var(--light-faint) !important;
  background: #edf2f0 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.form-note {
  color: var(--light-faint) !important;
}

/* FAQ */
.faq-list summary {
  color: var(--light-text) !important;
  background: transparent !important;
}

.faq-list summary::after {
  color: var(--light-primary) !important;
}

.faq-list details:hover {
  border-color: var(--light-primary-border) !important;
}

.faq-list details[open] {
  background: var(--light-card-hover) !important;
  border-color: var(--light-primary-border) !important;
  box-shadow: var(--light-shadow-strong) !important;
}

.faq-list details[open] summary {
  color: var(--light-primary-hover) !important;
  border-bottom: 1px solid var(--light-border) !important;
}

.faq-list details p {
  color: var(--light-muted) !important;
}

/* Legacy FAQ selectors retained by custom.css. */
.faq_item {
  border-color: var(--light-border) !important;
}

.faq_question {
  color: var(--light-text) !important;
}

.faq_question::before,
.faq_answer::before {
  color: var(--light-primary) !important;
}

.faq_answer {
  color: var(--light-muted) !important;
}

/* Media placeholders */
.media-slot {
  color: var(--light-muted) !important;
  background: linear-gradient(135deg, rgba(23, 107, 91, 0.1), rgba(71, 127, 33, 0.06)), var(--light-soft) !important;
  border-color: var(--light-border-strong) !important;
  box-shadow: var(--light-shadow) !important;
}

.media-slot::before {
  border-color: rgba(23, 107, 91, 0.35) !important;
}

.media-slot::after {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.52) 42% 44%, transparent 44% 100%),
    repeating-linear-gradient(0deg, rgba(23, 107, 91, 0.025) 0 1px, transparent 1px 20px) !important;
}

.media-slot span {
  color: var(--light-muted) !important;
}

.media-slot.media-slot--image img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.faq-layout {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
  gap: clamp(28px, 4vw, 56px) !important;
}

.faq-layout .sidebar-panel {
  width: 100%;
  max-width: 240px;
}

.faq-layout .sidebar-panel > div {
  padding: 18px 16px !important;
}

.faq-layout .sidebar-panel .btn-primary {
  width: 100%;
  min-height: 44px;
  padding-inline: 14px !important;
  font-size: 12px;
}

.faq-layout .content-flow {
  min-width: 0;
}

.content-flow > section > h2,
.content-flow > section > h3 {
  margin-bottom: clamp(18px, 2vw, 24px) !important;
}

.content-flow > section + .media-slot,
.content-flow > .media-slot + section {
  margin-top: clamp(28px, 4vw, 44px) !important;
}

.content-flow > p + .media-slot,
.content-flow > .media-slot + p {
  margin-top: clamp(24px, 3vw, 34px) !important;
}

.section-heading h2 + p,
.section-heading h3 + p {
  margin-top: 20px !important;
}

.page-hero h1 + .article-meta {
  margin-top: 18px !important;
}

.article-body h2,
.article-body h3 {
  margin-top: clamp(34px, 5vw, 56px) !important;
  margin-bottom: clamp(16px, 2vw, 22px) !important;
}

.article-body > h2:first-child,
.article-body > h3:first-child {
  margin-top: 0 !important;
}

.article-body p + .media-slot,
.article-body .media-slot + p,
.article-body .media-slot + h2,
.article-body .media-slot + h3 {
  margin-top: clamp(28px, 4vw, 44px) !important;
}

.article-body .section-cta {
  margin-top: clamp(34px, 5vw, 56px) !important;
}

@media (max-width: 1100px) {
  .faq-layout {
    grid-template-columns: 1fr !important;
  }

  .faq-layout .sidebar-panel {
    max-width: none;
  }
}

/* Related-reading cards injected after main on service pages. */
.v7-related {
  color: var(--light-text) !important;
  background: var(--light-surface) !important;
  border-color: var(--light-border) !important;
}

.v7-related__card {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
  border: 1px solid var(--light-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--light-shadow) !important;
}

.v7-related__kicker,
.v7-related__more {
  color: var(--light-primary) !important;
}

.v7-related__title,
.v7-section-title {
  color: var(--light-text) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

/* Keep the intentional dark lightbox accessible within the light site. */
.v7-lightbox__close,
.v7-lightbox__prev,
.v7-lightbox__next {
  color: #ffffff !important;
}

.v7-lightbox__close:hover,
.v7-lightbox__close:focus-visible,
.v7-lightbox__prev:hover,
.v7-lightbox__prev:focus-visible,
.v7-lightbox__next:hover,
.v7-lightbox__next:focus-visible {
  color: var(--light-footer-accent) !important;
}

.v7-lightbox__caption {
  color: #e7f3f0 !important;
}

/* Legacy components from custom.css, harmonized if they are reused. */
.v7-service-block,
.flex_layout.archive_hero.v7-hero-with-image {
  color: var(--light-text) !important;
  background: var(--light-bg) !important;
}

.v7-service-block .content p,
.flex_layout.archive_hero.v7-hero-with-image .intro,
.flex_layout.archive_hero.v7-hero-with-image .intro p {
  color: var(--light-muted) !important;
}

.v7-service-block .image,
.flex_layout.archive_hero.v7-hero-with-image .image {
  background: var(--light-soft) !important;
  border: 1px solid var(--light-border) !important;
}

.testimonials_container {
  color: var(--light-text) !important;
}

.testimonial_card {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
  border-color: var(--light-primary) !important;
  box-shadow: var(--light-shadow) !important;
}

.testimonial_card:hover {
  box-shadow: var(--light-shadow-strong) !important;
}

.testimonial_quote,
.testimonial_author_name {
  color: var(--light-text) !important;
}

.testimonial_author_info {
  border-color: var(--light-border) !important;
}

.testimonial_author_service {
  color: var(--light-primary) !important;
}

.testimonial_author_loc {
  color: var(--light-faint) !important;
}

.menu_container > .menu_column {
  color: var(--light-text) !important;
  background: var(--light-card) !important;
}

.menu_column::-webkit-scrollbar-track {
  background: var(--light-soft);
}

.menu_column::-webkit-scrollbar-thumb {
  background: var(--light-primary-border);
}

.menu_column::-webkit-scrollbar-thumb:hover {
  background: var(--light-primary);
}

/* Footer */
.site-footer {
  color: var(--light-footer-muted) !important;
  background: var(--light-footer) !important;
  border-color: var(--light-footer-border) !important;
}

.site-footer h2,
.site-footer h3,
.site-footer .footer-brand,
.site-footer .brand-copy,
.site-footer .brand-copy span {
  color: var(--light-footer-text) !important;
}

.site-footer .brand-mark {
  color: var(--light-footer) !important;
  background: var(--light-footer-text) !important;
  border-color: rgba(255, 255, 255, 0.74) !important;
  box-shadow: none !important;
}

.site-footer p,
.site-footer a:not(.brand),
.site-footer .footer-muted,
.site-footer .brand-copy small,
.footer-bottom {
  color: var(--light-footer-muted) !important;
}

.site-footer a:not(.brand):hover,
.site-footer a:not(.brand):focus-visible {
  color: var(--light-footer-accent) !important;
}

.nap-block {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  font-style: normal;
  line-height: 1.45;
}

.nap-block strong {
  color: var(--light-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
}

.nap-block span {
  color: var(--light-muted);
}

.nap-block a {
  color: var(--light-primary) !important;
  font-weight: 800;
  text-decoration: none;
}

.nap-block a:hover,
.nap-block a:focus-visible {
  color: var(--light-primary-hover) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .nap-block {
  margin-top: 20px;
}

.site-footer .nap-block strong {
  color: var(--light-footer-text);
}

.site-footer .nap-block span,
.site-footer .nap-block a {
  color: var(--light-footer-muted) !important;
}

.site-footer .nap-block a:hover,
.site-footer .nap-block a:focus-visible {
  color: var(--light-footer-accent) !important;
}

.nap-block--card {
  margin-top: 0;
}

.hero-proof-list a {
  color: var(--light-primary) !important;
  font-weight: 800;
}

.mobile-call-bar {
  display: none;
}

.footer-bottom,
.footer_menus,
.footer_menus .column {
  border-color: var(--light-footer-border) !important;
}

/* Dedicated 404 treatment; body class is supplied by 404.html. */
.error-page {
  min-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(72px, 12vh, 128px) 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: var(--light-text) !important;
  background: radial-gradient(circle at 50% 12%, #ffffff 0%, var(--light-surface) 58%, var(--light-soft) 100%) !important;
}

.error-page h1 {
  margin: 0 0 20px !important;
  color: var(--light-text) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(44px, 8vw, 76px) !important;
}

.error-page p {
  max-width: 560px;
  margin: 0 0 30px !important;
  color: var(--light-muted) !important;
}

.error-page > a {
  display: inline-flex;
  min-height: 48px;
  padding: 0 24px !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: var(--light-primary) !important;
  border: 1px solid var(--light-primary) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(23, 107, 91, 0.19) !important;
}

.error-page > a:hover,
.error-page > a:focus-visible {
  color: #ffffff !important;
  background: var(--light-primary-hover) !important;
  border-color: var(--light-primary-hover) !important;
  box-shadow: 0 12px 28px rgba(23, 107, 91, 0.27) !important;
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  body {
    padding-bottom: 78px;
  }

  .site-header nav.nav-shell a.nav-phone {
    display: none !important;
  }

  .mobile-call-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 260;
    display: block;
    pointer-events: none;
  }

  .mobile-call-bar__button {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #ffffff !important;
    background: var(--light-primary) !important;
    border: 1px solid var(--light-primary-hover);
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(8, 42, 34, 0.28);
    font-weight: 900;
    text-decoration: none;
    pointer-events: auto;
  }

  .mobile-call-bar__button:hover,
  .mobile-call-bar__button:focus-visible {
    background: var(--light-primary-hover) !important;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 78px;
  }

  .site-header nav.nav-shell a.nav-phone {
    display: none !important;
  }

  .nav-links,
  .nav-links.is-open {
    color: var(--light-text) !important;
    background: var(--light-card) !important;
    border-top: 1px solid var(--light-border) !important;
    box-shadow: -18px 18px 42px rgba(23, 52, 35, 0.14) !important;
  }

  .nav-links a,
  .v7-nav-dropdown__trigger {
    color: var(--light-text) !important;
    border-color: var(--light-border) !important;
  }

  .site-header nav.nav-shell .nav-links > a,
  .site-header nav.nav-shell .v7-nav-dropdown__trigger {
    color: var(--light-text) !important;
  }

  .nav-links > a:hover,
  .nav-links > a:focus-visible,
  .nav-links > a[aria-current="page"],
  .v7-nav-dropdown__trigger:hover,
  .v7-nav-dropdown__trigger:focus-visible,
  .v7-nav-dropdown__trigger[aria-current="page"],
  .v7-nav-dropdown.is-open > .v7-nav-dropdown__trigger {
    color: var(--light-primary) !important;
    background: var(--light-soft) !important;
  }

  .site-header nav.nav-shell .nav-links > a:hover,
  .site-header nav.nav-shell .nav-links > a:focus-visible,
  .site-header nav.nav-shell .nav-links > a[aria-current="page"],
  .site-header nav.nav-shell .v7-nav-dropdown__trigger:hover,
  .site-header nav.nav-shell .v7-nav-dropdown__trigger:focus-visible,
  .site-header nav.nav-shell .v7-nav-dropdown__trigger[aria-current="page"],
  .site-header nav.nav-shell .v7-nav-dropdown.is-open > .v7-nav-dropdown__trigger {
    color: var(--light-primary) !important;
    background: var(--light-soft) !important;
  }

  .v7-nav-dropdown__panel {
    background: var(--light-surface) !important;
    border: 1px solid var(--light-border) !important;
    box-shadow: none !important;
  }

  nav .v7-nav-dropdown__panel .v7-nav-dropdown__item,
  .site-header .v7-nav-dropdown__panel .v7-nav-dropdown__item {
    color: var(--light-text) !important;
  }

  .hero-overlay {
    background: none !important;
  }

  .hero-media img {
    object-position: 84% center !important;
    opacity: 0.94 !important;
  }

  .hero-content h1,
  .hero .eyebrow,
  .hero .eyebrow a,
  .hero-lede {
    text-shadow: 0 2px 18px rgba(4, 20, 13, 0.82), 0 1px 3px rgba(4, 20, 13, 0.82) !important;
  }

  .hero-stats {
    background: rgba(255, 255, 255, 0.97) !important;
  }

  .page-hero {
    background: linear-gradient(155deg, #ffffff 0%, var(--light-surface) 100%) !important;
  }

  .mobile-call-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 260;
    display: block;
    pointer-events: none;
  }

  .mobile-call-bar__button {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #ffffff !important;
    background: var(--light-primary) !important;
    border: 1px solid var(--light-primary-hover);
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(8, 42, 34, 0.28);
    font-weight: 900;
    text-decoration: none;
    pointer-events: auto;
  }

  .mobile-call-bar__button:hover,
  .mobile-call-bar__button:focus-visible {
    background: var(--light-primary-hover) !important;
  }

  .founder-photo-wrap img {
    height: 360px !important;
    max-height: 360px !important;
  }
}

@media (max-width: 480px) {
  .site-header .brand {
    letter-spacing: 0.035em !important;
  }

  .hero-content h1 {
    line-height: 1.02 !important;
  }

  .hero-stats {
    border-left-width: 4px !important;
  }

  .founder-photo-wrap img {
    height: 260px !important;
    max-height: 260px !important;
  }

  .error-page > a {
    width: min(100%, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-card:hover,
  .portfolio-card:hover,
  .testimonial:hover,
  .template-card:hover,
  .post-card:hover,
  .contact-method:hover,
  .v7-related__card:hover,
  .btn-primary:hover,
  .btn-cta:hover,
  .error-page > a:hover {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .site-header,
  .hero-stats,
  .icon-card,
  .portfolio-card,
  .testimonial,
  .consultation-form,
  .template-card,
  .step-card,
  .post-card,
  .contact-method,
  .location-panel,
  .quote-card,
  .sidebar-panel > div,
  .faq-list details {
    border: 1px solid CanvasText !important;
  }

  .hero-overlay {
    background: transparent !important;
  }
}
