:root {
  --accent: #85b40d;
  --accent-dark: #6f930a;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Roboto, sans-serif;
  font-size: 11pt;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  /* margin: 1.5rem 0; */
  padding: 1rem 1.5rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  gap: 1rem;
}
.logo {
  align-items: center;
  color: var(--text-light);
  display: flex;
  gap: 0.5rem;
}
.logo:hover {
  text-decoration: none;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.logo span {
  font-weight: 700;
  font-size: 1.1rem;
  margin-left: 1rem;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  font-weight: 500;
  color: var(--text);
  padding: 0.25rem 0;
  font-size: 0.95rem;
}
nav a:hover:not(.login-btn) { color: var(--accent-dark); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent-dark); border-bottom: 2px solid var(--accent); }

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .15s ease;
  white-space: nowrap;
}
.login-btn:hover { background: var(--accent-dark); text-decoration: none; }
.login-btn svg { width: 16px; height: 16px; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger-box { display: block; width: 24px; height: 18px; position: relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  background: var(--text);
  width: 100%;
  transition: transform .2s ease, top .2s ease, background .2s;
}
.hamburger-inner { top: 8px; }
.hamburger-inner::before { top: -7px; }
.hamburger-inner::after { top: 7px; }
.hamburger.is-active .hamburger-inner { background: transparent; }
.hamburger.is-active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.hamburger.is-active .hamburger-inner::after { top: 0; transform: rotate(-45deg); }

/* Hero (home) */
.hero {
  min-height: 380px;
  /* background: #111 center 72%/cover no-repeat; */
  background: center 19%/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .125);
  /* background: linear-gradient(rgba(0,0,0,0) 85%, rgba(255,255,255,1)); */
  /* background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.25)); */
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
  max-width: 620px;
  text-shadow: 2px 2px 2px var(--text);
}
.hero-content h1 {
  font-size: 2.6rem;
  margin: 0 0 .25rem;
  line-height: 1.05;
  font-weight: 700;
}
.hero-content .sub {
  font-size: 1.15rem;
  opacity: .95;
  margin: 0;
}

/* Main sections */
main { padding: 2.25rem 0 3rem; }
.section { margin-bottom: 2.25rem; }
h1 { font-size: 1.9rem; margin: 0 0 1rem; font-weight: 700; margin-top: 1rem; }
h2 { font-size: 1.35rem; margin: 0 0 .6rem; font-weight: 600; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; font-weight: 600; }

.copy, .two-col { max-width: 910px; }
.two-col {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

.map {
  width: 100%;
  height: 320px;
  border: 5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  border-radius: 4px;
}

/* Residents / cards */
.residents ul {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
}
.residents li { margin: .2rem 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s;
}
.gallery img:hover { transform: scale(1.015); box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* Modal */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
#modal.open { display: flex; }
.modal-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  text-align: center;
}
.modal-inner img {
  max-height: 82vh;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  background: #111;
}
.modal-caption {
  color: #ddd;
  margin-top: .6rem;
  font-size: .95rem;
}
.modal-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.modal-controls button {
  pointer-events: all;
  background: rgba(255,255,255,.9);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  margin: 0 8px;
  transition: transform .1s;
}
.modal-controls button:hover { transform: scale(1.05); }
.modal-close {
  position: absolute;
  top: -12px;
  right: -8px;
  background: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Provider logos / cards */
.provider a:has(img) {
  float: inline-end;
  margin: 0.5rem 0 0 0.75rem;
}
.provider img {
  max-height: 50px;
  max-width: 140px;
  width: auto;
  margin-bottom: .2rem;
  object-fit: contain;
}

/* Footer */
footer {
  background: slategray;
  color: #fff;
  font-size: .9rem;
}
footer .footer-inner {
  display: flex;
}
footer .footer-outer {
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 2rem 1rem;
}
footer .footer-outer p {
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 1rem;
}
footer a {
  color: inherit;
}
footer ul {
  display: grid;
  flex-direction: column;
  flex-grow: 1;
  grid-template-columns: repeat(1, auto);
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
@media (min-width: 375px) {
  footer ul {
    grid-template-columns: repeat(2, auto);
  }
}
@media (min-width: 701px /* where photo gallery goes 2 → 3 columns */) {
  footer ul {
    grid-template-columns: repeat(3, auto);
  }
}
footer ul li {
  display: block;
}

.social {
  text-align: right;
}
.social a {
  display: inline-flex;
  align-items: center;
}
.social img,
.social svg {
  height: 39px;
}

/* Utility small tweaks */
strong { font-weight: 600; }
ul { padding-left: 1.25rem; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }

/* Responsive nav */
@media (max-width: 860px) {
  nav ul { display: none; }
  .hamburger { display: block; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    background: var(--bg-alt);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  nav.open ul li { width: 100%; }
}

/* Simple button used on portal CTAs */
.portal-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: .4rem;
}
.portal-btn:hover { background: var(--accent-dark); text-decoration: none; }
