/* ==========================================================================
   Quality Plastics C.M.I. — site styles
   Color scheme defined as root variables per project spec.
   Brand green sampled directly from the logo file: #00A755
   ========================================================================== */

:root {
    /* --- Brand --- */
    --qp-green:       #00A755;   /* EXACT green from Quality-Plastics-C.M.I.-Logo-B4 */
    --qp-green-bright:#12C468;   /* hover / highlight */
    --qp-green-deep:  #007A3E;   /* pressed / depth */
    --qp-green-glow:  rgba(0,167,85,.28);

    /* --- Dark base --- */
    --qp-black:       #0B0D0C;   /* page black */
    --qp-ink:         #121514;   /* section base */
    --qp-ink-2:       #191D1B;   /* raised card */
    --qp-ink-3:       #232826;   /* border / hairline */
    --qp-charcoal:    #2C312F;

    /* --- Light surfaces --- */
    --qp-paper:       #FFFFFF;
    --qp-paper-2:     #F5F7F6;
    --qp-paper-3:     #E8ECEA;

    /* --- Text --- */
    --qp-on-dark:     #F4F7F5;
    --qp-on-dark-mut: #A8B3AE;
    --qp-on-light:    #141817;
    --qp-on-light-mut:#5A6461;

    /* --- Type scale (generous — must be easy to read) --- */
    --fs-base:    1.125rem;   /* 18px body */
    --fs-lg:      1.25rem;    /* 20px lead-in */
    --fs-lead:    1.4rem;     /* 22px lead paragraph */
    --fs-h6:      1.05rem;
    --fs-h5:      1.3rem;
    --fs-h4:      1.6rem;
    --fs-h3:      2rem;
    --fs-h2:      clamp(2.1rem, 3.4vw, 3rem);
    --fs-h1:      clamp(2.6rem, 6vw, 4.75rem);
    --fs-eyebrow: .82rem;

    /* --- Fonts --- */
    /* Archivo Black is a single-weight (400) display face — never ask for a bolder
       weight from it or the browser will synthesize a smeared fake bold. */
    --font-display: 'Archivo Black', system-ui, 'Segoe UI', Arial, sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* --- Rhythm --- */
    --sp-section: clamp(4.5rem, 9vw, 8rem);
    --radius:     14px;
    --radius-sm:  9px;

    /* Bootstrap bridges */
    --bs-primary: var(--qp-green);
    --bs-link-color: var(--qp-green);
    --bs-link-hover-color: var(--qp-green-bright);
    --bs-body-font-size: var(--fs-base);
}

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
    background: var(--qp-black);
    color: var(--qp-on-dark);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* --- Typographic hierarchy ---
   H1/H2 carry the display face: Archivo Black is a poster weight and only earns
   its keep at large sizes. Below that it turns into a solid black slab, so H3–H6
   drop back to the body sans at a heavy weight — same visual family, far more
   readable at card-title and sidebar sizes. */
h1,h2,h3,h4,h5,h6 { color: var(--qp-on-dark); }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 400;              /* Archivo Black's only weight */
    line-height: 1.14;
    letter-spacing: -.018em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-bottom: 1.1rem; }

h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.012em;
}
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); font-weight: 700; }

p { margin-bottom: 1.15rem; }
.lead { font-size: var(--fs-lead); line-height: 1.6; font-weight: 400; color: var(--qp-on-dark-mut); }

/* Section on light paper */
.on-light { background: var(--qp-paper); color: var(--qp-on-light); }
.on-light h1,.on-light h2,.on-light h3,.on-light h4,.on-light h5,.on-light h6 { color: var(--qp-on-light); }
.on-light .lead,.on-light .text-muted-qp { color: var(--qp-on-light-mut); }
.on-paper-2 { background: var(--qp-paper-2); color: var(--qp-on-light); }
.on-paper-2 h1,.on-paper-2 h2,.on-paper-2 h3,.on-paper-2 h4,.on-paper-2 h5 { color: var(--qp-on-light); }
.on-paper-2 .lead,.on-paper-2 .text-muted-qp { color: var(--qp-on-light-mut); }
.text-muted-qp { color: var(--qp-on-dark-mut); }

