/* Brand accent stays #f6fd27 in both themes. */
:root { --accent: #f6fd27; }
:root[data-theme="light"] {
  --black: #f3f4f2;
  --dark: #e9ece7;
  --card: #fff;
  --white: #171a16;
  --gray: #62685f;
  --muted: #454c41;
  --yellow: #353c0d; /* Legible text and outlines, not the brand fill. */
  --border: #bbc3b5;
  --subtle-border: #d3d9cd;
  --button-text: #171a16;
  --nav-bg: rgba(243,244,242,0.97);
  --footer-bg: #e4e8df;
  --hover-bg: #f0f3eb;
}
[hidden] { display: none !important; }
/* Keep Find Us Online in the dark brand palette in either site theme. */
#links {
  --dark: #1a1717;
  --card: #2a2626;
  --white: #fff;
  --gray: #999;
  --yellow: #f6fd27;
  --subtle-border: #333;
  --hover-bg: #2e2a2a;
  color: var(--white);
}
:root[data-theme="light"] #links .link-card:hover { border-color: var(--yellow); }
.stripe, .btn-primary, .value-dot, .reviews-dot.active { background: var(--accent); }
.nav-cta { background: var(--accent) !important; }
nav, .mobile-menu, footer { border-color: var(--accent); }
.slider-btn:hover { background: var(--accent); }
:root[data-theme="light"] .reviews-dot.active { background: #171a16; }
:root[data-theme="light"] .review-stars { color: #58610a; }
:root[data-theme="light"] .hero-sub span { color: var(--white); }
:root[data-theme="light"] .form-success { background: #f0f6c6; }
:root[data-theme="light"] .nav-logo { color: #171a16; }
.nav-logo span { color: var(--accent); -webkit-text-stroke: 0.3px currentColor; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--card); color: var(--white); cursor: pointer;
  font: 500 0.75rem var(--font-body); padding: 0.6rem 0.85rem;
  min-height: 40px; white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
section { scroll-margin-top: 90px; }
.hero-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.65rem);
  line-height: 1.15; font-weight: 800; margin-bottom: 1.25rem;
  color: var(--white); max-width: 850px;
}
.hero-logo-wrap { width: min(400px, 65vw); }
.hero-logo-wrap img { display: block; }
/* Reuse the original silhouette: black lettering and a lime sparkle. */
:root[data-theme="light"] .hero-logo-wrap img { filter: brightness(0); }
@supports (mask-image: url('spotly_logo.png')) {
  :root[data-theme="light"] .hero-logo-wrap img { visibility: hidden; }
  :root[data-theme="light"] .hero-logo-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, #171a16 90%, var(--accent) 90%);
    mask-image: url('spotly_logo.png'); mask-size: contain;
    mask-repeat: no-repeat; mask-position: center;
  }
}
#owner {
  background: var(--dark); color: #fff; padding: 0 2rem;
  --white: #fff; --muted: #d5d5d5;
}
:root[data-theme="light"] #owner {
  background: #fff; color: #171a16;
  --white: #171a16; --muted: #454c41;
}
.owner-grid { display: grid; grid-template-columns: 1fr; grid-template-areas: "label" "copy"; column-gap: 2.5rem; row-gap: 1rem; padding-top: 4.5rem; }
.owner-grid.has-photo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-areas: "label portrait" "copy portrait"; }
.owner-label { grid-area: label; }
.owner-portrait { grid-area: portrait; position: relative; display: flex; align-items: stretch; min-width: 0; min-height: 0; overflow: hidden; }
.owner-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center top; }
.owner-copy { grid-area: copy; max-width: 680px; padding: 0 0 4.5rem; align-self: start; }
.owner-copy .t-section-title { margin-bottom: 1.4rem; }
.owner-copy .t-body { margin-bottom: 1rem; }
.owner-copy .btn-primary { margin-top: 1.5rem; }
.owner-mission { margin-top: 1.75rem; padding-left: 1.15rem; border-left: 3px solid var(--accent); }
.owner-mission .t-label { display: block; margin-bottom: 0.6rem; }
.owner-mission p { font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.4 var(--font-head); color: var(--white); }
#our-promise { background: var(--black); }
.promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; }
.promise-grid li { padding: 1.4rem; background: var(--card); border: 1px solid var(--subtle-border); }
.promise-grid h3 { font: 700 1.15rem/1.25 var(--font-head); margin-bottom: 0.75rem; color: var(--accent); }
.promise-grid p { font-size: 0.9rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 980px) { .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .promise-grid { grid-template-columns: 1fr; } }
#service-areas { background: var(--dark); }
#service-areas .t-section-title { margin: 0.7rem 0 1.25rem; }
#service-areas .t-body { max-width: 850px; margin-bottom: 1.2rem; }
.text-link { color: var(--yellow); font-weight: 500; text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--white); }
@media (max-width: 1100px) {
  .nav-links { gap: 0.8rem; }
  nav { padding-left: 1.25rem; padding-right: 1.25rem; gap: 1rem; }
  .nav-links a { font-size: 0.75rem; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 980px) {
  #owner { padding: 0 1.25rem; }
  .owner-grid { padding-top: 3rem; row-gap: 1.5rem; }
  .owner-grid.has-photo { grid-template-columns: 1fr; grid-template-areas: "label" "portrait" "copy"; row-gap: 1.5rem; }
  .owner-copy { padding: 0 0 3rem; }
  .owner-portrait { justify-content: center; }
  .owner-photo { position: static; width: 100%; height: clamp(260px, 85vw, 420px); max-width: 480px; object-fit: cover; object-position: center top; }
  .nav-actions { gap: 0.8rem; }
  #hero { padding-top: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.mobile-menu { top: 66px; }

/* Service area navigation and city landing pages. */
.area-card {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  max-width: 700px; padding: 1.75rem; margin: 1.75rem 0;
  color: var(--white); background: var(--card); border: 1px solid var(--border);
  text-decoration: none; transition: border-color 0.2s;
}
.area-card:hover { border-color: var(--yellow); }
.area-card > span:first-child { display: grid; gap: 0.45rem; }
.area-card strong { font: 800 clamp(1.3rem, 3vw, 1.8rem) var(--font-head); line-height: 1.2; }
.area-card span span:last-child { font-size: 0.85rem; color: var(--muted); }
.area-arrow { font-size: 2rem; color: var(--yellow); }
.city-page #hero.city-hero {
  display: block; min-height: auto; text-align: left; padding: 7.5rem 2rem 4rem;
}
.breadcrumbs { display: flex; gap: 0.65rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--gray); margin-bottom: 2.5rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.city-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 4rem; align-items: center; }
.city-hero-copy > .t-label { display: block; margin-bottom: 1.25rem; }
.city-page .hero-title { font-size: clamp(2.6rem, 4.5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
.city-intro { font: 700 clamp(1.2rem, 2vw, 1.65rem)/1.3 var(--font-head); margin-bottom: 1rem; color: var(--white); }
.city-hero-copy .t-body { max-width: 530px; }
.city-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.75rem; }
.city-actions .btn-primary { padding: 1rem 1.3rem; line-height: 1.25; }
.city-actions .text-link { font-size: 0.83rem; }
.city-hero-note { font-size: 0.75rem; color: var(--gray); margin-top: 1.25rem; }
.city-price-preview { background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.city-illustration { background: #2a2626; }
.city-illustration img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; }
.city-price-copy { padding: 1.5rem; }
.city-price-copy > .t-label { display: block; margin-bottom: 1rem; }
.city-price-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--subtle-border); font-size: 0.85rem; }
.city-price-row strong { color: var(--yellow); }
.city-price-copy p { margin: 1rem 0; color: var(--gray); font-size: 0.75rem; }
.city-price-copy .text-link { font-size: 0.85rem; }
#local-service { background: var(--dark); }
.city-local-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4rem; align-items: start; }
.city-local-grid .t-label { display: block; margin-bottom: 0.85rem; }
.city-local-grid .t-body { margin-bottom: 1.25rem; }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-page #info { padding-top: 4rem; }
#process { scroll-margin-top: 100px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.process-card { padding: 1.6rem; border: 1px solid var(--subtle-border); background: var(--card); }
.process-number { display: block; font: 800 2.5rem/1 var(--font-head); color: var(--yellow); margin-bottom: 1.5rem; }
.process-card h3 { font: 700 1.25rem/1.2 var(--font-head); margin-bottom: 0.8rem; }
.process-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.city-process-note { color: var(--gray); font-size: 0.82rem; margin-top: 1.5rem; }
.city-faq details { border-bottom: 1px solid var(--border); }
.city-faq details:first-child { border-top: 1px solid var(--border); }
.city-faq summary { cursor: pointer; padding: 1.2rem 0; font: 700 1.1rem/1.4 var(--font-head); }
.city-faq summary::marker { color: var(--yellow); }
.city-faq details[open] summary { color: var(--yellow); }
.city-faq p { color: var(--muted); max-width: 850px; font-size: 0.95rem; padding-bottom: 1.5rem; }
@media (max-width: 900px) {
  .city-hero-grid { gap: 2rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); }
  .city-local-grid { gap: 2rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .city-page #hero.city-hero { padding: 6.5rem 1.25rem 3rem; }
  .breadcrumbs { margin-bottom: 2rem; font-size: 0.7rem; }
  .city-hero-grid, .city-local-grid, .process-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .city-page .hero-title { font-size: clamp(2.4rem, 9.5vw, 3.8rem); }
  .city-price-preview { margin-top: 0.5rem; }
  .city-illustration img { max-height: 190px; }
  .city-actions { align-items: stretch; flex-direction: column; }
  .city-actions .btn-primary { text-align: center; }
  .city-actions .text-link { text-align: center; }
  .process-card { padding: 1.5rem; }
  .process-number { margin-bottom: 0.8rem; }
  .area-card { padding: 1.25rem; gap: 1rem; }
}

