/* ==========================================================================
   UVUNTU Digital — site styles
   UVUNTU palette from the logo artwork: deep teal, mid teal, sage.
   Tokens first, then base, layout and sections.
   ========================================================================== */

:root {
  --ink: #074B55;          /* deep teal: headings, dark sections (9.8:1 on paper) */
  --ink-deep: #053A42;     /* hover/pressed on deep teal */
  --teal: #00626C;         /* links and buttons (6.8:1 on paper) */
  --teal-mid: #5D9FA4;     /* brand mid teal, decorative only */
  --sage: #ADD3CD;         /* brand sage, rules and accents */
  --sage-wash: #E6EFEC;    /* alternate section ground */
  --paper: #FBFAF7;        /* page ground */
  --card: #FFFFFF;
  --text: #172029;         /* body text (15.9:1 on paper) */
  --muted: #4A5761;        /* secondary text (7.2:1 on paper) */
  --on-ink: #F4F8F7;       /* text on deep teal */
  --on-ink-muted: #C4DDD9; /* secondary text on deep teal (8.2:1) */
  --line: #D9DED9;
  --radius: 10px;
  --shadow: 0 18px 44px -24px rgba(7, 75, 85, 0.45);
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--font-serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.012em; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.12rem; }
p { margin: 0; }
a { color: var(--teal); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--teal-mid); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  background: var(--teal); color: #fff; border: 2px solid var(--teal);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--sage); border-color: var(--sage); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* "Watch the tour": a plain text button with a play glyph. */
.watch {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--teal); font-weight: 600; text-decoration: none;
}
.watch::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 7v10l8-5z' fill='%23fff'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  transition: background-color 0.15s ease;
}
.watch:hover { color: var(--ink); }
.watch:hover::before { background-color: var(--ink); }
.watch .dur { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.94); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 62px; height: auto; }
.brand span { font-weight: 600; font-size: 1.12rem; letter-spacing: 0.02em; }
.brand em { font-style: normal; font-weight: 500; color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--teal); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.lede { margin-top: 24px; max-width: 34em; font-size: 1.2rem; color: var(--muted); }
.hero .actions { margin-top: 34px; }
.hero-reel { margin: 0; }
.hero-reel figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* A framed preview: the clip sits in a quiet window, not a fake browser. */
.frame { border-radius: var(--radius); overflow: hidden; background: var(--sage-wash); box-shadow: var(--shadow); border: 1px solid var(--line); }
.preview { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sage-wash); }

/* ---------- Sections ---------- */
.section-title { max-width: 18ch; }
.section-lede { margin-top: 16px; max-width: 40em; color: var(--muted); font-size: 1.1rem; }

