/* Accessibility improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal-dark);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Visible focus for keyboard users */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* Ensure sufficient contrast on muted text */
:root {
  --text-muted: #444; /* darker for better contrast */
}

/* Larger minimum touch targets */
.btn {
  min-height: 44px;
  min-width: 44px;
}
:root {
  --teal: #0d7377;
  --teal-dark: #0a5c5f;
  --teal-light: #e6f4f4;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #fafafa;
  --white: #ffffff;
  --border: #e5e5e5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--teal);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f7f7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 380px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: white;
}

/* Features */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  color: var(--teal-dark);
  margin-bottom: 8px;
  font-size: 1.25rem;
}

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

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 20px;
}

.about-preview p,
.program-content p,
.locations-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  max-width: 700px;
}

/* Principles */
.principles {
  background: var(--white);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.principle {
  padding: 24px;
  background: var(--teal-light);
  border-radius: 10px;
}

.principle strong {
  display: block;
  color: var(--teal-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* CTA */
.cta {
  background: var(--teal);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta .btn {
  background: white;
  color: var(--teal);
}

.cta .btn:hover {
  background: var(--teal-light);
}

/* Footer */
.footer {
  background: #0a2a2c;
  color: #ccc;
  padding: 48px 0;
  text-align: center;
}

.footer a {
  color: #8ec8cb;
  text-decoration: none;
  margin: 0 12px;
}

.footer-links {
  margin: 20px 0;
}

.copyright {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Page-specific */
.page-hero {
  background: var(--teal);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.content-section {
  padding: 60px 0;
}

.content-section h2 {
  margin-top: 40px;
}

.content-section ul {
  margin: 16px 0 24px 24px;
  color: var(--text-muted);
}

.content-section li {
  margin-bottom: 8px;
}

/* Contact form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 480px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Gallery */
.gallery-section {
  padding: 40px 0 80px;
}

.gallery-section h2 {
  margin-bottom: 8px;
}

.gallery-intro {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 640px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: white;
  padding: 24px 12px 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 4px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lightbox-nav {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
}
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero-sub {
    max-width: none;
  }
  .features-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .hero-image img {
    height: 260px;
  }
}
