/* Richweb static site - single stylesheet.
   Brand palette derived from the legacy Engitech WordPress theme. */

:root {
    --navy: #161d39;
    --navy-deep: #1b1d21;
    --blue: #43baff;
    --blue-deep: #1080d0;
    --purple: #7141b1;
    --cyan: #00deff;

    --text: #1b1d21;
    --muted: #6d6d6d;
    --line: #e7e7e7;
    --bg: #ffffff;
    --bg-alt: #f6f6f6;
    --bg-dark: var(--navy);

    --container: 1200px;
    --radius: 6px;
    --shadow: 0 6px 24px rgba(22, 29, 57, 0.08);

    --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--blue-deep);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--blue); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 700;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

@media (max-width: 720px) {
    body { font-size: 15px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.05rem; }
}

p { margin: 0 0 1em; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 540px) {
    .container { padding: 0 18px; }
}

/* Prevent any rogue element from creating a horizontal scrollbar. Sections
   already clip with overflow:hidden, but background blobs/transforms on inner
   elements occasionally bleed past the viewport on narrow widths. */
html, body { overflow-x: clip; }
@media (max-width: 540px) {
    p, li, td, dd, dt { overflow-wrap: anywhere; word-wrap: break-word; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn-primary:hover {
    background: var(--blue-deep);
    border-color: var(--blue-deep);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Topbar (above sticky header) ---------- */
.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar a { color: #fff; border: 0; text-decoration: none; }
.topbar a:hover { color: var(--blue); }
.topbar-sep { color: rgba(255,255,255,0.4); }
.topbar-links {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
@media (max-width: 760px) {
    /* On mobile, drop the brand line and let the actionable links flow. */
    .topbar-inner > span:not(.topbar-links) { display: none; }
    .topbar-links { width: 100%; justify-content: center; }
}

/* ---------- Site header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 80px;
}
.site-header .logo img {
    height: 64px;
    width: auto;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-nav a {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}
.site-nav a:hover,
.site-nav a.active { color: var(--blue); }

.site-nav .has-children { position: relative; }
@media (min-width: 961px) {
    .site-nav .has-children > a::after {
        content: " \25BE";
        font-size: 0.75em;
        margin-left: 4px;
        opacity: 0.7;
    }
    .site-nav .submenu .has-children > a::after { content: " \25B8"; }
}
.site-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 220px;
    border: 1px solid var(--line);
}
@media (min-width: 961px) {
    .site-nav .has-children:hover > .submenu,
    .site-nav .has-children:focus-within > .submenu { display: block; }
}
.site-nav .submenu a {
    display: block;
    padding: 10px 18px;
    font-weight: 500;
    white-space: nowrap;
}
.site-nav .submenu a:hover { background: var(--bg-alt); }

.site-nav .submenu .has-children { position: relative; }
.site-nav .submenu-nested {
    top: -8px;
    left: 100%;
    margin-left: 0;
    z-index: 10;
}
/* Transparent bridge so the cursor can cross from the parent submenu into the
   nested flyout without falling into a hover dead zone. */
.site-nav .submenu-nested::before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
}

.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: var(--radius);
}
.nav-cta:hover { background: var(--blue-deep); color: #fff !important; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    color: var(--navy);
    cursor: pointer;
    padding: 4px 8px;
}

/* Mobile-only chevron button to expand a submenu without navigating away from
   the parent link. Hidden on desktop; submenus there are hover-driven. */
.site-nav .submenu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 12px;
    line-height: 1;
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .site-nav .has-children > a { flex: 1; min-width: 0; }
    .site-nav .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 56px;
        align-self: stretch;
        margin-right: -16px;
        padding: 0 22px;
        font-size: 1.1rem;
        color: var(--navy);
        border-bottom: 1px solid var(--line);
        border-left: 1px solid var(--line);
        transition: transform 0.2s ease, background 0.15s ease;
    }
    .site-nav .submenu-toggle:hover,
    .site-nav .submenu-toggle:focus-visible { background: var(--bg-alt); }
    .site-nav .submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
    /* Nested submenu toggles inside an open submenu don't need to bleed to
       the page edge - keep them inset. */
    .site-nav .submenu .submenu-toggle { margin-right: 0; }
    .site-nav .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 16px;
        flex-basis: 100%;
    }
    .site-nav .submenu.open { display: block; }
    .site-nav .submenu-nested { left: 0; padding-left: 16px; }
    .site-nav .nav-cta {
        text-align: center;
        margin-top: 8px;
        border-bottom: 0 !important;
    }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, rgba(22,29,57,0.85) 0%, rgba(38,32,81,0.85) 100%);
    color: #fff;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
