/* ============================================================
   DENNIS KAMAU — PROFESSIONAL PORTFOLIO
   style.css
============================================================ */

/* ---------- RESET & ROOT ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy:       #0b1120;
    --navy2:      #111b2e;
    --navy3:      #172038;
    --white:      #f0f4ff;
    --muted:      #7a8faa;
    --line:       rgba(255,255,255,0.07);
    --accent:     #2563eb;      /* professional blue */
    --accent-lt:  #3b82f6;
    --accent-bg:  rgba(37,99,235,0.08);
    --green:      #10b981;
    --amber:      #f59e0b;
    --sans:       'Inter', sans-serif;
    --serif:      'Playfair Display', serif;
    --mob-top:    56px;
    --mob-nav:    64px;
    --max-w:      1100px;
    --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--navy);
    color: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- PROGRESS BAR ---------- */
#progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--accent);
    z-index: 2000;
    transition: width .1s linear;
}

/* ---------- DESKTOP NAV ---------- */
#main-nav {
    position: fixed; top: 0; width: 100%; z-index: 900;
    background: rgba(11,17,32,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: padding .3s;
    padding: 0;
}
#main-nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.4); }

.nav-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 40px; height: 66px;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.logo-box {
    width: 38px; height: 38px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; color: #fff;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.logo-box.sm { width: 30px; height: 30px; font-size: .72rem; border-radius: 6px; }
.logo-name {
    font-weight: 600; font-size: .95rem; color: var(--white);
    letter-spacing: .3px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    font-size: .875rem; font-weight: 500;
    color: var(--muted); text-decoration: none;
    padding: 8px 14px; border-radius: 6px;
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: var(--line); }
.nav-links a.nav-cta {
    background: var(--accent); color: #fff;
    padding: 8px 20px; border-radius: 6px;
    font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--accent-lt); }

/* ---------- MOBILE TOP BAR ---------- */
.mobile-topbar {
    display: none; position: fixed; top: 0; width: 100%;
    height: var(--mob-top);
    background: rgba(11,17,32,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    z-index: 900; padding: 0 20px;
    align-items: center;
}

/* ---------- MAIN ---------- */
main {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 40px;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- SECTION SHARED ---------- */
section { padding: 96px 0; }

.section-header { margin-bottom: 52px; }
.section-tag {
    display: inline-block;
    font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 5px 14px; border-radius: 20px;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800; line-height: 1.1;
    color: var(--white);
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 420px;
    gap: 60px; align-items: center;
    padding-top: 100px; padding-bottom: 60px;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 500;
    color: var(--green);
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.25);
    padding: 6px 14px; border-radius: 20px;
    margin-bottom: 28px;
}
.dot {
    width: 7px; height: 7px;
    background: var(--green); border-radius: 50%;
    animation: blink-dot 2s ease infinite;
}
@keyframes blink-dot {
    0%,100% { opacity: 1; } 50% { opacity: .3; }
}

.hero-heading {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800; line-height: 1.0;
    margin-bottom: 8px;
}
.accent-text { color: var(--accent); }

.hero-sub {
    font-size: .9rem; font-weight: 500;
    color: var(--accent-lt); letter-spacing: .5px;
    margin-bottom: 22px;
    line-height: 1.6;
}

.hero-desc {
    font-size: 1.05rem; color: var(--muted);
    line-height: 1.8; max-width: 500px; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff;
    padding: 12px 26px; border-radius: 8px;
    font-weight: 600; font-size: .9rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover, .btn-primary:active {
    background: var(--accent-lt);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.35);
}

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--white);
    padding: 12px 26px; border-radius: 8px;
    font-weight: 600; font-size: .9rem;
    text-decoration: none;
    border: 1px solid var(--line);
    transition: border-color .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover, .btn-secondary:active {
    border-color: rgba(255,255,255,.2);
    background: var(--line);
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; }
.meta-item {
    display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: .85rem;
    text-decoration: none; transition: color .2s;
    -webkit-tap-highlight-color: transparent;
}
.meta-item i { color: var(--accent); font-size: .9rem; }
.meta-item:hover, .meta-item:active { color: var(--white); }

/* Profile card */
.profile-card {
    background: var(--navy2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 0;
    box-shadow: 0 4px 40px rgba(0,0,0,.3);
    position: sticky; top: 90px;
}
.profile-img-wrap {
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}
.profile-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}
.profile-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--navy3), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; color: #fff;
}
.profile-info h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.profile-info p { font-size: .83rem; color: var(--muted); line-height: 1.5; }
.profile-info .profile-uni {
    font-size: .78rem; color: var(--accent-lt);
    margin-top: 4px; font-weight: 500;
}

.profile-badges {
    display: flex; flex-direction: column; gap: 8px;
    width: 100%; margin: 20px 0;
}
.badge {
    display: flex; align-items: center; gap: 8px;
    background: var(--navy3); border: 1px solid var(--line);
    border-radius: 6px; padding: 8px 12px;
    font-size: .8rem; color: var(--muted);
}
.badge i { color: var(--accent); font-size: .85rem; width: 16px; }

