/*
  Novoasis LLC — shared stylesheet.
  Contract: only Cloudflare Turnstile as third-party request, no inline styles or scripts
  (strict CSP in /_headers), local Inter fonts, light theme, AA contrast for all text.
*/

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --ink: #10201c;          /* text, primary button */
  --muted: #4d5b57;        /* secondary text, 7.4:1 on white */
  --brand: #0d6b57;        /* oasis green: links, accents, 6.3:1 on white */
  --brand-deep: #094f40;   /* hover */
  --sand: #f6f2e9;         /* tinted bands and cards */
  --sand-2: #ece5d6;
  --line: #ddd6c6;
  --gold: #b8862b;         /* decorative only, never for text */
  --r-md: 14px;
  --r-pill: 9999px;
  --shadow: 0 1px 2px rgba(16, 32, 28, .06), 0 8px 24px rgba(16, 32, 28, .06);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
  --gutter: 24px;
  --section-y: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; min-height: 44px; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--brand); }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.display { font-size: clamp(36px, 6vw, 60px); letter-spacing: -.03em; max-width: 16ch; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 60ch; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary { background: var(--sand); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--sand-2); color: var(--ink); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--sand); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.hero { padding: clamp(56px, 10vw, 128px) 0 var(--section-y); position: relative; overflow: hidden; }
.hero-mark {
  position: absolute; right: -80px; top: 40px; width: 420px; height: 420px; opacity: .9; pointer-events: none;
}
.hero-copy { position: relative; max-width: 640px; }
@media (max-width: 1180px) { .hero-mark { display: none; } }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--shadow);
}
.section-tint .card { background: #fff; }
.card h3 { font-size: 20px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sand); color: var(--brand); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

.pill {
  display: inline-block; font-size: 13px; font-weight: 500; padding: 4px 12px;
  border-radius: var(--r-pill); background: var(--sand-2); color: var(--ink); margin-bottom: 14px;
}

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 30px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}

.contact-box {
  background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(32px, 6vw, 56px);
}
.contact-box .lead { color: #d3dcd9; }
.contact-box .btn-primary { background: #fff; color: var(--ink); }
.contact-box .btn-primary:hover { background: var(--sand); color: var(--ink); }
.contact-box a:not(.btn) { color: #fff; }

/* Legal pages */
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--muted); padding: 12px 0; display: inline-block; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Contact form (inside the dark .contact-box) */
.form { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; color: #fff; }
.form .optional { font-weight: 400; color: #c5d0cc; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #5b6b67; background: #1b2e29; color: #fff; font: inherit;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: #ffb4a8; }
.field-error { margin: 6px 0 0; min-height: 1em; font-size: 14px; color: #ffb4a8; }
.form-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; }
.form-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form-check label { font-weight: 400; margin: 0; }
.form-status { margin: 16px 0 0; min-height: 1.5em; font-weight: 500; color: #fff; }
.form-note { color: #c5d0cc; margin-top: 8px; }
.cf-turnstile { margin-top: 20px; min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-box .btn-primary:disabled { opacity: .6; cursor: progress; }