.work { padding: 96px 0; border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 72px; }
.feature-row.flip .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-copy p { color: var(--muted); }
.feature-copy h3 { margin: 6px 0 14px; font-family: var(--font-serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600; }
.feature-copy .kind { color: var(--teal); font-weight: 600; font-size: 0.95rem; }
.facts { list-style: none; padding: 0; margin: 20px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 4px 12px; border-radius: 999px; background: var(--sage-wash); color: var(--ink); font-size: 0.9rem; font-weight: 500; }

.index-title { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.6rem; }
.work-index { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.work-index li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.work-index .preview { border-radius: 8px; border: 1px solid var(--line); }
.work-index h4 { margin-bottom: 6px; }
.work-index p { color: var(--muted); font-size: 0.98rem; }
.work-index .watch { margin-top: 8px; font-size: 0.95rem; }

/* ---------- Websites ---------- */
.websites { padding: 96px 0; background: var(--sage-wash); }
.site-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 48px; }
.site-shots { position: relative; padding-right: 16%; }
.browser { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #EEF2F0; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #C9D3CF; }
.browser-bar em { font-style: normal; font-size: 0.8rem; color: var(--muted); margin-left: 10px; background: #fff; padding: 2px 12px; border-radius: 999px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.phone { position: absolute; right: 0; bottom: -28px; width: 27%; margin: 0; border: 7px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.site-copy h3 { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 14px; }
.site-copy p { color: var(--muted); margin-bottom: 20px; }

.offer {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0;
  margin-top: 96px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.offer-head { background: var(--ink); color: var(--on-ink); padding: 44px; }
.offer-tag { color: var(--sage); font-weight: 600; }
.price { font-family: var(--font-serif); font-weight: 600; font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1; margin: 14px 0 18px; color: #fff; }
.offer-sub { color: var(--on-ink-muted); margin-bottom: 28px; max-width: 26em; }
.offer-list { list-style: none; margin: 0; padding: 36px 44px; background: var(--card); display: grid; align-content: center; }
.offer-list li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.offer-list li:last-child { border-bottom: 0; }
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-wash)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300626C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.offer-terms { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Terms page ---------- */
.terms { padding: 56px 0 96px; }
.terms .container { max-width: 760px; }
.terms h1 { margin-top: 24px; }
.terms .updated { margin-top: 12px; color: var(--muted); }
.terms h2 { font-family: var(--font-sans); font-size: 1.35rem; margin-top: 44px; }
.terms p, .terms li { margin-top: 12px; color: var(--text); }
.terms ul { padding-left: 22px; margin: 0; }
.terms .back { display: inline-block; margin-top: 48px; }

/* ---------- How it works ---------- */
.how { padding: 96px 0; }
.how-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 56px; color: var(--muted); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.6rem; color: var(--teal-mid);
}
.steps strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding: 88px 0; background: var(--ink); color: var(--on-ink); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact h2 { color: #fff; max-width: 16ch; }
.contact-copy p { margin-top: 16px; color: var(--on-ink-muted); font-size: 1.15rem; max-width: 30em; }

.contact-form { background: var(--paper); color: var(--text); border-radius: 12px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.6); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #B9C4C0; border-radius: 8px; background: #fff;
  font: inherit; color: var(--text);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--sage); outline-offset: 0; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #B42318; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: 0.65; cursor: progress; }
.form-status { min-height: 1.5em; color: var(--muted); }
.form-status.is-error { color: #B42318; }
.form-status.is-done { color: var(--ink); font-weight: 600; }
.turnstile:empty { display: none; }
/* Off-screen, not display:none, so simple bots still see and fill it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-ink-muted); padding: 26px 0; font-size: 0.9rem; }
.site-footer a { color: var(--on-ink); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Enlargeable screenshots ---------- */
.zoom { position: relative; display: block; cursor: zoom-in; }
.zoom:focus-visible { outline-offset: -3px; border-radius: 0; }
.zoom::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(7, 75, 85, 0.85)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F8F7' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E")
    center / 17px no-repeat;
  opacity: 0.85; transition: opacity 0.15s ease;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
.phone .zoom::after { right: 8px; bottom: 8px; width: 30px; height: 30px; background-size: 14px; }

/* ---------- Viewer (screenshots and tour videos) ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 56px 72px;
  border: 0; background: transparent; color: var(--on-ink);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(4, 34, 38, 0.95); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox-figure img {
  max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto;
  border-radius: 8px; background: #fff; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-figure video {
  display: none; width: min(100%, calc((100vh - 160px) * 1.6)); max-height: calc(100vh - 160px);
  border-radius: 8px; background: #000; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.lightbox.is-video .lightbox-figure img, .lightbox.is-video .lightbox-prev, .lightbox.is-video .lightbox-next { display: none; }
.lightbox.is-video .lightbox-figure video { display: block; }
.lightbox-figure figcaption { max-width: 70ch; text-align: center; font-size: 0.95rem; color: var(--on-ink-muted); }
.lightbox-btn {
  position: fixed; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--on-ink); font-size: 2rem; line-height: 1;
}
.lightbox-btn:hover { background: var(--teal); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: flex; align-items: center; }
.not-found h1 { margin-top: 48px; }
.not-found .actions { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-inner, .feature-row, .site-feature, .offer, .how-inner, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-inner { gap: 28px; }
  .hero-inner { gap: 40px; }
  .feature-row { gap: 24px; margin-top: 56px; }
  .feature-row.flip .feature-media { order: 0; }
  .work-index { grid-template-columns: minmax(0, 1fr); }
  .how-inner { gap: 28px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; }
  .hero { padding: 40px 0 64px; }
  .work, .websites, .how { padding: 64px 0; }
  .contact { padding: 64px 0; }
  .work-index li { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .site-shots { padding-right: 0; }
  .phone { position: relative; right: auto; bottom: auto; width: 44%; margin: -48px 8px 0 auto; }
  .offer { margin-top: 64px; }
  .offer-head, .offer-list { padding: 28px 22px; }
  .contact-form { padding: 22px 18px; }
  .contact-form .btn { justify-self: stretch; }
  .actions .btn { width: 100%; }
  .lightbox { padding: 72px 12px; }
  .lightbox-figure img { max-height: calc(100vh - 200px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .watch::before, .zoom::after { transition: none; }
}
