@font-face {
  font-family: 'Hobo';
  src: url('assets/fonts/Hobo_BT.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #004631;
  --cream: #f7f4eb;
  --butter: #fff0b9;
  --pink: #f8dbe5;
  --blue: #b7ceec;
  --mint: #c9ebca;
  --coral: #facdca;
  --green-light: #0a6e4a; /* link/accent green — distinguishable from body text, AA-contrast on white */

  /* Shared font stack: single source of truth, referenced everywhere */
  --font-display: 'Hobo', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", system-ui, -apple-system, sans-serif;
  --font-body: 'Hobo', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body, button, input, select, textarea, a, p, h1, h2, h3, h4, h5, h6, div, li, td, th, b, strong, em, nav, article, aside, section, label, form, header, footer {
  font-family: var(--font-body) !important;
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0, "calt" 0, "swsh" 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
}

/* Emoji Icons Rule - Ensure System Emoji Font is Used for Icons */
.businesses span, .category span, .step span:not(.num), .step .art {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  margin-bottom: 15px;
  font-size: 55px;
  line-height: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-size: 18px;
  line-height: 1.6;
}

button, input {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

.shell {
  width: min(100% - 120px, 1410px);
  margin: auto;
}

/* --- Universal Navigation Header --- */
.nav {
  height: 110px;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.logo {
  display: block;
  width: 120px;
  height: auto;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 65px;
  font-size: 20px;
}

.navlinks a {
  text-decoration: none;
  color: white;
  transition: color 0.18s;
}

.navlinks a:hover {
  color: var(--butter);
}

/* --- Button Styling (Enforce Dark Green Text) --- */
a.btn, .btn, .navlinks a.btn, .footer a.btn, .navlinks .btn, .footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background-color: var(--butter) !important;
  color: #004631 !important;
  font-size: 22px;
  font-weight: 700 !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: .18s transform, .18s background;
}

a.btn:hover, .btn:hover, .navlinks a.btn:hover, .footer a.btn:hover {
  transform: translateY(-2px);
  background-color: #fff6cf !important;
  color: #004631 !important;
}

.arrow, .arr, a.btn .arrow, a.btn .arr {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1.5px solid #004631 !important;
  border-radius: 50%;
  color: #004631 !important;
  font-size: 20px;
}

.menu {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

/* --- Centered Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 550px;
  background: var(--green);
  color: white;
  padding: 65px 0 130px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  width: 100%;
  max-width: 820px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--butter);
  font-size: clamp(65px, 7.5vw, 105px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--pink);
}

.hero p {
  margin: 36px auto;
  font-size: 26px;
  line-height: 1.2;
  max-width: 620px;
}

.actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Business categories grid (sits directly on the white .biz-categories band) --- */
.businesses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 30px;
  text-align: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.businesses div {
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
}

.folder {
  width: 100%;
  max-width: 340px;
}

/* --- Business Page Hero (scoped; deliberately separate from index .hero) --- */
.biz-hero {
  position: relative;
  background: var(--green);
  color: white;
  padding: 72px 0 60px;
  text-align: center;
}

.biz-hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

.biz-hero .eyebrow {
  margin-bottom: 14px;
  color: var(--pink);
  font-size: 22px;
  letter-spacing: .5px;
}

.biz-hero h1 {
  margin: 0 0 26px;
  color: var(--butter);
  font-size: clamp(46px, 5.6vw, 80px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -1px;
}

.biz-hero p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: white;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

.biz-hero .btn {
  font-size: 20px;
}

/* Full-width white band holding the business categories, stretched below the hero */
.biz-categories {
  background: #fff;
  padding: 72px 0;
}

/* --- Universal Footer --- */
.footer {
  padding: 70px 0;
  background: var(--green);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1.4fr;
  gap: 70px;
}

.footer .logo {
  width: 160px;
}

.footer h3 {
  margin: 0 0 22px;
  color: var(--butter);
  font-size: 28px;
  font-weight: 400;
}

.footer p, .footer a {
  display: block;
  margin: 7px 0;
  font-size: 21px;
  line-height: 1.05;
  color: white;
  text-decoration: none;
}

.footer a:hover {
  color: var(--butter);
}

.footer .btn {
  margin-top: 20px;
  font-size: 19px;
}

.social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  letter-spacing: normal;
  font-size: 0;
}

.footer .social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 50%;
  background: #ffffff1f;
  color: white;
  transition: .18s transform, .18s background, .18s color;
}

.footer .social a:hover {
  transform: translateY(-2px);
  background: var(--butter);
  color: var(--green);
}

.social svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

/* --- Middle Legal Layout (Terms & Privacy) --- */
.middle-legal-container {
  background: var(--cream);
  padding: 0 0 90px;
}

.legal-banner {
  background: var(--green);
  color: white;
  padding: 55px 0 65px;
  border-bottom: 5px solid var(--pink);
}

.legal-banner h1 {
  font-size: 56px;
  font-weight: 400;
  color: var(--butter);
  margin: 0 0 16px;
  line-height: 1.05;
}

.legal-banner p {
  font-size: 22px;
  margin: 0;
  color: white;
}

.legal-layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 55px;
  align-items: start;
  padding-top: 60px;
}

.toc {
  position: sticky;
  top: 32px;
  background: white;
  border: 4px solid var(--green);
  border-radius: 28px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(0, 70, 49, 0.08);
}

.toc-title {
  font-size: 26px;
  color: var(--green);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--butter);
}

.toc a {
  display: block;
  font-size: 17px;
  color: var(--green);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 70, 49, 0.08);
  transition: all 0.18s;
  line-height: 1.3;
}

