* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* follows the phone's visible height as the address bar shows/hides */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  padding: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0f2e1a;
  color: #1f2937;
  overflow-wrap: break-word;
}
/* The gradient is pinned to the screen, so it always fits the device instead of stretching down a long page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #000000 0%, #0f2e1a 45%, #86efac 100%);
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 48px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
[hidden] { display: none !important; }
.content, .content > section { display: grid; gap: 16px; }
.content .card { overflow: hidden; }
.card > :last-child { margin-bottom: 0; }
.layout { display: flex; flex-direction: column; gap: 16px; max-width: 680px; width: 100%; min-width: 0; }
/* Tabs and language switch share one card: tabs on the left, EN/FR on the right */
.tabbar { display: flex; align-items: center; gap: 8px; padding: 6px; }
.lang { flex: none; display: flex; gap: 2px; padding-left: 8px; border-left: 1px solid #e5e7eb; font-size: 0.8rem; }
.lang a { padding: 3px 8px; border-radius: 6px; color: #6b7280; text-decoration: none; font-weight: 600; }
.lang a[aria-current="true"] { background: #dcfce7; color: #14532d; }
h1 { margin: 0 0 8px; font-size: 1.8rem; }
/* Logo sits on the background, above the cards, and appears raised out of it */
.brand { position: relative; display: flex; justify-content: center; padding-top: 8px; }
.brand::before {
  content: "";
  position: absolute;
  inset: -20% 0 -12%;
  background: radial-gradient(closest-side, rgba(187, 247, 208, 0.22), rgba(134, 239, 172, 0.08) 60%, rgba(134, 239, 172, 0));
  pointer-events: none;
}
.logo { position: relative; margin: 0; line-height: 0; }
.logo img {
  width: 380px;
  max-width: 100%;
  height: auto;
  /* White logo: crisp dark embossed edge, green glow, and a deep shadow underneath */
  filter:
    drop-shadow(1.5px 2px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 14px rgba(134, 239, 172, 0.6))
    drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55));
  animation: logo-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: transform 0.3s ease;
}
.logo img:hover { transform: translateY(-4px) scale(1.02); }
@keyframes logo-rise { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
p { margin: 0 0 24px; color: #6b7280; }
/* Key points in the Home introduction: a soft green marker stroke that sweeps in once */
.hl {
  padding: 0 2px;
  border-radius: 2px;
  background: linear-gradient(#bbf7d0, #bbf7d0) no-repeat 0 88% / 100% 42%;
  color: #14532d;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .hl { animation: hl-in 0.8s ease 0.3s both; }
@keyframes hl-in { from { background-size: 0 42%; } }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 24px; text-align: left; }
dt { color: #6b7280; }
dd { margin: 0; font-weight: 500; }
dd a { color: #15803d; text-decoration: none; }
dd a:hover { text-decoration: underline; }
section p a { color: #15803d; }
section p { text-align: left; }
section h2 { margin: 0 0 8px; font-size: 1.05rem; text-align: left; color: #14532d; }
.tabs { display: flex; gap: 4px; overflow: hidden; padding: 4px; margin: 0 0 24px; background: #f3f4f6; border-radius: 10px; }
.tabs button {
  flex: 1 0 auto;
  white-space: nowrap;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: #fff; color: #1f2937; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tabbar .tabs { flex: 1; min-width: 0; margin: 0; padding: 0; background: none; }
.tabbar .tabs button[aria-selected="true"] { background: #dcfce7; color: #14532d; box-shadow: none; }
/* Narrow screens: the tabs fold into an animated dropdown menu */
.tab-menu { display: none; position: relative; flex: 1; min-width: 0; }
.tabbar.collapsed .tabs { display: none; }
.tabbar.collapsed .tab-menu { display: block; }
.tab-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #dcfce7;
  color: #14532d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.tab-menu-toggle:hover,
.tab-menu.open .tab-menu-toggle { background: #bbf7d0; }
.tab-menu-toggle:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
.tab-menu-arrow {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease, margin 0.25s ease;
}
.tab-menu.open .tab-menu-arrow { margin-top: 4px; transform: rotate(-135deg); }
.tab-menu-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(22, 163, 74, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.25s;
}
.tab-menu.open .tab-menu-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tab-menu-list li { opacity: 0; translate: 0 -4px; transition: opacity 0.2s ease, translate 0.2s ease; }
.tab-menu.open .tab-menu-list li { opacity: 1; translate: 0 0; transition-delay: calc(var(--i) * 35ms + 40ms); }
.tab-menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #374151;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.tab-menu-list button::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; transition: background 0.2s; }
.tab-menu-list button:hover,
.tab-menu-list button:focus-visible { background: #f0fdf4; outline: none; }
.tab-menu-list button[aria-current="true"] { background: #dcfce7; color: #14532d; font-weight: 600; }
.tab-menu-list button[aria-current="true"]::before { background: #16a34a; }
ul.values { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: grid; gap: 12px; }
ul.values strong { display: block; }
ul.values span { color: #6b7280; font-size: 0.9rem; }
/* Home panels: the title is a white "folder tab" attached to the top of the card */
.panel { display: flex; flex-direction: column; align-items: center; }
.panel > .card { padding: 24px 32px 22px; }
.panel-title {
  position: relative;
  margin: 0 0 -1px;
  padding: 10px 28px 6px;
  border-radius: 12px 12px 0 0;
  /* White tab plus a green underline that grows from the centre on hover */
  background: linear-gradient(#16a34a, #16a34a) no-repeat center bottom 3px / 0 2px, #fff;
  box-shadow: 0 -6px 12px -6px rgba(0, 0, 0, 0.15);
  color: #14532d;
  font-size: 1.05rem;
  text-align: center;
  transition: padding 0.3s ease, color 0.3s ease, background-size 0.3s ease, box-shadow 0.3s ease;
}
.panel:hover .panel-title,
.panel:focus-within .panel-title {
  padding-inline: 48px;
  background-size: 50% 2px;
  box-shadow: 0 -8px 16px -6px rgba(0, 0, 0, 0.22);
  color: #16a34a;
}
.panel-title::before,
.panel-title::after { content: ""; position: absolute; bottom: 0; width: 12px; height: 12px; }
.panel-title::before { left: -12px; background: radial-gradient(circle at 0 0, transparent 12px, #fff 12.5px); }
.panel-title::after { right: -12px; background: radial-gradient(circle at 100% 0, transparent 12px, #fff 12.5px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; padding: 4px 0 8px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  background: #f0fdf4;
  color: #14532d;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
button.tile { font-family: inherit; cursor: pointer; }
.tile[aria-expanded="true"] { border-color: #16a34a; box-shadow: 0 0 0 2px #86efac; }
.details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.details.open { grid-template-rows: 1fr; }
.details-inner { min-height: 0; overflow: hidden; }
.detail { margin: 4px 0 10px; padding: 14px 16px; border: 1px solid #dcfce7; border-radius: 12px; background: #fff; text-align: left; }
.detail h3 { margin: 0 0 6px; font-size: 0.95rem; color: #14532d; }
.detail p { margin: 0 0 8px; font-size: 0.9rem; }
.detail a { color: #15803d; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.detail a:hover { text-decoration: underline; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(22, 163, 74, 0.18); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #16a34a; }
.services { display: grid; grid-template-columns: 1fr; align-items: start; gap: 12px; margin: 0 0 24px; text-align: left; }
.service {
  padding: 16px;
  border: 1px solid #dcfce7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service:hover { box-shadow: 0 6px 16px rgba(22, 163, 74, 0.12); }
.service.open { border-color: #16a34a; box-shadow: 0 0 0 2px #86efac; }
.service-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.service .chevron {
  flex: none;
  width: 8px;
  height: 8px;
  margin: 6px 4px 0 auto;
  border-right: 2px solid #16a34a;
  border-bottom: 2px solid #16a34a;
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.service.open .chevron { transform: translateY(3px) rotate(-135deg); }
.service.open .details { grid-template-rows: 1fr; }
.service-more { margin: 12px 0 0 58px; font-size: 0.9rem; }
.service .icon { flex: none; }
.service strong { display: block; margin-bottom: 4px; color: #14532d; }
.service .desc { color: #6b7280; font-size: 0.9rem; }
/* Careers: job openings reuse the service card look, with a structured description */
.jobs { display: grid; gap: 12px; text-align: left; }
.job-body { margin: 4px 0 0 58px; font-size: 0.9rem; }
.job-body h4 { margin: 14px 0 6px; color: #14532d; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.job-body ul { margin: 0; padding-left: 18px; color: #6b7280; display: grid; gap: 4px; }
.job-body li::marker { color: #16a34a; }
.job-body p { margin: 14px 0 0; }
.job-body a { color: #15803d; }
@media (max-width: 480px) { .job-body { margin-left: 0; } }
.js .service.reveal { transition-delay: calc(var(--i) * 80ms); }
/* Scroll reveal: panels slide up, then their tiles pop in one by one */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.6s ease, translate 0.6s ease; }
.js .reveal.visible { opacity: 1; translate: 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; padding: 4px 0 8px; }
.fact { padding: 14px 12px; border: 1px solid #dcfce7; border-radius: 12px; background: #f0fdf4; text-align: center; }
.fact strong { display: block; color: #14532d; font-size: 1rem; line-height: 1.3; }
.fact span { display: block; margin-top: 4px; color: #6b7280; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.js .category:not(.visible) .tile, .js .category:not(.visible) .fact { opacity: 0; }
.js .category.visible .fact,
.js .category.visible .tile { animation: tile-in 0.4s ease both; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes tile-in { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.anim-spin svg { animation: spin 8s linear infinite; }
.anim-float svg { animation: float 3s ease-in-out infinite; }
.anim-wiggle svg { animation: wiggle 2.5s ease-in-out infinite; }
.anim-blink .pins { animation: blink 1.6s ease-in-out infinite; }
.anim-beam .rays { stroke-dasharray: 3 3; animation: beam 0.8s linear infinite; }
.anim-nodes circle { animation: node 2.4s ease-in-out infinite; }
.anim-nodes circle:nth-of-type(2) { animation-delay: 0.6s; }
.anim-nodes circle:nth-of-type(3) { animation-delay: 1.2s; }
.anim-nodes circle:nth-of-type(4) { animation-delay: 1.8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-3px); } }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-5deg); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes beam { to { stroke-dashoffset: -6; } }
@keyframes node { 0%, 100% { fill: transparent; } 30% { fill: currentColor; } }
@media (prefers-reduced-motion: reduce) {
  .icon svg, .icon svg * { animation: none !important; }
  .details { transition: none; }
  .panel-title { transition: none; }
  .js .hl { animation: none; }
  .logo img { animation: none; transition: none; }
  .tab-menu-list, .tab-menu-list li, .tab-menu-arrow { transition: none !important; }
  .js .reveal, .js .category .tile, .js .category .fact { opacity: 1 !important; translate: none !important; transition: none !important; animation: none !important; }
}
.contact-form { display: grid; gap: 12px; text-align: left; }
.contact-form label { display: grid; gap: 4px; font-size: 0.85rem; color: #6b7280; }
.contact-form input, .contact-form textarea { font: inherit; color: #1f2937; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #86efac; border-color: #16a34a; }
.contact-form button { justify-self: start; padding: 10px 20px; border: 0; border-radius: 8px; background: #16a34a; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 0.9rem; }
.form-note { margin: 16px 0 0; font-size: 0.85rem; }
.card > .form-note:first-child { margin-top: 0; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #dc2626; }
.footer {
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.6;
}
.footer span { white-space: nowrap; }
.footer span + span::before { content: "·"; margin: 0 8px; opacity: 0.6; }

/* Phones: tighter spacing (kept last so it overrides the rules above) */
@media (max-width: 480px) {
  body { padding: 12px; }
  .card { padding: 24px 20px; }
  .panel > .card { padding: 20px 16px 16px; }
}