.section { padding: var(--sp-section) 0; }

/* Eyebrow / kicker — sits above every H2 for hierarchy */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: var(--fs-eyebrow); font-weight: 800;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--qp-green); margin-bottom: .9rem;
}
.eyebrow::before {
    content: ""; width: 2rem; height: 2px; background: var(--qp-green); display: inline-block;
}

a { color: var(--qp-green); text-decoration: none; }
a:hover { color: var(--qp-green-bright); }

/* ==========================================================================
   Q mark
   ========================================================================== */
.q-mark { display: block; width: 100%; height: auto; color: inherit; }
.q-mark path { fill: currentColor; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.topbar {
    background: var(--qp-black);
    border-bottom: 1px solid var(--qp-ink-3);
    font-size: .92rem;
}
.topbar a { color: var(--qp-on-dark-mut); }
.topbar a:hover { color: var(--qp-green); }

.navbar-qp {
    background: rgba(11,13,12,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--qp-ink-3);
    padding-block: .55rem;
    position: sticky; top: 0; z-index: 1030;
}

/* --------------------------------------------------------------------------
   Big Q lockup — the Q IS the first letter of "Quality Plastics".
   The mark is ~3.4:1 wide, so the wordmark tucks into the right of the swoosh
   (which is how the original printed logo sets type over the Q).
   Tune the two custom properties below to resize / reposition.
   -------------------------------------------------------------------------- */
.brand-lockup {
    --q-h: clamp(40px, 5.2vw, 60px);   /* height of the Q */
    --q-inset: 0.24;                   /* where the wordmark starts, as a fraction across the Q */
    display: inline-flex; flex-direction: column; align-items: flex-start;
}
.brand-row { display: flex; align-items: center; }
.brand-q {
    height: var(--q-h); width: auto; color: var(--qp-green); flex: 0 0 auto;
    opacity: .92;
    transition: color .35s ease, transform .35s ease, opacity .35s ease;
}
.brand-name {
    position: relative; z-index: 2;
    /* sit the wordmark on top of the Q: Q width = height * 3.371 */
    margin-left: calc(var(--q-h) * -3.371 * (1 - var(--q-inset)));
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.32rem);
    color: #fff; letter-spacing: -.02em; white-space: nowrap; line-height: 1.05;
    /* the wordmark crosses the Q, so it needs a real halo to stay legible */
    text-shadow:
        0 2px 14px rgba(11,13,12,.95),
        0 0 6px rgba(11,13,12,.9),
        0 0 2px rgba(11,13,12,1);
}
.brand-cmi { color: var(--qp-green); font-weight: 700; }

