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

:root {
  --green-dark: #04342C;
  --green-deep: #085041;
  --green-mid: #0F6E56;
  --green: #1D9E75;
  --green-light: #5DCAA5;
  --green-pale: #9FE1CB;
  --green-tint: #E1F5EE;
  --ink: #0E1C19;
  --ink-soft: #3B5550;
  --ink-muted: #6B8C85;
  --surface: #FFFFFF;
  --surface-off: #F5FAF8;
  --border: #D0E8DF;
  --danger: #A43A31;
  --success: #0F6E56;
  --radius: 10px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.skip-link { position: absolute; left: -999px; top: 8px; background: white; color: var(--ink); padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 220px; }
.nav-logo-mark {
  width: 38px; height: 38px; background: var(--green-mid); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: white;
  font-weight: 700; font-size: 13px; letter-spacing: 0.5px; flex-shrink: 0;
}
.nav-logo-text { line-height: 1.2; display: grid; }
.nav-logo-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.nav-logo-sub { font-size: 11px; color: var(--ink-muted); }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: 13px; color: var(--ink-soft); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--green-mid); }
.nav-cta {
  background: var(--green-mid); color: white; border: none; border-radius: var(--radius);
  padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--green-deep); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: all 0.2s; }

/* Shared layout */
.section-inner { max-width: 980px; margin: 0 auto; }
.narrow { max-width: 760px; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green-mid); margin-bottom: 10px; }
.section-header { margin-bottom: 36px; }
.section-header h2, .page-hero h1, .contact-text h2, .about-strip-text h2 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--ink);
}
.section-header h2, .contact-text h2, .about-strip-text h2 { font-size: 32px; margin-bottom: 10px; }
.section-header p, .page-hero p, .contact-text p, .about-strip-text p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.btn-primary, .btn-hero-primary, .btn-referral {
  background: var(--green); color: white; border: none; border-radius: var(--radius); padding: 14px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover, .btn-hero-primary:hover, .btn-referral:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-ghost, .btn-hero-ghost {
  background: transparent; color: var(--green-pale); border: 1.5px solid rgba(93,202,165,0.48);
  border-radius: var(--radius); padding: 14px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-block; transition: border-color 0.15s, color 0.15s;
}
.btn-hero-ghost:hover, .btn-ghost:hover { border-color: var(--green-pale); color: white; }

/* Home hero */
.hero {
  background-color: var(--green-dark);
  background-image: linear-gradient(180deg, rgba(4,52,44,0.46), rgba(4,52,44,0.62)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  padding: 96px 2rem 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(15,110,86,0.30) 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(29,158,117,0.28);
  border: 1px solid rgba(93,202,165,0.4); color: var(--green-pale); font-size: 12px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 28px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--green-light); border-radius: 50%; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(38px, 6vw, 64px); font-weight: 400; color: white;
  line-height: 1.12; margin: 0 auto 20px; max-width: 760px;
}
.hero h1 em { font-style: normal; color: var(--green-pale); }
.hero-sub { font-size: 17px; color: var(--green-pale); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.values-bar {
  background: var(--green-tint); border-bottom: 1px solid var(--border); padding: 18px 2rem;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 32px;
}
.values-label { font-size: 11px; font-weight: 700; color: var(--green-mid); text-transform: uppercase; letter-spacing: 0.8px; margin-right: 8px; }
.value-item { font-size: 13px; color: var(--green-deep); display: flex; align-items: center; gap: 6px; }
.value-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }

.about-strip { padding: 70px 2rem; max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-block { background: var(--surface-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.stat-block .num { font-family: var(--font-display); font-size: 34px; color: var(--green-mid); }
.stat-block .lbl { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }

.services-section { background: var(--surface-off); padding: 70px 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.service-card, .spec-card, .who-card, .content-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px;
}
.service-card { transition: border-color 0.15s, box-shadow 0.15s; }
.service-card:hover { border-color: var(--green-light); box-shadow: 0 4px 16px rgba(29,158,117,0.08); }
.service-icon { width: 42px; height: 42px; background: var(--green-tint); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px; }
.service-card h3, .spec-card h3, .who-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.service-card p, .spec-card p, .who-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.65; }

.specialist-section { padding: 70px 2rem; }
.specialist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 32px; }
.spec-card { border-top: 3px solid var(--green-mid); }
.spec-badge { display: inline-block; background: var(--green-tint); color: var(--green-mid); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }

.mission-band {
  background-color: var(--green-dark);
  background-image: linear-gradient(180deg, rgba(4,52,44,0.52), rgba(4,52,44,0.66)), var(--mission-bg);
  background-size: cover; background-position: center; padding: 84px 2rem; text-align: center; position: relative;
}
.mission-band .mission-mark { font-family: var(--font-display); font-size: 72px; color: rgba(159,225,203,0.24); line-height: 1; margin-bottom: -16px; }
.mission-band h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: white; font-weight: 400; margin-bottom: 16px; line-height: 1.2; }
.mission-band p { font-size: 16px; color: var(--green-pale); max-width: 620px; margin: 0 auto; line-height: 1.75; }

.who-section { padding: 70px 2rem; background: var(--surface-off); }
.who-inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who-header { max-width: 980px; margin: 0 auto 32px; }
.who-card { text-align: center; }
.who-card .who-icon { font-size: 30px; margin-bottom: 10px; }

/* Page hero and content pages */
.page-hero { background: var(--green-dark); color: white; padding: 76px 2rem; }
.page-hero .section-inner { max-width: 880px; }
.page-hero .eyebrow { color: var(--green-pale); }
.page-hero h1 { color: white; font-size: clamp(36px, 6vw, 56px); margin-bottom: 14px; }
.page-hero p { color: var(--green-pale); max-width: 640px; font-size: 17px; }
.page-section { padding: 70px 2rem; }
.page-section.off { background: var(--surface-off); }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); line-height: 1.8; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.check-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 10px; color: var(--ink-soft); }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* Contact */
.contact-section { padding: 70px 2rem; }
.contact-inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.contact-detail { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface-off); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; text-decoration: none; }
.contact-detail:hover { border-color: var(--green-light); }
.contact-icon { width: 34px; height: 34px; background: var(--green-tint); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-detail-text .lbl { font-size: 11px; color: var(--ink-muted); }
.contact-detail-text .val { font-size: 14px; color: var(--ink); font-weight: 700; }
.referral-card { background: var(--green-dark); border-radius: 12px; padding: 32px 28px; }
.referral-card h3 { font-family: var(--font-display); font-size: 24px; color: white; font-weight: 400; margin-bottom: 12px; }
.referral-card p { font-size: 14px; color: var(--green-pale); line-height: 1.7; margin-bottom: 20px; }
.referral-list { list-style: none; margin-bottom: 24px; }
.referral-list li { font-size: 13px; color: var(--green-light); padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.referral-list li::before { content: '✓'; font-weight: 700; color: var(--green); }
.btn-referral { display: block; width: 100%; text-align: center; padding: 13px; font-size: 14px; }

.contact-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: 0 8px 30px rgba(4,52,44,0.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 13px; color: var(--ink); font-weight: 700; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 13px;
  font: inherit; color: var(--ink); background: white; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,0.14); }
.honeypot { position: absolute; left: -5000px; height: 1px; width: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.notice.success { background: var(--green-tint); color: var(--success); border: 1px solid var(--border); }
.notice.error { background: #FBEAE8; color: var(--danger); border: 1px solid #F1BBB5; }
.small-note { color: var(--ink-muted); font-size: 12px; margin-top: 10px; }

/* Footer */
.site-footer { background: var(--green-dark); border-top: 1px solid rgba(29,158,117,0.2); padding: 32px 2rem; }
.footer-inner { max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 32px; height: 32px; background: var(--green-mid); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; font-weight: 700; }
.footer-name { display: block; font-size: 13px; font-weight: 700; color: white; }
.footer-reg { display: block; font-size: 11px; color: var(--green-pale); opacity: 0.72; margin-top: 2px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--green-pale); text-decoration: none; opacity: 0.75; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: 12px; color: var(--green-pale); opacity: 0.7; }

/* Admin */
.admin-body { background: var(--surface-off); }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 32px 1.25rem 70px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-top h1 { font-family: var(--font-display); font-weight: 400; font-size: 38px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(4,52,44,0.05); }
.admin-card h2 { font-size: 18px; margin-bottom: 14px; }
.admin-card h3 { font-size: 15px; margin: 18px 0 10px; color: var(--green-deep); }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-grid.three { grid-template-columns: repeat(3, 1fr); }
.admin-repeat { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface-off); margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 8px; vertical-align: top; }
.admin-table th { color: var(--green-deep); }
.login-wrap { max-width: 440px; margin: 8vh auto; padding: 0 1.25rem; }
.login-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 10px 30px rgba(4,52,44,0.08); }
.login-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 36px; margin-bottom: 8px; }
.btn-admin { background: var(--green-mid); color: white; border: 0; border-radius: var(--radius); padding: 11px 18px; text-decoration: none; font-weight: 700; cursor: pointer; }
.btn-admin.secondary { background: var(--ink-soft); }
.btn-admin.light { background: var(--green-tint); color: var(--green-deep); }

