/* =========================================================================
   AISCORP site stylesheet
   Design tokens live in :root. Replace the six palette values below with the
   exact brand hexes and the whole site rethemes without touching components.
   ========================================================================= */

:root {
    /* Palette */
    --ink: #070C14;
    --surface: #0E1622;
    --surface-2: #16202F;
    --line: rgba(255, 255, 255, 0.09);
    --gold: #D8A54A;
    --gold-bright: #F0C274;

    /* Text */
    --text: #E8EDF4;
    --text-strong: #FFFFFF;
    --muted: #94A3B4;

    /* Type */
    --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Layout */
    --shell: 1180px;
    --gutter: 24px;
    --radius: 14px;
    --radius-sm: 8px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--gold-bright);
    text-decoration: none;
}

a:hover {
    color: var(--gold);
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gold);
    color: var(--ink);
    padding: 12px 20px;
    z-index: 200;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Layout primitives ---------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: 96px;
}

.section--tight {
    padding-block: 64px;
}

.section--surface {
    background-color: var(--surface);
}

.section--raised {
    background-color: var(--surface-2);
}

.grid {
    display: grid;
    gap: 28px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
}

.split--reverse .split-media {
    order: 2;
}

.measure {
    max-width: 62ch;
}

.center {
    text-align: center;
    margin-inline: auto;
}

/* ---------- Typography ---------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
    flex: none;
}

.center .eyebrow {
    justify-content: center;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-strong);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    margin: 0 0 18px;
    color: var(--muted);
}

.lede {
    font-size: 1.15rem;
    color: var(--text);
}

.subhead {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-accent {
    background-color: var(--gold);
    color: var(--ink);
}

.btn-accent:hover {
    background-color: var(--gold-bright);
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    border-color: var(--line);
    color: var(--text-strong);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.center .btn-row {
    justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(7, 12, 20, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background-color: rgba(7, 12, 20, 0.96);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav ul a {
    position: relative;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 500;
    padding-block: 6px;
}

.primary-nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

.primary-nav ul a:hover::after,
.primary-nav ul a.is-current::after {
    width: 100%;
}

.primary-nav ul a.is-current {
    color: var(--text-strong);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--text-strong);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding-block: 150px 120px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 70% at 15% 20%, rgba(216, 165, 74, 0.16), transparent 60%),
        radial-gradient(50% 60% at 85% 10%, rgba(58, 110, 165, 0.20), transparent 65%);
    pointer-events: none;
}

.hero .shell {
    position: relative;
}

.hero-copy {
    max-width: 780px;
}

.hero-sub {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
}

.page-hero {
    position: relative;
    padding-block: 130px 90px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 12px;
}

.page-hero .eyebrow {
    justify-content: center;
}

/* ---------- Cards ---------- */

.card {
    padding: 32px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 165, 74, 0.45);
}

.card h3,
.card h4 {
    margin-bottom: 10px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(216, 165, 74, 0.12);
    border: 1px solid rgba(216, 165, 74, 0.4);
    color: var(--gold-bright);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- Media ---------- */

.media-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    /* Fallback so a not-yet-supplied photo shows a branded panel rather than
       a broken-image icon. site.js hides the <img> if it fails to load. */
    background:
        linear-gradient(135deg, rgba(216, 165, 74, 0.16), rgba(58, 110, 165, 0.18)),
        var(--surface-2);
    min-height: 220px;
}

