/* Mobile-first professional theme for Metraton */
:root {
  --brand: #22B573;
  --brand-dark: #1a8c5b;
  --text: #1b1f23;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --border: #e5e7eb;
  --radius: 12px;
}

/* Global */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; }
.brand-mark {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-link { color: var(--text); padding: .5rem .75rem; border-radius: .5rem; }
.nav-link:hover { background: var(--bg-soft); }
.nav-link.btn { color: #fff; }
.topbar { font-size: .875rem; }
.topbar a:not(.btn) { color: #fff; opacity: .9; }
.topbar a:not(.btn):hover { opacity: 1; }
.bg-brand { background-color: var(--brand); }
.text-brand { color: var(--brand); }

/* Content */
.content { padding: 2rem 0 4.5rem; }
.site-header + .content { margin-top: 1rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Hero */
.hero { margin: 1rem 0 2rem; }
.hero h1 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .75rem;
  font-size: clamp(1.8rem, 3.5vw + .5rem, 3rem);
}
.hero p { color: var(--muted); max-width: 70ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-banner {
  position: relative;
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(34,181,115,.08), rgba(34,181,115,.02));
}
@media (min-width: 768px) { .hero-banner { padding: 5rem 0 4rem; } }
.hero-banner .hero-overlay { position: absolute; inset: 0; background: url('../images/hero.jpg') center/cover no-repeat; opacity: .15; }
.hero-banner h1 { font-weight: 700; line-height: 1.15; margin: 0 0 .75rem; font-size: clamp(1.8rem, 3.5vw + .5rem, 3rem); }
.hero-banner p { color: var(--muted); max-width: 70ch; }
.hero-banner .hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* Buttons (Bootstrap overrides kept subtle) */
.btn-success { background-color: var(--brand); border-color: var(--brand); }
.btn-success:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-success { color: var(--brand); border-color: var(--brand); }
.btn-outline-success:hover { color: #fff; background-color: var(--brand); border-color: var(--brand); }

/* Section cards (used on Home highlights) */
.content h2 { font-size: 1.35rem; margin: 1.25rem 0 .5rem; }
.section-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.section-card + .section-card { margin-top: .75rem; }
.section-card p { margin: .25rem 0 0; color: var(--muted); }

/* Projects grid */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery-item .caption { padding: .5rem .75rem; font-size: .95rem; color: var(--text); font-weight: 600; border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.services-grid { row-gap: 1rem; }

/* Contact form */
.contact-form { max-width: 760px; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) { .contact-form .form-grid { grid-template-columns: 1fr 1fr; } }
.contact-form label { font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form textarea { border-radius: .5rem; border: 1px solid var(--border); }
.contact-form textarea { min-height: 140px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  background: #fff;
  color: var(--muted);
  margin-top: 2rem;
}
.site-footer a { color: var(--brand); text-decoration: none; }

/* Utilities */
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: 100%; }
.feature-card .icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--brand); margin-right: .5rem; }
.navbar { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.navbar-nav .nav-link { font-weight: 600; letter-spacing: .02em; }
.navbar-nav .nav-link:hover { color: var(--brand); }
.hero-pro { position: relative; background: linear-gradient(180deg, rgba(34,181,115,.06), rgba(34,181,115,.02)); padding: 3rem 0; }
@media (min-width: 992px) { .hero-pro { padding: 5rem 0 4rem; } }
.hero-illustration { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; min-height: 240px; }
/* Support div-based carousel slides */
.hero-illustration .carousel-item .slide-bg { height: 360px; background-size: cover; background-position: center; border-radius: 16px; }
.hero-illustration .carousel-item img { height: 360px; object-fit: cover; border-radius: 16px; }
.hero-illustration .carousel-caption { background: rgba(0,0,0,.35); padding: .35rem .6rem; border-radius: .5rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stats .number { font-size: 1.4rem; font-weight: 700; color: var(--brand); }

/* About page layout */
.page-header { padding: 1rem 0 0; margin-bottom: .75rem; }
.page-header h1 { font-weight: 700; font-size: clamp(1.6rem, 2.8vw + .6rem, 2.4rem); margin: 0 0 .25rem; }
.page-header p { color: var(--muted); margin: 0; }

.content-block { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: .75rem; }
.content-block h2 { margin: .25rem 0 .5rem; font-size: 1.25rem; }
.content-block ul { padding-left: 1rem; }

.columns { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 768px) { .columns { grid-template-columns: repeat(2, 1fr); } }
.columns li { background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: .75rem; }
/* Lightbox (project image viewer) */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 2rem; z-index: 2000; }
.lightbox.open { display: flex; }
/* Viewport-fixed content box to keep dimensions consistent */
.lightbox .lightbox-content { position: relative; width: min(92vw, 1100px); height: 72vh; display: inline-block; }
.lightbox .lightbox-content img#lightbox-img { width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); object-fit: contain; }
.lightbox .lightbox-content #lightbox-caption { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; padding: .45rem .7rem; border-radius: 6px; font-size: .95rem; text-align: center; }
.lightbox .lightbox-content .lightbox-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .lightbox-content .lightbox-prev, .lightbox .lightbox-content .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .lightbox-content .lightbox-prev { left: 8px; }
.lightbox .lightbox-content .lightbox-next { right: 8px; }
.lightbox .lightbox-content .lightbox-prev:hover, .lightbox .lightbox-content .lightbox-next:hover { background: rgba(255,255,255,.28); }
@media (max-width: 480px){
  .lightbox { padding: .75rem; }
  .lightbox .lightbox-content { width: 92vw; height: 70vh; }
  .lightbox .lightbox-content .lightbox-prev, .lightbox .lightbox-content .lightbox-next { width: 36px; height: 36px; font-size: 22px; }
  .lightbox .lightbox-content #lightbox-caption { bottom: 6px; font-size: .85rem; padding: .35rem .6rem; }
  .lightbox .lightbox-content .lightbox-close { top: 6px; right: 6px; width: 32px; height: 32px; font-size: 20px; }
}

/* Footer UI polish */
.site-footer { background: #f8f9fb; color: #495057; padding: 2rem 0; margin-top: 2rem; }
.site-footer h6 { color: #212529; }
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .list-unstyled li { margin-bottom: .4rem; }
.site-footer .border-top { border-top: 1px solid rgba(0,0,0,.08)!important; }
@media (max-width: 576px){
  .site-footer .container { text-align: center; }
  .site-footer .row > div { margin-bottom: 1rem; }
}

/* Services page tweaks */
.page .feature-card ul { margin: 0; padding-left: 1rem; color: var(--muted); }
.page .feature-card li { margin: .25rem 0; }
.page .section-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: 100%; }
.feature-card .icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--brand); margin-right: .5rem; }
.navbar { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.navbar-nav .nav-link { font-weight: 600; letter-spacing: .02em; }
.navbar-nav .nav-link:hover { color: var(--brand); }
.hero-pro { position: relative; background: linear-gradient(180deg, rgba(34,181,115,.06), rgba(34,181,115,.02)); padding: 3rem 0; }
@media (min-width: 992px) { .hero-pro { padding: 5rem 0 4rem; } }
.hero-illustration { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; min-height: 240px; }
.hero-illustration img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stats .number { font-size: 1.4rem; font-weight: 700; color: var(--brand); }

/* About page visuals */
.about-hero { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.about-hero .illustration { min-height: 240px; background: url('../images/placeholder-hero.svg') center/cover no-repeat; border-left: 1px solid var(--border); }
.about-hero .copy { padding: 1.25rem; }

.leaders-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px){ .leaders-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px){ .leaders-grid { grid-template-columns: repeat(3, 1fr); } }
.leader-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: 100%; }
.leader-header { display: flex; align-items: center; gap: .75rem; }
.leader-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.leader-role { color: var(--muted); font-size: .95rem; }
.leader-bio { color: var(--text); font-size: .95rem; margin-top: .5rem; }
.social-links { display: flex; gap: .5rem; margin-top: .5rem; }
.social-links a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-soft); color: var(--brand); border: 1px solid var(--border); }
.social-links a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.content-block { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: .75rem; }
.content-block h2 { margin: .25rem 0 .5rem; font-size: 1.25rem; }
.content-block ul { padding-left: 1rem; }

.columns { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 768px) { .columns { grid-template-columns: repeat(2, 1fr); } }
.columns li { background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: .75rem; }
/* Lightbox (project image viewer) */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 2rem; z-index: 2000; }
.lightbox.open { display: flex; }
/* Viewport-fixed content box to keep dimensions consistent */
.lightbox .lightbox-content { position: relative; width: min(92vw, 1100px); height: 72vh; display: inline-block; }
.lightbox .lightbox-content img#lightbox-img { width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); object-fit: contain; }
.lightbox .lightbox-content #lightbox-caption { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; padding: .45rem .7rem; border-radius: 6px; font-size: .95rem; text-align: center; }
.lightbox .lightbox-content .lightbox-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .lightbox-content .lightbox-prev, .lightbox .lightbox-content .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .lightbox-content .lightbox-prev { left: 8px; }
.lightbox .lightbox-content .lightbox-next { right: 8px; }
.lightbox .lightbox-content .lightbox-prev:hover, .lightbox .lightbox-content .lightbox-next:hover { background: rgba(255,255,255,.28); }
@media (max-width: 480px){
  .lightbox { padding: .75rem; }
  .lightbox .lightbox-content { width: 92vw; height: 70vh; }
  .lightbox .lightbox-content .lightbox-prev, .lightbox .lightbox-content .lightbox-next { width: 36px; height: 36px; font-size: 22px; }
  .lightbox .lightbox-content #lightbox-caption { bottom: 6px; font-size: .85rem; padding: .35rem .6rem; }
  .lightbox .lightbox-content .lightbox-close { top: 6px; right: 6px; width: 32px; height: 32px; font-size: 20px; }
}

