/**
 * AIBM Holding website styles
 *
 * @author  Sameer Ali
 * @package AIBM Holding Website
 */

:root {
    --ink: #0b0b0b;
    --ink-2: #262626;
    --ivory: #f4f4f2;
    --paper: #ffffff;
    --gold: #bfbfbf;     /* accent on dark backgrounds */
    --gold-dark: #6b6b6b; /* accent on light backgrounds */
    --text: #141414;
    --muted: #5c5c5c;
    --line: #e2e2e2;
    --line-dark: rgba(255, 255, 255, 0.14);
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 4px;
    --container: 1180px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3 { margin: 0; color: inherit; }
p { margin: 0 0 1rem; }
address { font-style: normal; }

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

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 200;
    background: var(--ink); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

/* ---------- Typography ---------- */
.display {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.8rem, 6.4vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}
.display-sm { font-size: clamp(2.5rem, 5vw, 4rem); }
.h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
}
.h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin-bottom: .75rem; }
.eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}
.eyebrow-light { color: var(--gold); }
.lede { font-size: 1.15rem; max-width: 640px; color: rgba(255, 255, 255, .78); margin-bottom: 2.25rem; }
.muted-light { color: rgba(255, 255, 255, .72); }
.prose p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.75rem;
    font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
    text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-gold { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-gold:hover { background: var(--ink); color: #fff; border-color: #fff; }
.section-dark .btn-gold, .hero .btn-gold { border-color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #7a7a7a; outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { width: 112px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--text);
    padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.main-nav ul a:hover { color: var(--gold-dark); }
.main-nav ul a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.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, .page-hero {
    position: relative; overflow: hidden;
    background: var(--ink);
    color: #fff;
}
.hero { padding: calc(var(--header-h) + 110px) 0 0; }
.page-hero { padding: calc(var(--header-h) + 90px) 0 90px; }
.hero-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 70% at 85% 10%, rgba(255, 255, 255, .09), transparent 60%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-inner, .page-hero .container { position: relative; }
.hero-inner { padding-bottom: 90px; }
.hero-facts {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: 0; border-top: 1px solid var(--line-dark);
}
.hero-facts > div { padding: 28px 24px 34px 0; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero-facts dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.hero-facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.3; }

.jump-links { display: flex; flex-wrap: wrap; gap: 10px; }
.jump-links a {
    color: #fff; text-decoration: none; font-size: .85rem;
    padding: .55rem 1rem; border: 1px solid var(--line-dark); border-radius: 999px;
    transition: border-color .2s, background-color .2s;
}
.jump-links a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tint { background: var(--ivory); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 680px; margin-bottom: 56px; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.split-center { align-items: center; }

.pull-quote {
    margin: 2rem 0 0; padding: 4px 0 4px 24px;
    border-left: 2px solid var(--ink);
    font-family: var(--serif); font-size: 1.6rem; font-style: italic; line-height: 1.35; color: var(--ink);
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 30px;
    display: flex; flex-direction: column;
}
.card h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.2; margin-bottom: .9rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card-link { text-decoration: none; color: inherit; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card-link:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.card-num { font-family: var(--serif); font-size: 1rem; color: var(--gold-dark); margin-bottom: 2.25rem; letter-spacing: .08em; }
.card-more { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--ink); }
.card-link:hover .card-more { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.audience { padding: 48px; }
.audience + .audience { border-left: 1px solid var(--line); }
.audience h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin-bottom: .75rem; }
.audience > p { color: var(--muted); margin-bottom: 1.5rem; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
    content: ''; position: absolute; left: 2px; top: 19px;
    width: 12px; height: 7px;
    border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
}

/* ---------- Structure diagram ---------- */
.structure { display: flex; flex-direction: column; align-items: center; }
.structure-parent, .structure-node {
    border: 1px solid var(--line-dark); border-radius: var(--radius);
    padding: 22px 26px; text-align: center; background: rgba(255, 255, 255, .03);
}
.structure-parent { width: 100%; max-width: 420px; border-color: #fff; background: rgba(255, 255, 255, .06); }
.structure strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
.structure-label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.structure-sub { display: block; font-size: .82rem; color: rgba(255, 255, 255, .62); margin-top: 6px; }
.structure-lines {
    width: 50%; height: 40px; position: relative;
    border: 1px solid var(--line-dark); border-bottom: 0; border-top: 0;
}
.structure-lines::before {
    content: ''; position: absolute; left: 50%; top: 0; height: 20px; border-left: 1px solid var(--line-dark);
}
.structure-lines::after {
    content: ''; position: absolute; left: 0; right: 0; top: 20px; border-top: 1px solid var(--line-dark);
}
.structure-lines { border-left: 0; border-right: 0; }
.structure-children { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; position: relative; }
.structure-children::before, .structure-children::after {
    content: ''; position: absolute; top: -20px; height: 20px; border-left: 1px solid var(--line-dark);
}
.structure-children::before { left: 25%; }
.structure-children::after { left: 75%; }
.structure-node strong { font-size: 1.15rem; }
.structure-node-future { border-style: dashed; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle { border-top: 2px solid var(--ink); padding-top: 28px; }
.principle h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; margin-bottom: .6rem; }
.principle p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ivory); padding: 80px 0; border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner .h2 { margin-bottom: .5rem; }
.cta-inner p { color: var(--muted); margin: 0; }
.cta-inner .btn { flex-shrink: 0; }

/* ---------- Services page ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.service-num { display: block; font-family: var(--serif); font-size: 4rem; line-height: 1; color: #c4c4c4; margin-bottom: 1rem; }
.service-tag { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.service-intro > p:last-child { font-size: 1.05rem; color: var(--muted); }
.service-detail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.section-tint .service-detail { background: var(--paper); }
.service-detail h3 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.steps li { border-top: 1px solid var(--line-dark); padding-top: 28px; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%;
    font-family: var(--serif); font-size: 1.25rem; color: var(--gold); margin-bottom: 1.25rem;
}
.steps h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: .5rem; }
.steps p { color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; background: var(--paper); box-shadow: 0 20px 50px rgba(0, 0, 0, .05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: .95rem; color: var(--text);
    padding: .8rem .95rem; background: #fff;
    border: 1px solid #d6d0c4; border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); outline: none; }
.has-error input, .has-error select, .has-error textarea { border-color: #b4362c; }
.field-error { display: block; color: #b4362c; font-size: .82rem; margin-top: 5px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.notice-error { background: #fbeceb; color: #8a2a22; border: 1px solid #f0c9c5; }
.notice-success { background: var(--ivory); border: 1px solid var(--line); padding: 40px; text-align: center; }
.notice-success h2 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: .5rem; }
.notice-success p { color: var(--muted); margin-bottom: 1.5rem; }

.contact-info { display: flex; flex-direction: column; gap: 0; }
.info-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.info-block:first-child { padding-top: 0; }
.info-block:last-child { border-bottom: 0; }
.info-block .h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.info-block p, .info-block address { color: var(--muted); margin: 0; }
.info-block a { color: var(--ink); text-decoration-color: var(--ink); text-underline-offset: 3px; }
.info-legal dl { margin: .5rem 0 0; }
.info-legal dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: .9rem; border-bottom: 1px dashed var(--line); }
.info-legal dl > div:last-child { border-bottom: 0; }
.info-legal dt { color: var(--muted); }
.info-legal dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: rgba(255, 255, 255, .66); font-size: .9rem; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 140px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 340px; line-height: 1.65; }
.footer-title { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-address { margin-bottom: 1rem; line-height: 1.6; }
.footer-label { display: block; font-size: .78rem; color: rgba(255, 255, 255, .45); margin-bottom: 2px; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
    padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 8px 24px 24px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .main-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--ink); font-weight: 600; }
    .nav-cta { margin-top: 18px; }

    .section { padding: 80px 0; }
    .split, .service-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-facts { grid-template-columns: 1fr 1fr; }
    .hero-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .hero-facts > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
    .card-grid-3, .principles { grid-template-columns: 1fr; }
    .principles { gap: 32px; }
    .audience-grid { grid-template-columns: 1fr; }
    .audience + .audience { border-left: 0; border-top: 1px solid var(--line); }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero { padding-top: calc(var(--header-h) + 70px); }
    .hero-inner { padding-bottom: 60px; }
    .page-hero { padding: calc(var(--header-h) + 60px) 0 64px; }
    .card-grid-4, .steps, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .form-row { gap: 0; }
    .hero-facts > div { padding: 20px 12px 22px 0; }
    .hero-facts > div:nth-child(even) { padding-left: 12px; }
    .hero-facts dd { font-size: 1.15rem; }
    .audience, .form-card { padding: 32px 24px; }
    .service-detail { padding: 28px 24px; }
    .structure-children { gap: 12px; }
    .structure-node { padding: 16px 12px; }
    .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ---------- Operating model pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.pillar { background: var(--ink); padding: 34px 28px; }
.pillar strong { display: block; font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: #fff; line-height: 1.15; }
.pillar span { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.cta-band-white { background: var(--paper); }
@media (max-width: 600px) { .pillar { padding: 24px 18px; } .pillar strong { font-size: 1.4rem; } }

/* ---------- Photography ---------- */
.hero-photo { background: #000; }
.hero-bg, .section-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; filter: grayscale(1);
}
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.35) 100%),
        linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 40%);
}
.hero-photo .hero-inner, .hero-photo .container { position: relative; z-index: 1; }
.hero-photo .hero-facts { background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-photo .hero-facts > div:first-child { padding-left: 24px; }

.section-photo { position: relative; overflow: hidden; }
.section-shade { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.section-photo > .container { position: relative; z-index: 1; }

.photo-frame { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: #e9e9e9; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; filter: grayscale(1); transition: transform .8s ease; }
.photo-frame::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.55); pointer-events: none; }
.photo-frame:hover img { transform: scale(1.03); }
.service-photo { margin-top: 2rem; }

.card-photo { padding: 0; overflow: hidden; }
.card-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #e9e9e9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .6s ease; }
.card-photo:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 32px; }
.card-photo .card-num { margin-bottom: 1rem; }

@media (max-width: 900px) {
    .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.82) 100%); }
    .hero-photo .hero-facts > div:first-child { padding-left: 12px; }
    .hero-photo .hero-facts > div:nth-child(3) { padding-left: 12px; }
}
