/* ==========================================================================
   HIP Group Tech — Design System
   Palette: Rich Black #0B0F19 · Oxford Navy #14213D · Metallic Gold #D4AF37
            Pure White #FFFFFF · Platinum Gray #E5E5E5
   60% light (white/platinum) · 30% authority (navy/black) · 10% gold accents
   ========================================================================== */

:root {
    --black:        #0B0F19;
    --navy:         #14213D;
    --navy-700:     #1b2b4d;
    --navy-600:     #24345c;
    --gold:         #D4AF37;
    --gold-600:     #c19c2b;
    --gold-soft:    rgba(212, 175, 55, 0.12);
    --white:        #FFFFFF;
    --platinum:     #E5E5E5;
    --platinum-50:  #f7f7f8;
    --ink:          #0B0F19;
    --muted:        #5b6472;
    --muted-light:  rgba(255, 255, 255, 0.72);
    --line:         #E5E5E5;
    --line-dark:    rgba(255, 255, 255, 0.12);

    --radius:       14px;
    --radius-sm:    10px;
    --radius-lg:    22px;
    --shadow-sm:    0 1px 2px rgba(11, 15, 25, 0.05), 0 4px 14px rgba(11, 15, 25, 0.05);
    --shadow-md:    0 10px 30px rgba(11, 15, 25, 0.08);
    --shadow-lg:    0 24px 60px rgba(11, 15, 25, 0.14);

    --container:    1180px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: "Georgia", "Times New Roman", serif;

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

/* ---------- Reset & base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-wide { max-width: 1320px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sm { padding-block: clamp(40px, 5vw, 64px); }
.section--navy { background: var(--navy); color: var(--white); }
.section--black { background: var(--black); color: var(--white); }
.section--platinum { background: var(--platinum-50); }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--black h1, .section--black h2, .section--black h3 { color: var(--white); }
.section--navy p, .section--black p { color: var(--muted-light); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.section--navy .eyebrow, .section--black .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }
.section--navy .section-head p, .section--black .section-head p { color: var(--muted-light); }

.lead { font-size: 1.15rem; color: var(--muted); }
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
    border: 2px solid transparent; transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s;
    white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--black); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-600); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,0.35); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn--wa { background: #25D366; color: #04310f; }
.btn--wa:hover { background: #1fbb59; }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav --------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(20, 33, 61, 0.96);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; letter-spacing: -0.02em; }
.brand__mark {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: var(--gold); color: var(--black);
    font-weight: 900; font-size: 1.15rem;
}
.brand__name { font-size: 1.12rem; line-height: 1.05; }
.brand__name span { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
    color: var(--muted-light); font-weight: 600; font-size: 0.94rem; padding: 9px 13px; border-radius: 8px;
    transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after {
    content: ""; display: block; height: 2px; background: var(--gold); border-radius: 2px; margin-top: 5px;
}
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
    display: none; background: transparent; border: 1px solid var(--line-dark); border-radius: 9px;
    width: 44px; height: 44px; color: var(--white); align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* Mobile nav panel */
.mobile-nav { display: none; background: var(--navy); border-bottom: 1px solid var(--line-dark); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: var(--muted-light); padding: 13px 22px; font-weight: 600; border-top: 1px solid var(--line-dark); }
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--white); background: rgba(255,255,255,0.05); }
.mobile-nav .mobile-cta { padding: 18px 22px; display: grid; gap: 10px; }

/* ---------- Hero ----------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--navy);
    color: var(--white);
}
.hero__grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(80% 70% at 60% 20%, #000, transparent 80%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
    padding-block: clamp(56px, 9vw, 104px); }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero__sub { font-size: 1.18rem; color: var(--muted-light); margin-top: 22px; max-width: 560px; }
.hero__cta { margin-top: 34px; }
.hero__trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted-light); font-size: 0.9rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--gold); }

/* Hero pillar visual (Security + Connectivity + Software + AI + Cyber + Support) */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pillar {
    background: rgba(255,255,255,0.05); border: 1px solid var(--line-dark); border-radius: var(--radius);
    padding: 18px; transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.5); background: rgba(255,255,255,0.08); }
.pillar__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--gold-soft); color: var(--gold);
    display: grid; place-items: center; margin-bottom: 12px; }
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h4 { color: var(--white); font-size: 0.98rem; font-weight: 700; }
.pillar p { color: var(--muted-light); font-size: 0.82rem; margin-top: 3px; }

