:root {
    --bg: #0f1720;
    --panel: #121c26;
    --ink: #dbe7f0;
    --muted: #9db3c4;
    --brand: #5fb3ff;
    /* new: layout rhythm */
    --side-pad: clamp(24px, 6vw, 120px);
    /* ≈100–120px on desktop */
    --section-pad-y: 72px;
}

html,
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
}



.section {
    padding: var(--section-pad-y) 0;
    /* ensure horizontal buffer even if a module forgets .wrap */
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
}

h1,
h2,
h3 {
    margin: 0 0 .6rem
}

.muted {
    color: var(--muted)
}

/* visually hide honeypot */
.hp {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem .95rem;
    border-radius: 12px;
    border: 1px solid #2c3e50;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .18));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.btn.small {
    padding: .45rem .75rem
}

.btn.secondary {
    background: transparent;
    border: 1px solid #2c3e50;
    color: var(--ink)
}

.btn.outline {
    background: transparent;
    border: 1px solid #3a5064;
    color: var(--ink)
}

/* talk-btn mirrors Site 2 spacing */
.talk-btn {
    padding: .6rem .9rem;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #0f1720ee, #0f1720cc 70%, transparent);
    backdrop-filter: saturate(120%) blur(6px)
}

.header .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600
}

.nav {
    margin-left: auto;
    display: flex;
    gap: 22px;
    align-items: center
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    opacity: .86
}

.nav a:hover {
    opacity: 1
}

.hero {
    padding: 96px var(--side-pad) 56px;
    text-align: center;
    background: radial-gradient(1200px 400px at 50% -10%, #153247aa, transparent)
}


/* pull footer closer */
#contact {
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    padding-top: 48px;
    padding-bottom: 40px;
    margin-bottom: 0;
}

/* Footer: full-bleed bar, standard site width inside */
footer.footer {
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Keep footer’s inner width equal to the rest of the site */
footer.footer .wrap {
    max-width: 90% !important;
    /* match your content width */
    padding-left: var(--side-pad) !important;
    padding-right: var(--side-pad) !important;
}

/* Keep footer’s inner width equal to the rest of the site */
header.header .wrap {
    max-width: 90% !important;
    /* match your content width */
    padding-left: var(--side-pad) !important;
    padding-right: var(--side-pad) !important;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 16px
}

.card {
    background: var(--panel);
    border: 1px solid #203343;
    border-radius: 14px;
    padding: 16px;
    /* align CTA to bottom across uneven text lengths */
    display: flex;
    flex-direction: column;
}

.ticks {
    list-style: none;
    padding-left: 0;
    margin: .5rem 0 0
}

.ticks li {
    padding-left: 1.1rem;
    position: relative
}

.ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #72e0a8
}

.footer {
    border-top: 1px solid #203343;
    background: linear-gradient(180deg, #111d27, #0d1620)
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 22px 20px
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: .6rem
}

.foot-nav {
    display: flex;
    gap: 18px
}

.foot-nav a {
    color: var(--ink);
    opacity: .86;
    text-decoration: none
}

.foot-nav a:hover {
    opacity: 1
}

#to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
    border: 1px solid #2c4153;
    background: #0f1b25;
    color: var(--ink);
    border-radius: 999px;
    width: 38px;
    height: 38px
}

#to-top.show {
    opacity: 1;
    pointer-events: auto
}

.dialog {
    border: 1px solid #294053;
    border-radius: 14px;
    padding: 16px;
    background: #0f1720;
    color: var(--ink)
}

.dialog::backdrop {
    background: #0008
}

.contact-lines {
    display: flex;
    gap: 10px;
    margin: 14px 0
}

:target {
    scroll-margin-top: 90px;
}

/* Reduce the big gap specifically between About and Why BIT */
#about.section {
    padding-bottom: calc(var(--section-pad-y) / 2);
}

#why.section {
    padding-top: calc(var(--section-pad-y) / 2);
    padding-bottom: calc(var(--section-pad-y) / 2);
}