/* Tagline lives BELOW the Q, on the dark bar — green on #0B0D0C is ~6:1. */
.brand-tag {
    font-size: clamp(.72rem, .9vw, .84rem); font-weight: 700; text-transform: uppercase;
    letter-spacing: .2em; color: var(--qp-green); white-space: nowrap;
    margin-top: .1rem; padding-left: .15rem;
}
.navbar-brand:hover .brand-q { color: var(--qp-green-bright); opacity: 1; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Custom navbar expand point.
   Bootstrap's navbar-expand-xl flips at 1200px, which left only 16px between
   the wordmark and the menu. Bumping to xxl would mean a hamburger on a common
   1366px laptop, so this is a bespoke 1300px breakpoint instead.
   -------------------------------------------------------------------------- */
.navbar-expand-qp { flex-wrap: wrap; justify-content: space-between; }
.navbar-expand-qp .navbar-nav { flex-direction: column; }

@media (min-width: 1300px) {
    .navbar-expand-qp { flex-wrap: nowrap; justify-content: flex-start; }
    .navbar-expand-qp .navbar-nav { flex-direction: row; align-items: center; gap: .25rem; }
    .navbar-expand-qp .navbar-nav .dropdown-menu { position: absolute; }
    .navbar-expand-qp .navbar-collapse { display: flex !important; flex-basis: auto; }
    .navbar-expand-qp .navbar-toggler { display: none; }
}
/* Below the expand point the menu stacks, so undo the inline row spacing. */
@media (max-width: 1299.98px) {
    .navbar-expand-qp .navbar-nav > li { margin-left: 0 !important; }
    .navbar-expand-qp .navbar-nav .nav-link { padding-left: .25rem !important; }
    .navbar-expand-qp .navbar-collapse { padding-block: .75rem; }
}
/* Tight zone: just after the menu opens up, everything is competing for width.
   Trim the link padding and the mark so the lockup never crowds the menu. */
@media (min-width: 1300px) and (max-width: 1499.98px) {
    .navbar-qp .nav-link { padding-inline: .42rem !important; font-size: .92rem; }
    .navbar-qp .btn-q { padding-inline: 1rem; font-size: .92rem; }
    .brand-lockup { --q-h: 42px; }
    .brand-name { font-size: 1.05rem; }
    .brand-tag { font-size: .62rem; letter-spacing: .16em; }
    /* Bootstrap caps .container at 1140px here, which is what makes this range
       tight — let the navbar breathe a little wider than the page grid. */
    .navbar-qp > .container { max-width: 1240px; }
}

.navbar-qp .nav-link {
    color: var(--qp-on-dark); font-weight: 600; font-size: 1rem;
    padding: .55rem .95rem !important; border-radius: var(--radius-sm);
    position: relative;
}
.navbar-qp .nav-link:hover,
.navbar-qp .nav-link.active { color: var(--qp-green); }
.navbar-qp .nav-link.active::after {
    content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .18rem;
    height: 2px; background: var(--qp-green); border-radius: 2px;
}
.navbar-qp .navbar-toggler {
    border-color: var(--qp-ink-3); color: var(--qp-on-dark);
}
.navbar-qp .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F4F7F5' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu-qp {
    background: var(--qp-ink-2); border: 1px solid var(--qp-ink-3);
    border-radius: var(--radius); padding: .5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.dropdown-menu-qp .dropdown-item {
    color: var(--qp-on-dark); border-radius: var(--radius-sm);
    padding: .6rem .85rem; font-weight: 500;
}
.dropdown-menu-qp .dropdown-item:hover,
.dropdown-menu-qp .dropdown-item.active {
    background: var(--qp-green); color: #04170D;
}
.dropdown-menu-qp .dropdown-divider { border-color: var(--qp-ink-3); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .8rem 1.6rem; font-size: 1rem; letter-spacing: .005em; }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; }

