/*
 * Subtle Technologies – Shared Styles
 *
 * Adapted from the Subtle Consulting (subtleconsulting.co.za) theme:
 * fixed dark navigation with gem mark, full-height gradient hero,
 * "eyebrow" section chrome, numbered card grids, and a multi-column
 * footer. Same colour palette and typography (Inter + Playfair Display).
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:        #0C1B33;
    --ink-2:      #1B2B4B;
    --blue:       #003087;
    --blue-h:     #0046BE;
    --text:       #111827;
    --muted:      #6B7280;
    --muted-2:    #9CA3AF;
    --white:      #FFFFFF;
    --cream:      #FAF9F7;
    --silver:     #F4F5F7;
    --border:     #E2E8F0;
    --rule:       rgba(0,0,0,.08);
    --nav-h:      64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--blue-h); }

.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ─── Container ──────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ─── Nav ────────────────────────────────── */
#nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    height: var(--nav-h);
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-gem { display: block; }

.nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--white);
}

.nav-tag {
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 26px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .025em;
    color: rgba(255,255,255,.62);
    text-decoration: none;
    transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-contact {
    display: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.3);
    transition: color .15s, border-color .15s;
}
.nav-contact:hover { color: var(--white); border-color: var(--white); }
@media (min-width: 1024px) { .nav-contact { display: inline-block; } }

/* ─── Hero (home) ─────────────────────────── */
#home {
    padding-top: var(--nav-h);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--ink);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 75% 12%, rgba(91,155,213,.14), transparent 55%),
        linear-gradient(to bottom, rgba(12,27,51,.92) 0%, var(--ink-2) 60%, var(--ink) 100%);
}

.hero-inner {
    max-width: 860px;
    padding: 80px 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-rule {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,.35);
}

.hero-eyebrow-text {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

.hero-h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-h1 em {
    font-style: italic;
    color: rgba(255,255,255,.75);
}

.hero-sub {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,.62);
    max-width: 560px;
    margin: 0 auto 40px;
    letter-spacing: .01em;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ─── Stats strip ────────────────────────── */
#stats {
    background: var(--ink-2);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
    padding: 28px 32px;
    border-right: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.stat-item:last-child { border-right: none; }

.stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
}

/* ─── Process / lifecycle steps ───────────── */
.lifecycle-list {
    display: flex;
    flex-direction: column;
}

.lc-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}
.lc-step:last-child { border-bottom: none; }

.lc-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--blue);
    line-height: 1;
}

.lc-h {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.lc-p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 60ch;
}

/* ─── Page hero (inner pages) ─────────────── */
.page-hero {
    padding: calc(var(--nav-h) + 88px) 0 72px;
    background-color: var(--ink);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 75% 0%, rgba(91,155,213,.12), transparent 55%),
        linear-gradient(to bottom, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--white);
    text-align: center;
}

.page-h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--white);
}

.page-sub {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,.62);
    max-width: 600px;
    margin: 14px auto 0;
}

/* ─── Buttons ────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--blue);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    transition: background .18s;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover { background: var(--blue-h); color: var(--white); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.25);
    padding-bottom: 2px;
    transition: color .15s, border-color .15s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.7); }

/* ─── Section chrome ─────────────────────── */
section.section { padding: 100px 0; }
@media (max-width: 767px) { section.section { padding: 72px 0; } }

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.section-eyebrow-rule {
    width: 28px;
    height: 1px;
    background: var(--blue);
    flex-shrink: 0;
}

.section-eyebrow-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--blue);
}

.section-h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--text);
}

.section-lead {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--muted);
    max-width: 600px;
    margin-top: 14px;
}

.section-intro {
    display: grid;
    gap: 48px;
    margin-bottom: 64px;
}
@media (min-width: 860px) {
    .section-intro { grid-template-columns: 1fr 1fr; align-items: end; }
}

.section-intro-note {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 420px;
}

.section-body p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 16px;
}
.section-body p:last-child { margin-bottom: 0; }

#overview { background: var(--white); }
#overview .section-body { max-width: 760px; }

