/* Function Health Clinic — site stylesheet */
:root {
  /* Brand colors: Pantone 7477 C (blue) and Pantone 360 C (green), as specified */
  --teal-900: #18333d;
  --teal-700: #244c5a;
  --teal-500: #3e839c;
  --teal-100: #ecf2f4;
  --green-accent: #6cc24a;
  --green-accent-dark: #4d9332;
  --cream: #faf7f2;
  --ink: #22281f;
  --ink-soft: #55604f;
  --border: #dfe6dd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 51, 61, 0.10);
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--teal-900); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--ink-soft); }
ul { color: var(--ink-soft); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--teal-900);
  font-size: 1.05rem;
}
.brand img { border-radius: 50%; }
.brand:hover { text-decoration: none; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-list a.active,
.nav-list a:hover { color: var(--teal-700); }
.header-cta { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green-accent); color: var(--teal-900); }
.btn-primary:hover { background: var(--green-accent-dark); }
.btn-secondary { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-secondary:hover { background: var(--teal-100); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--teal-100), var(--cream));
  padding: 64px 0 56px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-700);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
}
.hero-card ul { margin: 0; padding-left: 20px; }
.hero-card li { margin-bottom: 8px; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--teal-900);
  font-size: 0.9rem;
}

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 700px; margin-bottom: 32px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-700);
  margin-bottom: 8px;
  display: block;
}

/* Card grid */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 10px; font-weight: 700; }
.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.icon-badge svg { width: 58%; height: 58%; }
.icon-badge.has-image { background: transparent; overflow: hidden; }
.icon-badge.has-image img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* Team */
.team-card { text-align: left; }
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  overflow: hidden;
}
.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.credential { color: var(--teal-700); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; display: block; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--teal-700); }

/* CTA banner */
.cta-banner {
  background: var(--teal-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner .btn-primary { background: var(--green-accent); color: var(--teal-900); }
.cta-banner .btn-primary:hover { background: var(--green-accent-dark); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.info-list li { margin-bottom: 12px; padding-left: 28px; position: relative; }
.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-accent-dark);
}

/* Footer */
.site-footer { background: var(--teal-900); color: #d6ecee; padding-top: 48px; }
.site-footer a { color: #d6ecee; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid address { font-style: normal; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  font-size: 0.85rem;
}
.footer-bottom p { color: #9fc0c4; margin: 0; }

.community-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.community-tile {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.community-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .nav-list { gap: 14px; order: 3; width: 100%; }
  .header-cta { margin-left: 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 40px 0; }
}
