/* Cardinal Rule Home Team | site styles
   Layout modeled on a modern real-estate team site; all branding, copy and art are original or licensed.
   Light and dark themes are driven by the tokens below (html[data-theme]). */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --teal: #32b0c8;
  --teal-dark: #1f8197;
  --charcoal: #535353;

  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --surface: #ffffff;
  --text: #1b1d1f;
  --text-2: #3c3c3c;
  --muted: #6b6b6b;
  --line: #e1e1e1;
  --header-bg: #ffffff;
  --input-bg: #ffffff;
  --input-border: #cdcdcd;
  --soft: #fafafa;
  --link: #c8102e;
  --shadow: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.15);
  --footer: #2a2c2e;
  --footer-line: #44474a;

  --max: 1180px;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
  --head: "Inter", "Open Sans", Arial, Helvetica, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #121416;
  --bg-alt: #1a1d20;
  --surface: #1f2326;
  --text: #eceff1;
  --text-2: #c9ced2;
  --muted: #9aa3a9;
  --line: #2f3438;
  --header-bg: #16191b;
  --input-bg: #15181a;
  --input-border: #3d4348;
  --soft: #191c1f;
  --link: #ff6b7d;
  --shadow: 0 6px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.6);
  --footer: #0c0e0f;
  --footer-line: #2a2e31;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); font-size: 16px; line-height: 1.6; background: var(--bg); transition: background .2s, color .2s; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Review-only markers: delete before launch */
.review-bar { background: #fff4c2; color: #5a4a00; font-size: 14px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #f0dc7a; }
.ph { background: #fff4c2; outline: 1px dashed #d4b200; padding: 0 4px; border-radius: 2px; color: #5a4a00; }

/* Headings */
.h-sec { font-family: var(--head); font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; text-align: center; margin: 0 0 36px; line-height: 1.15; }
section { padding: 80px 0; }
.gray { background: var(--bg-alt); }

/* Buttons */
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; padding: 13px 28px; font: 700 14px/1.2 var(--font); text-transform: uppercase; letter-spacing: .6px; text-decoration: none; cursor: pointer; transition: background .15s; border-radius: 0; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.dark { background: #1f2224; }
.btn.dark:hover { background: #000; }
.btn.block { display: block; width: 100%; text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); box-shadow: 0 1px 0 var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 58px; width: auto; }
html[data-theme="dark"] .brand img { background: #fff; border-radius: 6px; padding: 3px 5px; }
.brand .name { font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--red); line-height: 1.1; }
html[data-theme="dark"] .brand .name { color: #ff4d63; }
.brand .name small { display: block; font-family: var(--font); font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .2px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--text); text-decoration: none; font-size: 15px; margin-right: 6px; }
.header-phone:hover { color: var(--red); }
.icon-btn { background: none; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--text); padding: 0; }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { background: none; border: 0; padding: 8px; cursor: pointer; display: grid; gap: 5px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown menu panel */
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-top: 3px solid var(--red); box-shadow: var(--shadow-lg); }
.menu-open .menu-panel { display: block; }
.menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 34px 24px 40px; }
.menu-grid h4 { margin: 0 0 12px; font: 800 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .6px; }
.menu-grid h4 a { color: var(--text); text-decoration: none; }
.menu-grid ul { list-style: none; margin: 0; padding: 0; }
.menu-grid li { margin-bottom: 8px; }
.menu-grid li a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.menu-grid a:hover, .menu-grid a[aria-current="page"] { color: var(--red); }

/* Home hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), var(--hero-img, url("img/hero.svg")) center/cover no-repeat; }
.hero .container { width: 100%; }
.hero h1 { font-family: var(--head); font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; text-align: center; margin: 0 0 34px; line-height: 1.1; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero-card { max-width: 860px; margin: 0 auto; background: var(--surface); color: var(--text); padding: 26px 30px 30px; box-shadow: 0 20px 50px rgba(0,0,0,.3); border-radius: 6px; }
.hero-tabs { display: flex; justify-content: center; gap: 46px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-tabs button { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 800 19px/1.2 var(--head); text-transform: uppercase; color: #a3a3a3; border-bottom: 3px solid transparent; }
.hero-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.hero-form { display: flex; border: 1px solid var(--input-border); padding: 4px; background: var(--input-bg); }
.hero-form input { flex: 1; border: 0; padding: 14px; font: 16px var(--font); min-width: 0; background: transparent; color: var(--text); }
.hero-form input:focus { outline: none; }
.hero-form .btn { padding: 0 26px; text-transform: none; font-size: 15px; }
.hero-note { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Inner-page hero (state, town and content pages) */
.page-hero { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 60px 0;
  background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)), var(--hero-img, url("img/hero.svg")) center/cover no-repeat; }
