/* =========================================================
   Omni-DTS — global stylesheet
   Brand: deep navy + bright blue accents on white
   ========================================================= */
:root {
    --navy:      #0a2540;
    --navy-700:  #103a63;
    --blue:      #1565d8;
    --blue-600:  #1e74f0;
    --blue-50:   #eef5ff;
    --sky:       #e8f1fb;
    --ink:       #1c2733;
    --muted:     #5b6b7b;
    --line:      #e2e8f0;
    --bg:        #ffffff;
    --bg-soft:   #f6f9fc;
    --white:     #ffffff;
    --green:     #1f9d6b;
    --radius:    14px;
    --radius-sm: 9px;
    --shadow:    0 10px 30px rgba(10, 37, 64, .08);
    --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
    --maxw:      1160px;
    --font:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dbe7f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .82rem 1.5rem; border-radius: 999px; font-weight: 600;
    font-size: .98rem; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(21,101,216,.28); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); text-decoration: none; }
.brand-logo { height: 75px; width: auto; display: block; }
/* logo artwork has a white background, so give the footer copy a white pill */
.brand--footer { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px; }
.brand-logo--footer { height: 52px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 40px; } }
.brand-mark { color: var(--blue); display: inline-flex; }
.brand-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-text span { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .3rem 0; position: relative; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav a.active { color: var(--blue); }
.site-nav a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-cta { margin-left: .4rem; }
/* override the generic ".site-nav a { padding:.3rem 0 }" which zeroed the button's side padding */
.site-nav a.nav-cta { padding: .62rem 1.7rem; }

/* Dropdown menus */
.site-nav .has-dropdown { position: relative; }
.site-nav .caret { font-size: .62rem; opacity: .7; }
.site-nav .has-dropdown::after { /* invisible hover bridge */
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.site-nav .dropdown {
    position: absolute; top: calc(100% + 10px); left: -14px; min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 8px; flex-direction: column; gap: 2px; z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.site-nav .has-dropdown:hover > .dropdown,
.site-nav .has-dropdown:focus-within > .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: .92rem; }
.site-nav .dropdown a:hover { background: var(--blue-50); color: var(--blue); }
.site-nav .dropdown a.active { color: var(--blue); background: var(--blue-50); }
.site-nav .dropdown a.active::after { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1100px 520px at 80% -10%, #15407a 0%, var(--navy) 55%);
    color: #e8f1fb; padding: 92px 0 96px;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(700px 400px at 80% 0, #000, transparent 70%);
    opacity: .6; z-index: 2; pointer-events: none;
}
.hero .container { position: relative; z-index: 3; }

/* Bare hero: hide all text/card content, keep the video as a clean banner.
   Remove the "hero--bare" class from the <section> to bring the text back. */
.hero--bare { padding: 0; min-height: 380px; }
.hero--bare .container { display: none; }
@media (max-width: 760px) { .hero--bare { min-height: 240px; } }

/* Background video + readability overlay */
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; pointer-events: none;
    opacity: 0; transition: opacity 1s ease;
}
.hero-video.is-playing { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    /* lighter so the video stays clearly visible; slightly darker on the left for the text */
    background:
        linear-gradient(90deg, rgba(8,26,46,.55) 0%, rgba(8,26,46,.30) 45%, rgba(8,26,46,.16) 100%),
        linear-gradient(180deg, rgba(8,26,46,.10), rgba(8,26,46,.28));
}
/* frosted panel behind the hero text so it stays readable over the clearer video */
.hero-copy {
    background: rgba(8, 26, 46, .34);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 30px 32px;
}
@media (max-width: 760px) { .hero-copy { padding: 22px 20px; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #bcd3ec; font-size: 1.2rem; max-width: 540px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    color: #d7e6f6; padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-card {
    background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 26px;
    backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.hero-stat { padding: 14px 0; }
.hero-stat b { display: block; font-size: 1.9rem; color: #fff; }
.hero-stat span { color: #aac6e3; font-size: .85rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue); margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; }

/* feature list with checks */
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; color: var(--ink); }
.checklist li::before {
    content: '✓'; flex: 0 0 22px; height: 22px; border-radius: 50%;
    background: var(--blue-50); color: var(--blue); display: grid; place-items: center;
    font-size: .8rem; font-weight: 800; margin-top: 3px;
}
/* White checklist text on dark backgrounds (hero card, navy/CTA sections) */
.hero .checklist li,
.section--navy .checklist li,
.cta-band .checklist li { color: #ffffff; }

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--media { background: var(--sky); border-radius: var(--radius); min-height: 320px;
    display: grid; place-items: center; color: var(--blue); overflow: hidden; }
.split--media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
    counter-increment: step; flex: 0 0 44px; height: 44px; border-radius: 12px;
    background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step .num::before { content: counter(step); }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stats-band b { display: block; font-size: 2.4rem; color: #fff; }
.stats-band span { color: #aac6e3; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%); color: #fff; border-radius: 20px; padding: 54px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6f7; max-width: 560px; margin: 0 auto 1.6rem; }

/* What We Accept — category cards + tag clouds */
.accept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.accept-card { padding: 24px 24px 26px; }
.accept-card h3 { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag { margin: 0; }
.tag-cloud--center { justify-content: center; max-width: 900px; margin-inline: auto; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--navy);
    font-weight: 600; font-size: .95rem; padding: .55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow); }

/* Full-width image banner (e.g. after "What We Do") */
.banner-section { padding: 0 0 84px; }
.full-banner { width: 100%; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
@media (max-width: 760px) { .banner-section { padding: 0 0 60px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #dbe7f3; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b7cee6; max-width: 640px; }
.breadcrumb { font-size: .85rem; color: #87a7c9; margin-bottom: .8rem; }
.breadcrumb a { color: #bcd3ec; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .92rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,216,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.alert-success { background: #e7f7ef; color: #126a45; border: 1px solid #b8e6cf; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f6c6c2; }

/* ---------- Contact info cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon { flex: 0 0 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.contact-item b { color: var(--navy); display: block; }
.contact-item span, .contact-item a { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.gallery-grid .tile {
    aspect-ratio: 3 / 2; /* matches 4x6 (3:2) photos so they fit without cropping */
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky), #d4e6fb);
    display: grid;
    place-items: center;
    color: var(--blue);
    border: 1px solid var(--line);
    font-weight: 600;
    text-align: center;
    padding: 16px;
}
.gallery-grid .tile--photo {
    position: relative;
    margin: 0; /* reset the browser's default <figure> margin (1em 40px) that left big gaps */
    padding: 0;
    display: block;
    border: 0;
    box-shadow: 0 4px 14px rgba(10, 37, 64, .08);
}
.gallery-grid .tile--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.gallery-grid .tile--photo:hover img { transform: scale(1.05); }
.gallery-grid .tile--photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 18px 12px 10px;
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    text-align: left;
    background: linear-gradient(transparent, rgba(10, 37, 64, .78));
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--blue)); display: grid; place-items: center; color: #fff; font-weight: 700; padding: 18px; text-align: center; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { margin-bottom: .5rem; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--blue); text-decoration: none; }
.post-card p { color: var(--muted); flex: 1; }
.tag { display: inline-block; background: var(--blue-50); color: var(--blue); font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; margin-right: 6px; }

.article { max-width: 760px; margin: 0 auto; }
.article h1 { margin-bottom: .4rem; }
.article .post-meta { margin-bottom: 28px; }
.article-body { font-size: 1.08rem; color: #28333f; }
.article-body h2 { margin-top: 1.8rem; }
.article-body h3 { margin-top: 1.4rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { text-decoration: underline; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 940px; margin: 40px auto; padding: 0 22px; }
.admin-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.admin-table th { color: var(--muted); font-weight: 600; }
.badge { font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.badge-pub { background:#e7f7ef; color:#126a45; }
.badge-draft { background:#fff3e0; color:#9a6300; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b7cee6; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #b7cee6; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.brand--footer .brand-text { color: #fff; font-size: 1.4rem; }
.footer-tagline { color: var(--blue-600); font-weight: 700; margin: 14px 0 8px; }
.footer-about { color: #8fb0d2; font-size: .92rem; }
.footer-contact li { color: #b7cee6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #87a7c9; }
.footer-legal { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.footer-legal a { color: #b7cee6; }
.footer-legal a:hover { color: #fff; text-decoration: none; }
.footer-legal span { color: #466583; }
.back-to-top { color: #b7cee6; font-size: .88rem; }

/* ---------- AI chat widget ---------- */
.omni-chat { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.omni-chat-toggle {
    width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--blue); color: #fff; display: grid; place-items: center;
    box-shadow: 0 14px 34px rgba(21,101,216,.45); transition: transform .2s;
}
.omni-chat-toggle:hover { transform: scale(1.06); }
.omni-chat-panel {
    position: absolute; right: 0; bottom: 76px; width: 360px; max-width: calc(100vw - 44px);
    height: 520px; max-height: calc(100vh - 120px); background: #fff; border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
/* the [hidden] attribute must win over the display:flex above */
.omni-chat-panel[hidden] { display: none; }
.omni-chat-head { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.omni-chat-head strong { display: block; font-size: 1rem; }
.omni-chat-head span { font-size: .78rem; color: #9fc0e3; }
.omni-chat-head button { background: none; border: 0; color: #cfe0f2; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.omni-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.omni-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; }
.omni-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.omni-msg.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.omni-msg.typing { color: var(--muted); font-style: italic; }
.omni-msg a { color: inherit; text-decoration: underline; }
.omni-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.omni-chat-form input { flex: 1; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.omni-chat-form input:focus { outline: none; border-color: var(--blue); }
.omni-chat-form button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; flex: 0 0 42px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.tags-row { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .grid-3, .grid-4, .post-grid, .contact-grid, .stats-band, .hero-grid, .split { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-card { margin-top: 10px; }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 72px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 22px;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li { border-bottom: 1px solid var(--line); }
    .site-nav a { display: block; padding: 14px 0; }
    /* dropdowns become indented, always-open sub-lists on mobile */
    .site-nav .has-dropdown::after { display: none; }
    .site-nav .caret { display: none; }
    .site-nav .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; border-radius: 0; padding: 0 0 8px 16px;
        min-width: 0; background: transparent;
    }
    .site-nav .dropdown li { border-bottom: none; }
    .site-nav .dropdown a { padding: 10px 0; color: var(--muted); }
    .nav-cta { margin: 14px 0 0; text-align: center; }
    .section { padding: 60px 0; }
    .cta-band, .form-card { padding: 30px 22px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Certifications page
   ========================================================= */

/* --- Credential strip under the page hero --- */
.cred-strip { background: var(--navy-700); border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.cred-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
.cred-item { display: inline-flex; align-items: center; gap: .55rem; color: #cfe1f5; font-size: .92rem; font-weight: 600; }
.cred-item svg { width: 18px; height: 18px; color: #6fd3a6; flex: 0 0 18px; }

/* --- Certificate cards --- */
.cert-list { display: grid; gap: 34px; }
.cert-card {
    display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
    gap: 42px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 32px; box-shadow: var(--shadow);
    transition: box-shadow .25s ease;
}
.cert-card:hover { box-shadow: var(--shadow-lg); }

/* clickable certificate preview */
.cert-thumb {
    position: relative; display: block; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line); background: #fff; cursor: zoom-in;
    box-shadow: 0 14px 36px rgba(10,37,64,.16);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cert-thumb:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(10,37,64,.24); }
.cert-thumb img { width: 100%; height: auto; display: block; }
.cert-thumb .cert-zoom {
    position: absolute; inset: auto 0 0 0; display: flex; align-items: center;
    justify-content: center; gap: .45rem;
    background: linear-gradient(to top, rgba(10,37,64,.92), rgba(10,37,64,0));
    color: #fff; font-size: .82rem; font-weight: 600; padding: 34px 12px 12px;
    opacity: 0; transition: opacity .25s ease;
}
.cert-thumb:hover .cert-zoom, .cert-thumb:focus-visible .cert-zoom { opacity: 1; }
.cert-thumb .cert-zoom svg { width: 15px; height: 15px; }

/* card body */
.cert-tag {
    display: inline-block; background: var(--navy); color: #fff; border-radius: 999px;
    padding: .34rem .95rem; font-size: .72rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
}
.cert-card h3 { font-size: 1.5rem; margin: .8rem 0 .5rem; }
.cert-card > div > p { color: var(--muted); margin: 0; }

.cert-status {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: .6rem;
    background: #e7f7ef; color: #126a45; border: 1px solid #b8e6cf;
    border-radius: 999px; padding: .3rem .8rem; font-size: .74rem; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}
.cert-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: certPulse 2.4s ease-in-out infinite; }
.cert-status--expired { background: #fdecec; color: #b3261e; border-color: #f6c6c2; }
.cert-status--expired i { background: #b3261e; animation: none; }
@keyframes certPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(31,157,107,.5); }
    50%      { box-shadow: 0 0 0 5px rgba(31,157,107,0); }
}

.cert-meta {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px;
    margin: 22px 0; padding: 20px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cert-meta dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cert-meta dd { margin: 4px 0 0; font-weight: 700; color: var(--navy); font-size: .98rem; }
.cert-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 26px; }

/* --- Lightbox --- */
.cert-lightbox {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 26px;
    background: rgba(6,20,36,.92); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    /* visibility flips instantly on open (so the close button is focusable straight
       away) and is delayed on close so the fade-out stays visible */
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.cert-lightbox[hidden] { display: none; }
.cert-lightbox.open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s linear 0s; }
.cert-lightbox img { max-width: min(900px, 100%); max-height: 86vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.cert-lightbox-close {
    position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
    font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.cert-lightbox-close:hover { background: rgba(255,255,255,.22); }

/* --- Scope panel --- */
.scope-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.scope-line { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.scope-line:first-of-type { border-top: 0; padding-top: 6px; }
.scope-line .letter {
    flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--blue-50);
    color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.scope-line b { color: var(--navy); display: block; }
.scope-line p { color: var(--muted); margin: .25rem 0 0; font-size: .95rem; }

.scope-quote {
    margin: 1.5rem 0; padding: 18px 22px; background: var(--blue-50);
    border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0;
    color: var(--navy); font-weight: 700; font-size: 1.05rem; line-height: 1.5;
}

/* --- Verify links --- */
.verify-card { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; }
.verify-card:hover { text-decoration: none; border-color: var(--blue); }
.verify-card .icon { flex: 0 0 48px; }
.verify-card b { color: var(--navy); display: block; font-size: 1.08rem; }
.verify-card span { color: var(--muted); font-size: .94rem; display: block; margin-top: .2rem; }
.verify-card em { color: var(--blue); font-style: normal; font-weight: 600; font-size: .92rem; display: inline-block; margin-top: .6rem; }

@media (max-width: 940px) {
    /* .grid-2 is left 2-up site-wide (see sell-to-us tags); these stack instead */
    .grid-2--stack { grid-template-columns: 1fr; }
    .cert-card { grid-template-columns: 1fr; gap: 26px; padding: 24px; }
    .cert-thumb { max-width: 340px; margin: 0 auto; }
    .cert-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .cert-meta { grid-template-columns: 1fr 1fr; }
    .cert-card h3 { font-size: 1.3rem; }
    .cert-status { margin-left: 0; }
    .scope-panel { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .cert-status i { animation: none; }
    .cert-thumb:hover { transform: none; }
}
