/* Root tokens */
:root {
    --space-000: 0; --space-050: 4px; --space-100: 8px; --space-150: 12px; --space-200: 16px;
    --space-300: 24px; --space-400: 32px; --space-500: 40px; --space-600: 48px; --space-700: 56px;
    --space-800: 64px; --space-900: 80px; --space-1000: 96px;

    --container-max: 1200px; --container-pad: var(--space-300);

    --color-brand-600: #2BA24C; --color-brand-700: #1F7E3A;
    --color-text: #0F172A; --color-muted: #475569; --color-subtle: #94A3B8;
    --color-bg: #FFFFFF; --color-surface: #F8FAFC; --color-border: #E2E8F0;

    --fs-display: clamp(30px, 4vw, 44px); --lh-display: 1.1;
    --fs-h2: clamp(22px, 2.5vw, 30px); --lh-h2: 1.25;
    --fs-h3: clamp(18px, 2vw, 22px); --lh-h3: 1.3;
    --fs-body: 16px; --lh-body: 1.6;

    --radius-md: 12px; --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06); --shadow-md: 0 12px 35px rgba(15, 23, 42, .08);
}

/* Reset/base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--fs-body); line-height: var(--lh-body); background: var(--color-bg); color: var(--color-text); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
p { margin: 0 0 var(--space-200); }
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); width: 100%; }
.site__main { padding-top: 72px; }

/* Header */
.header{ position: fixed; top: 0; left: 0; right: 0; background: #fff; z-index: 50; border-bottom: 1px solid rgba(15,23,42,.06); }
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-300); min-height:72px; }
.header__brand{ display:flex; flex-direction:column; line-height:1.1; }
.header__logo-mark{ font-weight:700; color:var(--color-brand-600); }
.header__tagline{ font-size:.68rem; color:var(--color-muted); }
.header__nav{ display:flex; }
.header__nav-list{ display:flex; gap:var(--space-200); list-style:none; margin:0; padding:0; }
.header__nav-link{ display:block; padding:.5rem .85rem; border-radius:999px; font-weight:500; font-size:.9rem; color:var(--color-muted); transition:background .2s,color .2s; }
.header__nav-link:hover, .header__nav-link:focus-visible{ background:rgba(43,162,76,.1); color:var(--color-text); }
.header__nav-link--active{ background:rgba(43,162,76,.1); color:var(--color-text); }
.header__actions{ display:flex; align-items:center; gap:var(--space-200); }
.header__menu-toggle{ display:none; flex-direction:column; gap:4px; background:none; border:0; cursor:pointer; }
.header__menu-toggle span{ width:24px; height:3px; background:var(--color-text); border-radius:3px; transition: transform .2s, opacity .2s; }
.header__menu-toggle--active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.header__menu-toggle--active span:nth-child(2){ opacity:0; }
.header__menu-toggle--active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:transparent; border:1px solid transparent; border-radius:9999px; padding:.5rem 1.25rem; font-weight:600; cursor:pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space:nowrap; }
.btn--primary{ background:var(--color-brand-600); color:#fff; box-shadow:0 10px 35px rgba(43,162,76,.3); }
.btn--primary:hover{ background:var(--color-brand-700); transform:translateY(-1px); }
.btn--sm{ padding:.45rem .95rem; font-size:.85rem; }

/* Page head */
.page-head{ padding: var(--space-900) 0 var(--space-500); }
.page-head--narrow .container{ max-width: 900px; }
.page-head__title{ font-size: var(--fs-display); line-height: var(--lh-display); margin-bottom: var(--space-300); }
.page-head__lede{ color: var(--color-muted); max-width: 58rem; }

/* Feature image */
.feature{ padding-bottom: var(--space-800); }
.feature__media{ background:#fff; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-md); }
.feature__image{ width:100%; height:auto; object-fit:cover; }

/* Team building sections */
.tb{ padding: var(--space-800) 0; }
.tb__inner{ display:grid; gap: var(--space-500); align-items:center; }
.tb__title{ font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--space-300); }
.tb__body{ color: var(--color-muted); }

/* Split utility */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-500); }

/* --------- GALLERY (reusable) --------- */
.gallery{ position:relative; aspect-ratio:16/9; min-height:320px; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-md); background:#0001; }
.gallery__slide{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition: opacity .6s ease; }
.gallery__slide.is-active{ opacity:1; }

