:root {
  --forest: #0B3D2E;
  --powder: #F4F7F6;
  --white: #ffffff;
  --accent: #1F7A63;
  --deep: #06251B;
  --shadow: rgba(0,0,0,0.2);
  --header-h: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Calibri, Candara, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--powder);
  color: var(--forest);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--forest);
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

.section {
  padding: 100px 0;
}

/* HEADER / NAV */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-h);
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  z-index: 999;
  box-shadow: 0 6px 18px var(--shadow);
}

.logo img {
  /* legacy single-image rule kept for fallback; actual circular frame applied to the link wrapper */
  height: auto;
  width: 100%;
  display: block;
}

/* Logo (no decorative frame) */
.logo a {
  display: inline-block;
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: transform .12s ease, opacity .12s ease;
}
.logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

/* place brand text beside logo */
.logo { display:flex; align-items:center; gap:14px; }
.site-brand a { font-size:1.15rem; font-weight:700; color:var(--forest); text-decoration:none; letter-spacing:0.03em; }

@media (max-width:800px) {
  .site-brand a {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  nav a { line-height: 84px; }
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--forest);
  font-weight: 500;
  transition: .3s;
  line-height: var(--header-h); /* vertically align with header */
}

nav a:hover,
nav .active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* HERO */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: var(--header-h); /* offset header height */
  padding: 0 1.5rem;
}
.page-hero h1 {
  font-size: 3rem;
  color: #fff;
}

/* Video background styles for hero */
.page-hero video#heroVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.page-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,13,0.45), rgba(6,18,13,0.25)); z-index: 1; }
.page-hero .hero-content { position: relative; z-index: 2; max-width: 1000px; padding: 3rem 1rem; }
.page-hero .hero-content h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
.page-hero .hero-content p { font-size: 1.05rem; margin-bottom: 1rem; color: rgba(255,255,255,0.95); }

@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .page-hero video#heroVideo { height: auto; width: 100%; min-height: 0; min-width: 0; }
  .page-hero .hero-content h1 { font-size: 1.8rem; }
}
.page-hero p {
  font-size: 1.2rem;
  margin-top: 20px;
  max-width: 700px;
  margin: auto;
  color: #fff;
}

/* SECTION TITLE */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--forest);
}

/* GRID CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px var(--shadow);
}
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
}
/* Home page: larger service card images */
.home-page .card img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: 250px;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 0;
}

.home-page .card {
  padding: 0;
  overflow: hidden;
}

.home-page .card h3,
.home-page .card p {
  padding-left: 24px;
  padding-right: 24px;
}

.home-page .card h3 {
  padding-top: 18px;
}

.home-page .card p {
  padding-bottom: 22px;
}

.card h2, .card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.3;
  text-align: left;
}

/* CTA */
.cta {
  text-align: center;
  margin: 60px 0;
}
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--accent);
  color: #fff;
  transition: background .3s ease, transform .2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
}

/* FOOTER (Contact page style) */
footer {
  background: var(--deep);
  color: white;
  padding: 60px 10%;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
footer h4 {
  margin-bottom: 20px;
  font-family: inherit;
}
footer a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}
footer p {
  overflow-wrap: anywhere;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.footer-contact-link .contact-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}
.footer-contact-link .contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.footer-contact-link:hover {
  color: var(--accent);
}
.footer-address {
  display: block;
  margin-top: 6px;
}
.footer-address > span {
  display: block;
}
.map-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.map-app-links .footer-contact-link {
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 5px 8px;
}
.footer-grid a,
.footer-grid a:link,
.footer-grid a:visited {
  transition: color .18s ease, transform .12s ease, opacity .18s ease;
}
.footer-grid a:hover {
  /* Only animate color/transform/opacity — avoid padding/border changes */
  color: var(--accent);
  transform: translateY(-2px);
  opacity: 0.98;
}
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #ccc;
  background: transparent;
  transition: transform .12s ease, color .18s ease, background .18s ease;
  will-change: transform, color, opacity;
}
.social-links a:hover {
  transform: translateY(-2px);
  color: var(--accent);
  background: rgba(255,255,255,0.03);
}

