/* The Elf Inside. Logo greens on white, one page. */
:root {
  --green: #006838;
  --green-dark: #004d2a;
  --lime: #88c038;
  --lime-dark: #6ea32a;
  --pale: #eef6e4;
  --grey: #f5f6f4;
  --ink: #002028;
  --body: #333;
  --muted: #6b7680;
  --line: #e3e8e2;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --shadow: 0 20px 50px -24px rgba(0, 104, 56, .4);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--body); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #fff; padding: 8px 14px; font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-dark); }
.eyebrow--green { color: var(--lime-dark); }
.lead { font-size: 18px; }
.intro { max-width: 760px; color: #4b5560; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--green { background: var(--lime); color: var(--ink); }
.btn--green:hover { background: var(--green); color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.section { padding: 84px 0; }
.section--grey { background: var(--grey); }
.section--why { background: #fff; }
.section--contact { background: var(--pale); }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; } .js .reveal[data-delay="2"] { transition-delay: .24s; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top__inner { display: flex; align-items: center; gap: 28px; height: 84px; }
.top__logo img { width: 220px; height: auto; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left; }
.top__nav a:hover::after, .top__nav a.is-active::after { transform: scaleX(1); }
.top__call { padding: 10px 20px; font-size: 14px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: #fafafa; padding: 30px 0 0; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.hero__img img { width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.hero__copy { padding: 30px 0 60px; }
.hero h1 em { font-style: normal; color: var(--lime-dark); }
.hero .lead { color: #4b5560; max-width: 480px; }

/* ---------------------------------------------------------------- split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--rev .split__copy { order: 1; } .split--rev .split__img { order: 2; }
.split__img img { width: 100%; max-width: 520px; margin: 0 auto; }
.portrait { position: relative; width: min(100%, 420px); margin: 0 auto; }
.portrait img { border-radius: 30px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.portrait::before { content: ""; position: absolute; inset: -16px auto auto -16px; width: 60%; height: 60%; border-radius: 30px; background: var(--lime); opacity: .9; }
.portrait::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 50%; height: 50%; border-radius: 30px; background: var(--pale); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.facts div { background: var(--pale); border-radius: 14px; padding: 16px 14px; }
.facts strong { display: block; font-size: 22px; font-weight: 800; color: var(--green); line-height: 1.1; }
.facts span { font-size: 13px; color: var(--muted); }
.tech { max-width: 440px; }
.js .tech.is-in, .js .split__img.is-in .tech { animation: bob 8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .js .split__img.is-in .tech { animation: none; } }

/* ---------------------------------------------------------------- services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 10px 30px -20px rgba(0, 104, 56, .3); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lime); }
.card__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--pale); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 32px; height: 32px; fill: var(--green); }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: #4b5560; font-size: 15px; }

/* ---------------------------------------------------------------- why: mission and values */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
.value { background: var(--green); color: #fff; border-radius: 20px; padding: 32px 30px; }
.value + .value { background: var(--pale); color: var(--body); }
.value h3 { color: #fff; } .value + .value h3 { color: var(--ink); }
.value p { margin: 0; }
.ticks li { position: relative; padding: 5px 0 5px 30px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact__info { position: relative; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(0, 104, 56, .14); }
.contact__list svg { width: 26px; height: 26px; fill: var(--green); flex: none; }
.contact__list a, .contact__list > li > span { text-decoration: none; color: var(--body); line-height: 1.3; }
.contact__list strong { display: block; font-size: 18px; color: var(--ink); }
.contact__list a span, .contact__list > li > span > span { font-size: 13px; color: var(--muted); }
.contact__list a:hover strong { color: var(--green); }
.contact__elf { width: 150px; margin: 30px 0 0 auto; }
.contact__form { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.ei-form { display: grid; gap: 12px; }
.ei-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ei-form input, .ei-form textarea, .ei-form select { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--body); font: inherit; font-size: 15px; transition: border-color .2s; }
.ei-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23006838' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.ei-form select:invalid, .ei-form select option[value=""] { color: #757575; }
.ei-form input:focus, .ei-form textarea:focus, .ei-form select:focus { outline: none; border-color: var(--lime); }
.ei-form .is-invalid { border-color: #e0533e; }
.ei-form textarea { resize: vertical; min-height: 120px; }
.ei-form__hp { position: absolute; left: -9999px; }
.ei-form__submit { justify-self: start; }
.ei-form__submit:disabled { opacity: .6; cursor: wait; }
.ei-form__status { margin: 0; font-weight: 600; min-height: 1.5em; font-size: 15px; }
.ei-form__status.is-ok { color: #1b7f3b; } .ei-form__status.is-error { color: #c0392b; }

/* ---------------------------------------------------------------- footer */
.foot { background: #fff; color: var(--muted); padding: 36px 0; font-size: 14px; border-top: 1px solid var(--line); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { width: 170px; height: auto; }
.foot p { margin: 0; } .foot a { color: var(--green); }
.callbar { display: none; }
.is-404 .section { padding-top: 120px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero__inner, .split, .contact, .values { grid-template-columns: 1fr; }
  .hero__inner { gap: 0; }
  .hero__img img { max-width: 640px; margin: 0 auto; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
  .hero__copy { padding: 10px 0 56px; text-align: center; }
  .hero .lead { margin: 0 auto 1.1em; }
  .btn-row { justify-content: center; }
  .split--rev .split__copy { order: 2; } .split--rev .split__img { order: 1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .top__nav { display: none; }
  .contact__elf { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .top__inner { height: 70px; gap: 12px; }
  .top__logo img { width: 170px; }
  .top__call { margin-left: auto; padding: 8px 14px; font-size: 13px; }
  .cards, .ei-form__row, .facts { grid-template-columns: 1fr; }
  .contact__form { padding: 20px; }
  .foot { padding-bottom: 90px; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: baseline; justify-content: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--green); color: #fff; text-decoration: none; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
  .callbar span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
  .callbar strong { font-size: 20px; font-weight: 800; }
}
