/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --emerald: #065f46;
  --emerald-light: #059669;
  --emerald-dark: #044d38;
  --cream: #faf9f6;
  --cream-warm: #f5f3ed;
  --cream-dark: #e8e4db;
  --text: #1a1a1a;
  --text-light: #555555;
  --text-muted: #888888;
  --white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--emerald); color: var(--white);
  padding: .5rem 1rem; border-radius: var(--radius);
  z-index: 200; font-size: .875rem;
}
.skip-link:focus { top: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ─── Typography ─── */
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 520px;
  line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-subtitle { margin: 0 auto; }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--cream-dark); box-shadow: 0 1px 0 rgba(0,0,0,.04); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--emerald);
  display: flex; align-items: center; gap: .5rem;
}

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a {
  font-size: .8125rem; font-weight: 400; letter-spacing: .02em;
  color: var(--text-light); transition: color .2s;
}
.nav-menu a:hover { color: var(--emerald); }

.nav-phone {
  display: flex; align-items: center; gap: .375rem;
  color: var(--emerald) !important; font-weight: 400;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); transition: all .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6rem 2rem 4rem;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    #044d38 0%,
    #065f46 25%,
    #059669 50%,
    #34d399 75%,
    #a7f3d0 100%
  );
}
.hero-lines {
  position: absolute; inset: 0; overflow: hidden; opacity: .07;
}
.hero-lines span {
  position: absolute; width: 1px; height: 140%;
  background: var(--white); transform: rotate(25deg);
}
.hero-lines span:nth-child(1) { left: 5%; top: -20%; }
.hero-lines span:nth-child(2) { left: 15%; top: -20%; }
.hero-lines span:nth-child(3) { left: 30%; top: -20%; }
.hero-lines span:nth-child(4) { left: 45%; top: -20%; }
.hero-lines span:nth-child(5) { left: 60%; top: -20%; }
.hero-lines span:nth-child(6) { left: 75%; top: -20%; }
.hero-lines span:nth-child(7) { left: 88%; top: -20%; }
.hero-lines span:nth-child(8) { left: 96%; top: -20%; }

.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 720px;
}

.hero-eyebrow {
  font-size: .75rem; font-weight: 400; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255,255,255,.8);
  max-width: 480px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 400; letter-spacing: .04em;
  padding: .875rem 1.75rem; border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.btn-primary {
  background: var(--white); color: var(--emerald);
}
.btn-primary:hover { background: var(--cream); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.hero-details {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  font-size: .8125rem; color: rgba(255,255,255,.6);
}
.hero-divider {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.45); font-size: .6875rem; letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px; background: rgba(255,255,255,.25);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: .7; transform: scaleY(1.2); }
}

/* ─── Sections ─── */
.section { padding: 7rem 0; }
.section-alt { background: var(--cream-warm); }

/* ─── About ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-image { border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 56/70; }

.about-content .lead {
  font-size: 1.0625rem; color: var(--text);
  line-height: 1.8; margin-bottom: 1rem;
}
.about-content p { color: var(--text-light); margin-bottom: 1rem; }

.about-stats {
  display: flex; align-items: center; gap: 2rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}
.stat-number {
  display: block; font-family: var(--font-display);
  font-size: 2rem; font-weight: 600; color: var(--emerald);
  line-height: 1; margin-bottom: .375rem;
}
.stat-label { font-size: .8125rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 48px; background: var(--cream-dark); }

/* ─── Departments ─── */
.dept-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.dept-card {
  padding: 2.25rem; border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  transition: all .3s var(--ease);
}
.dept-card:hover {
  border-color: var(--emerald-light);
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6,95,70,.08);
}
.dept-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(6,95,70,.07);
  color: var(--emerald);
  margin-bottom: 1.25rem;
  transition: background .3s;
}
.dept-card:hover .dept-icon { background: var(--emerald); color: var(--white); }
.dept-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: .625rem; color: var(--text);
}
.dept-card p { font-size: .9375rem; color: var(--text-light); line-height: 1.65; }

/* ─── Services ─── */
.services-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: start;
}
.services-content { position: sticky; top: 8rem; }
.services-content .section-subtitle { margin-bottom: 2rem; }

.service-item {
  display: grid; grid-template-columns: 3rem 1fr;
  gap: 1.5rem; padding: 2rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.service-item:first-child { border-top: 1px solid var(--cream-dark); }
.service-num {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--emerald-light); opacity: .5;
  padding-top: .125rem;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: .5rem; color: var(--text);
}
.service-body p { font-size: .9375rem; color: var(--text-light); line-height: 1.65; }

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item--wide { grid-column: span 12; }
.gallery-item:not(.gallery-item--wide) { grid-column: span 6; }
.gallery-item--wide img { aspect-ratio: 8/5; }
.gallery-item:not(.gallery-item--wide) img { aspect-ratio: 4/3; }

/* ─── CTA / Visit ─── */
.section-cta {
  background: var(--emerald);
  color: var(--white);
}
.section-cta .section-eyebrow { color: rgba(255,255,255,.5); }
.section-cta .section-title { color: var(--white); }
.section-cta .section-subtitle { color: rgba(255,255,255,.7); }
.section-cta .section-header { margin-bottom: 3rem; }

.cta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cta-card {
  padding: 2.25rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  transition: all .3s var(--ease);
}
.cta-card:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.cta-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: var(--white); margin-bottom: 1.25rem;
}
.cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: .75rem;
}
.cta-card p { font-size: .9375rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: .5rem; }
.cta-card a { color: rgba(255,255,255,.9); }
.cta-card a:hover { color: var(--white); text-decoration: underline; }
.cta-link {
  display: inline-block; margin-top: .75rem;
  font-size: .8125rem; font-weight: 400;
  color: rgba(255,255,255,.7); letter-spacing: .02em;
  transition: color .2s;
}
.cta-link:hover { color: var(--white); }
.cta-hint { display: block; margin-top: .5rem; font-size: .8125rem; color: rgba(255,255,255,.4); }

/* ─── Footer ─── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.5);
  padding: 3rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 600;
  color: var(--white);
}
.footer-tagline { font-size: .8125rem; margin-top: .25rem; }
.footer-info p { font-size: .8125rem; margin-bottom: .25rem; }
.footer-info a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-info a:hover { color: var(--white); }
.footer-copy p { font-size: .75rem; }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .about-grid, .services-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-content { position: static; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    flex-direction: column; justify-content: flex-start;
    padding: 2rem; gap: 1.25rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-phone { font-size: 1rem; }

  .hero { padding: 5rem 1.5rem 3rem; }
  .hero-details { flex-direction: column; gap: .5rem; }
  .hero-divider { display: none; }

  .section { padding: 4.5rem 0; }
  .container { padding: 0 1.25rem; }

  .dept-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 12; }
  .gallery-item:not(.gallery-item--wide) { grid-column: span 12; }
  .cta-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .about-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stat-divider { display: none; }
}