.btn-download {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px;
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    color: var(--accent-lt); border-radius: 8px;
    font-size: .85rem; font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn-download:hover, .btn-download:active {
    background: var(--accent); color: #fff;
}

/* ---------- ABOUT ---------- */
#about { background: var(--navy2); border-radius: 16px; padding: 60px 48px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.about-text-col p {
    color: var(--muted); font-size: 1rem; line-height: 1.85;
    margin-bottom: 18px;
}
.about-text-col p:last-child { margin-bottom: 0; }
.about-text-col strong { color: var(--white); font-weight: 600; }

.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 28px;
}
.stat-item {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 8px; padding: 18px;
    text-align: center;
    transition: border-color .2s;
}
.stat-item:hover { border-color: rgba(37,99,235,.4); }
.stat-number {
    font-family: var(--serif); font-size: 2.2rem; font-weight: 800;
    color: var(--accent); line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: .75rem; color: var(--muted); font-weight: 500; }

.skills-list h4 {
    font-size: .8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--muted); margin-bottom: 14px;
}
.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
    display: inline-block;
    background: var(--navy);
    border: 1px solid var(--line);
    color: var(--white); font-size: .8rem; font-weight: 500;
    padding: 5px 13px; border-radius: 20px;
    transition: border-color .2s, color .2s;
}
.skill-chip:hover { border-color: var(--accent); color: var(--accent-lt); }

/* ---------- CERTIFICATIONS ---------- */
.certs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cert-card {
    background: var(--navy2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px; position: relative;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent);
    border-radius: var(--radius) var(--radius) 0 0;
}
.cert-card:nth-child(2)::before { background: var(--green); }
.cert-card:nth-child(3)::before { background: var(--amber); }

