/* Shared styles for the inner pages (services, coverage, FAQ, 404). Tokens, header, footer and buttons match index.html. */
:root {
  /* Brand colors sampled from the Concierge Unlimited logo: charcoal script, sky-blue diamonds, silver rule. */
  --paper: #F4F6F7;
  --surface: #FFFFFF;
  --ink: #231F20;
  --muted: #5B6167;
  --line: #D8DBDE;
  --silver: #D8D9DB;
  --dark: #231F20;
  --dark-deep: #1A1718;
  --on-dark: #F2F4F5;
  --on-dark-muted: #B8BFC5;
  --accent: #5CC8EA;
  --accent-deep: #3FA6C9;
  --link: #1C7DA5;
  --ok: #2E7D57;
  --ok-bg: #E3F2EA;
  --pending-bg: #E2F4FB;
  --pending: #1C6E91;

  --display: "Gloock", "Georgia", "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141213; --surface: #1D1A1B; --ink: #EEF0F1; --muted: #A2A9AF; --line: #302C2E; --silver: #4A4D50;
    --dark: #1F1C1D; --dark-deep: #0F0D0E; --on-dark: #F2F4F5; --on-dark-muted: #AFB6BC;
    --accent: #66CFF0; --accent-deep: #5CC8EA; --link: #7FD6F2; --ok: #7FD1A6; --ok-bg: #173527; --pending-bg: #123546; --pending: #8FDCF5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141213; --surface: #1D1A1B; --ink: #EEF0F1; --muted: #A2A9AF; --line: #302C2E; --silver: #4A4D50;
  --dark: #1F1C1D; --dark-deep: #0F0D0E; --on-dark: #F2F4F5; --on-dark-muted: #AFB6BC;
  --accent: #66CFF0; --accent-deep: #5CC8EA; --link: #7FD6F2; --ok: #7FD1A6; --ok-bg: #173527; --pending-bg: #123546; --pending: #8FDCF5;
  color-scheme: dark;
}

/* Logo variant per theme */
.logo-dark-bg { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light-bg { display: none; } :root:not([data-theme="light"]) .logo-dark-bg { display: block; } }
:root[data-theme="dark"] .logo-light-bg { display: none; }
:root[data-theme="dark"] .logo-dark-bg { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.eyebrow.strong { font-weight: 700; font-size: 1rem; letter-spacing: 0.16em; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 var(--step-0)/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #14181A; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-ghost { color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 40%, transparent); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: linear-gradient(var(--silver) 0 55%, var(--accent) 55% 100%); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: auto; }
@media (max-width: 420px) { .brand img { height: 42px; } }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.header-phone { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn-login { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 8px; padding: 0.45rem 0.6rem; cursor: pointer; font: 500 0.9rem var(--body); }

@media (max-width: 900px) {
  .header-phone { display: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); padding: 0.5rem var(--gutter) 1rem; border-bottom: 1px solid var(--line); }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav:not(.open) { display: none; }
  .header-row { gap: 0.75rem; }
}

/* Footer */
.site-footer { background: var(--dark-deep); color: var(--on-dark-muted); padding-block: 3rem 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid > div { min-width: 0; display: grid; gap: 0.5rem; align-content: start; }
.footer-grid h4 { margin: 0 0 0.25rem; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.footer-logo { height: 64px; width: auto; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.82rem; }

/* Mobile action bar */
.action-bar { display: none; }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); background: var(--surface); }
@media (max-width: 640px) {
  .action-bar { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0.7rem 16px calc(0.7rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .site-footer { padding-bottom: 6rem; }
  .toast { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Inner pages (services, coverage, FAQ) ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--accent); color: #14181A; padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; }
.skip:focus { left: 0; }
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }

.page-hero { background: var(--dark); color: var(--on-dark); padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%) rotate(45deg); border: 22px solid color-mix(in srgb, var(--accent) 30%, transparent); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 1.1rem; }
.page-hero h1.eyebrow { line-height: 1.6; }
.page-title, .page-hero h1:not(.eyebrow) { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; font-size: var(--step-4); max-width: 18em; }
.page-hero .eyebrow { color: var(--on-dark-muted); }
.page-hero .lede { font-size: var(--step-1); color: var(--on-dark-muted); max-width: 40em; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.25rem; }
.crumbs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--on-dark-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: .6; }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { min-width: 0; max-width: 44rem; display: grid; gap: 1.1rem; }
.prose h2 { font-size: var(--step-3); margin-top: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-2); margin-top: 0.6rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.prose li b { font-weight: 600; }
.prose figure { margin: 0.5rem 0; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.prose figure img { width: 100%; height: auto; display: block; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); padding: 0.6rem 0.2rem 0; background: var(--paper); }
.prose blockquote { margin: 0.5rem 0; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); font-family: var(--display); font-size: 1.25rem; line-height: 1.35; }
.prose blockquote cite { display: block; margin-top: 0.6rem; font: 600 0.9rem var(--body); font-style: normal; color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: grid; gap: 0.5rem; }
.callout b { font-weight: 600; }

.side { position: sticky; top: 110px; display: grid; gap: 1rem; min-width: 0; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 0.8rem; }
.side-card h2 { font-size: 1.45rem; }
.side-card p { color: var(--muted); font-size: 0.95rem; }
.side-card .phone { font-family: var(--display); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.side-card .btn { width: 100%; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; }
.side-card li a { display: block; padding: 0.55rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.side-card li a:hover { color: var(--link); }
.side-card li a[aria-current="page"] { font-weight: 600; color: var(--link); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more { color: var(--link); font-weight: 600; font-size: 0.92rem; }
.related { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--surface); border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }

.cta-band { background: var(--dark); color: var(--on-dark); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: var(--step-3); max-width: 20em; }
.cta-band p { color: var(--on-dark-muted); margin-top: 0.6rem; max-width: 36em; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600; font-size: var(--step-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--body); color: var(--accent-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.15rem; color: var(--muted); display: grid; gap: 0.6rem; }
.faq-group + .faq-group { margin-top: 2rem; }
.faq-group h2 { font-size: var(--step-2); margin-bottom: 1rem; }

.markets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.markets li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; display: grid; gap: 0.15rem; }
.markets b { font-weight: 600; }
.markets span { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .page-hero::after { display: none; }
}