/* ---------- Cards ---------------------------------------------------------- */
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
    height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,0.45); }
.card__icon {
    width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--navy); color: var(--gold);
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { color: var(--navy); }
.card__benefit { color: var(--muted); margin-top: 10px; flex: 1; }
.card__link { margin-top: 18px; color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.card__link svg { width: 17px; height: 17px; transition: transform .18s; color: var(--gold-600); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gold-600); background: var(--gold-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Feature list / chips ------------------------------------------ */
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); }
.check-list svg { flex: none; width: 21px; height: 21px; color: var(--gold-600); margin-top: 2px; }
.section--navy .check-list li, .section--black .check-list li { color: var(--muted-light); }
.section--navy .check-list svg, .section--black .check-list svg { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 15px;
    font-size: 0.87rem; font-weight: 600; color: var(--navy); }
.section--platinum .chip { background: var(--white); }

/* ---------- Process / steps ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step__num { font-family: var(--serif); font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.step h3 { margin-top: 10px; font-size: 1.12rem; }
.step p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }

/* ---------- Stat / value bands --------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark);
    border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.value { background: var(--navy); padding: 30px; }
.value h3 { color: var(--white); font-size: 1.15rem; }
.value p { color: var(--muted-light); margin-top: 8px; font-size: 0.96rem; }
.value__icon { color: var(--gold); width: 30px; height: 30px; margin-bottom: 14px; }

/* ---------- CTA band ------------------------------------------------------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 60px);
    background: var(--navy); border: 1px solid var(--line-dark);
    color: var(--white); text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--muted-light); max-width: 620px; margin: 14px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Solution / detail pages --------------------------------------- */
.page-hero { background: var(--navy); color: var(--white);
    padding-block: clamp(52px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 900px; }
.page-hero p { color: var(--muted-light); max-width: 680px; margin-top: 18px; font-size: 1.12rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted-light); font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: 0.5; }

.psi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.psi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--gold); }
.psi h4 { color: var(--gold-600); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.psi p { color: var(--ink); }

.group-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--white); }
.group-block + .group-block { margin-top: 22px; }
.group-block h3 { color: var(--navy); }
.group-block > p { color: var(--muted); margin-top: 8px; margin-bottom: 18px; }

.note-box { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.note-box strong { color: var(--navy); }

/* ---------- Products / Projects -------------------------------------------- */
.media-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; height: 100%; display: flex; flex-direction: column; }
.media-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.media-card__img { aspect-ratio: 16 / 10; background: var(--navy); position: relative; display: grid; place-items: center; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media-card__ph { color: var(--gold); opacity: 0.5; width: 56px; height: 56px; }
.media-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.media-card__body h3 { color: var(--navy); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; background: var(--navy); color: var(--white); }
.badge--gold { background: var(--gold); color: var(--black); }
.badge--muted { background: var(--platinum); color: var(--navy); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px; font-weight: 600;
    font-size: 0.9rem; color: var(--navy); transition: all .15s; }
.filter:hover { border-color: var(--gold); }
.filter.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.case { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.case__head { padding: 24px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-wrap: wrap; }
.case__csr { display: grid; grid-template-columns: repeat(3, 1fr); }
.case__csr > div { padding: 22px 26px; border-right: 1px solid var(--line); }
.case__csr > div:last-child { border-right: none; }
.case__csr h4 { color: var(--gold-600); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.case__csr p { color: var(--ink); font-size: 0.96rem; }

/* ---------- Industries grid ------------------------------------------------ */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 600; color: var(--navy); transition: all .18s var(--ease); }
.industry:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.industry svg { width: 22px; height: 22px; color: var(--gold-600); flex: none; }

/* ---------- FAQ ------------------------------------------------------------ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.faq + .faq { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--navy);
    display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-600); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Forms ---------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--navy); }
.field .req { color: var(--gold-600); }
.input, .select, .textarea {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.textarea { min-height: 140px; resize: vertical; }
.field-error { color: #c0392b; font-size: 0.84rem; margin-top: 6px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.checkbox-row input { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.alert { padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 600; }
.alert--success { background: #e8f6ee; color: #1c6b3d; border: 1px solid #bfe6cd; }
.alert--error { background: #fdecea; color: #a5352a; border: 1px solid #f5c7c1; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact info cards --------------------------------------------- */
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--gold-soft); color: var(--gold-600);
    display: grid; place-items: center; flex: none; }
