/* Styles for the public home page (templates/home.html).
   Other pages (templates/layout.html) still use the HTML5 UP theme in main.css. */

/* Self-hosted fonts (SIL Open Font License), latin subset of the variable fonts.
   Martian Mono is used by the su6.nl strip in home.html. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/site/source-sans-3.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/site/source-sans-3-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/site/open-sans.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/site/martian-mono.woff2") format("woff2"); }

:root {
  --green-900: #1f4a2a;
  --green-700: #2f5d3a;
  --green-500: #6c915c;
  --green-300: #91c47c;
  --green-100: #eef5e9;
  --ink: #1d2420;
  --text: #3b453f;
  --muted: #66706a;
  --line: #e3e8e4;
  --tint: #f6f8f6;
  --radius: 10px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font: 400 18px/1.7 "Source Sans 3", "Source Sans Pro", system-ui, sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font: 600 16px/1 "Source Sans 3", "Source Sans Pro", sans-serif;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); color: var(--green-900); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-outline { border-color: var(--green-500); color: var(--green-700); background: #fff; }
.btn-outline:hover { background: var(--green-100); color: var(--green-900); }

/* Header: transparent over the hero, solid with the brand once scrolled */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06); transition: background .25s, border-color .25s; }
.header.top { background: transparent; backdrop-filter: none; border-color: transparent; }
.header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: .01em;
  transition: opacity .25s, transform .25s; }
.header .brand img { height: 28px; }
.header.top .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.header nav { display: flex; gap: clamp(8px, 2.4vw, 36px); }
.header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s; }
.header nav a:hover, .header nav a.active { border-color: var(--green-300); }
.header.top nav a { color: rgba(255,255,255,.9); }
.header.top nav a.active { border-color: transparent; }
.header.top nav a:hover { border-color: rgba(255,255,255,.6); }

