/* vitallegal.co.za, styled to the Vitallegal brand guide (Brand Guide_1.pdf).
   Four official colours (deep blue, cyan, teal, green) plus cyan tints. Ubuntu only.
   Neutral backgrounds, colour blocks for hierarchy, rounded containers, pattern as accents. */

@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/ubuntu-300.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/ubuntu-300i.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ubuntu-400.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ubuntu-500.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ubuntu-700.woff2) format("woff2"); }

:root {
  --deep: #1c5973;
  --deep-ink: #123d4f;
  --cyan: #1fbad6;
  --teal: #00a096;
  --lime: #95c951;
  --lime-ink: #4d7a17;
  --sky-50: #f1fafc;
  --sky-100: #e3f6fa;
  --sky-200: #c9edf4;
  --line: #b5dce5;
  --ink: #1c5973;
  --muted: #4e6f7e;
  --on-dark: #e3f6fa;
  --radius: 18px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 16px 36px -20px rgba(18, 61, 79, 0.45);
  --danger: #b42318;
  --font: "Ubuntu", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sky-50); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; color: var(--deep); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--lime-ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 2px; }

.shell { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--deep-ink); font-weight: 700; padding: 8px 16px; border-radius: var(--pill); z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 0.8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.fine { font-size: 0.85rem; color: var(--muted); }