.contact-line__icon svg { width: 22px; height: 22px; }
.contact-line h4 { font-size: 0.98rem; color: var(--navy); }
.contact-line a, .contact-line p { color: var(--muted); }
.contact-line a:hover { color: var(--gold-600); }

/* ---------- Footer --------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--muted-light); padding-top: 64px; }
.site-footer p, .site-footer li, .site-footer a, .site-footer span { color: var(--muted-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h5 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand { margin-bottom: 16px; }
.footer-about p { font-size: 0.95rem; max-width: 320px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 0.95rem; transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-dark); display: grid; place-items: center;
    color: var(--muted-light); transition: all .18s; }
.socials a:hover { color: var(--black); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; font-size: 0.86rem; }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom .legal { display: flex; gap: 18px; }

/* ---------- WhatsApp float -------------------------------------------------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.wa-float__btn { display: flex; align-items: center; gap: 10px; background: #25D366; color: #04310f; font-weight: 700;
    padding: 13px 18px; border-radius: 999px; box-shadow: var(--shadow-md); transition: transform .18s; }
.wa-float__btn:hover { transform: translateY(-3px) scale(1.02); }
.wa-float__btn svg { width: 24px; height: 24px; }
.wa-float__label { font-size: 0.92rem; }

/* ---------- Prose (legal pages) -------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 14px; }
.prose h3 { font-size: 1.15rem; margin-top: 26px; margin-bottom: 10px; }
.prose p { color: var(--ink); margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; color: var(--ink); }
.prose a { color: var(--gold-600); text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
.prose .review-flag { background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: var(--radius-sm);
    padding: 14px 18px; color: var(--navy); font-size: 0.92rem; margin-bottom: 24px; }

/* ---------- Utilities ------------------------------------------------------ */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
/* Reveal is a progressive enhancement: only hidden when JS is active, so
   content is always visible if JavaScript is disabled (SEO/accessibility). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- Pagination ----------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 44px; }
.pagination a, .pagination span {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy);
    font-weight: 700; font-size: 0.92rem; transition: all .15s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-600); }
.pagination .is-active span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .is-disabled span { color: var(--muted); background: var(--platinum-50); cursor: not-allowed; opacity: 0.6; }

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .industry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    body { font-size: 16px; }
    .nav__links, .nav__cta .btn { display: none; }
    .nav__toggle { display: inline-flex; }
    .hero__inner { grid-template-columns: 1fr; gap: 36px; }
    .hero__visual { order: 2; }
    .split { grid-template-columns: 1fr; gap: 30px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .psi-grid { grid-template-columns: 1fr; }
    .case__csr { grid-template-columns: 1fr; }
    .case__csr > div { border-right: none; border-bottom: 1px solid var(--line); }
    .case__csr > div:last-child { border-bottom: none; }
    .value-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .wa-float__label { display: none; }
    .wa-float__btn { padding: 15px; }
}
@media (max-width: 480px) {
    .industry-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-body { background: var(--platinum-50); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: var(--muted-light); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .brand { margin-bottom: 26px; padding-inline: 6px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px; color: var(--muted-light); font-weight: 600; font-size: 0.94rem; }
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a.is-active { background: var(--gold); color: var(--black); }
.admin-nav svg { width: 19px; height: 19px; }
.admin-side__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-dark); display: grid; gap: 6px; }
.admin-main { padding: 30px clamp(18px, 4vw, 44px); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.5rem; }
.admin-badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--gold); color: var(--black); border-radius: 999px; font-size: 0.72rem; font-weight: 800; margin-left: auto; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat__n { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat__l { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel__head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.panel__head h2 { font-size: 1.15rem; }
.panel__body { padding: 22px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.93rem; vertical-align: middle; }
.table th { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover, .table tr:hover { background: var(--platinum-50); }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.pill--on { background: #e8f6ee; color: #1c6b3d; }
.pill--off { background: var(--platinum); color: var(--muted); }
.pill--new { background: var(--gold-soft); color: var(--gold-600); }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: var(--navy); }
.admin-login__card { background: #fff; border-radius: var(--radius-lg); padding: 38px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.admin-login__card .brand { justify-content: center; margin-bottom: 8px; }
.admin-login__card .brand__name, .admin-login__card .brand { color: var(--navy); }

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.help-text { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.repeat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }

@media (max-width: 820px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; flex-direction: column; }
    .admin-nav { grid-auto-flow: row; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .repeat-row { grid-template-columns: 1fr; }
}