.toc a:hover {
  color: #00825c;
  padding-left: 6px;
}

.toc-num {
  color: #d13e68;
  margin-right: 6px;
}

.legal-content {
  background: white;
  border: 4px solid var(--green);
  border-radius: 32px;
  padding: 50px 55px;
  box-shadow: 0 10px 30px rgba(0, 70, 49, 0.08);
  min-width: 0;              /* allow the grid item to shrink below its content's intrinsic width */
  overflow-wrap: break-word; /* long tokens wrap instead of forcing horizontal scroll */
}

/* Legal-body links (contact emails, external references) — make them read as links */
.legal-content a {
  color: var(--green-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #00532f;
}

.intro-box {
  background: var(--green);
  color: white;
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 45px;
  font-size: 19px;
  line-height: 1.6;
}

.intro-box strong {
  color: var(--butter);
}

.legal-content section {
  margin-bottom: 45px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-label h2 {
  font-size: clamp(22px, 5vw, 36px); /* scales down on narrow phones so long headings don't overflow */
  color: var(--green);
  margin: 0;
  min-width: 0;                 /* allow this flex item to shrink below its longest word */
  overflow-wrap: break-word;
}

.section-num {
  background: var(--butter);
  color: var(--green);
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green);
  flex-shrink: 0;
}

.legal-content p, .legal-content li {
  font-size: 18px;
  line-height: 1.75;
  color: var(--green);
  margin-bottom: 16px;
}

.legal-content hr {
  border: 0;
  height: 2px;
  background: var(--pink);
  margin: 40px 0;
}

/* --- Legal callout boxes (were used in markup but never styled) --- */
.highlight-box {
  margin: 22px 0;
  padding: 20px 24px;
  border: 2px solid rgba(0, 70, 49, 0.15);
  border-radius: 16px;
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
}

.highlight-box strong { color: var(--green); }
.highlight-box.green { background: var(--green); color: white; border-color: var(--green); }
.highlight-box.green strong { color: var(--butter); }
.highlight-box.yellow { background: var(--butter); border-color: #e6d488; }
.highlight-box.pink { background: var(--pink); border-color: #e9b8c9; }

/* --- Legal data table (was unstyled; table-layout:fixed keeps it inside the viewport on mobile) --- */
.data-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  border: 1px solid rgba(0, 70, 49, 0.18);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.data-table thead th {
  background: var(--green);
  color: white;
  font-weight: 400;
}

.data-table tbody tr:nth-child(even) { background: rgba(0, 70, 49, 0.04); }

@media(max-width:900px){
  .shell { width: min(100% - 42px, 650px); }
  .nav { height: 78px; }
  .logo { width: 92px; }
  .menu { display: block; }
  .navlinks { position: absolute; z-index: 5; top: 78px; left: 0; right: 0; display: none; padding: 25px 8%; background: var(--green); border-top: 1px solid #ffffff33; flex-direction: column; align-items: flex-start; gap: 22px; }
  .navlinks.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer .btn { max-width: 270px; }
  .businesses { grid-template-columns: repeat(2, 1fr); gap: 40px 15px; padding: 0; }
  .biz-hero { padding: 52px 0 44px; }
  .biz-categories { padding: 48px 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { display: none; }
  .legal-content { padding: 30px 25px; }
  .legal-banner h1 { font-size: 40px; }
}


/* Step-card number badge — top-left, above its icon (matches index.html's .num) */
.step .number, .number {
  position: absolute;
  top: -31px;
  left: 25px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--butter) !important;
  color: var(--green) !important;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Become Partner Section Spacing */
.partner {
  margin-top: 0;
  padding: 84px 0;
  background: var(--pink);
}

/* --- "How It Works" step cards (home + businesses): number centered inside the card,
       emoji directly below, then heading + text — all centered. Each page keeps its own
       badge colours (home = green badge, businesses = butter badge). --- */
.how .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 220px;
  padding: 36px 28px 32px;
  position: relative;
}

.how .step .num,
.how .step .number {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 0 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display), sans-serif !important; /* keep the digit in the brand font, not the emoji fallback */
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.how .step .art,
.how .step > span:not(.num):not(.number) {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  height: auto;
  margin: 0 0 16px;
  font-size: 58px;
  line-height: 1;
}

.how .step b {
  margin-bottom: 8px;
  font-size: 32px;
}