/* Header */
.site-header { background: var(--deep); position: sticky; top: 0; z-index: 50; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: var(--pill); }
.nav a:hover { background: rgba(227, 246, 250, 0.12); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
.nav .nav-cta { background: var(--lime); color: var(--deep-ink); margin-left: 8px; }
.nav .nav-cta:hover { background: #a8d56a; }
.nav :focus-visible { outline-color: var(--lime); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(227,246,250,.4); color: var(--on-dark); font: inherit; font-weight: 500; padding: 8px 14px; border-radius: var(--pill); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--deep); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: var(--radius-sm); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lime); }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .brand img { height: 38px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: var(--pill); border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--lime); color: var(--deep-ink); }
.btn-primary:hover { background: #a8d56a; }
.btn-ghost { border-color: currentColor; color: var(--deep); background: transparent; }
.btn-ghost:hover { background: rgba(28, 89, 115, 0.06); }
.on-dark .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.band-white { background: #fff; }
.band-sky { background: var(--sky-100); }
.band-deep { background: var(--deep); color: var(--on-dark); }
.band-deep h1, .band-deep h2, .band-deep h3 { color: #fff; }
.band-deep h1 em, .band-deep h2 em { color: var(--lime); }
.band-deep .lead, .band-deep .fine { color: var(--sky-200); }
.band-deep .eyebrow { color: var(--lime); }
.band-deep a { color: #fff; }
.band-deep :focus-visible { outline-color: var(--lime); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0; }
.hero .shell { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-photo::before { content: ""; position: absolute; width: 140px; height: 70px; right: -24px; top: -24px; background: url(img/brand-pattern.svg) no-repeat center / contain; z-index: 1; }
.hero-photo::after { content: ""; position: absolute; width: 96px; height: 96px; left: -28px; bottom: -28px; border-radius: 50%; background: var(--teal); z-index: -1; }
.hero .pillars { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 2em; padding: 0; list-style: none; font-size: .95rem; color: var(--sky-200); }
.hero .pillars li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: middle; }
.page-hero { padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; bottom: -20px; width: 260px; height: 130px; background: url(img/brand-pattern.svg) no-repeat center / contain; opacity: .9; }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 860px) {
  .hero .shell { grid-template-columns: 1fr; }
  .hero-photo { max-width: 440px; }
  .page-hero::after { width: 160px; height: 80px; right: -30px; }
}

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.band-white .card { background: var(--sky-50); box-shadow: none; border: 1px solid var(--line); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-100); color: var(--teal); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split img { max-width: 440px; } }
.stack > * + * { margin-top: 28px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23123d4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Products */
.product { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-top { padding: 28px 28px 0; }
.product-top img { height: 64px; width: auto; margin-bottom: 20px; }
.product-body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product .price { font-size: 0.95rem; color: var(--muted); margin-bottom: 1em; }
.product .price strong { font-size: 1.6rem; color: var(--deep); }
.product .btn-row { margin-top: auto; padding-top: 12px; }
.product-strip { height: 8px; background: linear-gradient(90deg, var(--deep) 0 25%, var(--cyan) 25% 50%, var(--teal) 50% 75%, var(--lime) 75%); }

/* Documents */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.doc .icon { margin: 0; }
.doc h3 { margin: 0 0 4px; }
.doc p { margin: 0; color: var(--muted); font-size: .95rem; }
.doc .btn { padding: 10px 20px; white-space: nowrap; }
@media (max-width: 640px) { .doc { grid-template-columns: 1fr; } .doc .icon { display: none; } .doc .btn { justify-self: start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-list .icon { width: 40px; height: 40px; border-radius: 12px; margin: 0; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact-list a { font-weight: 500; font-size: 1.1rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
address { font-style: normal; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offices .card { padding: 22px; }
.offices h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
@media (max-width: 480px) { .offices { grid-template-columns: 1fr; } }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--deep-ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 160, 150, .18); }
.field .err { display: none; color: var(--danger); font-size: .88rem; margin-top: 4px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 500; }
.form-status.ok { background: #eef7e3; color: var(--lime-ink); border: 1px solid #cfe7b1; }
.form-status.bad { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bc; }
.form-status[hidden] { display: none; }

/* CTA band */
.band-deep.cta { background: var(--deep-ink); }
.cta { position: relative; overflow: hidden; }
.cta .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 22ch; }
.cta::before { content: ""; position: absolute; left: -30px; top: -18px; width: 180px; height: 90px; background: url(img/brand-pattern.svg) no-repeat center / contain; opacity: .5; }

/* Footer */
.site-footer { background: var(--deep); border-top: 1px solid rgba(227, 246, 250, .15); color: var(--sky-200); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--lime); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-h { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-logo img { height: 52px; width: auto; margin-bottom: 16px; }
.foot-legal { border-top: 1px solid rgba(227, 246, 250, .2); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav .nav-cta[aria-current="page"] { color: var(--deep-ink); box-shadow: none; border-radius: var(--pill); }
@media (max-width: 760px) {
  .page-hero::after, .cta::before { display: none; }
  .nav .nav-cta[aria-current="page"] { box-shadow: none; }
}

/* Breadcrumbs */
.crumbs { font-size: .88rem; margin-bottom: 1.2em; color: var(--sky-200); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Long-form document pages */
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 960px) { .doc-aside { position: static; } }
.toc { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.pdf-card { background: var(--deep); color: var(--on-dark); border-radius: var(--radius); padding: 20px 22px; }
.pdf-card p { margin: 0 0 12px; font-size: .92rem; }
.pdf-card strong { color: #fff; display: block; margin-bottom: 4px; }
.pdf-card .btn { padding: 10px 18px; width: 100%; }
.pdf-card :focus-visible { outline-color: var(--lime); }
.prose { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); max-width: 820px; }
.prose > section { padding: 0; }
.prose > section + section { margin-top: 2.4em; padding-top: 2.4em; border-top: 1px solid var(--sky-200); }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose .summary { font-size: 1.1rem; color: var(--muted); }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 0 52px; min-height: 38px; margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--deep-ink); font-weight: 700; display: grid; place-items: center; }
.callout { background: var(--sky-100); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1em 0; }
.contact-cards > div { background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .95rem; }
.contact-cards h3, .contact-cards h4 { margin: 0 0 6px; font-size: 1rem; color: var(--deep); }
.contact-cards p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--sky-200); vertical-align: top; }
thead th { background: var(--deep); color: #fff; font-weight: 500; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; color: var(--deep); }
td.num, th.num { white-space: nowrap; }
.fine-detail { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.band-white .faq details { background: var(--sky-50); box-shadow: none; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 500; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.section-head { max-width: 760px; margin-bottom: 32px; }

/* Benefits */
.benefit { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3.5vw, 40px); }
.benefit + .benefit { margin-top: 20px; }
.benefit-head { display: flex; gap: 16px; align-items: center; margin-bottom: 1em; }
.benefit-head .icon { margin: 0; flex: none; }
.benefit-head h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.cols-2 { columns: 2 240px; column-gap: 32px; }
.cols-2 li { break-inside: avoid; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sky-100); color: var(--teal); padding: 4px 10px; border-radius: var(--pill); margin-right: 6px; }
.contact-cards a, .contact-list a, .site-footer a { overflow-wrap: anywhere; }
.prose dt { margin-top: 1em; }
.prose dd { margin: 4px 0 0; color: var(--muted); }
