/* ==========================================================================
   FranchiseFuel franchise pages
   Based on the consultant's franchise package (styles.css) with the
   franchisefuel.org header, footer, fonts and colours.
   ========================================================================== */
:root {
  --brand: #750037;
  --brand-dark: #59002a;
  --brand-fg: #fcfaf6;
  --ink: #3a3128;
  --stone: #747167;
  --stone-fg: #f4f0e8;
  --cocoa: #7e6e5f;
  --gold: #c6bfad;
  --sand: #ebe7db;
  --sand-soft: #f3efe9;
  --paper: #fbf9f3;
  --white: #ffffff;
  --line: #e1ded4;
  --input: #dcd8cd;
  --success: #426b58;
  --error: #a3261d;
  --shadow: 0 18px 48px rgba(58, 49, 40, .12);
  --radius: 6px;
  --max: 1280px;
  --font-body: "Plus Jakarta Sans", "Noto Sans", "Segoe UI", Arial, sans-serif;
  --font-display: "Saira", "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: 0 0 auto; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.eyebrow { margin: 0; color: var(--brand); font-family: var(--font-body); font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--radius); background: var(--brand); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Header (franchisefuel.org) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(225,222,212,.7); background: rgba(251,249,243,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.topline { background: var(--stone); color: var(--stone-fg); font-size: .75rem; }
.topline-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 6px; }
.topline p { margin: 0; color: rgba(244,240,232,.8); }
.topline-contact { display: flex; align-items: center; gap: 20px; }
.topline-contact a { display: inline-flex; align-items: center; gap: 6px; color: rgba(244,240,232,.85); transition: opacity .15s; }
.topline-contact a:hover { opacity: .8; }
.topline-contact svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.logo { flex: 0 0 auto; }
.logo img { width: auto; height: 56px; }
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.nav-item { position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding-block: 8px; color: rgba(58,49,40,.75); font-size: .875rem; font-weight: 500; white-space: nowrap; transition: color .15s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; border-radius: 99px; background: var(--brand); opacity: 0; transition: opacity .15s; }
.nav-link:hover { color: var(--brand); }
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active::after { opacity: 1; }
.chevron { width: 14px; height: 14px; opacity: .6; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-badge { margin-left: 4px; padding: 2px 6px; border-radius: 99px; background: var(--brand); color: var(--brand-fg); font-size: .6rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.dropdown { position: absolute; left: 50%; top: 100%; z-index: 50; width: 256px; padding-top: 4px; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown ul { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.dropdown a { display: block; width: 100%; padding: 8px 12px; border-radius: 4px; color: rgba(58,49,40,.75); font-size: .875rem; transition: background .15s, color .15s; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--sand); color: var(--brand); }
.header-cta { height: 44px; padding-inline: 28px; font-size: .9375rem; font-weight: 500; }
.mobile-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); }
.mobile-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-nav { display: none; max-height: calc(100vh - 80px); overflow-y: auto; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav .container { padding-block: 8px 20px; }
.mobile-nav > .container > a:not(.primary-button), .mobile-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--brand); font-size: 1.2rem; font-weight: 500; }
.mobile-nav details[open] summary::after { content: "\2212"; }
.mobile-nav summary .nav-badge { margin-right: auto; margin-left: 8px; }
.mobile-subnav { padding: 4px 0 8px 16px; border-bottom: 1px solid var(--line); }
.mobile-subnav a { display: block; padding: 8px 0; color: var(--stone); font-size: .9rem; }
.mobile-subnav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.mobile-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 16px 0; color: var(--stone); font-size: .875rem; }
.mobile-nav .primary-button { width: 100%; }