@media (max-width: 720px) {
    .hero { padding: 64px 0; }
    .hero .lead { font-size: 1.05rem; }
    .page-header { padding: 56px 0 48px; }
    .page-header h1 { font-size: 2rem; }
}
.hero.has-bg {
    background-image:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero h1, .hero h2 { color: #fff; }
.hero .lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin-bottom: 32px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page header (smaller hero used by inner pages).
   Default background is the shared site-wide hero image; pages may override
   by setting --bg-image inline if a unique image is wanted. */
.page-header {
    background-image: var(--bg-image, url('/images/bg-pheader.jpg'));
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    /* Subtle accent bar across the bottom edge */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
}
.page-header h1 { color: #fff; margin-bottom: 8px; font-size: 2.8rem; }
.page-header .crumbs {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}
.page-header .crumbs a { color: var(--blue); }

/* ---------- Sections ---------- */
section {
    padding: 72px 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
section > .container { position: relative; z-index: 2; }
section.tight { padding: 44px 0; }
section.compact { padding: 56px 0; }
@media (max-width: 720px) {
    section { padding: 56px 0; }
    section.tight { padding: 36px 0; }
}
section.alt { background: var(--bg-alt); }

/* Atmospheric brand-tinted blobs that give plain white sections depth.
   Pseudo-elements sit behind content via z-index/isolation above. */
section.alt::before,
section:not(.alt):not(.dark):not(.tinted):not(.tinted-blue):not(.cta):not(.hero):not(.page-header)::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    top: -180px;
    right: -160px;
    background: radial-gradient(closest-side,
        rgba(67,186,255,0.18),
        rgba(67,186,255,0) 70%);
    pointer-events: none;
    filter: blur(8px);
}
section.alt::after,
section:not(.alt):not(.dark):not(.tinted):not(.tinted-blue):not(.cta):not(.hero):not(.page-header)::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    bottom: -200px;
    left: -140px;
    background: radial-gradient(closest-side,
        rgba(113,65,177,0.14),
        rgba(113,65,177,0) 70%);
    pointer-events: none;
    filter: blur(10px);
}

/* The .alt sections also get a subtle dotted-grid texture for tactile contrast. */
section.alt {
    background-image:
        radial-gradient(rgba(22,29,57,0.06) 1px, transparent 1.4px);
    background-size: 22px 22px;
    background-position: 0 0;
}

/* Hairline gradient divider that appears between any two adjacent sections.
   Brand-colored, edge-fading - creates a clean cadence without heavy borders. */
section + section::before { /* keep blob, plus the rule below adds a divider */ }
section + section {
    border-top: 1px solid transparent;
    background-clip: padding-box;
}
section + section > .container::before {
    content: "";
    position: absolute;
    top: -72px;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 80%);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(67,186,255,0.5) 30%,
        rgba(113,65,177,0.5) 70%,
        transparent 100%);
    z-index: 3;
    pointer-events: none;
}
section.tight + section > .container::before,
section + section.tight > .container::before { top: -44px; }
@media (max-width: 720px) {
    section + section > .container::before { top: -56px; }
}

/* Suppress dividers where they would clash with hero/page-header/CTA boundaries. */
.page-header + section > .container::before,
.hero + section > .container::before,
section.dark + section > .container::before,
section + section.dark > .container::before,
section + section.cta > .container::before,
section.cta + section > .container::before { display: none; }

