/* NovaSalvia public website. The app's greens plus the logo's navy, sage, and gold; the light
   background matches the logo image's, so it sits on the page without a box. No outside fonts,
   scripts, or trackers: the wordmark uses serif fonts already on the visitor's device. */
:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --text: #1d2621;
  --muted: #5d6a62;
  --border: #d9dfd8;
  --brand: #2f6b5a;
  --brand-ink: #ffffff;
  --brand-soft: #e2efe9;
  --accent: #9a7a3f;
  --navy: #1d2f52;
  --sage: #5f7d6e;
  --logo-bg: #f8f8f6;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --surface: #1a211d;
    --surface-2: #222b26;
    --text: #e5ebe7;
    --muted: #9aa8a0;
    --border: #2f3a34;
    --brand: #6fb49d;
    --brand-ink: #0d1612;
    --brand-soft: #1f3a31;
    --accent: #d4b47a;
    --navy: #d5deec;
    --sage: #9dbcab;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }

header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-tile { border-radius: 8px; background: var(--logo-bg); }
.wordmark { font: 500 1.6rem/1 "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; letter-spacing: .01em; }
.wordmark .nova { color: var(--navy); }
.wordmark .salvia { color: var(--sage); }
nav.top { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 2.5rem 0 3rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.01em; color: var(--navy); }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.updated { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

.panel { background: var(--surface-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 2rem 0; }
.panel h2 { margin-top: 0; }
.crisis { border-left: 4px solid var(--accent); padding: .6rem 1rem; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }

footer.site { border-top: 1px solid var(--border); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .92rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; }
footer.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* ---------------------------------------------------------------- home page */
body.home main { padding: 0; }
body.home .wrap { max-width: 72rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* Hero with a living background: a slowly drifting navy-to-teal gradient, twinkling stars, a
   gold glow for the "nova" star in the logo, and two waves sliding at different speeds. CSS
   only (the site allows no scripts); it all holds still for visitors who ask for less motion. */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; padding: 4.5rem 0 7rem;
  background: linear-gradient(120deg, #13284a 0%, #1b4a6e 30%, #1f6f78 55%, #3d8b7a 75%, #1a3d63 100%);
  background-size: 260% 260%; animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 50rem; margin: 0 auto 1rem; font-size: clamp(2rem, 5vw, 3.2rem); text-wrap: balance; }
.hero .lead { color: rgba(255, 255, 255, .9); margin: 0 auto 1.8rem; text-wrap: balance; }
.status { display: inline-block; border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; margin-bottom: 1.2rem; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.9rem; }
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn.primary { background: #2f9a83; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.btn.primary:hover { background: #278571; }
.btn.ghost { background: #fff; color: #1d2f52; }
.btn.ghost:hover { background: #eef3f1; }
.hero .btn:focus-visible { outline-color: #f3d9a4; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; gap: .6rem 1.6rem; justify-content: center; flex-wrap: wrap; font-size: .92rem; color: rgba(255, 255, 255, .92); }
.badges li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.badges svg { width: 1.15rem; height: 1.15rem; }

.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .5; animation: twinkle 5s ease-in-out infinite; }
.s1 { top: 18%; left: 12%; }
.s2 { top: 30%; left: 82%; animation-delay: 1.2s; }
.s3 { top: 62%; left: 22%; animation-delay: 2.4s; }
.s4 { top: 14%; left: 64%; animation-delay: 3.1s; }
.s5 { top: 48%; left: 92%; animation-delay: .6s; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.4); } }
.nova-glow { position: absolute; top: -12%; right: -8%; width: 34rem; height: 34rem; border-radius: 50%; background: radial-gradient(circle, rgba(232, 200, 140, .34) 0%, rgba(232, 200, 140, .08) 35%, transparent 65%); animation: glow 12s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .6; transform: scale(.95); } to { opacity: 1; transform: scale(1.06); } }
.hero-wave { position: absolute; left: 0; bottom: 0; z-index: 1; width: 200%; height: 130px; pointer-events: none; background: url(/img/wave.svg) repeat-x; background-size: 50% 100%; animation: wave-slide 28s linear infinite; }
.hero-wave.w2 { bottom: 18px; height: 110px; opacity: .7; animation-duration: 46s; animation-direction: reverse; }
@keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.band { padding: 4rem 0; }
.band.tint { background: var(--surface-2); }
.band h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin: 0 0 1.5rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; box-shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 8px 24px rgba(20, 30, 25, .06); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 30, 25, .06), 0 14px 30px rgba(20, 30, 25, .1); }
.feature .icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: linear-gradient(135deg, #1b4a6e, #2f9a83); color: #fff; margin-bottom: .9rem; }
.feature .icon svg { width: 1.6rem; height: 1.6rem; }
.feature h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); }

.why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 2.1rem; margin-bottom: 1rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #2f9a83 url(/img/check.svg) center / 75% no-repeat; }
.laptop { margin: 0; padding: 0 5%; }
.laptop .screen { border: 10px solid #1c2430; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px; background: #1c2430; overflow: hidden; box-shadow: 0 20px 40px rgba(20, 30, 25, .2); }
.laptop .screen img, .shot img, .phone img { display: block; width: 100%; height: auto; }
.laptop .base { height: 14px; margin: 0 -5.5%; background: linear-gradient(#d4dad6, #9aa3a0); border-radius: 0 0 14px 14px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr .5fr; gap: 1.2rem; align-items: start; margin-top: 1.5rem; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(20, 30, 25, .08); }
.shot figcaption { padding: .7rem 1rem; font-weight: 600; text-align: center; }
.phone-shot { background: none; border: 0; box-shadow: none; overflow: visible; }
.phone { border: 8px solid #1c2430; border-radius: 26px; overflow: hidden; max-width: 15rem; margin: 0 auto; background: #1c2430; box-shadow: 0 12px 30px rgba(20, 30, 25, .2); }

.clients { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.client-icons { display: flex; justify-content: center; gap: 1rem; }
.bubble { display: inline-grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 24px; color: #fff; box-shadow: 0 10px 24px rgba(20, 30, 25, .18); animation: float 6s ease-in-out infinite; }
.bubble svg { width: 2.6rem; height: 2.6rem; }
.b1 { background: linear-gradient(135deg, #1b4a6e, #2f6f9a); }
.b2 { background: linear-gradient(135deg, #1f6f78, #2f9a83); animation-delay: 1s; }
.b3 { background: linear-gradient(135deg, #9a7a3f, #d4b47a); animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.crisis-bar { background: #13284a; color: #fff; padding: 1rem 0; text-align: center; }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .why, .clients { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .gallery > * { scroll-snap-align: center; }
  .hero { padding: 3rem 0 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .star, .nova-glow, .hero-wave, .bubble { animation: none; }
  .feature { transition: none; }
  .feature:hover { transform: none; }
}