@media (max-width: 860px) {
  .site-nav { flex-wrap: wrap; padding: 10px 1.25rem; }
  .nav-mobile-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 0; align-items: stretch; padding: 8px 0 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; }
  .about-strip, .contact-inner, .two-column { grid-template-columns: 1fr; }
  .who-inner { grid-template-columns: 1fr; }
  .hero { padding: 68px 1.25rem 60px; }
  .values-bar { justify-content: flex-start; }
  .admin-grid, .admin-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-grid, .about-stats { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .page-section, .services-section, .specialist-section, .who-section, .contact-section, .about-strip { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* Logo image integration */
.nav-logo { min-width: 260px; }
.nav-logo-image { display: block; width: min(300px, 46vw); max-height: 56px; object-fit: contain; object-position: left center; }
.footer-logo-image { display: block; width: 102px; max-height: 42px; object-fit: contain; object-position: left center; background: rgba(255,255,255,0.96); border-radius: 8px; padding: 5px 7px; }
.site-logo-preview { display: block; width: min(360px, 100%); max-height: 120px; object-fit: contain; object-position: left center; margin-top: 10px; padding: 10px; background: var(--surface-off); border: 1px solid var(--border); border-radius: var(--radius); }

/* Make photo backgrounds more visible while preserving text contrast */
.hero, .mission-band { text-shadow: 0 2px 18px rgba(0,0,0,0.28); }
.hero::after, .mission-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,52,44,0.26), rgba(4,52,44,0.10), rgba(4,52,44,0.28)); }
.hero > *, .mission-band > * { position: relative; z-index: 1; }
.mission-band { overflow: hidden; }

/* Admin repeaters for menus and CMS pages */
.admin-repeat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.admin-repeat-head.compact { align-items: center; margin-bottom: 10px; }
.btn-admin.danger { background: #FBEAE8; color: var(--danger); border: 1px solid #F1BBB5; }
.admin-help-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface-off); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; color: var(--ink-soft); }
.admin-help-list code { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--green-deep); }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; }

@media (max-width: 860px) {
  .nav-logo { min-width: 0; }
  .nav-logo-image { width: min(240px, 68vw); max-height: 50px; }
  .admin-repeat-head { flex-direction: column; align-items: stretch; }
}
