:root {
  /* Brand from logo */
  --brand-green: #005f4d;
  --brand-red: #b3282d;
  --brand-blue: #004b87;
  --nav-button-height: 44px;
  --header-height: 80px;

  /* Light theme */
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #0c1220;
  --muted: #5a6475;
  --primary: var(--brand-green);
  --primary-contrast: #ffffff;
  --ring: rgba(0, 95, 77, 0.25);
  --success: #1b8e6a;
  --danger: var(--brand-red);

  --radius: 12px;
  --shadow-lg: 0 20px 40px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Overpass, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 20px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo { height: var(--nav-button-height); width: auto; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.site-nav ul { display: flex; gap: 20px; }
.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.site-nav a:hover { color: var(--text); background: rgba(16, 24, 40, 0.06); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-radius: 10px;
}
.nav-toggle-bar { display: block; height: 2px; margin: 6px 8px; background: var(--text); }

@media (min-width: 801px) {
  .header-inner { flex-direction: row; }
  .site-nav a { display: inline-flex; align-items: center; height: var(--nav-button-height); padding: 0 12px; }
}

@media (max-width: 800px) {
  :root { --header-height: 72px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: fixed; inset: var(--header-height) 0 auto 0; background: var(--surface); border-bottom: 1px solid rgba(16,24,40,0.08); transform: translateY(-120%); transition: transform .25s ease; }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 0; padding: 10px; }
  .site-nav a { padding: 14px; border-radius: 10px; }
}

/* Responsive header logo sizing */
@media (max-width: 800px) {
  .header-inner { height: 72px; }
  .brand-logo { height: 56px; }
}

.hero {
  padding: 6px 0;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58vh;
  overflow: hidden;
}
.hero-inner { text-align: center; }
.hero-inner { position: relative; z-index: 2; will-change: transform; transform: translateY(calc(-1 * var(--hero-shift, 0px))); }
/* Disable previous pseudo-element overlay to avoid layering issues */
.hero::before { content: none; }

/* Hero background that fades in as you scroll */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 220px at 50% -60px, rgba(0, 75, 135, 0.12), transparent 60%),
    radial-gradient(400px 180px at 80% -40px, rgba(0, 95, 77, 0.12), transparent 60%),
    radial-gradient(500px 200px at 20% -40px, rgba(179, 40, 45, 0.08), transparent 60%);
  opacity: var(--hero-bg-opacity, 0);
  pointer-events: none;
  z-index: 1;
}

/* Full-screen blur overlay that fades out on scroll */
.hero-blur {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(var(--overlay-blur, 4px));
  -webkit-backdrop-filter: blur(var(--overlay-blur, 4px));
  /* subtle brand-green tint behind the blur */
  background: rgba(0, 95, 77, 0.12);
  opacity: var(--overlay-opacity, 1);
  transition: opacity 120ms linear;
  pointer-events: none;
  z-index: 0; /* behind hero content */
}

/* Centered hero card that transitions into normal flow */
.hero-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(var(--hero-card-blur, 2px));
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: clamp(16px, 4vw, 28px) clamp(18px, 5vw, 36px);
  max-width: 1040px;
  position: relative;
  z-index: 2; /* above blur overlay */
  margin: 0 auto;
}
.hero-logo {
  width: clamp(160px, 20vw, 280px);
  margin: 0 auto 18px;
  /* Stronger, softer shadow for hero */
  filter: drop-shadow(0 14px 30px rgba(0, 95, 77, 0.38)) drop-shadow(0 3px 8px rgba(16, 24, 40, 0.12));
}

/* When the logo is docked in header, use the header sizing */
.brand .brand-logo, .brand #site-logo { height: var(--nav-button-height); width: auto; }

/* Add a subtle elevated shadow when the logo is docked in the header */
.brand .brand-logo, .brand #site-logo.brand-logo {
  filter: drop-shadow(0 6px 18px rgba(0, 95, 77, 0.28)) drop-shadow(0 2px 6px rgba(16, 24, 40, 0.08));
}
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; margin: 4px 0 10px; }
.hero-divider { width: 100%; max-width: 220px; height: 1px; background: rgba(16,24,40,0.12); margin: 12px auto 14px; }
.hero-ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Scroll cue */
.scroll-cue { position: absolute; bottom: 10px; left: 0; right: 0; display: grid; place-items: center; z-index: 2; }
.scroll-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(0, 95, 77, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 95, 77, 0.5); transform: translateY(0); }
  50% { transform: translateY(3px); }
  100% { box-shadow: 0 0 0 12px rgba(0, 95, 77, 0); transform: translateY(0); }
}

