:root {
  --ink: #18212f;
  --muted: #5f6f82;
  --paper: #f7f8fa;
  --line: #d7dde6;
  --green: #27695b;
  --blue: #2d5d93;
  --coral: #8b4a3d;
  --gold: #8a6b26;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(216, 222, 231, 0.8);
  background: rgba(247, 248, 250, 0.94);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.contact-links,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink);
}

.nav {
  gap: clamp(10px, 1.6vw, 22px);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a:hover,
.footer a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  gap: clamp(18px, 3vw, 36px);
  min-height: calc(68vh - 52px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px) clamp(18px, 4vw, 44px) 18px;
}

.hero-copy {
  min-width: 0;
}

.hero-title-row {
  display: flex;
  max-width: 780px;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
}

h1 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family:
    "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.button.secondary {
  background: var(--white);
}

.profile-photo {
  display: block;
  flex: 0 0 clamp(70px, 9vw, 112px);
  width: clamp(70px, 9vw, 112px);
  aspect-ratio: 1;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(31, 41, 51, 0.14);
  object-fit: cover;
  object-position: center;
}

.gallery-panel {
  width: 75%;
  min-width: 0;
  align-self: center;
  justify-self: center;
}

.gallery-heading {
  margin-bottom: 8px;
}

.gallery-heading .eyebrow {
  font-size: 0.62rem;
}

.gallery-heading h2 {
  font-size: clamp(1.16rem, 2.1vw, 1.76rem);
}

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

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 222, 231, 0.95);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
  object-fit: cover;
}

.section {
  padding: 42px clamp(18px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 14px;
}

.wide-text {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.56;
}

.wide-text a,
.card a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.card {
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog {
  background: #eef2f5;
}

/* .blog-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
} */

.blog-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 290px));
  justify-content: start;
  gap: 12px;
}

.blog-category {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(216, 222, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.blog-category:hover {
  border-color: rgba(47, 125, 104, 0.45);
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.08);
  transform: translateY(-2px);
}

.blog-category span {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.blog-category strong {
  font-size: 1rem;
}

.blog-category p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 18px;
  align-items: start;
  background: #eef3ef;
}

.contact p {
  margin: 8px 0 0;
}

.contact-links {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.contact-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}

.map-tracker {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
  background: var(--white);
}

.map-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.visitor-widget {
  display: grid;
  width: min(100%, 320px);
  min-height: 190px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  margin: 0 auto;
  overflow: hidden;
}

.visitor-badge {
  display: inline-flex;
  min-height: 22px;
}

.visitor-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}

.visitor-map {
  width: min(100%, 300px);
  min-height: 150px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.footer {
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(18px, 4vw, 44px) 18px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header,
  .nav {
    align-items: flex-start;
  }

  .site-header,
  .hero,
  .contact,
  .map-tracker {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .profile-photo {
    flex-basis: 88px;
    width: 88px;
  }

  .gallery-panel {
    width: min(100%, 420px);
    justify-self: start;
  }

  .visitor-widget {
    margin: 0;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* .blog-categories {
    grid-template-columns: 1fr;
  } */

}

@media (max-width: 520px) {
  .hero-title-row {
    align-items: flex-start;
  }

  .profile-photo {
    flex-basis: 72px;
    width: 72px;
  }

  .gallery-grid {
    gap: 6px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards {
    grid-template-columns: 1fr;
  }
  
  .blog-categories {
    grid-template-columns: 1fr;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px clamp(18px, 4vw, 44px) 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--green);
}