* { box-sizing: border-box; }
:root {
  --ink: #18221f;
  --muted: #6d7773;
  --green: #2d6a4f;
  --green-dark: #22543d;
  --cream: #f8f7f2;
  --line: #e6e8e4;
  --white: #fff;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.header {
  height: 84px;
  background: #fff;
  border-bottom: 1px solid #e8eee9;
  box-shadow: 0 4px 16px rgba(24,34,31,.05);
  position: relative;
  z-index: 20;
}
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: "Manrope", sans-serif; line-height: 1.05; }
.brand-name { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.brand-name span { color: var(--green); }
.brand-mark { width: 52px; height: 52px; flex: 0 0 52px; display: block; border: 1px solid rgba(24,34,31,.08); border-radius: 8px; background-color: white; background-image: url("logo.png"); background-position: center; background-repeat: no-repeat; background-size: contain; }
.header .brand { gap: 14px; }
.header .brand-mark { width: 56px; height: 56px; flex-basis: 56px; border-radius: 11px; box-shadow: 0 3px 10px rgba(24,34,31,.08); }
.header .brand-name { font-size: 22px; letter-spacing: -.7px; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-tagline { color: #78857e; font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .25px; }
.nav-links { display: flex; align-items: center; gap: 36px; margin-left: 92px; height: 100%; }
.nav-links a { position: relative; color: #55615d; text-decoration: none; font-size: 14px; font-weight: 600; height: 100%; display: flex; align-items: center; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); }
.add-button { margin-left: auto; height: 42px; border: 0; border-radius: 8px; background: var(--green); color: white; font-weight: 700; font-size: 13px; padding: 0 17px; display: flex; align-items: center; gap: 8px; }
.add-button span { font-size: 21px; font-weight: 400; line-height: 1; }
.add-button:hover { background: var(--green-dark); }
.menu-button { display: none; }

.hero {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  background: #eff3e9;
}
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: 42%; height: 100%; background: rgba(255,255,255,.08); clip-path: polygon(28% 0,100% 0,100% 100%,0 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 78px; }
.hero-copy { max-width: 600px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 12px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 800; }
.hero h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: 48px; line-height: 1.08; letter-spacing: -2.2px; }
.hero h1 span { color: var(--green); }
.hero-text { margin: 15px 0 24px; color: #66716d; font-size: 15px; }
.search-field { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-left: 1px solid var(--line); }
.search-field-main { border-left: 0; }
.search-field svg { width: 19px; height: 19px; fill: none; stroke: #84908b; stroke-width: 1.8; stroke-linecap: round; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: #a1aaa6; }
.search-button { height: 54px; border: 0; border-radius: 7px; background: var(--green); color: white; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.search-button svg { width: 18px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; }
.search-button:hover { background: var(--green-dark); }

.section { padding: 58px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-kicker { margin: 0 0 5px; color: var(--green); font-size: 10px; letter-spacing: 1.5px; font-weight: 800; }
.section-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 27px; letter-spacing: -.8px; }
.text-link { border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 700; }
.text-link span { margin-left: 5px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-card { height: 88px; border: 1px solid var(--line); border-radius: 9px; background: white; display: flex; align-items: center; gap: 11px; padding: 12px; text-align: left; transition: .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: #ccd7cf; box-shadow: 0 9px 20px rgba(38,62,51,.08); }
.category-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; }
.category-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.category-icon.amber { background: #fff0d7; stroke: #c88425; }
.category-icon.blue { background: #e5f0f7; stroke: #4b819f; }
.category-icon.red { background: #fde8e6; stroke: #c96d65; }
.category-icon.green { background: #e5f2e7; stroke: #56805d; }
.category-icon.pink { background: #f8e7ee; stroke: #ad6981; }
.category-icon.purple { background: #eeeafa; stroke: #776a9d; }
.category-card strong { display: block; font-size: 12.5px; white-space: nowrap; }
.category-card small { display: block; margin-top: 4px; color: #929a97; font-size: 10.5px; }

.companies { background: var(--cream); }
.view-controls { display: flex; gap: 5px; }
.view-button { width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 7px; display: grid; place-items: center; }
.view-button svg { width: 17px; fill: none; stroke: #8c9692; stroke-width: 1.6; }
.view-button.active { background: var(--green); border-color: var(--green); }
.view-button.active svg { stroke: white; }
.filter-row { display: flex; gap: 8px; margin-bottom: 22px; }
.filter { height: 34px; border: 1px solid #dde1dc; border-radius: 18px; background: white; color: #69746f; padding: 0 14px; font-size: 12px; font-weight: 600; }
.filter.active { background: var(--green); border-color: var(--green); color: white; }
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.company-card { overflow: hidden; background: white; border: 1px solid #eaede9; border-radius: 10px; transition: .2s ease; }
.company-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43,60,52,.09); }
.card-category { display: inline-block; margin-bottom: 12px; background: #edf3ef; color: var(--green); border-radius: 5px; padding: 6px 9px; font-size: 10px; font-weight: 700; }
.card-body { min-height: 196px; padding: 18px 17px 16px; }
.card-title-row { display: flex; align-items: center; gap: 7px; }
.card-title-row h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 15px; }
.rating { margin: 8px 0 10px; font-size: 12px; }
.rating span { color: #dda83a; letter-spacing: -1px; }
.rating strong { margin-left: 5px; }
.rating small { color: #929a97; }
.address { display: flex; align-items: center; margin: 0 0 9px; color: #737e79; font-size: 11.5px; }
.address svg { width: 14px; height: 14px; margin-right: 6px; fill: none; stroke: #83908a; stroke-width: 1.8; }
.gym-website { margin: 0 0 9px; font-size: 11.5px; }
.gym-website a { color: var(--green); text-decoration: none; }
.gym-website a:hover { text-decoration: underline; text-underline-offset: 3px; }
.open { margin: 0; color: #7d8783; font-size: 11px; }
.open span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4e9367; }
.load-button { display: block; margin: 28px auto 0; height: 42px; border: 1px solid #cad2cd; border-radius: 7px; background: white; color: var(--green); padding: 0 17px; font-size: 12px; font-weight: 700; }
.company-grid.list { grid-template-columns: 1fr; }
.company-grid.list .company-card { display: block; }
.company-grid.list .card-body { display: flex; flex-direction: column; justify-content: center; }
.hidden { display: none !important; }

dialog { border: 0; padding: 0; border-radius: 12px; box-shadow: 0 25px 70px rgba(20,40,30,.25); }
dialog::backdrop { background: rgba(20,32,26,.45); backdrop-filter: blur(3px); }
.dialog-card { position: relative; width: 420px; padding: 30px; display: grid; gap: 14px; }
.dialog-card h2 { margin: 0 0 8px; font-family: "Manrope", sans-serif; }
.dialog-card label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.dialog-card input, .dialog-card select { height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 0 12px; background: white; }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 24px; color: #7d8783; }
.dialog-submit { margin-top: 8px; }

@media (max-width: 980px) {
  .shell { width: min(100% - 36px, 860px); }
  .nav-links { margin-left: 45px; gap: 22px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .view-controls { display: none; }
}
@media (max-width: 700px) {
  .header, .nav { height: 72px; }
  .header .brand { gap: 10px; }
  .header .brand-mark { width: 48px; height: 48px; flex-basis: 48px; border-radius: 9px; }
  .header .brand-name { font-size: 19px; }
  .brand-tagline { font-size: 10px; }
  .nav-links, .add-button { display: none; }
  .menu-button { margin-left: auto; width: 40px; height: 40px; border: 0; background: transparent; display: grid; align-content: center; gap: 5px; }
  .menu-button span { width: 21px; height: 2px; background: var(--ink); }
  .hero { min-height: 300px; }
  .hero-content { padding-top: 44px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 44px 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { height: 82px; }
  .company-grid { grid-template-columns: 1fr; }
  .filter-row { overflow-x: auto; padding-bottom: 4px; }
  .filter { flex: 0 0 auto; }
  .dialog-card { width: calc(100vw - 32px); }
}

.footer {
  background: #18251f;
  color: #dce5df;
}
.footer .shell { padding: 44px 0 20px; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 40px;
  padding-bottom: 38px;
}
.footer-brand { color: white; align-self: start; }
.footer-brand .brand-mark { background-color: white; }
.footer-brand .brand-name { color: white; }
.footer-brand .brand-name span { color: #91c9a8; }
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-nav h2 {
  margin: 2px 0 8px;
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  letter-spacing: .3px;
}
.footer-nav a {
  color: #b9c7bf;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: white; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  min-height: 58px;
  border-top: 1px solid rgba(255,255,255,.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #91a097;
  font-size: 12px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: #b9c7bf;
  text-decoration: none;
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 700px) {
  .footer .shell { padding-top: 36px; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}