section.alt.has-bg {
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
section.alt.has-bg.with-tint {
    background-image:
        linear-gradient(rgba(246,246,246,0.92), rgba(246,246,246,0.92)),
        var(--bg-image);
}
section.dark {
    background: var(--navy);
    color: #fff;
}
section.dark.has-bg {
    background-image:
        linear-gradient(135deg, rgba(22,29,57,0.88), rgba(22,29,57,0.78)),
        var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
section.dark p { color: rgba(255,255,255,0.8); }

/* Tinted section: subtle blue/lavender wash for visual variety. */
section.tinted {
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0fa 100%);
}
section.tinted-blue {
    background: linear-gradient(135deg, rgba(67,186,255,0.08) 0%, rgba(67,186,255,0.02) 100%);
}

/* Shape divider: a curved SVG sitting between two contrasting sections.
   Place inside a section as <div class="shape-divider top"></div> or .bottom. */
.shape-divider {
    position: absolute;
    left: 0; right: 0;
    height: 60px;
    line-height: 0;
    pointer-events: none;
    overflow: hidden;
}
.shape-divider.top { top: -1px; transform: scaleY(-1); }
.shape-divider.bottom { bottom: -1px; }
.shape-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}
.shape-divider .fill { fill: #fff; }
.shape-divider.fill-alt .fill { fill: var(--bg-alt); }
.shape-divider.fill-navy .fill { fill: var(--navy); }
.shape-divider.fill-tinted .fill { fill: #f0f4ff; }

.section-head { text-align: center; margin-bottom: 36px; position: relative; }
.section-head .eyebrow {
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue));
}
.section-head .eyebrow::after {
    background: linear-gradient(90deg, var(--blue), transparent);
}
.section-head h2 { margin-bottom: 10px; }
.section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
}
.section-head p {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.02rem;
}
section.dark .section-head h2::after {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    /* Photo-card mosaics stay as a 2x2 mosaic so the section doesn't become
       a single 4-image-tall column on phones. */
    .photo-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
}
@media (min-width: 600px) and (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.split img {
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(22,29,57,0.14);
}
/* Stagger: slight vertical offset on the image so layouts feel less grid-locked. */
.split.stagger > div:nth-child(2) { margin-top: 48px; }
.split.stagger > div:nth-child(2) img { transform: translateX(12px); }
.split.reverse > div:first-child { order: 2; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split.stagger > div:nth-child(2) { margin-top: 0; }
    .split.stagger > div:nth-child(2) img { transform: none; }
    .split.reverse > div:first-child { order: 0; }
}

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(22,29,57,0.10);
    border-color: rgba(67,186,255,0.4);
}
/* Featured card variant: subtle blue gradient + accent border */
.card.featured {
    background: linear-gradient(180deg, rgba(67,186,255,0.05), #fff);
    border-color: rgba(67,186,255,0.5);
}
/* Soft accent corner-bar for cards with class .accent */
.card.accent::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--blue), var(--purple));
}
.card .icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(67,186,255,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.card .icon::after {
    /* Subtle highlight gloss on the upper edge */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    pointer-events: none;
}
.card:hover .icon {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 10px 24px rgba(67,186,255,0.35);
}

/* Inline SVG sprite icon. Color/size inherit from parent via currentColor. */
.icon-svg {
    width: 32px;
    height: 32px;
    color: currentColor;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }

.card-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    color: var(--blue-deep);
}
.card-link::after { content: " →"; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border-color: var(--blue);
    box-shadow: var(--shadow);
    position: relative;
}
.price-card.featured::before {
    content: "Recommended";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.price-card .tier-name {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.85rem;
}
.price-card .tier-price {
    font-size: 2rem;
    color: var(--navy);
    font-weight: 700;
    margin: 8px 0 4px;
}
.price-card .tier-price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.price-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
    color: var(--muted);
    font-size: 0.95rem;
}
.price-card ul li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.price-card ul li:last-child { border: 0; }
.price-card .btn { margin-top: auto; }

/* ---------- Logo strip ---------- */
.logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: center;
}
.logo-strip img {
    flex: 0 1 calc((100% - 4 * 32px) / 5);
    max-width: calc((100% - 4 * 32px) / 5);
    height: 56px;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(20%);
    transition: all 0.2s;
}
.logo-strip img:hover { opacity: 1; filter: none; }
@media (max-width: 900px) {
    .logo-strip img {
        flex-basis: calc((100% - 2 * 32px) / 3);
        max-width: calc((100% - 2 * 32px) / 3);
    }
}
@media (max-width: 500px) {
    .logo-strip img {
        flex-basis: calc((100% - 32px) / 2);
        max-width: calc((100% - 32px) / 2);
    }
}