/* ---------- Buttons & forms ---------- */
.primary-button, .secondary-button, .text-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); padding: 0 18px; font-weight: 700; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.primary-button { border: 1px solid var(--brand); background: var(--brand); color: var(--brand-fg); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.primary-button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.secondary-button { border: 1px solid var(--brand); background: transparent; color: var(--brand); }
.secondary-button:hover { background: var(--sand-soft); }
.text-button { min-height: 36px; border: 0; background: transparent; color: var(--brand); padding-inline: 4px; }
.text-button:hover { text-decoration: underline; }
input, select, textarea { width: 100%; height: 44px; border: 1px solid var(--input); border-radius: 4px; background: var(--white); color: var(--ink); padding: 0 13px; outline: none; }
textarea { height: auto; min-height: 110px; padding-block: 10px; resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(117,0,55,.22); outline-offset: 2px; }
.field label, .field-label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .76rem; font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { display: none; margin-top: 4px; color: var(--error); font-size: .74rem; }
.field.has-error .field-error { display: block; }

/* ---------- Page intro ---------- */
.page-intro { border-bottom: 1px solid var(--line); background: var(--sand-soft); }
.intro-grid { min-height: 300px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); align-items: center; gap: 70px; padding-block: 56px; }
h1, h2, h3 { margin: 0; color: var(--brand); font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
h1 { max-width: 760px; margin-top: 10px; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.lede { max-width: 700px; margin: 20px 0 0; color: var(--stone); font-size: 1.03rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.intro-stat { border-left: 3px solid var(--brand); padding-left: 24px; }
.intro-stat strong { display: block; color: var(--brand); font-family: var(--font-display); font-size: 3.6rem; line-height: 1; }
.intro-stat span { display: block; max-width: 280px; margin-top: 10px; color: var(--stone); font-size: .9rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; color: var(--stone); font-size: .8rem; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--gold); }

/* ---------- Layout with sidebar ---------- */
.content-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 54px; padding-block: 54px 72px; }
.content-single { padding-block: 54px 72px; }
.side-toggle { display: none; }
.sidebar { align-self: start; position: sticky; top: 130px; }
.sidebar-title { padding-bottom: 14px; border-bottom: 2px solid var(--brand); color: var(--brand); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.side-links { margin-top: 12px; }
.sidebar-note { margin: 12px 0; color: var(--stone); font-size: .84rem; }
.side-links a, .side-links button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--stone); text-align: left; font-size: .84rem; }
.side-links a:hover, .side-links button:hover, .side-links [aria-current="page"] { color: var(--brand); font-weight: 700; }
.side-links small { color: var(--cocoa); font-size: .75rem; }
.side-card { margin-top: 24px; padding: 18px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--sand-soft); }
.side-card h3 { font-size: 1.1rem; }
.side-card p { margin: 8px 0 14px; color: var(--stone); font-size: .8rem; }

/* ---------- Directory ---------- */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-top: 7px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-heading p { max-width: 420px; margin: 0; color: var(--stone); font-size: .88rem; }
.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.search-bar.with-select { grid-template-columns: minmax(0, 1fr) 220px auto; }
.search-bar.single { grid-template-columns: minmax(0, 1fr); }
.input-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--stone); pointer-events: none; fill: none; stroke: currentColor; stroke-width: 2; }
.input-wrap input { padding-left: 40px; }
.result-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 44px; margin-top: 13px; color: var(--stone); font-size: .83rem; }
.result-line strong { color: var(--brand); }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.brand-card { min-height: 230px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .18s, transform .18s, box-shadow .18s; }
.brand-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(58,49,40,.08); }
.brand-card h3 { margin-top: 16px; font-size: 1.22rem; }
.brand-card p { margin: 6px 0 18px; color: var(--stone); font-size: .8rem; }
.brand-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--cocoa); font-size: .76rem; font-weight: 700; }
.brand-card[hidden], .list-item[hidden] { display: none; }
.brand-logo { height: 56px; display: flex; align-items: center; }
.brand-logo img { max-width: 150px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.brand-logo .brand-mark { display: none; }
.brand-logo.no-logo .brand-mark { display: grid; }
.brand-mark { width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--sand-soft); color: var(--brand); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.empty-state { display: none; padding: 42px 22px; border: 1px dashed var(--gold); border-radius: var(--radius); text-align: center; color: var(--stone); }
.empty-state.is-visible { display: block; }
.empty-state a { color: var(--brand); font-weight: 700; text-decoration: underline; }

.az-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 24px; }
.letter-button { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--stone); font-size: .78rem; font-weight: 800; }
.letter-button:hover, .letter-button.is-active { border-color: var(--brand); background: var(--brand); color: var(--white); }
.letter-button:disabled { opacity: .35; cursor: default; background: var(--white); color: var(--stone); border-color: var(--line); }
.list-results { margin-top: 20px; border-top: 1px solid var(--line); }
.list-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) 170px 120px; align-items: center; gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.list-item .brand-logo { height: 44px; justify-content: center; }
.list-item .brand-logo img { max-width: 100px; max-height: 44px; }
.list-item .brand-mark { width: 42px; height: 42px; font-size: .95rem; }
.list-name { color: var(--brand); font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.list-name:hover { text-decoration: underline; }
.list-industry, .list-investment { color: var(--stone); font-size: .8rem; }
.list-item .secondary-button { min-height: 36px; padding-inline: 11px; font-size: .73rem; }

.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.industry-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--brand); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.2; transition: border-color .18s, transform .18s; }
.industry-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.industry-tile small { flex: 0 0 auto; padding: 3px 9px; border-radius: 99px; background: var(--sand-soft); color: var(--cocoa); font-family: var(--font-body); font-size: .74rem; font-weight: 700; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--stone); font-size: .82rem; font-weight: 700; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager [aria-current="page"] { border-color: var(--brand); background: var(--brand); color: var(--white); }
.pager .gap { border: 0; background: transparent; min-width: 0; padding: 0 2px; }

