/* ===== 1. BRAND VALUES: change these and the whole site updates ===== */
:root {
  --green-dark: #1B4332;
  --green-accent: #52B788;
  --charcoal: #1C1F1D;
  --off-white: #F8F9FA;
  --white: #ffffff;
  --grey: #5b615e;
  --line: #e3e6e4;
  --max: 72rem;
}

/* ===== 2. RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
body { font-family: "Inter", Arial, sans-serif; font-size: 1.0625rem; color: var(--charcoal); background: var(--white); line-height: 1.6; }
a { color: inherit; }
ul.plain { list-style: none; }

/* ===== 3. TYPE: headings use the logo font, Montserrat Bold Italic in caps ===== */
h1, h2, h3, .button, .tag, .stats strong, .login, .menu > li > a {
  font-family: "Montserrat", Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.section p + p, .prose p + p { margin-top: 1rem; }

/* ===== 4. HEADER AND MENU ===== */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; background: var(--charcoal); }
.logo img { height: 44px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.menu { list-style: none; display: flex; gap: 1.25rem; }
.menu > li { position: relative; }
.menu a { color: var(--white); text-decoration: none; display: block; }
.menu > li > a { font-size: 0.85rem; padding: 0.75rem 0; }
.menu > li.active > a, .menu a:hover { color: var(--green-accent); }
/* Drop-down lists: hidden until you hover or tab into the menu item */
.sub { list-style: none; position: absolute; top: 100%; left: -1rem; min-width: 16rem; background: var(--charcoal); border-top: 3px solid var(--green-accent); padding: 0.5rem 0; display: none; box-shadow: 0 12px 24px rgba(0,0,0,0.25); }
.sub a { padding: 0.5rem 1rem; font-size: 0.95rem; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.login { color: var(--white); text-decoration: none; border: 2px solid var(--green-accent); padding: 0.45rem 0.9rem; font-size: 0.85rem; white-space: nowrap; }
.login span, .button span { display: inline-block; transition: transform 0.2s; }
.login:hover span, .button:hover span { transform: translateX(4px); }
.menu-toggle { display: none; background: none; color: var(--white); border: 2px solid var(--white); padding: 0.4rem 0.8rem; font: inherit; cursor: pointer; }

/* Phone menu: one button opens the whole menu as a list */
@media (max-width: 960px) {
  .logo img { height: 34px; }
  .menu-toggle { display: block; }
  .site-header { flex-wrap: wrap; }
  .site-header nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 1rem; }
  .nav-open .site-header nav { display: flex; }
  .menu { flex-direction: column; gap: 0; width: 100%; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0.5rem 1rem; min-width: 0; }
  .sub a { padding: 0.3rem 0; color: #c9cfcc; }
}

/* ===== 5. BUTTONS ===== */
.button { display: inline-block; background: var(--green-accent); color: var(--charcoal); padding: 0.85rem 1.5rem; text-decoration: none; font-size: 0.95rem; min-height: 44px; }
.button:hover { background: var(--white); }
.button.ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.button.ghost:hover { background: var(--white); color: var(--charcoal); }
.button.dark { background: var(--green-dark); color: var(--white); }
.button.dark:hover { background: var(--charcoal); }

/* ===== 6. HERO: video or photo behind a dark green overlay ===== */
.hero { position: relative; min-height: 48vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--green-dark); }
.hero-home { min-height: 82vh; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem 3.5rem; width: 100%; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.05; max-width: 18ch; margin-bottom: 1rem; }
.hero-home h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); max-width: 14ch; }
.hero p { max-width: 40rem; font-size: 1.15rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; color: #cfe8db; }
.breadcrumb a { color: #cfe8db; }

/* ===== 7. STATS ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); background: var(--charcoal); color: var(--white); }
.stats div { padding: 2rem 1.5rem; border-left: 4px solid var(--green-accent); }
.stats strong { display: block; font-size: 2.6rem; color: var(--green-accent); line-height: 1; margin-bottom: 0.4rem; }

/* ===== 8. SECTIONS, CARDS AND LAYOUTS ===== */
.section { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section.tight { padding-top: 2rem; }
.alt { background: var(--off-white); }
.lead { color: var(--grey); max-width: 44rem; margin-bottom: 2.5rem; font-size: 1.15rem; }
.prose { max-width: 46rem; }
.prose p, .prose li { color: #353a37; }
.prose ul { margin: 1rem 0 0 1.25rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: var(--off-white); padding: 1.75rem; border-top: 4px solid var(--green-accent); text-decoration: none; display: block; }
.alt .card { background: var(--white); }
a.card:hover { border-top-color: var(--green-dark); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card p { color: var(--grey); }
.card .more { display: inline-block; margin-top: 0.75rem; color: var(--green-dark); font-weight: 600; }
.split { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; }
.split video, .split img { width: 100%; }
.specs { list-style: none; columns: 2 14rem; column-gap: 2rem; }
.specs li { padding: 0.5rem 0 0.5rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; break-inside: avoid; }
.specs li::before, .checks li::before { content: "//"; position: absolute; left: 0; color: var(--green-accent); font-weight: 700; font-style: italic; }
.specs strong { display: block; }
.note { background: var(--off-white); border-left: 4px solid var(--green-accent); padding: 1.25rem 1.5rem; color: var(--grey); max-width: 46rem; }

/* ===== 9. PROCESS STEPS ===== */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-family: "Montserrat", Arial, sans-serif; font-style: italic; font-weight: 700; font-size: 2rem; color: var(--green-accent); }
.steps p { color: var(--grey); }

/* ===== 10. PROJECTS AND GALLERIES ===== */
.projects { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); margin-top: 2rem; }
.project img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.project p { color: var(--grey); }
.tag { color: var(--green-dark) !important; font-size: 0.8rem; margin-bottom: 0.3rem; }
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin-top: 1.5rem; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ===== 11. CLIENT LOGOS AND TESTIMONIAL ===== */
.logos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); align-items: center; margin-top: 2rem; }
.logos img { width: 100%; max-width: 9rem; margin: 0 auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.logos img:hover { filter: none; opacity: 1; }
.testimonial { max-width: 50rem; margin: 3.5rem auto 0; text-align: center; }
.testimonial blockquote { font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.4; }
.testimonial blockquote::before { content: "\201C"; display: block; font-family: "Montserrat", Arial, sans-serif; font-style: italic; font-size: 4rem; line-height: 1; color: var(--green-accent); }
.testimonial figcaption { margin-top: 1rem; color: var(--grey); }
.testimonial img { width: 7rem; margin: 1rem auto 0; }

/* ===== 12. TEAM ===== */
.team { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin-top: 2rem; }
.person { background: var(--off-white); padding: 1.5rem; border-top: 4px solid var(--green-accent); }
.person .initials { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--green-dark); color: var(--white); display: grid; place-items: center; font-weight: 600; margin-bottom: 1rem; }
.person p { color: var(--grey); font-size: 0.95rem; }

/* ===== 13. BANDS: ManuConnect, call to action, video ===== */
.band { background: var(--green-dark); color: var(--white); }
.band-inner, .cta-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.5rem; }
.band p { max-width: 42rem; margin-bottom: 1.5rem; }
.checks { list-style: none; margin-bottom: 2rem; }
.checks li { padding-left: 1.75rem; position: relative; margin-bottom: 0.5rem; }
.cta { background: var(--charcoal); color: var(--white); border-top: 4px solid var(--green-accent); }
.cta p { color: #c9cfcc; margin-bottom: 1.5rem; max-width: 40rem; }
.reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--charcoal); }

