:root {
  --bg: #f5f8f2;
  --surface: #ffffff;
  --primary: #2f7a4d;
  --primary-dark: #205b37;
  --text: #183024;
  --muted: #607367;
  --border: #dce8de;
  --shadow: 0 18px 45px rgba(24, 48, 36, 0.12);
  --header-offset: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
}

.card img {
  max-height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 248, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  gap: 2rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 0;
}

.brand-text {
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.link-button {
  border: none;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.hidden {
  display: none;
}

.card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section {
  padding: 2.25rem 0 3rem;
  scroll-margin-top: var(--header-offset);
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(245, 248, 242, 0.9)
  );
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 44rem;
  margin: -0.6rem 0 0;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.4rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

.card-service {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-link {
  margin-top: auto;
  align-self: flex-end;
  color: var(--primary);
  font-weight: 700;
  padding-top: 0.25rem;
  margin-top: 1rem;
}

#appointment-phone {
  margin-top: 0.35rem;
  align-self: flex-end;
  color: var(--primary-dark);
  font-weight: 600;
}

.phone-link {
  color: inherit;
  text-decoration: none;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 122, 77, 0.1);
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.map-link:hover {
  transform: translateY(-1px);
  background: rgba(47, 122, 77, 0.16);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.gallery-image {
  cursor: zoom-in;
}

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

.card-blog {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-blog > img {
  height: auto;
  max-height: none;
  width: 100%;
  margin: 0 0 1rem;
  object-fit: contain;
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-blog h3 {
  margin: 0 0 0.6rem;
  color: var(--primary-dark);
}

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

.card-blog details {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.card-blog summary {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.card-blog details p,
.card-blog details ul,
.card-blog details ol {
  margin-top: 0.85rem;
}

.card-blog details li + li {
  margin-top: 0.35rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(11, 24, 16, 0.84);
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1000px);
  max-height: 90vh;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #ffffff;
}

.gallery-image {
  cursor: zoom-in;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: #ffffff;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(11, 24, 16, 0.84);
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1000px);
  max-height: 90vh;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-card {
  padding: 1.4rem;
}

.contact-card p {
  margin: 0.3rem 0;
}

.site-footer {
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

@media (max-width: 840px) {
  .hero-grid,
  .contact-grid,
  .cards-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.25rem;
  }
}

@media (max-width: 640px) {
  .main-nav {
    gap: 0.7rem;
    font-size: 0.95rem;
  }

  .nav-bar,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card,
  .card,
  .contact-card {
    border-radius: 18px;
  }
}
