:root {
  --bg: #ffffff;
  --surface: #f0f6fa;
  --ink: #111111;
  --navy: #12354d;
  --muted: #55636c;
  --line: #d9e3ea;
  --accent: #1b5e7a;
  --accent-dark: #134559;
  --accent-soft: #e4f0f5;
  --sponsor: #7a4a12;
  --sponsor-soft: #fbefd9;
  --focus: #b45f06;
  --max: 1120px;
  --gutter: 20px;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: #eaf2f7; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: linear-gradient(180deg, #ffffff 0%, #eaf2f7 100%); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--text { max-width: calc(780px + 2 * var(--gutter)); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; color: var(--navy); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

/* header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header__brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 6px 0; display: inline-block; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* sections */
.section { padding: 56px 0; }
.section--tint { background: transparent; }   /* the page gradient runs the full height of every page, so no flat bands */
.section__more { margin-top: 20px; }
.hero { background: var(--accent-soft); padding: 64px 0 56px; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero__links { margin-top: 14px; color: var(--muted); }
.breadcrumbs { font-size: 0.92rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* search */
.search { display: flex; gap: 10px; max-width: 640px; margin-top: 24px; }
.search input[type="search"] { flex: 1; min-width: 0; }
input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #a9b3b9; border-radius: 8px; padding: 12px 14px;
}
.button { display: inline-block; font: inherit; font-weight: 700; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; cursor: pointer; text-decoration: none; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.biz-card { background: #fff; border: 1px solid #cfdbe4; border-radius: var(--radius); padding: 0; overflow: hidden; box-shadow: 0 2px 6px rgba(27, 40, 48, 0.12), 0 10px 22px rgba(27, 40, 48, 0.07); display: flex; flex-direction: column; }
.biz-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.biz-card__media { height: 150px; background: #f7f9fb; border-bottom: 1px solid #dde4ea; display: flex; align-items: center; justify-content: center; padding: 16px; }
.biz-card__media img { mix-blend-mode: multiply; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.biz-card__media--initials { background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 2.6rem; letter-spacing: 0.02em; }
.biz-card h2, .biz-card h3 { font-size: 1.2rem; margin: 0; }
.biz-card h2 a, .biz-card h3 a { color: var(--ink); text-decoration: none; }
.biz-card h2 a:hover, .biz-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.biz-card__meta { margin: 0; font-size: 0.92rem; color: var(--muted); }
.biz-card__summary { margin: 4px 0 8px; }
.biz-card__logo { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; margin-bottom: 4px; }
.profile-logo { display: block; width: 120px; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 6px; margin-bottom: 16px; }
.biz-card__contact { margin: 0 0 8px; font-size: 0.95rem; }
.biz-card__site { margin-top: auto; font-weight: 600; }
.badge { align-self: flex-start; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sponsor); background: var(--sponsor-soft); border: 1px solid #e8cfa3; border-radius: 999px; padding: 2px 10px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.link-tile a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 0 1px 3px rgba(27, 40, 48, 0.06); }
.link-tile a:hover { border-color: var(--accent); color: var(--accent); }
.link-tile span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 1.6em; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* listing tools */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 24px; align-items: end; }
.filters label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.filters .filters__q { flex: 1 1 260px; }
.filters .filters__sel { flex: 0 1 220px; }
.empty-state { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
[hidden] { display: none !important; }

/* profile */
.profile-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .profile-grid { grid-template-columns: 2fr 1fr; } }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts h2 { margin-top: 0; font-size: 1.15rem; }
.facts dl { margin: 0; }
.facts dt { font-weight: 700; font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
.facts dd { margin: 2px 0 0; }
.note { background: var(--accent-soft); border: 1px solid #b9d6e2; border-radius: var(--radius); padding: 14px 18px; font-size: 0.97rem; }
.faq h3 { margin-top: 1.2em; }

/* forms */
.form { display: grid; gap: 16px; }
.form__row label { display: block; font-weight: 600; margin-bottom: 4px; }
.form__row--check { display: flex; gap: 10px; align-items: flex-start; }
.form__row--check input { margin-top: 6px; width: 18px; height: 18px; }
.form__row--check label { font-weight: 400; margin: 0; }
.form__hint { font-size: 0.9rem; color: var(--muted); margin: 4px 0 0; }
.form__trap { position: absolute; left: -9999px; }
.form__status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form__status.is-error { color: #a12020; }
.form__status.is-ok { color: #1c6a3a; }

/* footer */
.site-footer { background: #14212a; color: #d6e0e6; padding: 44px 0 28px; margin-top: 0; }
.site-footer a { color: #ffffff; }
.site-footer__cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__cols { grid-template-columns: 2fr 1fr; } }
.site-footer__name { font-weight: 800; color: #fff; margin-bottom: 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer__small { font-size: 0.88rem; margin: 28px 0 0; color: #b4c3cc; }

@media (max-width: 560px) {
  .search { flex-direction: column; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 40px; }
}

.logo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; letter-spacing: 0.02em; border-color: #b9d6e2; }
.biz-card__logo.logo-placeholder { font-size: 1.5rem; }
.profile-logo.logo-placeholder { font-size: 2.4rem; }

/* optional hero photo: assets/hero/hero.webp. A soft blue-gray overlay on the left keeps the headline readable. */
.hero--image { background-image: linear-gradient(90deg, rgba(168, 193, 210, 0.92) 0%, rgba(168, 193, 210, 0.66) 50%, rgba(168, 193, 210, 0) 100%), url("/images/hero.webp"); background-size: cover; background-position: center right; }
.hero--image .hero__lead, .hero--image .hero__links { color: var(--ink); }
@media (max-width: 700px) {
  .hero--image { background-image: linear-gradient(180deg, rgba(168, 193, 210, 0.92) 0%, rgba(168, 193, 210, 0.84) 100%), url("/images/hero.webp"); }
}
@media (min-width: 900px) { .hero--image { padding: 96px 0 88px; } }

/* mobile and tablet menu: logo left, hamburger right */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .site-header { position: relative; z-index: 20; }
  .site-header__inner { flex-wrap: nowrap; }
  .has-js .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
  .nav-toggle__bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .has-js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 33, 42, 0.12); }
  .has-js .site-nav.is-open { display: block; }
  .has-js .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 14px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
  .has-js .site-nav a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .has-js .site-nav li:last-child a { border-bottom: 0; }
}

/* sponsored block on the home page: one large card, smaller cards below */
.sponsor-top { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(27, 40, 48, 0.1); margin-bottom: 20px; }
.sponsor-top__media .biz-card__media { height: 100%; min-height: 200px; border-bottom: 1px solid var(--line); }
.sponsor-top__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.sponsor-top__body h3 { font-size: 1.5rem; margin: 0; }
.sponsor-top__body h3 a { color: var(--ink); text-decoration: none; }
.sponsor-top__body h3 a:hover { color: var(--accent); text-decoration: underline; }
.sponsor-top__actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin: 8px 0 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 6px; }
.chips li { font-size: 0.88rem; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 3px 12px; }
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 16px; }
.biz-card--compact .biz-card__media { height: 96px; padding: 10px; }
.biz-card--compact .biz-card__media--initials { font-size: 1.8rem; }
@media (min-width: 820px) {
  .sponsor-top { grid-template-columns: 2fr 3fr; }
  .sponsor-top__media .biz-card__media { border-bottom: 0; border-right: 1px solid var(--line); }
}

/* logo mark */
.site-header__brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; }
.mark-pin, .mark-door { fill: var(--accent); }
.mark-house { fill: #fff; }
.site-footer__name { display: flex; align-items: center; gap: 10px; }
.site-footer .mark-pin, .site-footer .mark-door { fill: #fff; }
.site-footer .mark-house { fill: #14212a; }

/* brand lockup: mark plus a compact two-line name */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text__top { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-text__bottom { font-weight: 700; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.01em; }
.eyebrow { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-dark); margin: 0 0 10px; }

/* closing call to action on the home page */
.cta-panel { background: var(--accent-soft); border: 1px solid #b9d6e2; border-radius: 14px; padding: 40px 28px; text-align: center; box-shadow: 0 2px 6px rgba(27, 40, 48, 0.08); }
.cta-panel h2 { margin-top: 0; }
.cta-panel p { max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-panel__link { margin: 4px auto 0; font-size: 0.97rem; }
@media (max-width: 560px) { .cta-panel { padding: 30px 18px; } }

/* FAQ: one card per question */
.faq { display: grid; gap: 14px; margin: 8px 0 0; }
.faq__item { background: #fff; border: 1px solid #cfdbe4; border-radius: var(--radius); padding: 18px 22px 8px; box-shadow: 0 2px 6px rgba(27, 40, 48, 0.08); }
.faq__item h3 { font-size: 1.08rem; margin: 0 0 8px; color: var(--accent-dark); }
.faq__item p { margin: 0 0 12px; }
@media (max-width: 560px) { .faq__item { padding: 16px 16px 6px; } }

/* Locations dropdown */
.site-nav li { position: relative; }
.sub-toggle { font: inherit; font-size: 0.97rem; color: var(--ink); background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sub-toggle::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub-toggle:hover { color: var(--accent); }
.sub-menu { list-style: none; margin: 0; padding: 0; }
.has-js .sub-menu { display: none; position: absolute; left: -14px; top: 100%; min-width: 210px; z-index: 30; background: #fff; border: 1px solid #cfdbe4; border-radius: var(--radius); padding: 6px 0; box-shadow: 0 10px 24px rgba(20, 33, 42, 0.14); flex-direction: column; gap: 0; }
.has-js .has-sub.is-open .sub-menu { display: flex; }
@media (hover: hover) and (min-width: 861px) { .has-js .has-sub:hover .sub-menu { display: flex; } }
.has-js .sub-menu a { display: block; padding: 10px 16px; white-space: nowrap; }
.has-js .sub-menu a:hover { background: var(--surface); text-decoration: none; color: var(--accent); }
@media (max-width: 860px) {
  /* inside the hamburger menu the locations show as an indented list */
  .sub-toggle { display: block; width: 100%; text-align: left; padding: 14px 0 6px; font-size: 1.05rem; pointer-events: none; }
  .sub-toggle::after { display: none; }
  .has-js .sub-menu, .has-js .has-sub:hover .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; background: transparent; }
  .has-js .site-nav .sub-menu a { padding: 11px 0; font-size: 1rem; }
  .has-js .site-nav .has-sub > .sub-toggle { border-bottom: 0; }
  .has-js .site-nav .has-sub .sub-menu li:last-child a { border-bottom: 1px solid var(--line); }
}

/* home introduction under the hero */
.section--intro { padding-bottom: 8px; }
.section--intro h2 { margin-top: 0; }
.section--intro p { font-size: 1.12rem; margin-bottom: 0; max-width: 800px; }

/* category and location tiles: equal width and height, last row centered */
.link-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.link-tile { flex: 0 1 calc((100% - 28px) / 3); display: flex; }
.link-tile a { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 84px; }
@media (max-width: 820px) { .link-tile { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 520px) { .link-tile { flex-basis: 100%; } }
@media (min-width: 900px) { .link-grid--4 .link-tile { flex-basis: calc((100% - 42px) / 4); } }