/* ===== 14. FOOTER ===== */
.site-footer { background: var(--charcoal); color: #c9cfcc; padding: 3.5rem 1.5rem 1.5rem; font-size: 0.92rem; }
.footer-cols { max-width: var(--max); margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-cols h3 { font-size: 0.85rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-cols h3 a { text-decoration: none; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 0.35rem; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--green-accent); }
.footer-cols p { margin-bottom: 0.75rem; }
.flags { max-width: var(--max); margin: 2.5rem auto 0; display: flex; justify-content: center; gap: 1rem; }
.flags img { width: 48px; height: 36px; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }
.copyright { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid #333; text-align: center; }

/* Respect people who turn off motion in their system settings */
@media (prefers-reduced-motion: reduce) { video.hero-bg { display: none; } }

/* Footer address: plain, not italic */
.site-footer address { font-style: normal; }

/* Card and step headings promoted to h2 for a correct outline keep the h3 look */
h2.as-h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

/* ===== JOURNEY: the process from data/journey.yaml (home presentation and How it works) ===== */
.jp-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-accent); margin-bottom: 0.2rem; }
.jp-caption { margin-top: 1rem; font-size: 0.85rem; color: var(--grey); }
.journey-ship { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; }

/* Presentation. Without its script it is a plain grid of steps. */
.journey-player { background: var(--charcoal); color: var(--white); padding: clamp(1rem, 3vw, 2rem); border-top: 4px solid var(--green-accent); }
.journey-player .jp-caption { color: #b7c9bf; }
.jp-steps { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.jp-media { overflow: hidden; background: var(--green-dark); }
.jp-media img, .jp-media svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.jp-text { padding-top: 0.75rem; }
.jp-text h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0.1rem 0 0.75rem; }
.jp-num { font-family: "Montserrat", Arial, sans-serif; font-style: italic; font-weight: 700; color: var(--green-accent); }
.jp-num span { color: #8fa198; font-size: 0.85em; }
.jp-part, .jp-info { color: #dfe7e2; }
.jp-info { margin-top: 0.75rem; padding-left: 0.75rem; border-left: 3px solid var(--green-accent); }
.jp-controls { display: none; }

.journey-player.is-live .jp-steps { display: grid; grid-template-columns: 1fr; }
.journey-player.is-live .jp-step { grid-area: 1 / 1; display: grid; gap: clamp(1rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.journey-player.is-live .jp-step.is-active { opacity: 1; visibility: visible; transition: opacity 0.7s ease; }
.journey-player.is-live .jp-step .jp-text > * { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.journey-player.is-live .jp-step.is-active .jp-text > * { opacity: 1; transform: none; }
.journey-player.is-live .jp-step.is-active .jp-text > :nth-child(2) { transition-delay: 0.1s; }
.journey-player.is-live .jp-step.is-active .jp-text > :nth-child(3) { transition-delay: 0.25s; }
.journey-player.is-live .jp-step.is-active .jp-text > :nth-child(4) { transition-delay: 0.4s; }
.journey-player.is-playing.is-tick .jp-step.is-active .jp-media > * { animation: jp-zoom var(--jp-step-ms, 5s) linear forwards; }
@keyframes jp-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.journey-player.is-live .jp-controls { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.5rem; }
.jp-toggle { flex: none; background: transparent; color: var(--white); border: 2px solid var(--green-accent); padding: 0.35rem 0.9rem; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.jp-toggle:hover, .jp-toggle:focus-visible { background: var(--green-accent); color: var(--charcoal); }
.jp-rail { list-style: none; flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }
.jp-rail a { display: block; text-decoration: none; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #8fa198; }
.jp-rail a.is-active, .jp-rail a.is-done, .jp-rail a:hover { color: var(--white); }
.jp-bar { display: block; height: 4px; background: rgba(255, 255, 255, 0.18); margin-bottom: 0.4rem; overflow: hidden; }
.jp-bar span { display: block; height: 100%; width: 0; background: var(--green-accent); }
.jp-rail a.is-done .jp-bar span { width: 100%; }
.journey-player:not(.is-playing) .jp-rail a.is-active .jp-bar span { width: 100%; }
.journey-player.is-playing.is-tick .jp-rail a.is-active .jp-bar span { animation: jp-fill var(--jp-step-ms, 5s) linear forwards; }
@keyframes jp-fill { from { width: 0; } to { width: 100%; } }

@media (max-width: 48rem) {
  .journey-player.is-live .jp-step { grid-template-columns: 1fr; align-items: start; }
  .jp-rail { grid-template-columns: repeat(7, 1fr); }
  .jp-rail a { font-size: 0; }
  .jp-bar { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-player.is-live .jp-step, .journey-player.is-live .jp-step .jp-text > * { transition: none; }
  .jp-media > * { animation: none !important; }
}

/* How it works: the part and the information side by side, a numbered line between them */
.journey-tracks ol { list-style: none; position: relative; }
.journey-tracks ol::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--line); }
.jt-head, .jt-step { display: grid; grid-template-columns: 1fr 4rem 1fr; gap: 0 1.5rem; }
.jt-head { margin-bottom: 1rem; font-family: "Montserrat", Arial, sans-serif; font-style: italic; font-weight: 700; text-transform: uppercase; color: var(--green-dark); }
.jt-head span:last-child { grid-column: 3; }
.jt-step { position: relative; padding-bottom: 2.5rem; align-items: start; }
.jt-num { grid-column: 2; grid-row: 1; justify-self: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-dark); color: var(--white); font-family: "Montserrat", Arial, sans-serif; font-style: italic; font-weight: 700; position: relative; }
.jt-part { grid-column: 1; grid-row: 1; }
.jt-part figure { margin: 0.5rem 0 0.75rem; overflow: hidden; }
.jt-part img, .jt-part svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.jt-info { grid-column: 3; grid-row: 1; align-self: center; background: var(--off-white); border-left: 4px solid var(--green-accent); padding: 1.25rem; }
@media (max-width: 48rem) {
  .journey-tracks ol::before { left: 1.6rem; }
  .jt-head { display: none; }
  .jt-step { grid-template-columns: 3.25rem 1fr; gap: 0 1rem; }
  .jt-num { grid-column: 1; }
  .jt-part { grid-column: 2; }
  .jt-info { grid-column: 2; grid-row: 2; margin-top: 0.25rem; }
}