.btn-q {
    background: var(--qp-green); color: #04170D; border: 1px solid var(--qp-green);
    position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn-q:hover {
    background: var(--qp-green-bright); color: #04170D;
    transform: translateY(-2px); box-shadow: 0 10px 30px var(--qp-green-glow);
}
.btn-outline-q {
    border: 1px solid rgba(244,247,245,.35); color: var(--qp-on-dark); background: transparent;
    transition: all .22s ease;
}
.btn-outline-q:hover { border-color: var(--qp-green); color: var(--qp-green); background: rgba(0,167,85,.08); }
.on-light .btn-outline-q { border-color: rgba(20,24,23,.28); color: var(--qp-on-light); }
.on-light .btn-outline-q:hover { border-color: var(--qp-green); color: var(--qp-green-deep); }

/* ==========================================================================
   HERO — dark overlay over macro imagery (subject must stay unidentifiable)
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    min-height: 78vh; display: flex; align-items: center;
    padding: 6rem 0;
}
.hero-media {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.06);
    animation: heroDrift 26s ease-in-out infinite alternate;
}
/* Directional scrim: dark enough for text on the left, clearing to the right
   so the machined detail in the photo actually reads. Tune --scrim-* to taste. */
.hero-scrim {
    position: absolute; inset: 0;
    /* Holds near-full opacity across the text column, then falls away fast so the
       machined detail on the right still reads. The photo has bright polished
       highlights, so the plateau matters — a smooth fade lets them wash out the copy. */
    background: linear-gradient(95deg,
        rgba(11,13,12,.90) 0%,
        rgba(11,13,12,.66) 38%,
        rgba(11,13,12,.20) 70%,
        rgba(11,13,12,.05) 100%);
}
.hero-grid {
    position: absolute; inset: 0; opacity: .5;
    background-image:
      linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 68px 68px;
}
.hero > .container { position: relative; z-index: 2; }
/* Belt-and-braces legibility: the scrim does the work, the shadow covers any
   bright highlight that drifts under the copy as the image slowly pans. */
.hero h1 {
    max-width: 16ch;
    text-shadow: 0 2px 22px rgba(11,13,12,.75), 0 0 8px rgba(11,13,12,.5);
}
.hero .lead {
    max-width: 52ch; font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: #DCE4E0;
    text-shadow: 0 2px 16px rgba(11,13,12,.85), 0 0 6px rgba(11,13,12,.6);
}
.hero-rule { width: 78px; height: 4px; background: var(--qp-green); border-radius: 3px; margin: 1.6rem 0 1.9rem; }

@keyframes heroDrift {
    from { transform: scale(1.06) translate3d(0,0,0); }
    to   { transform: scale(1.14) translate3d(-1.6%, -1.6%, 0); }
}

/* Page hero (interior pages) */
.page-hero {
    position: relative; overflow: hidden;
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--qp-ink-3);
}
.page-hero .hero-media { animation: none; transform: scale(1.08); filter: grayscale(.3); }
.page-hero .hero-scrim {
    background:
      linear-gradient(100deg, rgba(11,13,12,.97) 0%, rgba(11,13,12,.88) 55%, rgba(11,13,12,.74) 100%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: .6rem; }
.breadcrumb-qp { font-size: .95rem; margin-bottom: 1rem; }
.breadcrumb-qp a { color: var(--qp-on-dark-mut); }
.breadcrumb-qp a:hover { color: var(--qp-green); }
.breadcrumb-qp .sep { color: var(--qp-ink-3); margin: 0 .5rem; }
.breadcrumb-qp .current { color: var(--qp-green); font-weight: 600; }

/* ==========================================================================
   Cards
   ========================================================================== */
.qcard {
    height: 100%; background: var(--qp-ink-2);
    border: 1px solid var(--qp-ink-3); border-radius: var(--radius);
    padding: 2rem 1.85rem; position: relative; overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.qcard::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: var(--qp-green); transition: width .4s cubic-bezier(.2,.7,.3,1);
}
.qcard:hover { transform: translateY(-6px); border-color: rgba(0,167,85,.5); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.qcard:hover::before { width: 100%; }
.qcard h5 { margin-bottom: .6rem; }
.qcard p { color: var(--qp-on-dark-mut); margin-bottom: 0; }

.on-light .qcard, .on-paper-2 .qcard {
    background: var(--qp-paper); border-color: var(--qp-paper-3);
}
.on-light .qcard p, .on-paper-2 .qcard p { color: var(--qp-on-light-mut); }
.on-light .qcard:hover, .on-paper-2 .qcard:hover { box-shadow: 0 22px 50px rgba(16,32,25,.12); }

.qcard-icon {
    width: 3.4rem; height: 3.4rem; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,167,85,.12); color: var(--qp-green);
    font-size: 1.6rem; margin-bottom: 1.25rem;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.qcard:hover .qcard-icon { background: var(--qp-green); color: #04170D; transform: scale(1.06) rotate(-4deg); }

.card-link-cue { color: var(--qp-green); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; margin-top: 1rem; }
.qcard:hover .card-link-cue i { transform: translateX(5px); }
.card-link-cue i { transition: transform .3s ease; }

/* ==========================================================================
   Stats / machine counts
   ========================================================================== */
.stat { text-align: center; padding: 1rem .5rem; }
.stat-num {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(2.6rem, 5vw, 3.9rem); color: var(--qp-green);
    line-height: 1; letter-spacing: 0;
}
.stat-label { color: var(--qp-on-dark-mut); font-weight: 600; font-size: 1rem; margin-top: .5rem; }
.on-light .stat-label, .on-paper-2 .stat-label { color: var(--qp-on-light-mut); }

/* ==========================================================================
   Industry pills
   ========================================================================== */
.industry {
    display: flex; align-items: center; gap: .85rem;
    background: var(--qp-ink-2); border: 1px solid var(--qp-ink-3);
    border-radius: var(--radius); padding: 1.15rem 1.3rem; height: 100%;
    font-weight: 700; font-size: 1.05rem;
    transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.industry i { color: var(--qp-green); font-size: 1.4rem; }
.industry:hover { transform: translateY(-4px); border-color: rgba(0,167,85,.55); background: #1D2320; }
.on-light .industry, .on-paper-2 .industry { background: var(--qp-paper); border-color: var(--qp-paper-3); color: var(--qp-on-light); }

/* ==========================================================================
   Facility table
   ========================================================================== */
.qtable { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.qtable thead th {
    background: var(--qp-green); color: #04170D; font-weight: 800;
    padding: .95rem 1.1rem; text-align: left; font-size: .92rem;
    text-transform: uppercase; letter-spacing: .08em;
}
.qtable tbody td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--qp-ink-3); }
.qtable tbody tr:hover td { background: rgba(0,167,85,.07); }
.qtable .qty { font-weight: 800; color: var(--qp-green); font-size: 1.15rem; }
.on-light .qtable tbody td, .on-paper-2 .qtable tbody td { border-color: var(--qp-paper-3); }
.table-wrap { border: 1px solid var(--qp-ink-3); border-radius: var(--radius); overflow: hidden; }
.on-light .table-wrap, .on-paper-2 .table-wrap { border-color: var(--qp-paper-3); }

/* ==========================================================================
   Split media block (macro image + dark treatment)
   ========================================================================== */
.media-frame {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; border: 1px solid var(--qp-ink-3);
}
.media-frame img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(.45) contrast(1.05) brightness(.75);
    transform: scale(1.02); transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .5s ease;
}
.media-frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,167,85,.16), rgba(11,13,12,.72));
}
.media-frame:hover img { transform: scale(1.07); filter: grayscale(.2) contrast(1.08) brightness(.85); }

