:root {
  --sand: #f6f1e8;
  --paper: #fffdf8;
  --ink: #203235;
  --muted: #5e7574;
  --brand: #1f6a65;
  --brand-deep: #153f44;
  --accent: #c46d3b;
  --line: rgba(31, 78, 74, 0.12);
  --mint: #d9ece7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 109, 59, 0.1), transparent 28%),
    linear-gradient(180deg, #fcfaf5 0%, #f4f8f5 48%, #f7f3ea 100%);
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
}

.site-header {
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 78, 74, 0.08);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
}

.navbar-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(21, 63, 68, 0.18);
}

.nav-link {
  color: var(--ink);
  font-weight: 600;
  margin: 0 0.2rem;
}

.nav-link.active,
.nav-link:hover {
  color: var(--brand);
}

.btn-brand,
.btn-outline-brand {
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
}

.btn-brand {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 16px 32px rgba(21, 63, 68, 0.18);
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-brand {
  border: 1px solid rgba(31, 106, 101, 0.3);
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline-brand:hover {
  background: var(--mint);
}

.hero-shell {
  padding: 5rem 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--brand-deep);
  background: rgba(217, 236, 231, 0.82);
  border: 1px solid rgba(31, 106, 101, 0.14);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.hero-card,
.soft-card,
.info-panel,
.search-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(33, 55, 58, 0.08);
}

.hero-card {
  padding: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.mini-stat {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(245, 249, 247, 0.95);
  border: 1px solid rgba(31, 78, 74, 0.08);
}

.mini-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--brand-deep);
}

.section-pad {
  padding: 4rem 0;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 800;
}

.section-title {
  margin: 0.4rem 0 1rem;
}

.service-card,
.article-card,
.location-card,
.faq-card,
.testimonial-card,
.symptom-card {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.article-card:hover,
.location-card:hover,
.symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(33, 55, 58, 0.12);
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 106, 101, 0.12), rgba(196, 109, 59, 0.16));
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.keyword-cloud,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.keyword-cloud span,
.pill-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(217, 236, 231, 0.8);
  color: var(--brand-deep);
  border: 1px solid rgba(31, 106, 101, 0.12);
}

.cta-band {
  padding: 2rem;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #285b57 55%, #7a8b61 100%);
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(21, 63, 68, 0.18);
}

.cta-band a {
  color: #fff;
}

.cta-band a.btn-light,
.cta-band a.btn-light:visited,
.cta-band a.btn-light:hover,
.cta-band a.btn-light:focus,
.cta-band a.btn-light:active {
  color: var(--brand-deep) !important;
  background: #fff;
  border-color: #fff;
}

.cta-band a.btn-light i,
.cta-band a.btn-light span {
  color: var(--brand-deep) !important;
}

.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  background: #15292c;
  color: rgba(247, 245, 238, 0.86);
}

.site-footer h3,
.site-footer h4,
.site-footer a {
  color: #fff;
}

.footer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #eab48f;
}

.footer-contact,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.7rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero .lead {
  max-width: 52rem;
}

.announcement-modal .modal-content {
  border: 1px solid rgba(31, 78, 74, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(196, 109, 59, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 248, 245, 0.96));
  box-shadow: 0 28px 60px rgba(21, 63, 68, 0.22);
}

.announcement-modal .modal-body {
  max-height: min(60vh, 32rem);
  padding-top: 0.5rem;
}

.announcement-modal .modal-body p {
  font-size: 1.02rem;
  line-height: 1.85;
}

.announcement-modal .modal-footer {
  justify-content: space-between;
}

.article-shell {
  position: relative;
  overflow: hidden;
}

.article-featured-image {
  margin: -0.5rem 0 2rem;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(31, 78, 74, 0.1);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 248, 245, 0.92));
  box-shadow: 0 24px 50px rgba(21, 63, 68, 0.12);
}

.article-featured-image img {
  width: 100%;
  display: block;
  max-height: 40rem;
  object-fit: cover;
}

.article-featured-image figcaption {
  padding: 0.95rem 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-tribute {
  background:
    radial-gradient(circle at top right, rgba(196, 109, 59, 0.14), transparent 22%),
    radial-gradient(circle at left center, rgba(31, 106, 101, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(248, 244, 236, 0.94));
}

.article-tribute::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, rgba(196, 109, 59, 0.9), rgba(31, 106, 101, 0.82));
}

.article-tribute > * {
  position: relative;
  z-index: 1;
}

.article-tribute p {
  font-size: 1.06rem;
  line-height: 1.95;
}

.article-tribute .article-featured-image {
  margin-top: 0.25rem;
}

.article-tribute .pill-list span {
  background: rgba(255, 244, 232, 0.92);
  border-color: rgba(196, 109, 59, 0.18);
}

.article-tribute .author-box {
  background: rgba(255, 249, 241, 0.9);
  border-color: rgba(196, 109, 59, 0.14);
}