/* Consistent brand-colour card feedback in both themes. */
.promise-grid li, .city-price-preview, .process-card { transition: border-color 0.2s; }
.promise-grid li:hover, .city-price-preview:hover, .city-price-preview:focus-within,
.process-card:hover, .service-card:hover { border-color: var(--accent); }

:root[data-theme="light"] .promise-grid li { background: #2a2626; --muted: #d5d5d5; }

/* Light theme: horizontal rules and interactive card borders. */
:root[data-theme="light"] .stripe { background: #231f20; }
:root[data-theme="light"] :is(nav, .mobile-menu, footer) { border-color: #231f20; }
:root[data-theme="light"] :is(.faq-item, .city-faq details, .city-price-row) {
  border-top-color: #231f20;
  border-bottom-color: #231f20;
}
:root[data-theme="light"] :is(.promise-grid li, .city-price-preview, .process-card, .service-card, .area-card, .link-card, .review-card):hover,
:root[data-theme="light"] .city-price-preview:focus-within {
  border-color: #231f20;
}

/* Outline yellow quote buttons only in the light theme. */
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .nav-cta { border: 3px solid #231f20; }

/* Restore the homepage logo-led hero. */
body:not(.city-page):not(.service-page) #hero .hero-logo-wrap { width: min(540px, 72vw); line-height: 1; }

/* Compact homepage city links; each arrow stays beside its label. */
.home-area-links { display:flex; flex-wrap:wrap; gap:.75rem; list-style:none; padding:0; margin:1.5rem 0 2rem; max-width:1000px; }
.home-area-links li { max-width:100%; }
.home-area-links a { display:inline-flex; align-items:center; gap:.5rem; min-height:44px; padding:.65rem 1rem; border:1px solid var(--border); border-radius:4px; color:var(--white); text-decoration:none; font-weight:500; line-height:1.4; transition:color .2s,border-color .2s; }
.home-area-links a span { color:var(--yellow); flex-shrink:0; }
.home-area-links a:hover, .home-area-links a:focus-visible { color:var(--yellow); border-color:var(--yellow); }
@media(max-width:768px) { .home-area-links { gap:.6rem; } .home-area-links a { padding:.6rem .8rem; } }

/* Shared header: menu aligned to the right; theme control paused for this release. */
.nav-links { margin-left: auto; }
.theme-toggle[hidden] { display: none !important; }
@media (min-width: 981px) {
  :root[data-theme-switching="disabled"] .nav-actions { display: none; }
}

/* Keyboard navigation and accessible text without changing the visual layout. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10000; padding: 12px 18px; max-width: calc(100vw - 24px); background: #f6fd27; color: #231f20; font: 700 16px/1.4 Arial, sans-serif; text-decoration: underline; transform: translateY(calc(-100% - 24px)); }
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; outline-offset: 3px; }
#main-content { scroll-margin-top: 90px; }

/* Square brand-yellow return-to-top button, with room for mobile safe areas. */
.back-to-top { position: fixed; right: calc(32px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: #f6fd27; color: #231f20; cursor: pointer; box-shadow: 0 2px 12px #0004; touch-action: manipulation; }
.back-to-top[hidden] { display: none !important; }
.back-to-top svg { width: 24px; height: 24px; pointer-events: none; }
.back-to-top:hover { background: #e8ef20; }
.back-to-top:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