/* Mobile menu */
.burger { display: none; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 8px 0;
  font: 600 13px/1 "Source Sans 3", "Source Sans Pro", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.header.top .burger { color: #fff; }
.burger .bars { position: relative; width: 22px; height: 14px; }
.burger .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, top .25s, opacity .2s; }
.burger .bars i:nth-child(1) { top: 0; }
.burger .bars i:nth-child(2) { top: 6px; width: 70%; left: 30%; }
.burger .bars i:nth-child(3) { top: 12px; }
.menu-open .burger .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .burger .bars i:nth-child(2) { opacity: 0; }
.menu-open .burger .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 auto; z-index: 49; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); padding: 8px 24px 20px; transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.mobile-menu a::after { content: "\2192"; color: var(--green-500); }
.mobile-menu a:last-child { border: 0; }
.menu-open .header { background: #fff; border-color: var(--line); }
.menu-open .header .burger { color: var(--ink); }
.menu-open .header .brand { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) { .header nav { display: none; } .burger { display: inline-flex; } }
@media (min-width: 761px) { .mobile-menu { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(100vh, 900px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, rgba(40,70,35,.55), rgba(10,45,22,.75)), url("../../images/banner.png") center/cover, var(--green-700);
  padding: calc(var(--header-h) + 32px) 24px 64px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, rgba(0,0,0,.18)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin: 0 0 36px; }
.hero h1 img { width: min(560px, 82vw); margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.hero .intro p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; color: rgba(255,255,255,.92); margin: 0 auto 1.6em; max-width: 46ch; }
.hero .intro p + p { max-width: 60ch; margin-top: -1em; font-size: clamp(.95rem, 1.2vw, 1.05rem); color: rgba(255,255,255,.7); }
.hero .intro a { color: #fff; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; z-index: 1; translate: -50% 0; color: rgba(255,255,255,.75); font-size: 28px; line-height: 1; text-decoration: none; animation: bob 2s infinite; }
.scroll-cue:hover { color: #fff; }
@keyframes bob { 50% { translate: -50% 6px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-cue { animation: none; } }

/* Image/text spotlights */
.spot { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.spot .media { overflow: hidden; background: var(--tint); }
.spot .media img { width: 100%; height: 100%; object-fit: cover; }
.spot .copy { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; max-width: 680px; }
.spot.flip .media { order: 2; }
/* Keep the text next to the image (towards the center) when the column is wider than the text */
.spot.flip .copy { justify-self: end; }
.spot .copy .btn { align-self: flex-start; margin-top: 12px; }
/* A subheading (h3) inside the section text is shown as a pull quote */
.spot .copy h3 { margin: 0 0 1em; padding-left: 16px; border-left: 3px solid var(--green-300); font-size: 1.15em; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-500); margin-bottom: 10px; }
.eyebrow img { height: 18px; }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; min-height: 0; }
  .spot .media { aspect-ratio: 16/10; }
  .spot.flip .media { order: 0; }
  .spot.flip .copy { justify-self: start; }
}

/* Generic sections */
.section { padding: clamp(64px, 9vw, 112px) clamp(16px, 4vw, 48px); }
.section.tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.cards.is-collapsed .card.is-extra { display: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(31,74,42,.35); color: inherit; }
.card .shot { aspect-ratio: 16/10; background: #e9eee9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.card:hover .shot img { transform: scale(1.03); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.card .host { font-size: 14px; font-weight: 600; color: var(--green-700); overflow-wrap: anywhere; }
.more { text-align: center; margin-top: 32px; }

/* Pricing card in Trial & Victory style */
.tav { --tav-slate: #2e3842; --tav-teal: #21b2a6; --tav-indigo: #505393; --tav-coral: #ed4933;
  position: relative; overflow: hidden; max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(120deg, rgba(33,178,166,0) 40%, rgba(33,178,166,.35)), var(--tav-slate); color: rgba(255,255,255,.82);
  font-family: "Open Sans", sans-serif; padding: 40px 44px; text-align: left; }
.tav::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--tav-teal), var(--tav-indigo)); }
.tav .wordmark { display: inline-block; margin: 0 0 18px; padding: 8px 0 8px .3em; border-top: 2px solid #fff; border-bottom: 2px solid #fff;
  font: 800 20px/1.2 "Open Sans", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #fff; }
.tav p { margin: 0; font-size: 16px; line-height: 1.75; letter-spacing: .02em; }
.tav .btn-tav { display: inline-block; background: var(--tav-coral); color: #fff; text-decoration: none; font: 600 13px/1 "Open Sans", sans-serif; letter-spacing: .2em;
  text-transform: uppercase; padding: 17px 26px; border-radius: 3px; white-space: nowrap; transition: background .15s; }
.tav .btn-tav:hover { background: #ef5e4a; color: #fff; }
@media (max-width: 760px) { .tav { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; } .tav .btn-tav { justify-self: center; } }

/* Contact */
.contact { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.quick { display: grid; gap: 12px; margin: 24px 0 28px; }
.quick a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.quick a:hover { border-color: var(--green-300); transform: translateX(3px); box-shadow: 0 10px 20px -16px rgba(31,74,42,.5); color: var(--ink); }
.quick a::after { content: "\2192"; margin-left: auto; color: var(--green-500); }
.quick .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); font-size: 20px; }
.quick .lbl { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.quick .val { display: block; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.company { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.company dt { color: var(--ink); font-weight: 600; }
.company dd { margin: 0; }
.company address { font-style: normal; }

/* Contact form (contents loaded from templates/contact.html) */
.contact-form { align-self: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 40px -30px rgba(0,0,0,.3); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.contact-form label .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid #cfd7d1; border-radius: 8px; background: #fbfcfb;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(145,196,124,.35); background: #fff; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-status { margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; font-size: 16px; }
.form-status.success { background: var(--green-100); color: var(--green-900); }
.form-status.error { background: #fdecec; color: #8a1c1c; }
.form-status small { display: block; color: inherit; opacity: .85; }
/* ALTCHA spam check (self-hosted proof of work, no cookies or third parties) */
.contact-form altcha-widget {
  --altcha-max-width: 280px;
  --altcha-border-radius: 8px;
  --altcha-border-color: #cfd7d1;
  --altcha-color-base: #fbfcfb;
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--green-700);
  --altcha-color-success: var(--green-700);
  font-size: 15px;
}

/* Footer */
.footer { padding: 48px 24px 44px; text-align: center; font-size: 15px; color: rgba(255,255,255,.75);
  background: linear-gradient(160deg, rgba(25,55,30,.62), rgba(8,28,14,.88)), url("../../images/banner.png") center/cover, var(--green-900); }
.footer .logo { height: 34px; margin: 0 auto 20px; opacity: .9; }
.footer .icons { display: flex; gap: 12px; justify-content: center; margin: 0 0 20px; padding: 0; list-style: none; }
.footer .icons a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-size: 18px; transition: background .15s, border-color .15s; }
.footer .icons a:hover { background: rgba(145,196,124,.2); border-color: var(--green-300); color: #fff; }
.footer a { color: #fff; }
.footer .legal { margin: 0; font-size: 14px; }
.footer .legal .sep { opacity: .45; margin: 0 6px; }