.criteria-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip { padding: 4px 10px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: .74rem; font-weight: 600; }

/* ---------- Power search form ---------- */
.form-panel { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.form-panel + .form-panel { margin-top: 16px; }
fieldset.form-panel { min-width: 0; margin-inline: 0; }
.form-panel h3 { font-size: 1.35rem; }
.form-panel .panel-note { margin: 6px 0 18px; color: var(--stone); font-size: .84rem; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 20px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--ink); font-size: .86rem; line-height: 1.35; cursor: pointer; }
.check small { color: var(--cocoa); }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.select-actions { display: flex; gap: 14px; margin-bottom: 8px; }
.select-actions button { padding: 0; border: 0; background: none; color: var(--brand); font-size: .78rem; font-weight: 700; }

/* ---------- Brand detail ---------- */
.brand-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 48px; padding-block: 48px; }
.brand-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.brand-hero .lede { margin-top: 14px; }
.hero-logo { min-height: 170px; display: grid; place-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.hero-logo .brand-logo { height: 120px; }
.hero-logo .brand-logo img { max-width: 240px; max-height: 120px; }
.hero-logo .brand-mark { width: 96px; height: 96px; font-size: 2rem; }
.detail-shell { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 54px; padding-block: 48px 72px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fact { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(3n) { border-right: 0; }
.fact:nth-last-child(-n+3) { border-bottom: 0; }
.fact dt { color: var(--stone); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fact dd { margin: 6px 0 0; color: var(--brand); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--sand-soft); color: var(--ink); font-size: .8rem; font-weight: 600; }
.feature-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.brand-copy { margin-top: 36px; }
.brand-copy h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 1.8rem; }
.rich-text { margin-top: 18px; color: var(--ink); font-size: .96rem; }
.rich-text p { margin: 0 0 1em; }
.rich-text a { color: var(--brand); text-decoration: underline; }
.rich-text ul, .rich-text ol { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: .35em; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 1.2em 0 .5em; font-size: 1.3rem; }
.rich-text img { height: auto; }
.request-card { align-self: start; position: sticky; top: 130px; padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); scroll-margin-top: 130px; }
.request-card h2 { font-size: 1.7rem; }
.request-card .panel-note { margin: 6px 0 18px; color: var(--stone); font-size: .84rem; }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-form > *, .criteria-grid > *, .form-row > * { min-width: 0; }
.request-form .field-wide { grid-column: 1 / -1; }
.field label.consent { display: flex; margin: 0; font-weight: 400; gap: 10px; color: var(--stone); font-size: .74rem; line-height: 1.45; }
.field label.consent a { color: var(--brand); text-decoration: underline; }
.form-alert { display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 4px; background: #f8e9e7; color: var(--error); font-size: .8rem; font-weight: 600; }
.form-alert.is-visible { display: block; }
.request-card .primary-button { width: 100%; min-height: 48px; }
.recaptcha-note { margin: 10px 0 0; color: var(--stone); font-size: .68rem; text-align: center; }
.recaptcha-note a { text-decoration: underline; }
.honeypot { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; padding: 0; }

/* ---------- Confirmation ---------- */
.message-panel { max-width: 760px; margin-inline: auto; padding: 44px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); background: var(--white); text-align: center; }
.message-panel.is-error { border-top-color: var(--error); }
.message-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--sand-soft); color: var(--brand); }
.message-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.message-panel h1 { margin: 0 auto; font-size: clamp(2rem, 4vw, 3rem); }
.message-panel .lede { margin: 14px auto 0; }
.message-panel .intro-actions { justify-content: center; }

