/* Southborough Town Center Plaza, rough build 2026-12-02.
   Four style directions from the 11/18 style options, switched with data-style on <html>.
   Default is D (logo navy and gold). Pick one before launch and delete the other three blocks. */

:root,
[data-style="d"] {
  --primary: #25277a; --on-primary: #ffffff; --accent-text: #25277a;
  --panel: #eff0f7; --band: #e2b13c; --band-h: 6px; --rule: #e2b13c;
  --ink: #1c1d3a; --line: #d9dbe8; --foot: #25277a; --foot-ink: #ffffff;
  --radius: 3px; --btn-radius: 3px; --card-radius: 4px;
  --head: "Spectral", Georgia, "Times New Roman", serif; --head-w: 700;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sky: #e8e9f2; --roof: #6b6c78; --wall: #e9dcae; --trim: #ffffff; --sign: #25277a; --base: #8b3e2f;
}
[data-style="a"] {
  --primary: #1e4634; --on-primary: #ffffff; --accent-text: #1e4634;
  --panel: #f3ead0; --band: #e6d49a; --band-h: 6px; --rule: #8b3e2f;
  --ink: #1f2622; --line: #dcdfd5; --foot: #1e4634; --foot-ink: #ffffff;
  --radius: 4px; --btn-radius: 4px; --card-radius: 4px;
  --head: "Libre Caslon Text", Georgia, "Times New Roman", serif; --head-w: 700;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sky: #e9eef0; --roof: #6d6f6c; --wall: #e6d49a; --trim: #ffffff; --sign: #1e4634; --base: #8b3e2f;
}
[data-style="b"] {
  --primary: #7a1f2b; --on-primary: #ffffff; --accent-text: #7a1f2b;
  --panel: #f7f1e1; --band: #c49a3a; --band-h: 6px; --rule: #c49a3a;
  --ink: #231f1f; --line: #e3dccf; --foot: #231f1f; --foot-ink: #ffffff;
  --radius: 6px; --btn-radius: 6px; --card-radius: 6px;
  --head: "Zilla Slab", Rockwell, Georgia, serif; --head-w: 700;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sky: #ece7dc; --roof: #6f6866; --wall: #efe3c3; --trim: #ffffff; --sign: #7a1f2b; --base: #8a5a3c;
}
[data-style="c"] {
  --primary: #3b464d; --on-primary: #ffffff; --accent-text: #9c3f2c;
  --panel: #eef1f2; --band: #9c3f2c; --band-h: 3px; --rule: #9c3f2c;
  --ink: #22282c; --line: #d8dde0; --foot: #eef1f2; --foot-ink: #22282c;
  --radius: 10px; --btn-radius: 999px; --card-radius: 10px;
  --head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; --head-w: 800;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sky: #e6eaec; --roof: #3b464d; --wall: #dfe3e5; --trim: #ffffff; --sign: #3b464d; --base: #9c3f2c;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: #ffffff; color: var(--ink); font: 17px/1.6 var(--body); font-variant-numeric: lining-nums; overflow-x: clip; }
img, svg, iframe { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.site-foot a:focus-visible { outline-color: var(--foot-ink); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #ffffff; color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2 { font-family: var(--head); font-weight: var(--head-w); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; margin: 0 0 16px; }
h3 { font: 700 18px/1.3 var(--body); margin: 0; color: var(--ink); }
p { margin: 0 0 16px; max-width: 68ch; }
.lede { font-size: 19px; max-width: 48ch; }

/* Short rule above section headings; D swaps it for the gable from the logo. */
.sec-head::before { content: ""; display: block; width: 48px; height: 3px; background: var(--rule); border-radius: 2px; margin-bottom: 14px; }
[data-style="d"] .sec-head::before, :root:not([data-style]) .sec-head::before { width: 0; height: 0; background: none; border-radius: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 11px solid var(--rule); }

/* Highlighted text = something still needed from the client. */
mark.todo { background: #fff1b8; color: #3d3000; padding: 1px 4px; border-radius: 3px; }

/* ---------- Buttons: one system, only the fill changes ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--btn-radius); border: 2px solid var(--primary); font: 600 16px/1.1 var(--body); text-decoration: none; text-align: center; cursor: pointer; }
.btn-fill { background: var(--primary); color: var(--on-primary); }
.btn-out { background: #ffffff; color: var(--primary); }
.btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
@media (max-width: 480px) { .btns.stack .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: #ffffff; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 12px; }
.logo { display: inline-block; padding: 4px 0; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: var(--head-w); font-size: 21px; line-height: 1.15; }
.logo small { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; text-transform: none; letter-spacing: 0; }
[data-style="d"] .logo, :root:not([data-style]) .logo { text-transform: uppercase; letter-spacing: .02em; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 -12px; padding: 0; list-style: none; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current="page"] { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.band { height: var(--band-h); background: var(--band); }

/* ---------- Sections ---------- */
.sec { padding: 56px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.panel { background: var(--panel); border-top: 0; }
.sec.panel + .sec { border-top: 0; }
.page-top { padding-block: 48px 8px; }
@media (max-width: 600px) { .sec { padding: 40px 0; } .page-top { padding-block: 32px 0; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-block: 56px; }
.hero-art svg { display: block; width: 100%; height: auto; border-radius: var(--card-radius); }
@media (max-width: 820px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 40px; } }

/* ---------- Tenants grouped by category (home) ---------- */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 32px; margin: 0 0 32px; }
.group h3 { color: var(--accent-text); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--line); }
.group ul { margin: 0; padding: 0; list-style: none; }
.group li { padding: 3px 0; }
.cat { display: block; font-size: 16px; }

/* ---------- Directory ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { display: grid; align-content: start; gap: 4px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 18px; }
.card .tel { font-weight: 600; font-size: 17px; }
.card .btns { margin-top: 12px; }
.card[hidden] { display: none; }
.count { font-weight: 600; margin: 0 0 12px; }

/* ---------- Visit, facts, contact blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.facts { display: grid; gap: 16px; margin: 0 0 24px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.facts.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px 32px; }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--panel); }
.ph { display: grid; place-items: center; min-height: 220px; padding: 24px; background: var(--panel); border: 2px dashed var(--line); border-radius: var(--card-radius); text-align: center; }
.ph-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.box { background: #ffffff; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 24px; }
.box p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--foot); color: var(--foot-ink); padding: 36px 0 28px; }
.site-foot a { color: var(--foot-ink); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.foot-name { font-family: var(--head); font-weight: var(--head-w); font-size: 20px; margin: 0 0 6px; }
.foot-row p { margin: 0 0 4px; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -10px; padding: 0; list-style: none; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }

/* ---------- Text pages ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-top: 32px; }

/* ---------- Preview-only style switcher (shown on *.pages.dev and localhost) ---------- */
.style-switch { position: fixed; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; gap: 6px; padding: 8px 10px; background: #ffffff; color: #111111; border: 1px solid #c9c9c9; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .16); font: 600 14px/1 system-ui, -apple-system, sans-serif; }
.style-switch.on { display: flex; }
.style-switch button { width: 40px; height: 40px; border: 1.5px solid #111111; border-radius: 8px; background: #ffffff; color: #111111; font: 700 15px/1 system-ui, -apple-system, sans-serif; cursor: pointer; }
.style-switch button[aria-pressed="true"] { background: #111111; color: #ffffff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Storefront illustration (stands in for the hero photo) ---------- */
.sv-sky { fill: var(--sky); }
.sv-roof { fill: var(--roof); }
.sv-wall { fill: var(--wall); }
.sv-trim, .sv-trim rect, .sv-trimline { fill: var(--trim); }
.sv-sign { fill: var(--sign); }
.sv-base { fill: var(--base); }
.sv-glass rect { fill: #b9c8d1; }
.sv-door { fill: #8fa3ae; }
.sv-walk { fill: #d8d8d2; }
.sv-lot { fill: #a3a8ad; }
.sv-leaf { fill: #7d9a74; }
.sv-trunk { fill: #6b5a48; }