/* Faded variant — for logo/branding art that should sit back rather than shout.
   Keeps the green (no grayscale), just softens and lifts a stronger dark wash. */
.media-frame--faded img { filter: brightness(.9) contrast(.98); opacity: .68; }
.media-frame--faded::after {
    background: linear-gradient(160deg, rgba(0,167,85,.10), rgba(11,13,12,.62));
}
.media-frame--faded:hover img { filter: brightness(.98) contrast(1.02); opacity: .82; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(115deg, var(--qp-green-deep), var(--qp-green));
    color: #03150B; padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-band h2 { color: #03150B; }
.cta-band p { color: rgba(3,21,11,.78); margin-bottom: 0; }
.btn-onGreen { background: #06231A; color: #fff; border: none; }
.btn-onGreen:hover { background: #0B3327; color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Footer
   ========================================================================== */
/* Light footer. NOTE: the brand green is only ~3.2:1 on white, which fails AA
   for small text — so green is used here only for the Q mark and for hover,
   in the deeper --qp-green-deep (~5:1). Link text itself stays near-black. */
.site-footer {
    background: var(--qp-paper);
    color: var(--qp-on-light);
    border-top: 3px solid var(--qp-green);
    padding: 4.5rem 0 2rem;
}
.site-footer h5, .site-footer h6, .site-footer p, .site-footer address, .site-footer span {
    color: var(--qp-on-light);
}
/* the shared muted utility is light-on-dark by default — flip it in here */
.site-footer .text-muted-qp { color: var(--qp-on-light-mut); }

.footer-q { width: 116px; color: var(--qp-green); margin-bottom: 1.1rem; }
.footer-head {
    color: var(--qp-on-light); text-transform: uppercase; letter-spacing: .16em;
    font-size: .78rem; font-weight: 800; margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-inline { color: var(--qp-on-light-mut); font-size: 1rem; }
.footer-links a:hover, .footer-inline:hover { color: var(--qp-green-deep); }
.site-footer .bi { color: var(--qp-green-deep); }
.footer-bottom {
    border-top: 1px solid var(--qp-paper-3); margin-top: 3rem; padding-top: 1.5rem;
    color: var(--qp-on-light-mut); font-size: .95rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card { background: var(--qp-ink-2); border: 1px solid var(--qp-ink-3); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.5rem); }
.on-light .form-card, .on-paper-2 .form-card { background: var(--qp-paper); border-color: var(--qp-paper-3); }
.form-label { font-weight: 700; font-size: 1rem; margin-bottom: .45rem; }
.form-control, .form-select {
    background: var(--qp-black); border: 1px solid var(--qp-ink-3); color: var(--qp-on-dark);
    padding: .85rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm);
}
.form-control::placeholder { color: #6C7873; }
.form-control:focus, .form-select:focus {
    background: var(--qp-black); color: var(--qp-on-dark);
    border-color: var(--qp-green); box-shadow: 0 0 0 .22rem var(--qp-green-glow);
}
.on-light .form-control, .on-paper-2 .form-control,
.on-light .form-select, .on-paper-2 .form-select {
    background: var(--qp-paper-2); color: var(--qp-on-light); border-color: var(--qp-paper-3);
}
.on-light .form-control:focus, .on-paper-2 .form-control:focus { background: #fff; color: var(--qp-on-light); }

/* ==========================================================================
   Lists
   ========================================================================== */
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.list-check li::before {
    content: "\F26E"; font-family: "bootstrap-icons";
    position: absolute; left: 0; top: 0; color: var(--qp-green); font-size: 1.05rem;
}

/* ==========================================================================
   Scroll-in animation (progressive enhancement — visible by default)
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .75s cubic-bezier(.2,.7,.3,1), transform .75s cubic-bezier(.2,.7,.3,1);
}
.js .reveal.d1 { transition-delay: .09s; }
.js .reveal.d2 { transition-delay: .18s; }
.js .reveal.d3 { transition-delay: .27s; }
.js .reveal.d4 { transition-delay: .36s; }
.js .reveal.d5 { transition-delay: .45s; }

/* Hero entrance */
@keyframes riseIn { from { opacity:0; transform: translateY(30px);} to {opacity:1; transform:none;} }
.hero .anim { animation: riseIn .95s cubic-bezier(.2,.7,.3,1) backwards; }
.hero .anim.a1 { animation-delay: .10s; }
.hero .anim.a2 { animation-delay: .24s; }
.hero .anim.a3 { animation-delay: .38s; }
.hero .anim.a4 { animation-delay: .52s; }

@keyframes ruleGrow { from { width: 0; } to { width: 78px; } }
.hero-rule { animation: ruleGrow 1s cubic-bezier(.2,.7,.3,1) .5s backwards; }

/* Animated underline for links/headings */
.u-anim { position: relative; display: inline-block; }
.u-anim::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--qp-green); transition: width .45s cubic-bezier(.2,.7,.3,1);
}
.u-anim:hover::after, .qcard:hover .u-anim::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.narrow { max-width: 62ch; }
.tight  { max-width: 46ch; }
.divider-q { height: 1px; background: var(--qp-ink-3); border: 0; margin: 0; }
.on-light .divider-q, .on-paper-2 .divider-q { background: var(--qp-paper-3); }
.badge-q {
    display: inline-block; background: rgba(0,167,85,.14); color: var(--qp-green);
    border: 1px solid rgba(0,167,85,.35); border-radius: 999px;
    padding: .3rem .95rem; font-size: .85rem; font-weight: 700;
    letter-spacing: .04em;
}