/* SVG icon sizing for social links */
.social-links a svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  fill: currentColor;
  display: inline-block;
}

/* Animations */
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.page-hero h1,
.page-hero p,
.page-hero .btn-primary {
  opacity: 0;
}

/* Hero animation classes - JS will pick a random one per page and apply to elements */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-28px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(28px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-28px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fadeUp { animation: fadeSlideUp 900ms ease-out forwards; }
.animate-fadeLeft { animation: fadeInLeft 900ms ease-out forwards; }
.animate-fadeRight { animation: fadeInRight 900ms ease-out forwards; }
.animate-zoomIn { animation: zoomIn 900ms cubic-bezier(.2,.9,.3,1.05) forwards; }
.animate-slideDown { animation: slideDown 900ms ease-out forwards; }

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.project-card,
.team-card,
.career-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}
.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

/* Additional styles imported from services.html to keep pages visually consistent */
:root{
  --forest: #0b6b4a;
  --accent: #ffc1d9;
  --dark: #0b0b0b;
  --muted: #6b7280;
  --card-bg: #ffffff;
}

html,body{height:100%;margin:0;font-family:Calibri,Candara,'Segoe UI',Roboto,'Helvetica Neue',Arial;color:var(--dark);background:#fff}
header{position:fixed;top:0;left:0;right:0;height:var(--header-h);background:#fff;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;padding:0 24px;z-index:1200}
.logo img{height:calc(var(--header-h) - 16px);max-height:100%;width:auto}
nav{display:flex;gap:14px;align-items:center}
nav a{color:var(--dark);text-decoration:none;font-weight:600;padding:8px 10px;border-radius:8px}
nav a:hover{background:#f6f6f6}

nav a.nav-login {
  display: none;
  color: #fff;
  background: var(--forest);
  padding: 9px 18px;
  line-height: normal;
  border: 1px solid var(--forest);
}

nav a.nav-login:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Dropdown menu */
.dropdown { position: relative; display: inline-block; }
.dropbtn {
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.45rem 1rem; background: var(--forest); border-radius: 8px;
  font-size: 1rem; line-height: 1; display:inline-flex; align-items:center; gap:6px;
}
.dropdown-content {
  position: absolute; background-color: var(--forest);
  min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border-radius: 8px; z-index: 1000;
  top: calc(100% + 4px);
  left: 0;
  padding: 8px 6px; /* small padding to contain items */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown-content a {
  color: #fff; padding: 10px 14px; text-decoration: none; display: block;
  transition: background .18s ease, transform .12s ease;
  font-size: 1rem;
  line-height: 1.35;
  border-radius: 6px;
}
.dropdown-content a:hover { background: var(--accent); color: var(--dark); }
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* keep visible when hovering the menu itself to avoid accidental hide */
.dropdown-content:hover { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }

.dropbtn:focus { outline: 3px solid rgba(31,122,99,0.18); outline-offset: 3px; }
.dropdown-content a:active { transform: translateY(1px); }

/* Reduce spacing between nav items when dropdown is present */
.dropdown { margin-right: 6px; }

@media (max-width: 700px) {
  .dropdown-content { left: 8px; right: 8px; min-width: auto; width: calc(100% - 16px); }
  .dropbtn { padding: 0.5rem 0.8rem; }
}

/* Hero adjustments from services page */
.page-hero {
  background:url('/assets/video/services.mp4') center/cover no-repeat;
  min-height: 60vh; display:flex;align-items:center;justify-content:center;
  text-align:center;color:#fff; margin-top:var(--header-h);padding:0 1.5rem;
}
.page-hero h1 {font-size:3rem;margin-bottom:.6rem;}
.page-hero p {font-size:1.2rem;margin-bottom:1.2rem;}

/* Accordion (services page) */
.accordion {
  width: 90%;
  max-width: 1000px;
  margin: 60px auto;
  box-sizing: border-box;
}
.accordion-item {
  border: 1px solid rgba(11, 61, 46, 0.14);
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.accordion-item:last-child {
  margin-bottom: 0;
}
.accordion-item:hover {
  border-color: rgba(11, 61, 46, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.4rem;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  border: none;
  outline: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}
.accordion-header:hover {
  background: #14553e;
  color: #fff;
  text-decoration: none;
}
.accordion-header .chev {
  font-size: 1.1rem;
  transition: transform .3s ease;
  flex-shrink: 0;
  display: inline-block;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .25s ease;
  background: #fff;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.accordion-content.open {
  max-height: 900px;
  padding: 1.5rem;
}
.service-detail {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.service-detail img {
  width: 100%;
  max-width: 380px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  flex: 1 1 380px;
  display: block;
}
.service-detail div {
  flex: 1 1 320px;
}
.service-detail p {
  color: var(--forest);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.btn-primary {
  padding:14px 36px; border:none; border-radius:30px;
  background: var(--accent); color:#fff; font-weight:600;
  cursor:pointer; transition:background .3s ease, transform .2s ease;
  text-decoration:none; display:inline-block; margin-top:1rem;
}
.btn-primary:hover { background: var(--forest); transform:translateY(-2px); }
@media (max-width: 768px) {
  .service-detail { flex-direction: column; }
  .service-detail img { max-width: 100%; }
}

/* ===== styles moved from contact.html ===== */
.page-hero {
  background:url('/assets/video/about.mp4') center/cover no-repeat;
  min-height: 70vh; display:flex;align-items:center;justify-content:center;
  text-align:center;color:#fff; margin-top:var(--header-h);padding:0 1.5rem;
}
.page-hero h1 { font-size: 3rem; }

.contact-form {
  background:#fff; padding:40px; border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
  margin:60px auto; max-width:800px;
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/logo.png");
  background-repeat: no-repeat;
  background-size: 280px auto;
  background-position: center center;
  background-attachment: fixed;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.contact-form > * {
  position: relative;
  z-index: 1;
}
.contact-form h2 { margin-bottom:20px; font-family: inherit; }
.contact-form label { display:block; margin-bottom:8px; font-weight:500; }
.contact-form input {
  width:100%; padding:12px; margin-bottom:20px;
  border:1px solid #ccc; border-radius:8px; font-family:inherit;
}
.contact-form input:focus {
  border-color:var(--secondary); outline:none;
  box-shadow:0 0 0 3px rgba(255,178,208,0.25);
}
.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.service-option {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 61, 46, 0.22);
  border-radius: 12px;
  background: #f7fbf9;
  cursor: pointer;
  font-weight: 600;
  color: var(--forest);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}
.service-option::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.5;
  flex: 0 0 16px;
}
.service-option:hover {
  border-color: rgba(11, 61, 46, 0.45);
  background: #eef6f2;
}
.service-option.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(31,122,99,0.24);
}
.service-option.selected::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
  border-color: #fff;
}
@media (max-width: 700px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}
.contact-form button { padding:14px 36px; border:none; border-radius:30px; background:var(--accent); color:#fff; font-weight:600; cursor:pointer; transition:background .3s ease, transform .2s ease; }
.contact-form button:hover { background:var(--forest); transform:translateY(-2px); }
.contact-info { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:30px; margin:40px auto 60px; max-width:1200px; padding:0 1.5rem; }
.contact-info div { background:#fff; padding:24px; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,0.08); transition:transform .25s ease; }
.contact-info div:hover { transform:translateY(-4px); }
.contact-info h2 { margin-bottom:8px; font-size:1.2rem; }
.cta { text-align:center; margin:60px 0; }
.btn-primary { padding:14px 36px; border:none; border-radius:30px; background: var(--accent); color:#fff; font-weight:600; cursor:pointer; transition:background .3s ease, transform .2s ease; text-decoration:none; }
.btn-primary:hover { background: var(--forest); transform:translateY(-2px); }

/* ===== styles moved from careers.html ===== */
/* Careers/job listing and application form styles */
.jobs{display:grid;grid-template-columns:1fr;gap:18px;}
.job-card{background:white;padding:30px;border-radius:20px;box-shadow:0 15px 40px var(--shadow);} 
.job-card h2{margin-bottom:15px;} 
.job-card p{font-size:14px;color:#555;} 
.job-card--image{padding:0;display:block;overflow:hidden;text-decoration:none;color:inherit;transition:transform .22s ease, box-shadow .22s ease;aspect-ratio:940/788;background:#fff;}
.job-card-img{width:100%;height:100%;object-fit:contain;background:#fff;display:block;}
@media (hover: hover) and (pointer: fine) {
  .job-card--image:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(0,0,0,0.22);}
}
.jobs-toolbar{display:flex;gap:16px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;margin-bottom:26px;}
.jobs-sub{font-size:14px;color:#555;margin-top:8px;}
.jobs-toolbar-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;}
.jobs-search-wrap{flex:1 1 260px;max-width:420px;}
.jobs-search{width:100%;padding:12px 14px;border:1px solid #ccc;border-radius:999px;background:#fff;}
.jobs-empty{font-size:14px;color:#555;margin-top:12px;}
.social-toolbar{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px;}
.social-profiles{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.social-profiles-below-form{justify-content:center;margin-top:14px;}
.social-profile-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;border:1px solid rgba(0,0,0,0.10);background:#fff;color:var(--forest);text-decoration:none;font-weight:600;font-size:13px;transition:transform .15s ease, background .15s ease, border-color .15s ease;}
.social-profile-link:hover{transform:translateY(-2px);border-color:rgba(0,0,0,0.18);background:var(--powder);}
.social-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;}
.social-post-card{background:#fff;padding:22px;border-radius:18px;box-shadow:0 15px 40px var(--shadow);display:flex;flex-direction:column;gap:12px;}
.social-post-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.social-pill{display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;padding:6px 10px;border-radius:999px;background:var(--powder);border:1px solid rgba(0,0,0,0.06);}
.social-date{font-size:12px;color:#555;}
.social-post-card h3{margin:0;font-size:1.05rem;}
.social-post-text{margin:0;font-size:14px;color:#555;}
.job-head{display:flex;gap:14px;align-items:flex-start;}
.job-head h2{margin:0;}
.job-logo{width:48px;height:48px;border-radius:12px;object-fit:cover;flex:0 0 auto;border:1px solid rgba(0,0,0,0.08);background:#fff;}
.job-company{margin:0;color:#555;font-size:14px;font-weight:600;}
.job-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.job-meta span{font-size:12px;color:#333;background:var(--powder);padding:6px 10px;border-radius:999px;border:1px solid rgba(0,0,0,0.06);}
.job-details{margin-top:14px;}
.job-details summary{cursor:pointer;font-weight:700;list-style:none;user-select:none;}
.job-details summary::-webkit-details-marker{display:none;}
.job-details summary::after{content:"▾";display:inline-block;margin-left:8px;transform:translateY(-1px);transition:transform .15s ease;}
.job-details[open] summary::after{transform:rotate(180deg) translateY(1px);}
.job-detail-img{
  width: calc(100% + 60px);
  margin: 10px -30px 0;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}
.job-desc{margin-top:10px;color:#555;font-size:14px;white-space:pre-wrap;}
.job-actions{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap;}
.job-actions{gap:12px;align-items:flex-start;}
.job-status{display:inline-flex;align-items:center;padding:12px 18px;border-radius:999px;font-weight:700;line-height:1;}
.job-status--closed{background:#eee;color:#555;border:1px solid #d5d5d5;}
.job-details{margin:0;}
.job-details summary{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:999px;border:1px solid rgba(0,0,0,0.10);background:#fff;color:var(--forest);}
.job-details summary::after{margin-left:0;}
.job-detail-img{width:100%;max-width:900px;max-height:80vh;margin:12px 0 0 0;object-fit:contain;}
.application-form{background:white;padding:40px;border-radius:20px;box-shadow:0 15px 40px var(--shadow);} 
.application-form h2{margin-bottom:20px;} 
.application-form label{display:block;margin-bottom:8px;font-weight:500;} 
.application-form input,.application-form textarea{width:100%;padding:12px;margin-bottom:20px;border:1px solid #ccc;border-radius:8px;} 
.application-form button{padding:14px 36px;border:none;border-radius:30px;background:var(--accent);color:#fff;font-weight:600;cursor:pointer;} 
.application-form button:hover{background:var(--forest);} 

/* ===== styles moved from team.html ===== */
.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;align-items:stretch;max-width:810px;margin-inline:auto;}
.team-card{
  background:white;
  border-radius:12px;
  box-shadow:0 15px 40px var(--shadow);
  overflow:hidden;
  padding:0;
  text-align:center;
  display:flex;
  flex-direction:column;
  height:100%;
  --reveal-y: 0px;
  --reveal-scale: 1;
  --hover-y: 0px;
  --hover-scale: 0;
  opacity: 1;
  transform: translateY(calc(var(--reveal-y) + var(--hover-y))) scale(calc(var(--reveal-scale) + var(--hover-scale)));
  transition:
    opacity .45s ease var(--reveal-delay, 0ms),
    transform .45s cubic-bezier(.2,.9,.2,1) 0ms,
    box-shadow .22s ease;
  will-change: transform, opacity;
}

.team-grid[data-animate="on"] .team-card{
  --reveal-y: 14px;
  --reveal-scale: .98;
  opacity: 0;
}

.team-grid[data-animate="on"] .team-card.is-visible{
  opacity: 1;
  --reveal-y: 0px;
  --reveal-scale: 1;
}

.team-card img{width:100%;height:220px;object-fit:cover;object-position:center center;display:block;transition: transform .35s ease;}
.team-card h2{padding:18px 20px 6px 20px;margin:0;font-size:1.1rem;text-align:center;min-height:3.2em;display:flex;align-items:center;justify-content:center;}
.team-card p{padding:0 20px 20px 20px;margin:0;font-size:14px;color:#555;text-align:center;flex:1 1 auto;}

@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (hover: hover) and (pointer: fine) {
  .team-card {
    transform-origin: center;
  }

  .team-card:hover {
    --hover-y: -6px;
    --hover-scale: .03;
    box-shadow: 0 26px 54px rgba(0,0,0,0.28);
    z-index: 2;
  }

  .team-card:hover img {
    transform: scale(1.04);
  }
}

/* ===== Why TRAILO page styles ===== */
.why-hero { position: relative; color: #fff; padding: 120px 1.5rem 80px; background: linear-gradient(180deg, rgba(11,59,46,0.72), rgba(11,59,46,0.6)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; text-align:center; }
.why-hero h1 { font-size: 2.6rem; margin-bottom: 0.6rem; font-weight:700; }
.why-hero p { font-size:1.05rem; color: rgba(255,255,255,0.92); margin-bottom: 1.25rem; max-width:820px; margin-left:auto; margin-right:auto; }
.why-hero .kicker { display:inline-block; background: rgba(255,255,255,0.08); padding:6px 12px; border-radius:999px; font-weight:600; margin-bottom:18px; }

.features-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:28px; margin-top:18px; }
.feature-card { background:#fff; border-radius:12px; padding:22px; box-shadow:0 12px 30px rgba(12,28,22,0.06); display:flex; gap:16px; align-items:flex-start; }
.feature-icon { width:56px; height:56px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(180deg,var(--accent),var(--forest)); color:#fff; font-weight:700; font-size:1.2rem; flex:0 0 56px; }
.feature-card h3 { margin:0 0 6px 0; font-size:1.05rem; }
.feature-card p { margin:0; color:#4b5b4f; line-height:1.6; }

.stat-strip { display:flex; gap:18px; justify-content:space-between; margin:40px 0; }
.stat { flex:1 1 0; background: linear-gradient(180deg,#fff, #fbfffb); padding:18px; border-radius:12px; box-shadow:0 8px 20px rgba(12,28,22,0.04); text-align:center; }
.stat .num { font-size:1.8rem; font-weight:800; color:var(--forest); }
.stat .label { color:#6b7b6b; margin-top:6px; font-size:0.95rem; }

.testimonials { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; margin-top:12px; }
.testimonial { background:#fff; padding:20px; border-radius:12px; box-shadow:0 12px 30px rgba(12,28,22,0.06); }
.testimonial p { font-style:italic; color:#425448; margin-bottom:12px; }
.testimonial .author { font-weight:700; color:var(--forest); font-size:0.95rem; }

@media (max-width:1000px) {
  .features-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .stat-strip { flex-direction:column; }
}

/* About page: equal-split image + text rows */
.about-row { display:flex; gap:32px; align-items:stretch; margin-bottom:36px; }
.about-row > .about-img, .about-row > .about-content { flex: 1 1 50%; min-width:0; }
.about-row > .about-img { display:block; }
.about-row > .about-img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
.about-row > .about-content { display:flex; flex-direction:column; justify-content:center; padding:18px; }
.about-row .about-content h3 { margin:0 0 12px 0; }
.about-row .about-content p { margin:0; color:#546a57; line-height:1.6; }

@media (max-width:900px) {
  .about-row { flex-direction:column; }
  .about-row > .about-img { height:220px; }
}

/* Alternate rows: flip image and text for visual variety */
.about-row:nth-child(even) { flex-direction: row-reverse; }

@media (max-width:900px) {
  .about-row:nth-child(even) { flex-direction: column; }
}

/* Keep logo proportional to the header so both terminate at the same edge */
header .logo img {
  height: calc(var(--header-h) - 16px) !important;
  max-height: 100% !important;
  width: auto !important;
  display: block !important;
  margin-top: 0 !important;
}

@media (max-width: 800px) {
  :root { --header-h: 60px; }
  header { height: var(--header-h) !important; }
  header .logo img { height: calc(var(--header-h) - 16px) !important; width: auto !important; margin-top: 0 !important; }
}

/* Mobile + touch optimizations (desktop unchanged) */
.menu-toggle {
  display: none;
}

.mobile-current-page {
  display: none;
}

@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  header {
    padding: 0 12px !important;
    gap: 10px;
  }

  .logo {
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: var(--forest);
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .18s ease, border-color .18s ease, transform .12s ease;
  }

  .mobile-current-page {
    display: inline-block;
    max-width: 44vw;
    margin-right: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--accent);
    background: rgba(11, 107, 74, 0.08);
    border: 1px solid rgba(11, 107, 74, 0.2);
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle .menu-icon,
  .menu-toggle .menu-icon::before,
  .menu-toggle .menu-icon::after {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    display: block;
    transition: transform .2s ease, opacity .2s ease;
    content: "";
  }

  .menu-toggle .menu-icon {
    position: relative;
  }

  .menu-toggle .menu-icon::before {
    position: absolute;
    top: -6px;
    left: 0;
  }

  .menu-toggle .menu-icon::after {
    position: absolute;
    top: 6px;
    left: 0;
  }

  header.menu-open .menu-toggle .menu-icon {
    background: transparent;
  }

  header.menu-open .menu-toggle .menu-icon::before {
    transform: translateY(6px) rotate(45deg);
  }

  header.menu-open .menu-toggle .menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .menu-toggle:active {
    transform: scale(0.98);
  }

  header.menu-open .menu-toggle {
    background: rgba(11, 107, 74, 0.08);
    border-color: rgba(11, 107, 74, 0.4);
  }

  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 12px;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height .24s ease, opacity .2s ease, transform .2s ease, visibility 0s linear .24s;
  }

  header.menu-open nav {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  nav a,
  .dropbtn {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    line-height: 1.2 !important;
    margin-left: 0;
    border-bottom: 0 !important;
    border-radius: 10px;
    touch-action: manipulation;
    transition: background .16s ease, color .16s ease;
  }

  nav a:active,
  .dropbtn:active {
    background: rgba(11, 107, 74, 0.08);
  }

  nav a.active,
  nav a[aria-current="page"] {
    color: var(--accent);
    background: rgba(11, 107, 74, 0.1);
  }

  .dropdown {
    position: static;
    margin-right: 0;
    width: 100%;
  }

  .dropbtn {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(11, 107, 74, 0.12);
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: max-height .2s ease, opacity .16s ease, transform .16s ease;
  }

  .dropdown.open .dropdown-content {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-content a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .page-hero {
    min-height: 58vh;
    min-height: 58svh;
    min-height: 58dvh;
    padding: 0 1rem;
  }

  .page-hero.mobile-poster #heroVideo {
    display: none;
  }

  .page-hero.mobile-poster {
    background-size: cover !important;
    background-position: var(--hero-mobile-position, center center) !important;
    background-repeat: no-repeat !important;
  }

  .page-hero .hero-content {
    padding: 1.25rem 0.75rem;
  }

  .container {
    width: min(92%, calc(100% - 32px));
  }

  .home-page .card {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px var(--shadow);
  }

  .home-page .card img {
    width: 100%;
    max-width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
  }

  .home-page .card h3,
  .home-page .card p {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-page .card h3 {
    padding-top: 18px;
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .home-page .card p {
    padding-bottom: 22px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--forest);
  }

  /* Services page accordion mobile view */
  .accordion {
    width: min(92%, calc(100% - 32px));
    margin: 32px auto 44px;
    padding: 0;
    box-sizing: border-box;
  }

  .accordion-item {
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .accordion-header {
    padding: 1rem 1.15rem;
    font-size: 1rem;
    min-height: 48px;
    line-height: 1.35;
    border-radius: 0;
  }

  .accordion-content {
    padding: 0 1.15rem;
  }

  .accordion-content.open {
    padding: 1.25rem 1.15rem;
    max-height: 1200px;
  }

  .service-detail {
    flex-direction: column;
    gap: 1.15rem;
    align-items: stretch;
  }

  .service-detail img {
    max-width: 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
  }

  .service-detail div {
    width: 100%;
    flex: 1 1 auto;
  }

  .service-detail p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
  }

  .service-detail .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 26px;
  }

  .grid,
  .jobs,
  .team-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .card,
  .job-card,
  .team-card,
  .application-form,
  .contact-form {
    border-radius: 14px;
  }

  .contact-form,
  .application-form {
    width: min(92%, calc(100% - 32px));
    padding: 24px 18px;
    margin: 36px auto;
    box-sizing: border-box;
  }

  .contact-form input,
  .application-form input,
  .application-form textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .services-list {
    gap: 10px;
  }

  .service-option {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
  }

  .btn-primary,
  .contact-form button,
  .application-form button,
  .accordion-header {
    min-height: 44px;
    touch-action: manipulation;
  }

  .footer-grid {
    gap: 26px;
  }
}

@media (hover: none) and (pointer: coarse) {
  nav a:hover,
  .btn-primary:hover,
  .contact-form button:hover,
  .application-form button:hover,
  .service-option:hover,
  .dropdown-content a:hover,
  .social-links a:hover,
  .footer-grid a:hover,
  .accordion-header:hover {
    transform: none !important;
  }

  nav a:hover,
  .dropdown-content a:hover,
  .accordion-header:hover {
    background: inherit;
    color: inherit;
  }

  .dropdown:hover .dropdown-content {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }

  .dropdown.open .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Improves render cost for long pages below the fold (desktop only) */
@media (min-width: 901px) {
  .section,
  .contact-form,
  .accordion,
  .cta,
  footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
  }
}

/* Site-wide WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.24);
  background: #20be5d;
}

.wa-float:active {
  transform: translateY(0);
}

.wa-float .wa-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-float .wa-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 900px) {
  .wa-float {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }

  .footer-grid p,
  .footer-grid .footer-contact-link {
    font-size: 14px;
    line-height: 1.65;
  }

  .map-app-links {
    gap: 8px;
  }
}

/* Team hero: show more of the background image and make overlay text green */
.page-hero[aria-label="Team hero"] {
  background-size: 85% !important;
  background-position: center 35% !important;
  background-repeat: no-repeat !important;
}

.page-hero[aria-label="Team hero"] .hero-content,
.page-hero[aria-label="Team hero"] .hero-content h1,
.page-hero[aria-label="Team hero"] .hero-content p,
.page-hero[aria-label="Team hero"] .hero-content .btn-primary {
  color: var(--forest) !important;
}

/* Slight text shadow for legibility on detailed photos */
.page-hero[aria-label="Team hero"] .hero-content h1,
.page-hero[aria-label="Team hero"] .hero-content p {
  text-shadow: 0 2px 6px rgba(255,255,255,0.06);
}