.contact-list,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.search-box {
  padding: 1rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 78, 74, 0.16);
}

.form-control,
.form-select,
textarea {
  border-radius: 18px;
  border-color: rgba(31, 78, 74, 0.18);
  padding: 0.95rem 1rem;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: 24px;
}

.review-stars {
  color: #d78a35;
}

.ebook-shell {
  display: grid;
  gap: 1.5rem;
}

.ebook-toc,
.ebook-sheet,
.region-note {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(33, 55, 58, 0.08);
}

.ebook-toc,
.ebook-sheet {
  padding: 1.75rem;
}

.ebook-sheet {
  position: relative;
  overflow: hidden;
}

.ebook-sheet::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
}

.ebook-page-no {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(217, 236, 231, 0.72);
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.ebook-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.ebook-toc li + li {
  margin-top: 0.65rem;
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.region-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 249, 247, 0.95);
  border: 1px solid rgba(31, 78, 74, 0.1);
}

.region-note {
  padding: 1rem 1.1rem;
}

.author-box {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  background: rgba(245, 249, 247, 0.95);
  border: 1px solid rgba(31, 78, 74, 0.1);
}

.author-box p:last-child {
  margin-bottom: 0;
}

.directory-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 106, 101, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(217, 236, 231, 0.9), rgba(255, 253, 248, 0.94) 48%, rgba(196, 109, 59, 0.12)),
    #fffdf8;
  box-shadow: 0 22px 50px rgba(21, 63, 68, 0.12);
}

.directory-feature::after {
  content: "";
  position: absolute;
  inset: auto -5rem -6rem auto;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(31, 106, 101, 0.08);
  pointer-events: none;
  z-index: 0;
}

.directory-feature > * {
  position: relative;
  z-index: 1;
}

.directory-label {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(21, 63, 68, 0.08);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.directory-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  height: 100%;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(33, 55, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(33, 55, 58, 0.12);
}

.directory-card.is-featured {
  border-color: rgba(31, 106, 101, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(217, 236, 231, 0.7));
}

.directory-rank {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(21, 63, 68, 0.18);
}

.directory-card h3 {
  margin-bottom: 0.65rem;
}

.directory-card p {
  color: var(--muted);
}

.media-hero {
  border-radius: 30px;
  overflow: hidden;
  min-height: 100%;
  position: relative;
  background: #dfe8e5;
  box-shadow: 0 20px 44px rgba(33, 55, 58, 0.12);
}

.media-hero img,
.gallery-card img,
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-hero-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(21, 41, 44, 0.72);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(33, 55, 58, 0.08);
}

.gallery-card.tall {
  grid-column: span 5;
  min-height: 420px;
}

.gallery-card.wide {
  grid-column: span 7;
  min-height: 420px;
}

.gallery-card.medium {
  grid-column: span 4;
  min-height: 280px;
}

.gallery-card.large {
  grid-column: span 8;
  min-height: 280px;
}

.gallery-copy {
  padding: 1.1rem 1.2rem 1.25rem;
}

.feature-image {
  min-height: 380px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 20px 44px rgba(33, 55, 58, 0.12);
}

.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.event-gallery-card {
  grid-column: span 4;
}

.event-gallery-card.portrait {
  grid-column: span 3;
}

.event-gallery-card.landscape {
  grid-column: span 6;
}

.event-gallery-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.event-gallery-trigger img {
  width: 100%;
  display: block;
  max-height: 30rem;
  object-fit: cover;
}

.event-gallery-modal .modal-content {
  border: 1px solid rgba(31, 78, 74, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(196, 109, 59, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 248, 245, 0.96));
  box-shadow: 0 28px 60px rgba(21, 63, 68, 0.22);
}

.event-carousel-figure img {
  max-height: 72vh;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(21, 41, 44, 0.04);
}

.event-carousel-caption {
  padding: 1rem 0 0.25rem;
}

.event-gallery-modal .carousel-control-prev,
.event-gallery-modal .carousel-control-next {
  width: 3.5rem;
}

.event-gallery-modal .carousel-control-prev-icon,
.event-gallery-modal .carousel-control-next-icon {
  background-color: rgba(21, 63, 68, 0.78);
  border-radius: 50%;
  background-size: 55%;
  width: 2.8rem;
  height: 2.8rem;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .gallery-card.tall,
  .gallery-card.wide,
  .gallery-card.medium,
  .gallery-card.large {
    grid-column: span 12;
    min-height: 260px;
  }

  .event-gallery-card,
  .event-gallery-card.portrait,
  .event-gallery-card.landscape {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .event-gallery-card,
  .event-gallery-card.portrait,
  .event-gallery-card.landscape {
    grid-column: span 12;
  }

  .event-gallery-trigger img {
    max-height: none;
  }
}