/* Footer UI polish */
.site-footer { background: #f8f9fb; color: #495057; padding: 2rem 0; margin-top: 2rem; }
.site-footer h6 { color: #212529; }
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .list-unstyled li { margin-bottom: .4rem; }
.site-footer .border-top { border-top: 1px solid rgba(0,0,0,.08)!important; }
@media (max-width: 576px){
  .site-footer .container { text-align: center; }
  .site-footer .row > div { margin-bottom: 1rem; }
}

/* Footer CTA: force white text and no underline */
.site-footer a.btn-cta, .site-footer a.btn-cta:hover { color: #fff !important; text-decoration: none !important; }
/* CTA button: consistent look across the site */
.btn-cta { background-color: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-cta:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
/* In topbar (green background), invert to ensure contrast */
.topbar .btn-cta { background-color: #fff; border-color: #fff; color: var(--brand); }
.topbar .btn-cta:hover { background-color: #f3f4f6; border-color: #f3f4f6; color: var(--brand-dark); }
.topbar .btn.text-brand { color: var(--brand); }

/* Professional UI polish — design tokens, motion, and surfaces */
:root {
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 24px rgba(11, 22, 22, .10);
  --ring: 0 0 0 3px rgba(34,181,115,.18);
}

/* Smooth motion for interactive elements */
a, button, .btn, .feature-card, .leader-card, .section-card, .gallery-item, .nav-link, .form-control { transition: all .2s ease; }

/* Elevated surfaces and subtle lift on hover */
.feature-card, .leader-card, .section-card, .gallery-item { box-shadow: var(--shadow-sm); }
.feature-card:hover, .leader-card:hover, .gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(34,181,115,.25); }

/* Accessible focus ring */
.btn:focus, .nav-link:focus, .form-control:focus, .btn-cta:focus { box-shadow: var(--ring); outline: none; }

/* Buttons — refined shape and hover weight */
.btn { border-radius: .6rem; }
.btn-success { box-shadow: var(--shadow-sm); }
.btn-success:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-success { border-width: 1.5px; }

/* Navbar — understated active indicator */
.navbar-nav .nav-link { position: relative; }
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .6rem; right: .6rem; bottom: 0;
  height: 2px; background: transparent; border-radius: 2px;
  transition: background .2s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { background: var(--brand); }

/* Hero — modern framing and overlay */
.hero-banner { border-radius: var(--radius-lg); overflow: hidden; }
.hero-banner .hero-overlay { opacity: .18; filter: saturate(1.05); }

/* Forms — clear focus and readability */
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }

/* Footer — slightly more refined surface */
.site-footer { background: linear-gradient(180deg, #f9fbfc, #f4f6f8); }
.site-footer .border-top { border-top-color: rgba(0,0,0,.06)!important; }

/* Page Loader */
.page-loader { position: fixed; inset: 0; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 3000; transition: opacity .4s ease, visibility .4s ease; }
.page-loader .loader { position: relative; width: 96px; height: 96px; }
.page-loader .loader-logo { width: 64px; height: 64px; border-radius: 12px; box-shadow: var(--shadow-sm); animation: pulse 1.2s ease-in-out infinite; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.page-loader .loader-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--bg-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.06); } }
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand, #22B573);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1030; /* above footer and header */
}
.back-to-top:hover { opacity: 0.9; }
.back-to-top i { font-size: 1rem; }

/* Show when active */
.back-to-top.show { display: inline-flex; }
.lightbox .lightbox-content .lightbox-prev:hover, .lightbox .lightbox-content .lightbox-next:hover { background: rgba(255,255,255,.28); }
@media (max-width: 480px){
  .lightbox { padding: .75rem; }
  .lightbox .lightbox-content { width: 92vw; height: 70vh; }
  .lightbox .lightbox-content .lightbox-prev, .lightbox .lightbox-content .lightbox-next { width: 36px; height: 36px; font-size: 22px; }
  .lightbox .lightbox-content #lightbox-caption { bottom: 6px; font-size: .85rem; padding: .35rem .6rem; }
  .lightbox .lightbox-content .lightbox-close { top: 6px; right: 6px; width: 32px; height: 32px; font-size: 20px; }
}

/* Footer UI polish */
.site-footer { background: #f8f9fb; color: #495057; padding: 2rem 0; margin-top: 2rem; }
.site-footer h6 { color: #212529; }
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .list-unstyled li { margin-bottom: .4rem; }
.site-footer .border-top { border-top: 1px solid rgba(0,0,0,.08)!important; }
@media (max-width: 576px){
  .site-footer .container { text-align: center; }
  .site-footer .row > div { margin-bottom: 1rem; }
}

/* Footer CTA: force white text and no underline */
.site-footer a.btn-cta, .site-footer a.btn-cta:hover { color: #fff !important; text-decoration: none !important; }
/* CTA button: consistent look across the site */
.btn-cta { background-color: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-cta:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
/* In topbar (green background), invert to ensure contrast */
.topbar .btn-cta { background-color: #fff; border-color: #fff; color: var(--brand); }
.topbar .btn-cta:hover { background-color: #f3f4f6; border-color: #f3f4f6; color: var(--brand-dark); }
.topbar .btn.text-brand { color: var(--brand); }

/* Professional UI polish — design tokens, motion, and surfaces */
:root {
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 24px rgba(11, 22, 22, .10);
  --ring: 0 0 0 3px rgba(34,181,115,.18);
}

/* Smooth motion for interactive elements */
a, button, .btn, .feature-card, .leader-card, .section-card, .gallery-item, .nav-link, .form-control { transition: all .2s ease; }

/* Elevated surfaces and subtle lift on hover */
.feature-card, .leader-card, .section-card, .gallery-item { box-shadow: var(--shadow-sm); }
.feature-card:hover, .leader-card:hover, .gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(34,181,115,.25); }

/* Accessible focus ring */
.btn:focus, .nav-link:focus, .form-control:focus, .btn-cta:focus { box-shadow: var(--ring); outline: none; }

/* Buttons — refined shape and hover weight */
.btn { border-radius: .6rem; }
.btn-success { box-shadow: var(--shadow-sm); }
.btn-success:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-success { border-width: 1.5px; }

/* Navbar — understated active indicator */
.navbar-nav .nav-link { position: relative; }
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .6rem; right: .6rem; bottom: 0;
  height: 2px; background: transparent; border-radius: 2px;
  transition: background .2s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { background: var(--brand); }

/* Hero — modern framing and overlay */
.hero-banner { border-radius: var(--radius-lg); overflow: hidden; }
.hero-banner .hero-overlay { opacity: .18; filter: saturate(1.05); }

/* Forms — clear focus and readability */
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }

/* Footer — slightly more refined surface */
.site-footer { background: linear-gradient(180deg, #f9fbfc, #f4f6f8); }
.site-footer .border-top { border-top-color: rgba(0,0,0,.06)!important; }

/* Page Loader */
.page-loader { position: fixed; inset: 0; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 3000; transition: opacity .4s ease, visibility .4s ease; }
.page-loader .loader { position: relative; width: 96px; height: 96px; }
.page-loader .loader-logo { width: 64px; height: 64px; border-radius: 12px; box-shadow: var(--shadow-sm); animation: pulse 1.2s ease-in-out infinite; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.page-loader .loader-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--bg-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.06); } }
/* Carousel caption text sizing */
.hero-illustration .carousel-caption {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  line-height: 1.35;
}
.hero-illustration .carousel-caption h5,
.hero-illustration .carousel-caption p {
  font-size: inherit;
  margin-bottom: .25rem;
}
@media (max-width: 576px) {
  .hero-illustration .carousel-caption { font-size: 0.85rem; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stats .number { font-size: 1.4rem; font-weight: 700; color: var(--brand); }

/* About page visuals */
.about-hero { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.about-hero .illustration { min-height: 240px; background: url('../images/placeholder-hero.svg') center/cover no-repeat; border-left: 1px solid var(--border); }
.about-hero .copy { padding: 1.25rem; }

.leaders-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px){ .leaders-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px){ .leaders-grid { grid-template-columns: repeat(3, 1fr); } }
.leader-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: 100%; }
.leader-header { display: flex; align-items: center; gap: .75rem; }
.leader-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.leader-role { color: var(--muted); font-size: .95rem; }
.leader-bio { color: var(--text); font-size: .95rem; margin-top: .5rem; }
.social-links { display: flex; gap: .5rem; margin-top: .5rem; }
.social-links a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-soft); color: var(--brand); border: 1px solid var(--border); }
.social-links a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.content-block { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: .75rem; }
.content-block h2 { margin: .25rem 0 .5rem; font-size: 1.25rem; }
.content-block ul { padding-left: 1rem; }

.columns { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 768px) { .columns { grid-template-columns: repeat(2, 1fr); } }
.columns li { background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: .75rem; }
/* Lightbox (project image viewer) */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 2rem; z-index: 2000; }
.lightbox.open { display: flex; }
/* Viewport-fixed content box to keep dimensions consistent */
.lightbox .lightbox-content { position: relative; width: min(92vw, 1100px); height: 72vh; display: inline-block; }
.lightbox .lightbox-content img#lightbox-img { width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); object-fit: contain; }
.lightbox .lightbox-content #lightbox-caption { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; padding: .45rem .7rem; border-radius: 6px; font-size: .95rem; text-align: center; }
.lightbox .lightbox-content .lightbox-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .lightbox-content .lightbox-prev, .lightbox .lightbox-content .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .lightbox-content .lightbox-prev { left: 8px; }
.lightbox .lightbox-content .lightbox-next { right: 8px; }
.lightbox .lightbox-content .lightbox-prev:hover, .lightbox .lightbox-content .lightbox-next:hover { background: rgba(255,255,255,.28); }
@media (max-width: 480px){
  .lightbox { padding: .75rem; }
  .lightbox .lightbox-content { width: 92vw; height: 70vh; }
  .lightbox .lightbox-content .lightbox-prev, .lightbox .lightbox-content .lightbox-next { width: 36px; height: 36px; font-size: 22px; }
  .lightbox .lightbox-content #lightbox-caption { bottom: 6px; font-size: .85rem; padding: .35rem .6rem; }
  .lightbox .lightbox-content .lightbox-close { top: 6px; right: 6px; width: 32px; height: 32px; font-size: 20px; }
}

/* Footer UI polish */
.site-footer { background: #f8f9fb; color: #495057; padding: 2rem 0; margin-top: 2rem; }
.site-footer h6 { color: #212529; }
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .list-unstyled li { margin-bottom: .4rem; }
.site-footer .border-top { border-top: 1px solid rgba(0,0,0,.08)!important; }
@media (max-width: 576px){
  .site-footer .container { text-align: center; }
  .site-footer .row > div { margin-bottom: 1rem; }
}

/* Footer CTA: force white text and no underline */
.site-footer a.btn-cta, .site-footer a.btn-cta:hover { color: #fff !important; text-decoration: none !important; }
/* CTA button: consistent look across the site */
.btn-cta { background-color: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-cta:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
/* In topbar (green background), invert to ensure contrast */
.topbar .btn-cta { background-color: #fff; border-color: #fff; color: var(--brand); }
.topbar .btn-cta:hover { background-color: #f3f4f6; border-color: #f3f4f6; color: var(--brand-dark); }
.topbar .btn.text-brand { color: var(--brand); }

/* Professional UI polish — design tokens, motion, and surfaces */
:root {
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 24px rgba(11, 22, 22, .10);
  --ring: 0 0 0 3px rgba(34,181,115,.18);
}

/* Smooth motion for interactive elements */
a, button, .btn, .feature-card, .leader-card, .section-card, .gallery-item, .nav-link, .form-control { transition: all .2s ease; }

/* Elevated surfaces and subtle lift on hover */
.feature-card, .leader-card, .section-card, .gallery-item { box-shadow: var(--shadow-sm); }
.feature-card:hover, .leader-card:hover, .gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(34,181,115,.25); }

/* Accessible focus ring */
.btn:focus, .nav-link:focus, .form-control:focus, .btn-cta:focus { box-shadow: var(--ring); outline: none; }

/* Buttons — refined shape and hover weight */
.btn { border-radius: .6rem; }
.btn-success { box-shadow: var(--shadow-sm); }
.btn-success:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-success { border-width: 1.5px; }

/* Navbar — understated active indicator */
.navbar-nav .nav-link { position: relative; }
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .6rem; right: .6rem; bottom: 0;
  height: 2px; background: transparent; border-radius: 2px;
  transition: background .2s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { background: var(--brand); }

/* Hero — modern framing and overlay */
.hero-banner { border-radius: var(--radius-lg); overflow: hidden; }
.hero-banner .hero-overlay { opacity: .18; filter: saturate(1.05); }

/* Forms — clear focus and readability */
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }

/* Footer — slightly more refined surface */
.site-footer { background: linear-gradient(180deg, #f9fbfc, #f4f6f8); }
.site-footer .border-top { border-top-color: rgba(0,0,0,.06)!important; }

/* Page Loader */
.page-loader { position: fixed; inset: 0; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 3000; transition: opacity .4s ease, visibility .4s ease; }
.page-loader .loader { position: relative; width: 96px; height: 96px; }
.page-loader .loader-logo { width: 64px; height: 64px; border-radius: 12px; box-shadow: var(--shadow-sm); animation: pulse 1.2s ease-in-out infinite; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.page-loader .loader-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--bg-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.06); } }