/* ---------- CTA banner ---------- */
.cta {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    text-align: center;
    padding: 70px 0;
    position: relative;
}
.cta.has-bg {
    background-image:
        linear-gradient(135deg, rgba(22,29,57,0.78), rgba(16,128,208,0.72)),
        var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0 auto 24px; }
.cta a { color: #fff; text-decoration: underline; }
.cta a:hover { color: var(--cyan); }
.cta .btn { background: #fff; color: var(--navy); border-color: #fff; text-decoration: none; }
.cta .btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Forms ---------- */
form .field { margin-bottom: 18px; }
form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 0.95rem;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea,
form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    color: var(--text);
    background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(67,186,255,0.2);
}
form textarea { min-height: 140px; resize: vertical; }
form .hint { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 30px;
    margin-top: 0;
}
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--blue); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.footer-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.footer-badges img { height: 60px; width: auto; }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.list-checks { list-style: none; padding: 0; margin: 0 0 16px; }
.list-checks li {
    padding: 8px 0 8px 32px;
    position: relative;
}
.list-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.eyebrow {
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Division header used to group sub-cards under a numbered division label. */
.division-label {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 0 0 22px;
    font-size: 1.5rem;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}
@media (max-width: 540px) {
    .division-label {
        font-size: 1.2rem;
        gap: 10px;
        flex-wrap: wrap;
    }
}
.division-label .division-num {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--blue);
    background: linear-gradient(135deg, rgba(67,186,255,0.12), rgba(113,65,177,0.12));
    border: 1px solid rgba(67,186,255,0.35);
    border-radius: 999px;
    padding: 4px 12px;
    line-height: 1;
}
section.dark .division-label { color: #fff; border-bottom-color: rgba(255,255,255,0.18); }
section.dark .division-label .division-num { color: var(--cyan); border-color: rgba(0,222,255,0.35); }

.text-center { text-align: center; }
.muted { color: var(--muted); }

/* Photo cards with overlay title (Mission / Vision / Values / Strategy) */
.photo-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    color: #fff;
    text-decoration: none;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(22,29,57,0) 50%, rgba(22,29,57,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px 24px;
    transition: background 0.2s ease;
}
.photo-card:hover .overlay {
    background: linear-gradient(to bottom, rgba(22,29,57,0.2) 0%, rgba(22,29,57,0.92) 100%);
}
.photo-card h4 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

/* Counters (e.g. "200+ active Clients") */
.counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.counter {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.counter .num {
    color: var(--blue);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}
@media (max-width: 540px) {
    .counters { gap: 14px; }
    .counter { padding: 18px 12px; }
    .counter .num { font-size: 1.8rem; }
    .counter .label { font-size: 0.8rem; letter-spacing: 0.06em; }
}
.counter .label {
    color: var(--muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
    display: block;
}

/* People cards */
.team-card { text-align: center; }
.team-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
@media (max-width: 540px) {
    .team-card img { aspect-ratio: 1/1; max-width: 320px; margin-left: auto; margin-right: auto; }
}
.team-card h4 { margin: 0 0 4px; }
.team-card .role { color: var(--muted); font-size: 0.95rem; }

/* Post / news listing */
.post-list { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }
.post-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h3 { font-size: 1.15rem; margin: 8px 0; }
.post-card time { color: var(--muted); font-size: 0.85rem; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.post-card .post-more { color: var(--blue-deep); font-weight: 600; font-size: 0.9rem; }
.post-card .post-meta { display: flex; align-items: center; gap: 12px; }
.post-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tag-update { background: rgba(67,186,255,0.15); color: var(--blue-deep); }
.tag-whitepaper { background: rgba(113,65,177,0.15); color: var(--purple); }
.post-empty { color: var(--muted); font-style: italic; text-align: center; }

/* Single-post article layout */
.post-article {
    max-width: 760px;
    margin: 0 auto;
}
.post-article h2 { margin-top: 1.6em; }
.post-article h3 { margin-top: 1.4em; }
.post-article ul, .post-article ol { padding-left: 1.4em; }
.post-article blockquote {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    border-left: 4px solid var(--blue);
    background: var(--bg-alt);
    color: var(--muted);
    font-style: italic;
}
.post-article code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