.page-hero.short { min-height: 300px; }
.page-hero h1 { font-family: var(--head); font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; margin: 0; line-height: 1.12; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.page-hero p { margin: 14px auto 0; max-width: 680px; font-size: 18px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }

/* Intro band */
.intro { background: var(--red); color: #fff; padding: 34px 0; text-align: center; }
.intro p { max-width: 1000px; margin: 0 auto; font-size: 16.5px; line-height: 1.7; }

/* Area (state) cards on the homepage */
.area-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 30px; }
.area-card { display: block; text-decoration: none; color: var(--text); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-card .art { height: 210px; background: #2b3035 url("img/hero.svg") center/cover; }
.area-card h3 { margin: 0; padding: 18px 16px; text-align: center; font: 700 18px/1.2 var(--font); text-transform: uppercase; }
.area-more { text-align: center; margin-top: 36px; }

/* Community tiles + search (state and all-communities pages) */
.community-search { max-width: 560px; margin: 0 auto 34px; display: flex; border: 1px solid var(--input-border); background: var(--input-bg); }
.community-search svg { width: 20px; height: 20px; margin: 14px 0 0 14px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.community-search input { flex: 1; border: 0; padding: 14px; font: 16px var(--font); background: transparent; color: var(--text); min-width: 0; }
.community-search input:focus { outline: none; }
.community-search:focus-within { outline: 2px solid var(--teal); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 440px)); justify-content: center; gap: 18px; max-width: 900px; margin: 0 auto; }
.tiles.three { grid-template-columns: repeat(auto-fill, minmax(260px, 370px)); max-width: var(--max); }
.tile { position: relative; display: grid; place-items: center; height: 230px; text-decoration: none; overflow: hidden; background: #2b3035; }
.tile .img { position: absolute; inset: 0; background: var(--img, url("img/hero.svg")) center/cover; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background .3s; }
.tile:hover .img { transform: scale(1.06); }
.tile:hover::after { background: rgba(0,0,0,.35); }
.tile span { position: relative; z-index: 1; background: rgba(28,30,32,.82); color: #fff; padding: 8px 16px; font: 700 20px/1.2 var(--font); }
.tile small { position: absolute; z-index: 1; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.no-results { display: none; text-align: center; color: var(--muted); margin: 10px 0 0; }
.state-heading { font: 800 22px/1.2 var(--head); text-transform: uppercase; letter-spacing: .6px; margin: 46px 0 18px; text-align: center; }
.state-heading:first-of-type { margin-top: 0; }

/* Town page */
.town-body { max-width: 900px; margin: 0 auto; }
.town-body h2 { font: 800 26px/1.2 var(--head); text-transform: uppercase; letter-spacing: .6px; text-align: center; margin: 0 0 24px; }
.town-body p { color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 10px; }
.fact { background: var(--bg-alt); padding: 18px; text-align: center; }
.fact strong { display: block; font: 800 13px/1.2 var(--head); text-transform: uppercase; letter-spacing: .6px; color: var(--red); margin-bottom: 6px; }
.fact span { font-size: 14.5px; color: var(--text-2); }
html[data-theme="dark"] .fact strong { color: #ff6b7d; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 50px 0; }
.back { text-align: center; margin-top: 40px; }

/* Content pages */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font: 800 24px/1.25 var(--head); text-transform: uppercase; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 800 18px/1.3 var(--head); margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 30px 0; }
.feature { background: var(--surface); box-shadow: var(--shadow); padding: 26px; border-top: 4px solid var(--red); }
.feature h3 { margin: 0 0 8px; font: 800 18px/1.3 var(--head); }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 16px var(--head); }
.steps strong { display: block; color: var(--text); }
.cta-band { background: var(--bg-alt); padding: 50px 0; text-align: center; }
.cta-band h2 { font: 800 26px/1.2 var(--head); text-transform: uppercase; margin: 0 0 10px; }
.cta-band p { color: var(--text-2); margin: 0 auto 22px; max-width: 620px; }

/* Media / about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-frame { position: relative; aspect-ratio: 16/10; background: #1d2023; display: grid; place-items: center; color: #fff; overflow: hidden; }
.media-frame .bg { position: absolute; inset: 0; background: var(--hero-img, url("img/hero.svg")) center/cover; opacity: .5; }
.media-frame .play { position: relative; width: 78px; height: 56px; border-radius: 14px; background: var(--red); display: grid; place-items: center; }
.media-frame .play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.media-frame .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 700; font-size: 15px; }
.split h2 { font-family: var(--head); font-size: clamp(26px, 3vw, 34px); font-weight: 800; text-transform: uppercase; line-height: 1.15; margin: 0 0 16px; }
.split p { color: var(--text-2); margin: 0 0 16px; }
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin: 6px 0 24px; }
.stat strong { display: block; font: 800 30px/1.1 var(--head); color: var(--red); }
.stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }

/* Three action cards over image */
.actions-band { position: relative; padding: 90px 0; background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), var(--band-img, url("img/hero.svg")) center 60%/cover; }
.action-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.action-card { background: color-mix(in srgb, var(--surface) 95%, transparent); text-align: center; display: flex; flex-direction: column; }
.action-card .icon { width: 84px; height: 84px; margin: -42px auto 0; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.action-card .icon svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-card h3 { font: 800 22px/1.25 var(--head); margin: 22px 22px 14px; }
.action-card p { margin: 0 26px 26px; color: var(--text-2); font-size: 15px; flex: 1; }


/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 34px; }
.member { text-align: center; }
.member .photo { aspect-ratio: 1/1.08; background: var(--bg-alt); overflow: hidden; display: grid; place-items: center; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .3s; }
.member:hover .photo img { filter: grayscale(0); }
.member .photo svg { width: 46%; fill: var(--input-border); }
.member h3 { margin: 16px 0 2px; font: 800 15px/1.3 var(--head); text-transform: uppercase; letter-spacing: .5px; }
.member p { margin: 0; font-size: 14px; color: var(--muted); }
.member .contact-links { margin-top: 8px; font-size: 14px; }
.divider { border: 0; border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }

/* Awards */
.awards { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.award { width: 170px; height: 170px; border-radius: 50%; border: 3px solid var(--teal); display: grid; place-items: center; text-align: center; padding: 18px; position: relative; }
.award::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--teal); border-radius: 50%; }
.award strong { display: block; font: 800 16px/1.2 var(--head); text-transform: uppercase; }
.award span { display: block; font-size: 12px; color: var(--red); font-weight: 700; margin-top: 6px; }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--surface); padding: 28px; box-shadow: var(--shadow); }
.review .stars { color: #f2b01e; letter-spacing: 3px; font-size: 18px; }
.review p { font-style: italic; color: var(--text-2); }
.review .who { font-weight: 800; font-size: 14px; text-transform: uppercase; }

/* Get in touch band */
.touch { position: relative; padding: 80px 0; text-align: center; color: #fff;
  background: linear-gradient(rgba(20,22,24,.72), rgba(20,22,24,.72)), var(--band-img, url("img/hero.svg")) center 40%/cover; }
.touch h2 { font: 800 clamp(26px, 3vw, 34px)/1.2 var(--head); text-transform: uppercase; margin: 0 0 10px; }
.touch p { margin: 0 auto 24px; max-width: 640px; font-size: 17px; }

/* Contact form */
.contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: 54px; align-items: start; }
.contact-info h2 { font: 800 clamp(26px, 3vw, 34px)/1.2 var(--head); text-transform: uppercase; margin: 0 0 12px; }
.contact-info p { color: var(--text-2); }
.contact-info ul { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-info li { margin-bottom: 14px; display: grid; grid-template-columns: 90px 1fr; }
.contact-info li strong { color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: .4px; padding-top: 2px; }
form.lead { background: var(--surface); border-top: 4px solid var(--red); padding: 30px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.field { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 16px; color: var(--text-2); }
label.field input, label.field select, label.field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; font: 16px var(--font); border: 1px solid var(--input-border); border-radius: 0; background: var(--input-bg); color: var(--text); text-transform: none; letter-spacing: 0; }
label.field input:focus, label.field select:focus, label.field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); margin-bottom: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 18px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; background: #e8f7fa; color: var(--teal-dark); font-weight: 700; font-size: 15px; }