.gallery__thumbs{
    position:absolute; left:0; right:0; bottom:0; display:flex; align-items:center; gap:8px;
    padding:10px 48px; /* space for arrows */
    background: linear-gradient(to top, rgba(0,0,0,.48), rgba(0,0,0,.24) 40%, rgba(0,0,0,0) 75%);
}
.gallery__track{
    --thumb:72px;
    display:flex; gap:8px; overflow:auto; scroll-behavior:smooth; flex:1 1 auto; padding-bottom:4px;
}
.gallery__track::-webkit-scrollbar{ display:none; }
.gallery.is-dragging .gallery__track{ scroll-behavior:auto; cursor:grabbing; }

.gallery__thumb{
    flex:0 0 var(--thumb); width:var(--thumb); height:var(--thumb);
    border-radius:10px; object-fit:cover; opacity:.75; border:2px solid transparent; cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,.25); background:#fff1;
}
.gallery__thumb.is-active{ opacity:1; border-color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.35); }

.gallery__arrow{
    position:absolute; bottom:calc(10px + 36px);
    width:36px; height:36px; border-radius:999px; border:0; background:rgba(0,0,0,.55); color:#fff;
    display:grid; place-items:center; font-size:24px; line-height:1; cursor:pointer;
}
.gallery__arrow--prev{ left:8px; }
.gallery__arrow--next{ right:8px; }
.gallery__arrow:hover{ background:rgba(0,0,0,.7); }

/* Related */
.related{ padding: var(--space-800) 0 var(--space-900); background:#fff; }
.section__head{ margin-bottom: var(--space-400); }
.section__title{ font-size: var(--fs-h2); margin: 0 0 var(--space-200); }
.related__list{ display:grid; gap: var(--space-300); }
.grid--cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

.post-card{ background:#fff; border-radius: var(--radius-md); border:1px solid rgba(148,163,184,.35); overflow:hidden; display:flex; flex-direction:column; }
.post-card__thumb{ width:100%; height:210px; object-fit:cover; }
.post-card__meta{ padding: var(--space-300); display:flex; flex-direction:column; gap: var(--space-150); }
.post-card__title a{ font-weight:600; line-height:1.4; }
.post-card__byline{ font-size:.8rem; color: var(--color-subtle); }

/* Footer & WhatsApp */
.footer{ background:#2c7a3f; padding: var(--space-700) 0; color:#fff; }
.footer__inner{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-300); flex-wrap:wrap; }
.footer__links{ list-style:none; display:flex; gap:var(--space-200); padding:0; margin:0; flex-wrap:wrap; }
.footer__link{ font-size:.85rem; color: rgba(255,255,255,.9); }
.footer__copy{ width:100%; font-size:.78rem; opacity:.7; }

.whatsapp-btn{ position:fixed; bottom:24px; right:24px; background:#25D366; color:#fff; padding:.75rem 1.2rem; border-radius:999px; font-weight:600; box-shadow:0 10px 30px rgba(0,0,0,.25); z-index:100; transition: transform .15s; }
.whatsapp-btn:hover{ transform: translateY(-2px); }

/* Responsive */
@media (max-width:1100px){ :root{ --container-pad: var(--space-200); } }
@media (max-width:992px){
    .header__nav{ position:absolute; top:72px; right:0; width:min(260px,100vw); background:#fff; border-left:1px solid rgba(148,163,184,.3); border-bottom:1px solid rgba(148,163,184,.3); border-radius:0 0 0 16px; transform:translateX(100%); transition:transform .2s; box-shadow:0 18px 35px rgba(15,23,42,.12); }
    .header__nav--open{ transform:translateX(0); }
    .header__nav-list{ flex-direction:column; gap:0; }
    .header__nav-link{ border-radius:0; padding:1rem 1.25rem; }
    .header__menu-toggle{ display:flex; }

    .split{ grid-template-columns:1fr; }
    .grid--cols-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
    .page-head{ padding-top: var(--space-800); }
    .grid--cols-3{ grid-template-columns:1fr; }
    .feature{ padding-bottom: var(--space-700); }
    .tb{ padding: var(--space-700) 0; }
    .whatsapp-btn{ right:16px; bottom:16px; }
    .gallery{ aspect-ratio: 4/3; }
    .gallery__track{ --thumb:64px; }
}
@media (prefers-reduced-motion:reduce){
    .gallery__slide{ transition:none; }
    .gallery__track{ scroll-behavior:auto; }
}