/* ─── Card grid ──────────────────────────── */
.cards-grid {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.svc-card {
    background: var(--white);
    padding: 36px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: background .18s;
    position: relative;
}
.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 32px; right: 32px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.svc-card:hover { background: var(--cream); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    color: var(--muted-2);
    margin-bottom: 20px;
}

.svc-icon {
    width: 28px;
    height: 28px;
    color: var(--blue);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.svc-h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 14px;
}

.svc-p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
}

/* ─── About split ────────────────────────── */
#about { background: var(--ink); color: var(--white); }

.about-grid {
    display: grid;
    gap: 0;
}
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.about-text {
    padding: 100px 48px 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 859px) { .about-text { padding: 80px 0; } }

.about-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.about-eyebrow-rule { width: 28px; height: 1px; background: rgba(255,255,255,.25); }

.about-eyebrow-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}

.about-h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--white);
    margin-bottom: 28px;
}

.about-body p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,.58);
    font-weight: 300;
    margin-bottom: 16px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-panel {
    background: var(--ink-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 64px 48px;
    min-height: 320px;
}
@media (max-width: 859px) { .about-panel { padding: 56px 0; } }

.about-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-panel-gem { flex-shrink: 0; margin-top: 2px; }

.about-panel-h {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.about-panel-p {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255,255,255,.5);
}

/* ─── Forms ──────────────────────────────── */
#contact, #quote { background: var(--silver); }

.contact-grid {
    display: grid;
    gap: 72px;
}
@media (min-width: 860px) {
    .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; }
}

.contact-intro .section-lead { max-width: 360px; }

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-h {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 6px;
}

.contact-detail-v {
    font-size: 15px;
    color: var(--text);
}

.form-card {
    background: var(--white);
    padding: 48px;
    box-shadow: 0 2px 32px rgba(0,0,0,.06);
}
@media (max-width: 640px) { .form-card { padding: 32px 24px; } }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-field:last-of-type { margin-bottom: 0; }

.form-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,48,135,.09);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted-2); font-weight: 300; }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 130px; }

.btn-submit {
    width: 100%;
    padding: 14px 32px;
    background: var(--ink);
    color: var(--white);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    margin-top: 28px;
    transition: background .18s;
}
.btn-submit:hover { background: var(--blue); }

.form-note {
    font-size: 11.5px;
    color: var(--muted-2);
    margin-top: 14px;
    line-height: 1.65;
    text-align: center;
}

/* ─── Lists (compliance / partners) ──────── */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
}

.info-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.info-item:first-child { border-top: 1px solid var(--border); }
@media (max-width: 640px) { .info-item { grid-template-columns: 1fr; gap: 8px; } }

.info-item-h {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
}

.info-item-p {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
}

/* ─── Footer ─────────────────────────────── */
footer {
    background: var(--ink);
    color: var(--white);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    gap: 48px;
    padding-bottom: 56px;
    grid-template-columns: 1fr;
}
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-gem { display: block; flex-shrink: 0; }

.footer-brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}

.footer-tagline {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 18px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255,255,255,.35);
    font-weight: 300;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.footer-col a,
.footer-col li span {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,.52);
    text-decoration: none;
    transition: color .15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,.28);
    font-weight: 300;
}

.footer-pillars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    gap: 0;
}
.footer-pillars a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color .15s;
}
.footer-pillars a:hover { color: rgba(255,255,255,.75); }
.footer-pillars a + a::before {
    content: '·';
    margin: 0 10px;
    color: rgba(255,255,255,.18);
}

/* ─── Mobile nav ─────────────────────────── */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: transform .22s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 199;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 0 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.nav-mobile[hidden] { display: none; }

.nav-mobile a {
    display: block;
    padding: 13px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    color: rgba(255,255,255,.66);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-mobile a:hover { color: var(--white); background: rgba(255,255,255,.03); }

.nav-mobile-cta {
    margin-top: 8px;
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: none !important;
}
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* ─── Partner / vendor brand grid ─────────── */
.partner-brands {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 44px;
}
@media (min-width: 768px) { .partner-brands { grid-template-columns: repeat(3, 1fr); } }

.partner-brands span {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--ink);
}