.btn { display: inline-flex; align-items: center; height: var(--nav-button-height); padding: 0 16px; border-radius: 10px; font-weight: 600; letter-spacing: .2px; border: 1px solid transparent; box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: rgba(16,24,40,0.12); color: var(--text); }
.btn-ghost:hover { background: rgba(16,24,40,0.06); }
.btn-light { background: #f1f3f6; color: rgba(16,24,40,0.6); border: 1px solid rgba(16,24,40,0.12); }
.btn-light:hover { background: #e7eaf0; }
.btn-icon { padding: 0 12px; width: var(--nav-button-height); justify-content: center; }
/* Larger button style for contact actions */
.btn-lg { height: 56px; padding: 0 18px; font-size: 18px; border-radius: 12px; }

/* Stylized brand word */
.brand-word {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brand-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.section { padding: 28px 0; }
/* Make the first section after hero tighter */
.hero + .section { padding-top: 14px; }
.section h2 { font-size: clamp(26px, 4.2vw, 34px); margin: 0 0 18px; }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.about-card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: var(--shadow-sm);
}
.about-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: var(--shadow-sm);
}
.about-text {
  display: grid;
  align-content: start;
  max-width: 56ch; /* narrower measure increases vertical length without extra words */
}
.about-text p {
  margin: 0;
  line-height: 1.9;
}
.checklist { display: grid; gap: 10px; }
.checklist li::before { content: "✔"; color: var(--success); margin-right: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(16, 24, 40, 0.16); background: #ffffff; }
.card h3 { margin: 4px 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }

.references { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) {
  .references { grid-template-columns: repeat(2, 1fr); }
}

.reference {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  align-items: start;
}
.reference:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(16, 24, 40, 0.16); background: #ffffff; }
.reference--centered { text-align: center; }
.reference--centered .reference-photo { justify-self: center; }
.reference--centered .reference-body { align-items: center; }

/* Media layout: photo left, text right (on wider screens) */
.reference--media {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .reference--media { grid-template-columns: 100px 1fr; align-items: start; }
  .reference--media .reference-photo { width: 100px; height: 100px; }
}

/* Footer layout: quote first, then a compact footer row with name/title */
.reference--footer .reference-body { gap: 10px; }
.reference--footer figcaption { display: flex; gap: 8px; align-items: baseline; }
.reference--footer .reference-title { color: var(--muted); }
.reference-photo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(16,24,40,0.08);
  background: #e7eaf0;
  justify-self: start;
}
.reference-body { display: grid; gap: 8px; }
.reference blockquote { margin: 0; color: var(--text); }
.reference figcaption { display: grid; gap: 2px; }
.reference-name { font-weight: 700; }
.reference-title { color: var(--muted); font-size: 0.95em; }

.contact-form { display: grid; gap: 12px; }
.contact-actions { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 760px; margin: 0 auto; }
.contact-action { gap: 10px; justify-content: center; width: 100%; }
.contact-action svg { margin-right: 6px; }
@media (min-width: 560px) { .contact-actions { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
label { font-weight: 600; color: var(--text); }
input, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  background: #ffffff;
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.error { color: var(--danger); min-height: 18px; }
.form-actions { display: grid; gap: 10px; align-content: start; }
.small { color: var(--muted); }

.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.footer-logo { height: 1em; width: auto; opacity: 0.95; }
/* Ensure footer text isn't reduced by <small> so logo and text match size */
.site-footer small { font-size: inherit; }

/* Anchor offset for sticky header */
:target { scroll-margin-top: calc(var(--header-height) + 4px); }
/* Increase offset for contact sentinel so Contact becomes active a bit earlier */
#contact-start { display: block; height: 1px; }
#contact-start:target { scroll-margin-top: calc(var(--header-height) + 120px); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav { transition: none; }
}


