:root {
  color-scheme: light;
  --ink: #10201c;
  --ink-2: #18362f;
  --green: #1f574c;
  --green-2: #2f7566;
  --paper: #f7f8f4;
  --paper-2: #edf1ea;
  --white: #ffffff;
  --muted: #60706b;
  --line: rgba(16, 32, 28, 0.16);
  --line-strong: rgba(16, 32, 28, 0.28);
  --accent: #b8813b;
  --accent-2: #d7a764;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  color: var(--white);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  text-decoration: none;
  font-weight: 780;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #f5d39b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav {
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 15px;
  font-weight: 730;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(16, 32, 28, 0.9);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.menu-icon i {
  display: block;
  width: 100%;
  height: 2px;
  background: #f5d39b;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  align-items: end;
  background: var(--ink);
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.03) brightness(0.82);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 36, 31, 0.98) 0%, rgba(16, 45, 39, 0.92) 38%, rgba(16, 45, 39, 0.2) 74%),
    linear-gradient(0deg, rgba(13, 30, 27, 0.92) 0%, rgba(13, 30, 27, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 168px 0 146px;
}

.eyebrow,
.section-label,
.card-number {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.light-heading .section-label {
  color: #f5d39b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 880px;
  margin-bottom: 25px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 820;
}

.button.primary {
  background: var(--accent);
  color: #19120a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.46);
}

.hero-index {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
}

.hero-index span {
  padding: 18px 18px 0 0;
  font-size: 14px;
}

.hero-index strong {
  display: block;
  color: #f5d39b;
  font-size: 12px;
  letter-spacing: 0.13em;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.prose {
  color: var(--muted);
}

.lead-prose {
  font-size: 20px;
}

.fit-grid,
.question-grid,
.diligence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fit-grid article,
.question-grid article,
.diligence-grid article {
  min-height: 190px;
  padding: 26px;
  background: var(--white);
}

.fit-grid span,
.question-grid span,
.diligence-grid span,
.feature-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fit-grid strong {
  display: block;
  font-size: 21px;
  line-height: 1.22;
}

.question-grid {
  margin-top: 0;
}

.question-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.full-section {
  background: var(--green);
  color: var(--white);
}

.section.inner {
  width: min(var(--max), calc(100% - 40px));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p:not(.section-label) {
  color: var(--muted);
  font-size: 19px;
}

.light-heading p:not(.section-label) {
  color: rgba(255, 255, 255, 0.78);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 32px;
  align-items: end;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.feature-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
}

.feature-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.38fr);
  gap: 12px;
  margin-bottom: 18px;
}

.search-wrap,
.select-wrap {
  display: grid;
  gap: 8px;
}

.search-wrap span,
.select-wrap span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 0;
}

input:focus,
select:focus {
  outline: 3px solid rgba(184, 129, 59, 0.24);
  border-color: var(--accent);
}

.directory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.directory-meta p {
  margin: 0;
}

.directory-meta a {
  color: var(--green);
  font-weight: 800;
}

.franchise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.franchise-card {
  display: grid;
  min-height: 206px;
  padding: 20px;
  background: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.franchise-card:hover,
.franchise-card:focus-visible {
  position: relative;
  z-index: 2;
  transform: translateY(-3px);
  background: #fbfcf9;
  box-shadow: 0 16px 36px rgba(16, 32, 28, 0.12);
  outline: none;
}

.franchise-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.franchise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-footer {
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 830;
}

.diligence-grid article {
  min-height: 210px;
}

.diligence-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) 1fr;
  gap: 28px;
  padding: 44px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #10201c;
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 850;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1714;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.footer-credit p {
  margin: 0;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 780;
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  text-decoration: underline;
}

.footer-contact {
  padding: 0 clamp(20px, 4vw, 56px) 20px;
  background: #0b1714;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 780;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  text-decoration: underline;
}

.footer-resources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 0 clamp(20px, 4vw, 56px) 24px;
  background: #0b1714;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-resources p {
  margin: 0;
}

.footer-resources nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-resources a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 780;
  text-decoration: none;
}

.footer-resources a:hover,
.footer-resources a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 78px;
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(16, 32, 28, 0.97);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .split,
  .feature-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .fit-grid,
  .question-grid,
  .diligence-grid,
  .franchise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand-name {
    max-width: 150px;
    line-height: 1.1;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    padding: 134px 0 96px;
  }

  .hero-copy,
  .lead-prose {
    font-size: 17px;
  }

  .hero-actions,
  .feature-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-index,
  .fit-grid,
  .question-grid,
  .diligence-grid,
  .franchise-grid {
    grid-template-columns: 1fr;
  }

  .hero-index span {
    padding-right: 0;
  }

  .directory-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