.cert-card:hover {
    border-color: rgba(37,99,235,.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.cert-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 18px;
}
.cert-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.cert-icon.cisco  { background: rgba(37,99,235,.12);  color: var(--accent-lt); border: 1px solid rgba(37,99,235,.2); }
.cert-icon.fibre  { background: rgba(16,185,129,.12); color: var(--green);     border: 1px solid rgba(16,185,129,.2); }
.cert-icon.copper { background: rgba(245,158,11,.12); color: var(--amber);     border: 1px solid rgba(245,158,11,.2); }

.cert-status {
    font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 4px 10px; border-radius: 20px;
}
.cert-status.active    { background: rgba(16,185,129,.12); color: var(--green); border: 1px solid rgba(16,185,129,.25); }
.cert-status.specialist{ background: rgba(245,158,11,.12); color: var(--amber); border: 1px solid rgba(245,158,11,.25); }

.cert-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.cert-issuer  { font-size: .78rem; color: var(--accent-lt); font-weight: 500; margin-bottom: 14px; }
.cert-card:nth-child(2) .cert-issuer { color: var(--green); }
.cert-card:nth-child(3) .cert-issuer { color: var(--amber); }

.cert-desc { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cert-tags span {
    font-size: .72rem; font-weight: 500;
    padding: 3px 10px; border-radius: 4px;
    background: var(--navy3); border: 1px solid var(--line);
    color: var(--muted);
}

/* ---------- TIMELINE ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }

.tl-item {
    display: grid; grid-template-columns: 28px 1fr;
    gap: 24px;
}
.tl-marker {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 4px;
}
.tl-dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--navy2); border: 2px solid var(--muted);
    flex-shrink: 0; transition: border-color .2s;
    position: relative; z-index: 1;
}
.tl-item.current .tl-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.tl-item:hover .tl-dot { border-color: var(--accent); }

.tl-line {
    width: 1px; flex: 1;
    background: var(--line); margin-top: 6px;
    min-height: 40px;
}

.tl-content {
    background: var(--navy2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 28px;
    margin-bottom: 20px;
    transition: border-color .2s;
}
.tl-item:hover .tl-content { border-color: rgba(37,99,235,.25); }
.tl-item.current .tl-content { border-color: rgba(37,99,235,.2); }

.tl-head {
    display: flex; justify-content: space-between;
    align-items: flex-start; flex-wrap: wrap; gap: 8px;
    margin-bottom: 10px;
}
.tl-role { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.tl-company { font-size: .83rem; color: var(--accent-lt); font-weight: 500; }

.tl-date {
    font-size: .75rem; font-weight: 600; color: var(--muted);
    background: var(--navy3); border: 1px solid var(--line);
    padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.tl-date.current-date {
    color: var(--green); background: rgba(16,185,129,.08);
    border-color: rgba(16,185,129,.25);
}

.tl-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.tl-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tag-row span {
    font-size: .72rem; padding: 3px 10px; border-radius: 4px;
    background: var(--accent-bg); color: var(--accent-lt);
    border: 1px solid rgba(37,99,235,.2); font-weight: 500;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-bottom: 24px;
}
.proj-card {
    background: var(--navy2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px;
    display: flex; flex-direction: column;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.proj-card:hover {
    border-color: rgba(37,99,235,.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.proj-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px;
}
.proj-num {
    font-family: var(--serif); font-size: 1.6rem; font-weight: 800;
    color: var(--line); line-height: 1;
}
.proj-icon {
    width: 40px; height: 40px;
    background: var(--accent-bg); border: 1px solid rgba(37,99,235,.2);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--accent-lt); font-size: 1rem;
}
.proj-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.proj-card p  { font-size: .88rem; color: var(--muted); line-height: 1.7; flex: 1; }
.proj-footer  { margin-top: 18px; }
.proj-chips   { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-chips span {
    font-size: .72rem; font-weight: 500;
    padding: 3px 10px; border-radius: 4px;
    background: var(--navy3); border: 1px solid var(--line);
    color: var(--muted);
}

.pdf-row {
    background: var(--navy2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.pdf-left {
    display: flex; align-items: center; gap: 16px;
}
.pdf-left > i { font-size: 2rem; color: #ef4444; flex-shrink: 0; }
.pdf-left h4 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.pdf-left p  { font-size: .83rem; color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }

.contact-intro { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }

.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; padding: 14px 16px;
    background: var(--navy2); border: 1px solid var(--line);
    border-radius: 8px; transition: border-color .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
}
.contact-item:hover, .contact-item:active {
    border-color: rgba(37,99,235,.35); transform: translateX(4px);
}
.ci-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--accent-bg); border: 1px solid rgba(37,99,235,.2);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--accent-lt); font-size: .9rem;
}
.ci-text span  { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.ci-text strong{ font-size: .9rem; color: var(--white); font-weight: 500; }

/* Form */
.contact-right {
    background: var(--navy2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block; font-size: .78rem; font-weight: 600;
    color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 1px;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 14px;
    background: var(--navy3); border: 1px solid var(--line);
    border-radius: 8px; color: var(--white);
    font-family: var(--sans); font-size: 16px;
    outline: none; resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); opacity: .6; }
.btn-submit {
    width: 100%; padding: 13px;
    background: var(--accent); color: #fff; border: none;
    border-radius: 8px; font-family: var(--sans);
    font-size: .9rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn-submit:hover, .btn-submit:active {
    background: var(--accent-lt);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.btn-submit.sending { opacity: .6; pointer-events: none; }
.form-success {
    display: none; margin-top: 14px;
    padding: 14px 18px; border-radius: 8px;
    background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3);
    color: var(--green); font-size: .88rem; font-weight: 500;
    display: none; align-items: center; gap: 8px;
}
.form-success.show { display: flex; }

/* ---------- FOOTER ---------- */
footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 28px 40px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px;
}
.footer-brand {
    display: flex; align-items: center; gap: 12px;
    font-size: .82rem; color: var(--muted);
}
.footer-links { display: flex; gap: 10px; }
.footer-links a {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none; font-size: .9rem;
    transition: all .2s; -webkit-tap-highlight-color: transparent;
}
.footer-links a:hover, .footer-links a:active {
    border-color: var(--accent); color: var(--accent-lt);
    background: var(--accent-bg);
}

/* ---------- MOBILE BOTTOM NAV ---------- */
.mob-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    height: var(--mob-nav);
    background: rgba(11,17,32,0.98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--line);
    z-index: 9999;
    justify-content: space-around; align-items: center;
    padding: 0 8px;
}
.mob-link {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-decoration: none; color: var(--muted);
    font-size: .58rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .5px;
    flex: 1; min-height: 48px; justify-content: center;
    transition: color .2s; border-radius: 8px;
    -webkit-tap-highlight-color: rgba(37,99,235,.1);
}
.mob-link i { font-size: 1.1rem; }
.mob-link.active { color: var(--accent); }
.mob-link.active i { filter: drop-shadow(0 0 6px var(--accent)); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .certs-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    #main-nav { display: none; }
    .mobile-topbar { display: flex; }
    .mob-nav { display: flex; }

    main { padding: 0 20px; }

    .hero {
        grid-template-columns: 1fr; gap: 40px;
        padding-top: calc(var(--mob-top) + 32px);
        padding-bottom: calc(var(--mob-nav) + 24px);
        text-align: center; min-height: 100svh;
        align-content: center;
    }
    .hero-tag, .hero-actions, .hero-meta { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-right { order: -1; display: flex; justify-content: center; }
    .profile-card { max-width: 340px; position: static; }

    #about { padding: 40px 24px; border-radius: 10px; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }

    .certs-grid { grid-template-columns: 1fr; }

    .projects-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr 1fr; }

    section { padding: 60px 0; }
    section:last-of-type { padding-bottom: calc(var(--mob-nav) + 32px); }

    footer { padding-bottom: calc(var(--mob-nav) + 20px); }
    .footer-inner { flex-direction: column; text-align: center; padding: 24px 20px calc(var(--mob-nav) + 24px); }
}

@media (max-width: 500px) {
    .hero-heading { font-size: 2.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-right { padding: 24px 16px; }
    .pdf-row { flex-direction: column; align-items: flex-start; }
    .certs-grid { grid-template-columns: 1fr; }
}