/* Footer (dark in both themes) */
.site-footer { background: var(--footer); color: #cfcfcf; padding: 60px 0 0; font-size: 14.5px; }
.site-footer a { color: #e9e9e9; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font: 800 16px/1.2 var(--head); text-transform: uppercase; letter-spacing: .6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; margin-bottom: 14px; }
.footer-logo img { height: 56px; }
.footer-broker img { height: 44px; background: #fff; padding: 4px 8px; margin-top: 10px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #8a8a8a; display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; fill: #fff; }
.footer-legal { border-top: 1px solid var(--footer-line); margin-top: 44px; padding: 26px 0 34px; text-align: center; font-size: 13px; color: #a9a9a9; }
.footer-legal .links { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-legal .links a { color: #fff; }
.footer-legal p { margin: 6px auto; max-width: 900px; }
.photo-credits { font-size: 11.5px; color: #8d8d8d; }
.photo-credits a { color: #b5b5b5 !important; text-decoration: underline; }
.eho { display: inline-flex; align-items: center; gap: 8px; color: #e9e9e9; font-weight: 700; }
.eho svg { width: 26px; height: 26px; fill: #e9e9e9; }

/* Legal pages */
.legal { max-width: 860px; padding-top: 50px; padding-bottom: 76px; }
.legal h2 { font: 800 21px/1.3 var(--head); text-transform: uppercase; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal .callout { background: color-mix(in srgb, var(--red) 9%, var(--bg)); border-left: 4px solid var(--red); padding: 14px 18px; margin: 16px 0; }

/* ---------- Market stats (charts validated for both themes) ---------- */
:root { --chart: #00809f; --chart-wash: rgba(0,128,159,.10); --grid: #e9e9e9; }
html[data-theme="dark"] { --chart: #2a9fb8; --chart-wash: rgba(42,159,184,.14); --grid: #30363a; }
.area-wrap { display: flex; flex-direction: column; box-shadow: var(--shadow); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.area-wrap:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-wrap .area-card { box-shadow: none; flex: 1; }
.area-wrap .area-card:hover { transform: none; box-shadow: none; }
.mkt-strip { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--text-2); padding: 11px; cursor: pointer; font: 700 12.5px var(--font); text-transform: uppercase; letter-spacing: .5px; }
.mkt-strip:hover, .mkt-strip:focus-visible { color: var(--red); background: var(--soft); }
.mkt-strip svg, .mkt-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .mkt-ico { margin: -3px 6px -3px 0; vertical-align: middle; }

.mkt-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; opacity: 0; transition: opacity .2s; }
.mkt-back.open { opacity: 1; }
.mkt-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--bg); color: var(--text); z-index: 91; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.mkt-drawer.open { transform: none; }
.mkt-dh { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mkt-dh h2 { margin: 0; font: 800 20px/1.2 var(--head); text-transform: uppercase; }
.mkt-dh p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.mkt-x { margin-left: auto; background: none; border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: var(--text); display: grid; place-items: center; flex: none; }
.mkt-x:hover { border-color: var(--red); color: var(--red); }
.mkt-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mkt-db { flex: 1; overflow-y: auto; padding: 18px 20px 30px; background: var(--bg-alt); }

.mkt-card { background: var(--surface); box-shadow: var(--shadow); margin-bottom: 16px; }
.mkt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mkt-head .lbl { font: 800 13px/1.2 var(--head); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.mkt-head .val { font: 800 22px/1.2 var(--head); color: var(--text); }
.mkt-head .delta { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.mkt-head .delta small { color: var(--muted); }
.mkt-ctrls { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.mkt-ctrls select { font: 600 13.5px var(--font); color: var(--text); background: var(--input-bg); border: 1px solid var(--input-border); padding: 7px 10px; border-radius: 0; }
.mkt-ctrls select:focus { outline: 2px solid var(--teal); }
.mkt-range { display: flex; border: 1px solid var(--input-border); }
.mkt-range button { background: var(--input-bg); color: var(--text-2); border: 0; padding: 7px 10px; font: 700 12.5px var(--font); cursor: pointer; white-space: nowrap; }
.mkt-range button + button { border-left: 1px solid var(--input-border); }
.mkt-range button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.mkt-chart { position: relative; padding: 10px 4px 0; }
.mkt-chart svg { display: block; width: 100%; height: 230px; overflow: visible; }
.mkt-chart svg:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.mkt-chart text { font: 12px var(--font); fill: var(--muted); font-variant-numeric: tabular-nums; }
.mkt-chart text.end { fill: var(--text); font-weight: 700; font-variant-numeric: normal; }
.mkt-tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 7px 10px; font-size: 12.5px; white-space: nowrap; display: none; z-index: 2; }
.mkt-tip b { display: block; font-size: 15px; }
.mkt-tip span { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mkt-tip i { display: inline-block; width: 12px; height: 2px; background: var(--chart); }
.mkt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 16px 12px; font-size: 12px; color: var(--muted); }
.mkt-foot button { background: none; border: 0; color: var(--link); font: 600 12px var(--font); cursor: pointer; padding: 0; text-decoration: underline; }
.mkt-table { width: calc(100% - 32px); margin: 0 16px 14px; border-collapse: collapse; font-size: 13px; }
.mkt-table th, .mkt-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mkt-table td:last-child, .mkt-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mkt-note { margin: 0; padding: 10px 16px; font-size: 13px; color: var(--text-2); background: var(--soft); border-bottom: 1px solid var(--line); }
.mkt-counts { list-style: none; margin: 0; padding: 4px 16px 8px; }
.mkt-counts-title { padding: 14px 16px 4px; font: 800 13px/1.2 var(--head); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.mkt-counts li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.mkt-counts li:last-child { border-bottom: 0; }
.mkt-pill { background: var(--text); color: var(--bg); border-radius: 99px; padding: 2px 10px; font-weight: 700; font-size: 13px; }
.mkt-towns { list-style: none; margin: 0; padding: 0 16px 6px; }
.mkt-towns li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.mkt-towns li:last-child a { border-bottom: 0; }
.mkt-towns li a:hover b { color: var(--red); }
.mkt-towns small { display: block; color: var(--muted); font-size: 12px; }
.mkt-towns .p { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.market-sec { margin: 40px 0 0; }
.market-sec > h2 { margin-bottom: 6px !important; }
.market-sec > .sub { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.market-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.market-grid .mkt-card { margin: 0; }
@media (max-width: 760px) { .market-grid { grid-template-columns: 1fr; } .mkt-ctrls { margin-left: 0; width: 100%; } .mkt-ctrls select { flex: 1; } }

/* Responsive */
@media (max-width: 960px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .action-cards { grid-template-columns: 1fr; gap: 64px; max-width: 480px; margin: 0 auto; }
  .reviews, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 280px)); }
  .tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .site-header .bar { height: 72px; }
  .brand img { height: 46px; }
  .brand .name { font-size: 16px; }
  .brand .name small { display: none; }
  .header-phone { display: none; }
  .header-right { gap: 8px; }
  .icon-btn { width: 36px; height: 36px; }
  .menu-grid { grid-template-columns: 1fr; gap: 18px; padding: 24px 16px 30px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .hero { min-height: 560px; padding: 50px 0; }
  .page-hero { min-height: 300px; }
  .hero-card { padding: 20px 16px; }
  .hero-tabs { gap: 14px; flex-wrap: nowrap; }
  .hero-tabs button { font-size: 13px; white-space: nowrap; }
  .hero-form { flex-direction: column; border: 0; padding: 0; gap: 10px; background: none; }
  .hero-form input { border: 1px solid var(--input-border); background: var(--input-bg); }
  .hero-form .btn { padding: 14px; }
  .area-cards, .tiles, .tiles.three, .facts { grid-template-columns: 1fr; }
  .tile { height: 190px; }
  .team-grid { grid-template-columns: minmax(0, 300px); }
  .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  form.lead { padding: 22px 16px; }
  .award { width: 140px; height: 140px; }
}
@media (max-width: 380px) {
  .brand .name { font-size: 14px; }
  .brand img { height: 40px; }
}

/* Policy bar (inside the sticky header, under the logo row) */
.policy-bar { background: var(--bg-alt); border-top: 1px solid var(--line); }
.pb-inner { display: flex; align-items: center; gap: 0 10px; min-height: 42px; overflow-x: auto; scrollbar-width: none; }
.pb-inner::-webkit-scrollbar { display: none; }
.pb-label { font: 800 11px/1 var(--head); text-transform: uppercase; letter-spacing: .9px; color: var(--muted); margin-right: 8px; white-space: nowrap; }
.policy-bar button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 2px 9px; font: 700 14px var(--font); color: var(--text); cursor: pointer; white-space: nowrap; }
.policy-bar button:hover, .policy-bar button.active { color: var(--link); border-bottom-color: var(--link); }
.policy-bar button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pb-sep { color: var(--muted); }

/* Policy drawer */
html.pd-open, html.pd-open body { overflow: hidden; }
.policy-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: var(--pd-top, 0px); z-index: 60; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; }
.policy-backdrop.in { opacity: 1; }
.policy-drawer { position: fixed; z-index: 61; top: calc(var(--pd-top, 0px) + 10px); bottom: 16px; left: 16px; right: 16px; max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 3px solid var(--red); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-16px); transition: opacity .2s, transform .2s; }
.policy-drawer.in { opacity: 1; transform: none; }
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.pd-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 12px 11px; font: 700 14px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.pd-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.pd-tabs button:hover { color: var(--link); }
.pd-tabs button:focus-visible, .pd-close:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.pd-close { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.pd-close:hover { border-color: var(--red); color: var(--red); }
.pd-body { flex: 1; overflow-y: auto; padding: 30px 40px 36px; overscroll-behavior: contain; }
.pd-body:focus { outline: none; }
.pd-title { font: 800 28px/1.2 var(--head); margin: 0 auto 6px; max-width: 860px; }
.pd-content.legal { padding: 0; max-width: 860px; margin: 0 auto; }
.pd-content.legal h2:first-child { margin-top: 18px; }
.pd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; }
.pd-foot a { color: var(--link); font-weight: 700; }

@media (max-width: 640px) {
  .policy-drawer { left: 0; right: 0; bottom: 0; top: var(--pd-top, 0px); border-width: 3px 0 0; }
  .pd-body { padding: 22px 20px 28px; }
  .pd-title { font-size: 23px; }
  .pb-inner { min-height: 38px; }
  .policy-bar button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .policy-drawer, .policy-backdrop { transition: none; }
}
.policy-drawer[hidden], .policy-backdrop[hidden] { display: none; }

.pd-loading { color: var(--muted); }

.contact-info a[href^="mailto:"] { overflow-wrap: anywhere; }