.media-frame.has-no-image::after {
    content: attr(data-fallback-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.media-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.media-frame--wide img {
    aspect-ratio: 16 / 9;
}

/* ---------- Counter (animated on scroll) ---------- */

.counter {
    display: inline-flex;
    flex-direction: column;
    padding: 24px 32px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
}

.counter-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.counter-value {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.counter-value .counter-suffix {
    font-size: 1.2rem;
    color: var(--gold);
    margin-left: 6px;
}

.media-counter {
    position: relative;
    margin-top: -70px;
    margin-left: 28px;
}

/* ---------- Chip list ---------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.chips li {
    padding: 9px 18px;
    background-color: rgba(216, 165, 74, 0.09);
    border: 1px solid rgba(216, 165, 74, 0.32);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

/* ---------- Benefit list ---------- */

.benefit {
    padding-left: 22px;
    border-left: 2px solid var(--line);
    transition: border-color 0.3s var(--ease);
}

.benefit:hover {
    border-left-color: var(--gold);
}

.benefit h4 {
    color: var(--text-strong);
}

.benefit p:last-child {
    margin-bottom: 0;
}

/* ---------- Audience blocks ---------- */

.audience {
    padding: 36px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.audience > h3 {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.audience-intro {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 24px;
}

/* ---------- Callout band ---------- */

.band {
    padding: 64px 48px;
    background:
        linear-gradient(135deg, rgba(216, 165, 74, 0.14), rgba(58, 110, 165, 0.14));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}

.band h2 {
    max-width: 22ch;
    margin-inline: auto;
}

/* ---------- Contact ---------- */

.contact-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tile {
    display: block;
    padding: 28px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-align: center;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.tile:hover {
    border-color: var(--gold);
    color: var(--text);
    transform: translateY(-4px);
}

.tile strong {
    display: block;
    font-family: var(--font-display);
    color: var(--text-strong);
    margin-bottom: 4px;
}

.tile span {
    font-size: 0.92rem;
    color: var(--muted);
    word-break: break-word;
}

/* ---------- Form ---------- */

.form-card {
    padding: 40px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #F2857A;
    text-transform: none;
    letter-spacing: 0;
}

.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: 0.95rem;
}

.alert-success {
    border-color: rgba(94, 197, 137, 0.5);
    background-color: rgba(94, 197, 137, 0.1);
    color: #A6E5C2;
}

.alert-error {
    border-color: rgba(242, 133, 122, 0.5);
    background-color: rgba(242, 133, 122, 0.1);
    color: #F7B4AC;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
    background-color: var(--surface);
    border-top: 1px solid var(--line);
    padding-top: 72px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-blurb {
    max-width: 34ch;
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-strong);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--gold-bright);
}

.footer-bar {
    border-top: 1px solid var(--line);
    padding-block: 24px;
}

.footer-bar p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .section {
        padding-block: 72px;
    }

    .split,
    .grid--3,
    .grid--4,
    .contact-tiles,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .split {
        gap: 36px;
    }

    .split--reverse .split-media {
        order: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 28px;
        background-color: var(--ink);
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-nav ul a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .primary-nav ul a::after {
        display: none;
    }

    .media-counter {
        margin-left: 0;
        margin-top: 20px;
    }

    .hero {
        padding-block: 110px 80px;
    }

    .band {
        padding: 48px 24px;
    }

    .form-card {
        padding: 28px;
    }
}

@media (max-width: 620px) {
    .grid--2,
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body {
        font-size: 16px;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Card tag + inline card link ---------- */

.card-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: rgba(216, 165, 74, 0.11);
    border: 1px solid rgba(216, 165, 74, 0.34);
    color: var(--gold-bright);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-link::after {
    content: " \2192";
}

/* ---------- Tick list ---------- */

.tick-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.tick-list li {
    position: relative;
    padding-left: 30px;
    color: var(--muted);
    font-size: 0.97rem;
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

/* ---------- Anchor chips (Solutions jump nav) ---------- */

.chips a {
    color: var(--text);
    font-weight: 600;
}

.chips li:hover {
    border-color: var(--gold);
}

/* Offset anchor targets so the sticky header does not cover headings. */
[id] {
    scroll-margin-top: 110px;
}

/* ---------- Leadership grid ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-member {
    padding: 26px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
}

.team-member h4 {
    margin-bottom: 6px;
    color: var(--text-strong);
}

.team-member p {
    margin: 0;
    font-size: 0.92rem;
}

/* ---------- Footer offices ---------- */

.footer-offices {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-offices .office-name {
    display: block;
    color: var(--text);
    font-weight: 600;
}

/* ---------- Brand logo sizing ---------- */
/* Height is fixed and width auto so any replacement logo keeps its ratio. */

.brand img {
    height: 52px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.footer-brand img {
    height: 120px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

@media (max-width: 620px) {
    .brand img {
        height: 42px;
        max-width: 190px;
    }
}
