/* ------------------------------------------------------------ tokens */
:root {
  --brand: #0a4a23;
  --brand-600: #0f6b30;
  --brand-400: #17914a;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f3f8f4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 400 16px/1.65 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-400); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; line-height: 1.2; transition: .2s; white-space: nowrap;
}
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand); color: #fff; }
.btn--accent { background: var(--accent); color: #1f1300; }
.btn--accent:hover { background: var(--accent-600); color: #1f1300; }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand); }
.btn--outline { border-color: var(--line); color: var(--brand-600); background: #fff; }
.btn--outline:hover { border-color: var(--brand-400); }
.btn--block { display: flex; width: 100%; margin-top: 10px; }
.link { font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------ topbar & header */
.topbar { background: var(--brand); color: #cfe9d8; font-size: 14px; }
.topbar a { color: inherit; }
.topbar a:hover, .topbar strong { color: #fff; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.lang a.is-active { background: rgba(255, 255, 255, .16); color: #fff; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-400), var(--brand)); color: #fff; font-weight: 800; font-size: 22px; }
.brand__text { font-weight: 800; font-size: 20px; letter-spacing: .02em; line-height: 1.1; }
.brand__text small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { display: block; padding: 10px 14px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav button:hover, .nav .is-active { color: var(--brand-400); }
.nav .has-sub { position: relative; }
.nav .has-sub > button::after { content: "▾"; margin-left: 6px; font-size: 11px; opacity: .6; }
.nav .has-sub > ul {
  position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav .has-sub:hover > ul, .nav .has-sub:focus-within > ul, .nav .has-sub.is-open > ul { opacity: 1; visibility: visible; transform: none; }
.nav .has-sub > ul a { font-weight: 500; }
.nav .has-sub > ul a:hover { background: var(--tint); }
.nav .nav__cta { background: var(--brand-600); color: #fff; padding-inline: 20px; border-radius: 999px; margin-left: 8px; }
.nav .nav__cta:hover, .nav .nav__cta.is-active { background: var(--brand); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 10px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 0 6px; transition: .2s; }
.burger span:last-child { margin: 0; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: clamp(340px, 46vw, 620px); background: var(--brand); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 36, 18, .82) 0%, rgba(5, 36, 18, .35) 55%, transparent 100%); }
.hero__text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; }
.hero__title { font-size: clamp(26px, 4.4vw, 54px); font-weight: 800; line-height: 1.12; max-width: 16ch; margin: 0 0 .35em; text-wrap: balance; }
.hero__sub { font-size: clamp(15px, 1.6vw, 19px); max-width: 46ch; color: #dcfce7; margin-bottom: 1.4em; }
.hero__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 28px; height: 5px; border: 0; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: .2s; }
.hero__dots button.is-active { background: var(--accent); width: 44px; }

/* ------------------------------------------------------------ category tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: -44px; position: relative; z-index: 3; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 124px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); border-bottom: 3px solid transparent; transition: .2s; }
.tile:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--brand-600); }
.tile__no { font-size: 13px; font-weight: 700; color: var(--accent-600); }
.tile__name { font-weight: 700; line-height: 1.3; flex: 1; }
.tile__arrow { color: var(--muted); }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--brand); }
.section--dark .section__title { color: #fff; }
.section--dark .link { color: #fcd34d; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__title { font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.section__title--center { text-align: center; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-600); margin-bottom: 8px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about__text .section__title { margin-bottom: 16px; }
.about__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--tint); }
.about__media img, .about__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 56px); }
.stat { text-align: center; padding: 26px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.stat__num, .stat__suffix { font-size: clamp(32px, 4vw, 46px); font-weight: 800; color: var(--brand-600); line-height: 1; }
.stat p { margin: 8px 0 0; color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------ cards & grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph { display: grid; place-items: center; height: 100%; font-size: 48px; font-weight: 800; color: #c3dccb; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--accent); color: #1f1300; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__title { font-size: 17px; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand-400); }
.card__text { font-size: 14.5px; color: var(--muted); margin: 0; }

/* horizontal rail (carousel) */
.rail { position: relative; }
.rail__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.rail__btn { position: absolute; top: 34%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 24px; line-height: 1; color: var(--brand); }
.rail__btn--prev { left: -18px; }
.rail__btn--next { right: -18px; }
.rail__btn:disabled { opacity: 0; pointer-events: none; }

.partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partners__list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.partners__list img { width: 140px; height: 70px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.partners__list li:hover img { filter: none; opacity: 1; }

/* ------------------------------------------------------------ page head & layout */
.pagehead { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 100%); color: #dcfce7; padding-block: clamp(28px, 5vw, 56px); }
.pagehead h1 { color: #fff; font-size: clamp(24px, 3.6vw, 40px); margin: 0; max-width: 28ch; }
.pagehead__lead { margin: 12px 0 0; max-width: 70ch; }
.crumbs ol { display: flex; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .5; }
.crumbs a { color: #bbf7d0; }
.crumbs a:hover { color: #fff; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.side { display: grid; gap: 20px; position: sticky; top: 96px; }
.side__box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side__box--cta { background: var(--tint); border-color: transparent; }
.side__title { font-weight: 700; color: var(--ink); font-size: 17px; margin-bottom: 10px; }
.side__box li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.side__box li a:hover { background: var(--tint); }
.side__box li a.is-active { background: var(--brand-600); color: #fff; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span { min-width: 42px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.pager span { background: var(--brand-600); color: #fff; border-color: transparent; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ------------------------------------------------------------ article */
.article__meta { color: var(--muted); font-size: 14px; }
.article__cover { width: 100%; border-radius: var(--radius); margin-bottom: 24px; aspect-ratio: 16 / 9; object-fit: cover; }
.article__h2 { font-size: 22px; margin: 36px 0 16px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.specs div { background: #fff; padding: 14px 18px; }
.specs dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

.prose { font-size: 17px; overflow-wrap: break-word; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: 10px; margin-block: 1em; }
.prose figure { margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 22, 12, .92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; }
.lightbox__nav--next { right: 16px; top: 50%; }

/* ------------------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(23, 145, 74, .2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__err { color: #b91c1c; font-weight: 500; font-size: 13.5px; }
.form__hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.alert { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 12px 16px; border-radius: 10px; margin: 0; }
.offices .section__title { margin-bottom: 16px; }
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs__nav button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--text); }
.tabs__nav button[aria-selected="true"] { background: var(--brand-600); color: #fff; border-color: transparent; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 8px; }

/* ------------------------------------------------------------ cta, footer, fab */
.cta { background: linear-gradient(120deg, var(--brand-600), var(--brand)); color: #dcfce7; padding-block: clamp(32px, 5vw, 56px); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 6px; }
.cta p { margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer { background: #06200f; color: #a9c4b3; font-size: 15px; }
.footer a { color: #d7eadd; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr; grid-auto-flow: column; grid-auto-columns: 1.2fr; gap: 32px 48px; padding-block: 48px; }
.footer__brand { color: #fff; font-weight: 800; font-size: 19px; }
.footer__title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer li { margin-bottom: 8px; }
.footer p { margin-bottom: 8px; }
.footer__social { display: flex; gap: 14px; margin-top: 14px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: 14px; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1f1300; font-size: 24px; box-shadow: 0 8px 24px rgba(245, 158, 11, .45); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); } 60% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); } }

.notfound { text-align: center; }
.notfound__code { font-size: clamp(72px, 14vw, 140px); font-weight: 800; color: var(--tint); line-height: 1; margin: 0; }

/* Content is always visible by default; entering the viewport only adds a
   short rise, so nothing depends on JavaScript to be readable. */
.js .reveal.is-in { animation: rise .5s ease-out; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
  .burger { display: block; }
  /* Drops down from the sticky header (the header's backdrop-filter makes it
     the containing block, so the panel is positioned against it). */
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 64px); background: #fff; padding: 12px var(--gutter) 24px; overflow-y: auto; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(15, 23, 42, .18); }
  .nav.is-open { display: block; }
  .header__in { position: static; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button { width: 100%; text-align: left; padding: 13px 14px; font-size: 16px; }
  .nav .has-sub > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; min-width: 0; }
  .nav .has-sub.is-open > ul { display: block; }
  .nav .nav__cta { margin: 12px 0 0; text-align: center; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rail__track > .card { flex-basis: calc((100% - 24px) / 2); }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
}
@media (max-width: 639px) {
  .hide-sm { display: none; }
  .header__in { min-height: 64px; }
  .tiles { grid-template-columns: repeat(2, 1fr); margin-top: -28px; gap: 10px; }
  .tile { min-height: 104px; padding: 14px; }
  .about, .contact, .form__row { grid-template-columns: 1fr; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .rail__track > .card { flex-basis: 82%; }
  .rail__btn { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; grid-auto-flow: row; gap: 24px; padding-block: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Long brand names: tighten the header on small laptops so the menu still fits */
@media (min-width: 1024px) and (max-width: 1279px) {
  .brand { gap: 10px; }
  .brand__text { font-size: 17px; white-space: nowrap; }
  .brand__text small { display: none; }
  .nav > ul { gap: 0; }
  .nav a, .nav button { padding-inline: 9px; font-size: 14.5px; }
  .nav .nav__cta { padding-inline: 16px; margin-left: 4px; }
}

/* Phones: the tagline does not fit beside the logo and the menu button */
@media (max-width: 639px) {
  .brand { min-width: 0; gap: 10px; }
  .brand img { height: 38px; }
  .brand__text { font-size: 18px; white-space: nowrap; }
  .brand__text small { display: none; }
}