#services.section {
    padding-top: calc(var(--section-pad-y) / 2);
}

/* Modal from Site 2 (names aligned to new dialog) */
.contact-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: min(92vw, 520px);
    background: #121c26;
    color: var(--ink);
}

.contact-dialog form {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.contact-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.contact-dialog label {
    display: grid;
    gap: 6px;
    font-size: .95rem;
    color: var(--muted);
}

.contact-dialog input,
.contact-dialog textarea {
    padding: .8rem .9rem;
    border-radius: 12px;
    border: 1px solid #203343;
    background: #0f1720;
    color: var(--ink);
}

.contact-dialog textarea {
    min-height: 120px;
}

.icon-btn {
    background: transparent;
    border: 1px solid #3a5064;
    border-radius: 10px;
    color: var(--muted);
    padding: .4rem .6rem;
    cursor: pointer;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.contact-lines {
    display: flex;
    gap: 10px;
    margin: 6px 0 4px;
}

.contact-dialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .9);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === Layout tokens === */
:root {
    --side-pad: clamp(24px, 6vw, 120px);
    /* ≈100–120px on desktop, safe on mobile */
    --section-pad-y: 72px;
}

/* Sections get consistent vertical rhythm and backstop padding */
.section {
    padding: var(--section-pad-y) 0;
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
}

/* Hero matches content padding, centered */
.hero {
    padding: 96px var(--side-pad) 56px;
    text-align: center;
}

/* Services cards: pin CTA to bottom-left, consistent across cards */
.card {
    display: flex;
    flex-direction: column;
}

.card .actions {
    margin-top: auto;
}

.card .actions .btn {
    align-self: flex-start;
}

/* Contact section: simple, clean */
.contact .contact-wrap {
    display: grid;
    gap: 24px;
}

.contact .muted {
    color: var(--muted);
}

.contact .contact-actions {
    display: flex;
    gap: 10px;
    margin: 10px 0 8px;
}

.contact .contact-meta {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.contact .contact-meta li {
    margin: 6px 0;
}

/* Buttons (consistent look) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #2c3e50;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
}

.btn.secondary {
    background: transparent;
    border: 1px solid #2c3e50;
    color: var(--ink);
}


/* Full-width darker stripe behind the Contact section */
#contact {
    position: relative;
    /* create a stacking context */
    isolation: isolate;
    /* keep the overlay behind content only */
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    /* stretch over the entire section */
    background: rgba(0, 0, 0, 0.5);
    /* ~50% darker */
    z-index: -1;
    /* sit behind the text/buttons */
    border-radius: 0;
    /* keep it full-bleed; change if you want rounded edges */
}

/* Optional: add a subtle inner panel feel */
#contact .wrap {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* If you want extra contrast on text inside Contact */
#contact .muted {
    color: #b7c6d6;
}


/* Contact: tight band */
#contact {
    padding-top: 32px;
    padding-bottom: 32px;
}

#contact .contact-actions {
    margin: 8px 0;
}

#contact .contact-meta li {
    margin: 4px 0;
}


/* --- Lock contact + footer to the same solid base --- */
:root {
    /* pick your base once; adjust here only */
    --band-bg: #0e0013;
    /* contact + footer */
    --footer-bg: var(--band-bg);
    /* or set a touch darker, e.g. #0a0f16 */
}

#contact {
    position: relative;
    isolation: isolate;
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--band-bg) !important;
    /* solid; no transparency */
    z-index: -1;
}

/* Footer on its own solid layer */
footer.footer {
    position: relative;
    isolation: isolate;
    background: none !important;
    /* nuke any previous rgba/gradients */
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    padding-bottom: 0px;
}

footer.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--footer-bg) !important;
    /* same as contact by default */
    z-index: -1;
}

/* Maintain unified contrast between header and footer */
header.header,
footer.footer {
    background: #0b1118 !important;
    /* same solid base */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Keep header fixed without looking boxed */
header.header {
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Ensure footer feels grounded, not floating */
footer.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}