/* ---------- CTA band & footer (franchisefuel.org) ---------- */
.cta-band { border-top: 1px solid var(--line); background: var(--sand-soft); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 40px; }
.cta-row h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.cta-row p { margin: 7px 0 0; color: var(--stone); font-size: .9rem; }
.site-footer { background: var(--stone); color: var(--stone-fg); }
.site-footer .container { padding-block: 56px 40px; }
.footer-main { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.footer-brand img { width: auto; height: 56px; }
.footer-brand p { max-width: 384px; margin: 20px 0 0; color: rgba(244,240,232,.7); font-size: .875rem; line-height: 1.625; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer .eyebrow { color: var(--gold); }
.footer-col ul { margin-top: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: rgba(244,240,232,.75); font-size: .875rem; transition: color .15s; }
.footer-col a:hover, .footer-franserve a:hover, .footer-bottom a:hover { color: var(--stone-fg); }
.footer-memberships { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(244,240,232,.15); }
.footer-memberships ul { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.footer-memberships li { width: 144px; height: 64px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: var(--radius); background: rgba(255,255,255,.95); }
.footer-memberships img { max-width: 100%; max-height: 100%; object-fit: contain; }
.footer-franserve { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(244,240,232,.15); font-size: .78rem; }
.footer-franserve a { color: rgba(244,240,232,.75); }
.footer-franserve a:last-child { font-style: italic; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; padding-top: 24px; border-top: 1px solid rgba(244,240,232,.15); color: rgba(244,240,232,.55); font-size: .75rem; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- Search dialog ---------- */
.dialog-backdrop { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 22px; background: rgba(58,49,40,.72); }
.dialog-backdrop.is-open { display: grid; }
.search-dialog { width: min(720px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.dialog-head { display: flex; justify-content: space-between; gap: 24px; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin-top: 5px; font-size: 2rem; }
.icon-button { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--brand); font-size: 1.5rem; line-height: 1; }
.dialog-body { padding: 25px 28px 28px; }
.dialog-copy { margin: 0 0 20px; color: var(--stone); font-size: .9rem; }
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .desktop-nav { gap: 18px; }
  .header-cta { padding-inline: 18px; }
}
@media (max-width: 1100px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: block; }
  .detail-shell { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}
@media (max-width: 980px) {
  .intro-grid, .brand-hero { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
  .hero-logo { max-width: 360px; min-height: 140px; }
  .intro-stat { max-width: 420px; }
  .content-shell { grid-template-columns: 220px minmax(0,1fr); gap: 32px; }
  .brand-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .list-item { grid-template-columns: 90px minmax(0, 1fr) 150px; }
  .list-item .secondary-button { display: none; }
  .detail-shell { grid-template-columns: 1fr; }
  .request-card { position: static; }
  .footer-main { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .topline { display: none; }
  .mobile-nav { max-height: calc(100vh - 70px); }
}
@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  .header-row { padding-block: 10px; }
  .logo img { height: 48px; }
  .intro-grid { padding-block: 40px; }
  h1 { font-size: 2.5rem; }
  .content-shell { display: block; padding-block: 28px 52px; }
  .content-single, .detail-shell { padding-block: 28px 52px; }
  .side-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--brand); font-weight: 800; }
  .sidebar { display: none; position: static; margin: -10px 0 28px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
  .sidebar.is-open { display: block; }
  .side-card { display: none; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .search-bar, .search-bar.with-select { grid-template-columns: 1fr; }
  .brand-grid, .industry-grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 0; }
  .list-item { grid-template-columns: 64px minmax(0,1fr); gap: 4px 12px; }
  .list-item .brand-logo { grid-row: span 3; height: 40px; }
  .list-item .brand-logo img { max-width: 60px; max-height: 40px; }
  .list-industry, .list-investment { grid-column: 2; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3n) { border-right: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
  .form-panel, .request-card, .message-panel { padding: 20px; }
  .check-grid, .form-row, .request-form, .criteria-grid { grid-template-columns: 1fr; }
  .field-wide, .request-form .field-wide { grid-column: auto; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .dialog-actions { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
