/* ==========================================================================
   ECTS — ELEVATE CONSULTATION & TRAINING SERVICES
   FINAL RESPONSIVE STYLES
   PART 1 OF 2
   ========================================================================== */


/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */

:root {
    /* Colors — Navy */
    --navy-950: #0e1a3f;
    --navy-900: #384484;
    --navy-800: #3c4a79;
    --navy-700: #22397a;

    /* Colors — Teal */
    --gold-600: #0baca6;
    --gold-500: #1dc4bd;
    --gold-100: #e1f7f5;

    --teal-600: #0baca6;
    --teal-500: #1dc4bd;

    /* Neutrals */
    --paper-50: #f2f7fe;
    --paper-0: #ffffff;

    --ink-800: #10131f;
    --ink-600: #313a4d;

    --slate-500: #5b6472;
    --slate-300: #c7d3e6;

    --hairline: rgba(16, 19, 31, 0.1);
    --hairline-on-dark: rgba(242, 247, 254, 0.14);

    /* Typography */
    --font-display: "Fraunces", "Iowan Old Style", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

    /* Type scale */
    --fs-h1: clamp(2.4rem, 4.4vw, 4.2rem);
    --fs-h2: clamp(1.9rem, 3vw, 2.8rem);
    --fs-h3: clamp(1.35rem, 1.8vw, 1.7rem);
    --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-eyebrow: 0.8rem;

    /* Layout */
    --container-w: 1180px;
    --section-pad: clamp(4rem, 8vw, 7rem);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-soft: 0 20px 60px -25px rgba(14, 26, 63, 0.35);
    --shadow-tight: 0 8px 24px -12px rgba(14, 26, 63, 0.3);

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
    margin: 0;
}

ul[class],
ol[class] {
    list-style: none;
    padding: 0;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;

    color: var(--ink-800);
    background: var(--paper-50);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;
}


/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--gold-600);
    outline-offset: 3px;
    border-radius: 3px;
}

::selection {
    background: var(--gold-100);
    color: var(--navy-950);
}


/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: min(100% - 2.5rem, var(--container-w));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-pad);
}

.section--tight {
    padding-block: calc(var(--section-pad) * 0.6);
}

.section--dark {
    background: var(--navy-950);
    color: var(--paper-50);
}

.section--paper-alt {
    background: var(--paper-0);
}

.grid {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ==========================================================================
   5. EYEBROW / SECTION HEAD
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--gold-600);
}

.eyebrow::before {
    content: "";

    width: 22px;
    height: 1px;

    background: var(--gold-600);

    display: inline-block;
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
    margin-top: 0.75rem;
}

.section-head p {
    margin-top: 1rem;

    color: var(--slate-500);
    font-size: var(--fs-lead);
}

.section--dark .section-head p {
    color: var(--slate-300);
}


/* ==========================================================================
   6. DIAMOND DIVIDER
   ========================================================================== */

.divider-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.75rem;
}

.divider-mark::before,
.divider-mark::after {
    content: "";

    height: 1px;
    flex: 1;

    background: var(--hairline);
}

.divider-mark span {
    width: 9px;
    height: 9px;

    background: var(--gold-600);

    transform: rotate(45deg);

    flex-shrink: 0;
}


/* ==========================================================================
   7. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);

    color: var(--navy-950);

    line-height: 1.12;
    font-weight: 600;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero h4,
.vm-card h1,
.vm-card h2,
.vm-card h3,
.vm-card h4,
.cta-banner h1,
.cta-banner h2,
.cta-banner h3,
.cta-banner h4 {
    color: var(--paper-0);
}

.text-gold {
    color: var(--gold-600);
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.6rem;

    padding: 0.9rem 1.7rem;

    border-radius: var(--radius-sm);

    font-weight: 600;
    font-size: 0.95rem;

    transition:
        transform 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        background 0.25s var(--ease-out),
        border-color 0.25s ease;

    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--gold-600);
    color: var(--navy-950);

    box-shadow: var(--shadow-tight);
}

.btn--primary:hover {
    background: var(--gold-500);
    box-shadow: var(--shadow-soft);
}

.btn--outline {
    background: transparent;

    border: 1.5px solid var(--hairline-on-dark);

    color: inherit;
}

.section:not(.section--dark) .btn--outline {
    border-color: var(--hairline);
}

.btn--outline:hover {
    border-color: var(--gold-600);
    color: var(--gold-600);
}

.btn--ghost {
    padding: 0.5rem 0;

    color: var(--gold-600);

    font-size: 0.9rem;
}

.btn--ghost::after {
    content: "\2192";

    margin-left: 0.4rem;

    display: inline-block;

    transition: transform 0.2s var(--ease-out);
}

.btn--ghost:hover::after {
    transform: translateX(4px);
}

.btn--lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.02rem;
}


/* ==========================================================================
   9. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(31, 55, 129, 0.92);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--hairline-on-dark);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 82px;

    padding-block: 0.7rem;

    color: var(--paper-50);
}

.brand {
    display: flex;
    align-items: center;

    gap: 0.7rem;

    font-family: var(--font-display);
    font-size: 1.15rem;

    color: var(--paper-0);

    letter-spacing: 0.01em;

    flex-shrink: 0;
}

.brand-mark {
    width: 65px;
    height: 65px;

    object-fit: contain;

    flex-shrink: 0;
}

.brand small {
    display: block;

    margin-top: 2px;

    font-family: var(--font-mono);
    font-size: 0.62rem;

    letter-spacing: 0.14em;

    color: var(--gold-500);

    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: clamp(1.2rem, 2vw, 2.2rem);
}

.nav-links a {
    position: relative;

    padding-block: 0.3rem;

    font-size: 0.92rem;
    font-weight: 500;

    color: var(--slate-300);

    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: -2px;

    height: 2px;

    background: var(--gold-600);

    transition: right 0.25s var(--ease-out);
}

.nav-links a:hover {
    color: var(--paper-0);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    right: 0;
}

.nav-links a[aria-current="page"] {
    color: var(--paper-0);
}

.nav-cta {
    margin-left: 0.5rem;
}


/* ==========================================================================
   10. MOBILE NAVIGATION BUTTON
   ========================================================================== */

.nav-toggle {
    display: none;

    width: 42px;
    height: 42px;

    position: relative;

    flex-shrink: 0;

    border-radius: 6px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";

    position: absolute;

    left: 8px;
    right: 8px;

    height: 2px;

    background: var(--paper-0);

    transition:
        transform 0.25s var(--ease-out),
        opacity 0.2s ease,
        background 0.2s ease;
}

.nav-toggle span {
    top: 20px;
}

.nav-toggle span::before {
    top: -8px;
}

.nav-toggle span::after {
    top: 8px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================================
   11. HERO
   ========================================================================== */

.hero {
    position: relative;

    background: var(--navy-950);

    color: var(--paper-50);

    overflow: hidden;

    padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hero-grid {
    display: grid;

    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);

    gap: clamp(2rem, 5vw, 4rem);

    align-items: center;

    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 14ch;

    color: var(--paper-50);
}

.hero .lead {
    max-width: 46ch;

    margin-top: 1.25rem;

    color: var(--slate-300);
}

.hero-ctas {
    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    margin-top: 2.2rem;
}


/* ==========================================================================
   12. HERO MOTIF
   ========================================================================== */

.ascend-motif {
    position: absolute;

    top: 0;
    left: 50%;

    width: min(120vw, 900px);
    height: 100%;

    transform: translateX(-50%);

    z-index: 0;

    opacity: 0.5;

    pointer-events: none;
}

.ascend-motif svg {
    width: 100%;
    height: 100%;

    animation: drift-up 14s ease-in-out infinite;
}

@keyframes drift-up {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.hero-portrait {
    position: relative;
    z-index: 1;

    width: 100%;

    aspect-ratio: 4 / 5;

    border-radius: var(--radius-lg);

    background: linear-gradient(
        155deg,
        var(--navy-700),
        var(--navy-900)
    );

    border: 1px solid var(--hairline-on-dark);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.75rem;

    overflow: hidden;
}


/* ==========================================================================
   13. STAT STRIP
   ========================================================================== */

.stat-strip {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1.5rem;

    margin-top: clamp(3rem, 6vw, 4.5rem);

    padding-top: clamp(2rem, 4vw, 2.75rem);

    border-top: 1px solid var(--hairline-on-dark);

    position: relative;
    z-index: 2;
}

.stat {
    text-align: left;
}

.stat .num {
    font-family: var(--font-display);

    font-size: clamp(1.7rem, 3vw, 2.4rem);

    color: var(--gold-500);
}

.stat .label {
    margin-top: 0.35rem;

    font-family: var(--font-mono);

    font-size: 0.72rem;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--slate-300);
}


/* ==========================================================================
   14. INNER PAGE HERO
   ========================================================================== */

.page-hero {
    position: relative;

    background: var(--navy-950);

    color: var(--paper-50);

    padding-block: clamp(3.5rem, 7vw, 5.5rem);

    overflow: hidden;
}

.page-hero .eyebrow {
    color: var(--gold-500);
}

.page-hero .eyebrow::before {
    background: var(--gold-500);
}

.page-hero h1 {
    max-width: 20ch;

    margin-top: 0.75rem;
}

.page-hero p {
    max-width: 55ch;

    margin-top: 1rem;

    color: var(--slate-300);
}


/* ==========================================================================
   15. CARDS
   ========================================================================== */

.card {
    background: var(--paper-0);

    border: 1px solid var(--hairline);

    border-radius: var(--radius-md);

    padding: 1.9rem;

    transition:
        transform 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out),
        border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-tight);

    border-color: transparent;
}

.card-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--gold-100);

    border-radius: var(--radius-sm);

    margin-bottom: 1.1rem;

    color: var(--gold-600);
}

.card h3 {
    margin-bottom: 0.6rem;

    font-size: 1.15rem;
}

.card p {
    color: var(--slate-500);

    font-size: 0.95rem;
}


/* ==========================================================================
   16. VISION / MISSION
   ========================================================================== */

.vm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vm-card {
    position: relative;

    background: var(--navy-950);

    color: var(--paper-50);

    border-radius: var(--radius-lg);

    padding: clamp(1.8rem, 3vw, 2.6rem);

    overflow: hidden;
}

.vm-card::before {
    content: "";

    position: absolute;

    top: -40px;
    right: -40px;

    width: 140px;
    height: 140px;

    border: 1px solid var(--hairline-on-dark);

    border-radius: 50%;
}

.vm-card .eyebrow {
    color: var(--gold-500);
}

.vm-card .eyebrow::before {
    background: var(--gold-500);
}

.vm-card h3 {
    margin-top: 0.75rem;
    margin-bottom: 0.9rem;
}

.vm-card p {
    position: relative;
    z-index: 1;

    color: var(--slate-300);
}

.vm-card--alt {
    background: var(--gold-600);

    color: var(--navy-950);
}

.vm-card--alt .eyebrow {
    position: relative;
    z-index: 2;

    color: var(--navy-950);
}

.vm-card--alt .eyebrow::before {
    background: var(--navy-950);
}

.vm-card--alt h3,
.vm-card--alt p {
    position: relative;
    z-index: 2;
}

.vm-card--alt p {
    color: var(--navy-800);
}

.vm-card--alt::before {
    border-color: rgba(14, 26, 63, 0.18);
}


/* ==========================================================================
   17. CORE VALUES
   ========================================================================== */

.value-card {
    text-align: left;
}


/* ==========================================================================
   18. OBJECTIVES
   ========================================================================== */

.objectives-list {
    display: flex;
    flex-direction: column;
}

.objective {
    display: grid;

    grid-template-columns: 64px minmax(0, 1fr);

    gap: 1.25rem;

    padding-block: 1.5rem;

    border-top: 1px solid var(--hairline);
}

.objective:last-child {
    border-bottom: 1px solid var(--hairline);
}

.objective .index {
    font-family: var(--font-display);

    font-size: 1.8rem;

    color: var(--gold-600);
}

.objective h3 {
    font-size: 1.05rem;

    margin-bottom: 0.4rem;
}

.objective p {
    color: var(--slate-500);

    font-size: 0.95rem;
}


/* ==========================================================================
   19. PROGRAM CARDS
   ========================================================================== */

.program-card {
    display: flex;

    flex-direction: column;

    height: 100%;
}

.program-card .tag {
    display: inline-block;

    width: fit-content;

    margin-bottom: 1rem;

    padding: 0.3rem 0.6rem;

    border-radius: 100px;

    background: var(--gold-100);

    color: var(--gold-600);

    font-family: var(--font-mono);

    font-size: 0.68rem;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.program-card h3 {
    margin-bottom: 0.5rem;
}

.program-card ul {
    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    margin-top: 1rem;
}

.program-card li {
    position: relative;

    padding-left: 1.2rem;

    color: var(--ink-600);

    font-size: 0.88rem;
}

.program-card li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0.5em;

    width: 6px;
    height: 6px;

    background: var(--gold-600);

    transform: rotate(45deg);
}

.program-card .btn--ghost {
    margin-top: auto;

    padding-top: 1.5rem;
}


/* ==========================================================================
   20. TIMELINE
   ========================================================================== */

.timeline {
    position: relative;

    padding-left: 2.2rem;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 5px;

    top: 6px;
    bottom: 6px;

    width: 1px;

    background: var(--hairline);
}

.timeline-item {
    position: relative;

    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: -2.2rem;
    top: 4px;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: var(--gold-600);

    box-shadow: 0 0 0 4px var(--gold-100);
}

.timeline-item .year {
    font-family: var(--font-mono);

    font-size: 0.85rem;

    color: var(--gold-600);
}

.timeline-item h3 {
    margin-top: 0.3rem;

    margin-bottom: 0.4rem;
}

.timeline-item p {
    color: var(--slate-500);

    font-size: 0.95rem;
}


/* ==========================================================================
   21. ACCREDITATION STRIP
   ========================================================================== */

.accred-strip {
    display: flex;

    flex-wrap: wrap;

    gap: clamp(1.5rem, 4vw, 3rem);

    justify-content: space-between;

    align-items: center;

    padding-block: 2rem;
}

.accred-item {
    display: flex;

    align-items: center;

    gap: 0.6rem;

    font-family: var(--font-mono);

    font-size: 0.78rem;

    letter-spacing: 0.04em;

    color: var(--slate-500);

    text-transform: uppercase;
}

.accred-item svg {
    width: 20px;
    height: 20px;

    color: var(--gold-600);

    flex-shrink: 0;
}


/* ==========================================================================
   22. ENROLLMENT / STEPS
   ========================================================================== */

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
    position: relative;

    padding-top: 2.6rem;
}

.step-card .index {
    position: absolute;

    top: 0;
    left: 1.9rem;

    font-family: var(--font-display);

    font-size: 2.2rem;

    color: var(--gold-100);

    -webkit-text-stroke: 1px var(--gold-600);
}

.enroll-panel {
    position: relative;

    display: grid;

    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);

    gap: 2.5rem;

    align-items: center;

    padding: clamp(2rem, 5vw, 3.5rem);

    background: var(--navy-950);

    color: var(--paper-50);

    border-radius: var(--radius-lg);

    overflow: hidden;
}

.enroll-panel::after {
    content: "";

    position: absolute;

    right: -60px;
    bottom: -60px;

    width: 220px;
    height: 220px;

    border: 1px solid var(--hairline-on-dark);

    border-radius: 50%;
}

.enroll-panel h2 {
    margin-top: 0.5rem;
}

.enroll-panel p {
    max-width: 46ch;

    margin-top: 1rem;

    color: var(--slate-300);
}

.enroll-panel .btn {
    position: relative;
    z-index: 1;
}

.enroll-form-note {
    position: relative;
    z-index: 1;

    padding: 1.75rem;

    background: var(--navy-800);

    border-radius: var(--radius-md);
}

.enroll-form-note ul {
    display: flex;

    flex-direction: column;

    gap: 0.75rem;

    margin-top: 1rem;
}

.enroll-form-note li {
    position: relative;

    padding-left: 1.4rem;

    color: var(--slate-300);

    font-size: 0.9rem;
}

.enroll-form-note li::before {
    content: "\2713";

    position: absolute;

    left: 0;
    top: 0;

    color: var(--gold-500);

    font-size: 0.8rem;
}


/* ==========================================================================
   23. FAQ
   ========================================================================== */

.faq-item {
    border-bottom: 1px solid var(--hairline);
}

.faq-question {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding-block: 1.4rem;

    text-align: left;

    font-family: var(--font-display);

    font-size: 1.05rem;

    color: var(--navy-950);
}

.faq-question .icon {
    width: 22px;
    height: 22px;

    position: relative;

    flex-shrink: 0;

    margin-left: 1rem;
}

.faq-question .icon::before,
.faq-question .icon::after {
    content: "";

    position: absolute;

    background: var(--gold-600);

    transition:
        transform 0.3s var(--ease-out),
        opacity 0.3s ease;
}

.faq-question .icon::before {
    top: 50%;
    left: 0;

    width: 100%;
    height: 1.5px;

    transform: translateY(-50%);
}

.faq-question .icon::after {
    left: 50%;
    top: 0;

    width: 1.5px;
    height: 100%;

    transform: translateX(-50%);
}

.faq-item[aria-expanded="true"] .faq-question .icon::after {
    transform: translateX(-50%) rotate(90deg);

    opacity: 0;
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition:
        max-height 0.35s var(--ease-out),
        padding-bottom 0.35s var(--ease-out);
}

.faq-answer p {
    max-width: 60ch;

    padding-bottom: 0;

    color: var(--slate-500);

    font-size: 0.95rem;
}

.faq-item[aria-expanded="true"] .faq-answer {
    padding-bottom: 1.4rem;
}


/* ==========================================================================
   24. GENERAL RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 1000px) {

    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-portrait {
        max-width: 420px;
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enroll-panel {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   25. TABLET NAVIGATION
   ========================================================================== */

@media (max-width: 860px) {

    .nav {
        min-height: 72px;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;

        inset: 0 0 0 28%;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: flex-start;

        gap: 1.6rem;

        padding: 2.5rem;

        background: var(--navy-950);

        transform: translateX(100%);

        transition: transform 0.35s var(--ease-out);

        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);

        overflow-y: auto;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.15rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
    }

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


/* ==========================================================================
   26. TABLET / SMALL LAPTOP
   ========================================================================== */

@media (max-width: 720px) {

    .container {
        width: min(100% - 2rem, var(--container-w));
    }

    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .objective {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .accred-strip {
        justify-content: flex-start;
    }

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


/* ==========================================================================
   27. MOBILE — MAIN RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 640px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: min(100% - 2rem, var(--container-w));
    }

    .section {
        padding-block: 3.5rem;
    }

    .section--tight {
        padding-block: 2.5rem;
    }

    /* Typography */

    h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    h2 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .section-head p {
        font-size: 1rem;
    }


    /* Grid */

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }


    /* Header */

    .nav {
        min-height: 68px;

        padding-block: 0.4rem;
    }

    .brand {
        gap: 0.5rem;

        min-width: 0;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
    }

    .brand small {
        font-size: 0.52rem;

        letter-spacing: 0.1em;
    }

    .brand {
        font-size: 1rem;
    }

    .nav-links {
        inset: 0;

        padding: 5.5rem 2rem 2rem;

        align-items: flex-start;

        gap: 1.4rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }


    /* Hero */

    .hero {
        padding-block: 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 2.5rem;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;

        align-items: stretch;

        gap: 0.75rem;

        margin-top: 1.8rem;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-portrait {
        width: 100%;

        max-width: 100%;

        aspect-ratio: 1 / 1;

        padding: 1rem;
    }


    /* Stats */

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 1.25rem;

        margin-top: 3rem;

        padding-top: 1.75rem;
    }

    .stat .num {
        font-size: 1.55rem;
    }

    .stat .label {
        font-size: 0.65rem;
    }


    /* Page hero */

    .page-hero {
        padding-block: 3.25rem;
    }

    .page-hero h1 {
        max-width: 100%;
    }

    .page-hero p {
        font-size: 0.98rem;
    }


    /* Cards */

    .card {
        padding: 1.5rem;
    }

    .card:hover {
        transform: none;
    }


    /* Vision / mission */

    .vm-card {
        padding: 1.6rem;
    }


    /* Objectives */

    .objective {
        grid-template-columns: 42px minmax(0, 1fr);

        gap: 0.9rem;

        padding-block: 1.25rem;
    }

    .objective .index {
        font-size: 1.5rem;
    }


    /* Programs */

    .program-card li {
        font-size: 0.9rem;
    }


    /* Timeline */

    .timeline {
        padding-left: 1.8rem;
    }

    .timeline-item::before {
        left: -1.8rem;
    }


    /* Enrollment */

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

    .step-card {
        padding-top: 2.4rem;
    }

    .enroll-panel {
        padding: 1.6rem;

        grid-template-columns: 1fr;

        gap: 1.5rem;
    }

    .enroll-form-note {
        padding: 1.4rem;
    }


    /* FAQ */

    .faq-question {
        padding-block: 1.2rem;

        font-size: 1rem;
    }

    .faq-question .icon {
        width: 20px;
        height: 20px;

        margin-left: 0.5rem;
    }
}

/* ==========================================================================
   ECTS — ELEVATE CONSULTATION & TRAINING SERVICES
   FINAL RESPONSIVE STYLES
   PART 2 OF 2
   ========================================================================== */


/* ==========================================================================
   28. CONTACT / INQUIRY SECTION
   ========================================================================== */

.contact-page {
    overflow-x: hidden;
}

.contact-page .grid {
    align-items: start;
}

.contact-form {
    width: 100%;

    background: var(--paper-0);

    border: 1px solid var(--hairline);

    border-radius: var(--radius-md);

    padding: clamp(1.5rem, 4vw, 2.5rem);

    box-shadow: var(--shadow-tight);
}

.contact-form h2 {
    margin-bottom: 0.5rem;
}

.contact-form > p {
    color: var(--slate-500);

    margin-bottom: 1.75rem;
}


/* ==========================================================================
   29. FORM GRID
   ========================================================================== */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.2rem;
}

.form-field {
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;

    margin-bottom: 0.45rem;

    font-size: 0.86rem;

    font-weight: 600;

    color: var(--navy-950);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;

    border: 1px solid var(--slate-300);

    border-radius: var(--radius-sm);

    background: var(--paper-0);

    padding: 0.85rem 0.95rem;

    font-size: 0.95rem;

    color: var(--ink-800);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-field input,
.form-field select {
    min-height: 48px;
}

.form-field textarea {
    min-height: 150px;

    resize: vertical;

    line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--slate-500);

    opacity: 0.75;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--gold-600);

    box-shadow: 0 0 0 3px rgba(11, 172, 166, 0.12);
}

.form-field input:disabled,
.form-field textarea:disabled,
.form-field select:disabled {
    background: var(--paper-50);

    cursor: not-allowed;

    opacity: 0.7;
}


/* ==========================================================================
   30. FORM ERROR / STATUS
   ========================================================================== */

.error-msg {
    display: block;

    margin-top: 0.35rem;

    color: #b42318;

    font-size: 0.78rem;
}

.form-status {
    margin-top: 1rem;

    padding: 0.8rem 1rem;

    border-radius: var(--radius-sm);

    font-size: 0.88rem;
}

.form-status:empty {
    display: none;
}

.form-actions {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 1rem;

    margin-top: 1.4rem;
}

.form-actions .btn {
    min-height: 48px;
}


/* ==========================================================================
   31. CONTACT INFORMATION
   ========================================================================== */

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.contact-info-item {
    display: flex;

    align-items: flex-start;

    gap: 1rem;

    padding: 1.1rem;

    background: var(--paper-0);

    border: 1px solid var(--hairline);

    border-radius: var(--radius-md);
}

.contact-info-item .icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--gold-100);

    color: var(--gold-600);

    border-radius: var(--radius-sm);
}

.contact-info-item h3 {
    margin-bottom: 0.2rem;

    font-size: 1rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--slate-500);

    font-size: 0.9rem;

    overflow-wrap: anywhere;
}

.contact-info-item a:hover {
    color: var(--gold-600);
}


/* ==========================================================================
   32. CTA BANNER
   ========================================================================== */

.cta-banner {
    position: relative;

    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    align-items: center;

    gap: 2rem;

    padding: clamp(2rem, 5vw, 3.5rem);

    background: var(--navy-950);

    color: var(--paper-50);

    border-radius: var(--radius-lg);

    overflow: hidden;
}

.cta-banner::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -90px;
    bottom: -120px;

    border: 1px solid var(--hairline-on-dark);

    border-radius: 50%;

    pointer-events: none;
}

.cta-banner h2 {
    position: relative;
    z-index: 1;

    margin-bottom: 0.6rem;
}

.cta-banner p {
    position: relative;
    z-index: 1;

    max-width: 55ch;

    color: var(--slate-300);
}

.cta-banner .btn {
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   33. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--navy-950);

    color: var(--paper-50);

    margin-top: 0;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr repeat(3, 1fr);

    gap: clamp(2rem, 4vw, 4rem);

    padding-block: 4rem 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .brand {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--slate-300);

    font-size: 0.9rem;
}

.footer-title {
    margin-bottom: 1rem;

    font-family: var(--font-mono);

    font-size: 0.72rem;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    color: var(--gold-500);
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 0.6rem;
}

.footer-links a {
    color: var(--slate-300);

    font-size: 0.88rem;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-500);
}

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    padding-block: 1.4rem;

    border-top: 1px solid var(--hairline-on-dark);

    color: var(--slate-300);

    font-size: 0.78rem;
}


/* ==========================================================================
   34. SOCIAL LINKS
   ========================================================================== */

.social-links {
    display: flex;

    align-items: center;

    gap: 0.65rem;
}

.social-links a {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--hairline-on-dark);

    border-radius: 50%;

    color: var(--slate-300);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.social-links a:hover {
    background: var(--gold-600);

    border-color: var(--gold-600);

    color: var(--navy-950);

    transform: translateY(-2px);
}




/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-top,
.back-to-top {
  position: fixed !important;

  right: 24px !important;
  bottom: 24px !important;

  width: 48px !important;
  height: 48px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 50% !important;

  background: var(--gold-600) !important;
  color: var(--navy-950) !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.12) !important;

  font-size: 0 !important;
  line-height: 1 !important;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;

  z-index: 9999 !important;
}

/* Show button */
.back-top.is-visible,
.back-to-top.is-visible,
.back-top.visible,
.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Arrow */
.back-top::before,
.back-to-top::before {
  content: "↑";

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;

  color: var(--navy-950);

  transform: translateY(-1px);
}

/* Remove duplicated text arrow if one exists */
.back-top .arrow,
.back-to-top .arrow {
  display: none !important;
}

/* SVG arrow */
.back-top svg,
.back-to-top svg {
  width: 18px;
  height: 18px;

  stroke: var(--navy-950);
  stroke-width: 2.2;
  fill: none;

  pointer-events: none;
}

/* Hover */
.back-top:hover,
.back-to-top:hover {
  background: var(--gold-500) !important;

  transform: translateY(-4px) !important;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.14) !important;
}

/* Keyboard focus */
.back-top:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 4px;
}

/* Mobile */
@media (max-width: 640px) {
  .back-top,
  .back-to-top {
    right: 16px !important;
    bottom: 16px !important;

    width: 44px !important;
    height: 44px !important;

    border-radius: 50% !important;
  }

  .back-top::before,
  .back-to-top::before {
    font-size: 20px;
  }

  .back-top svg,
  .back-to-top svg {
    width: 17px;
    height: 17px;
  }
}
/* ==========================================================================
   36. MOBILE CONTACT FORM
   ========================================================================== */

@media (max-width: 640px) {

    .contact-form {
        padding: 1.35rem;

        border-radius: var(--radius-md);

        box-shadow: none;
    }

    .contact-form > p {
        margin-bottom: 1.35rem;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 1rem;
    }

    .form-field--full {
        grid-column: auto;
    }

    /*
       16px prevents iPhone/iOS from automatically zooming
       when the user taps an input.
    */

    .form-field input,
    .form-field textarea,
    .form-field select {
        font-size: 16px;

        padding: 0.85rem;
    }

    .form-field input,
    .form-field select {
        min-height: 50px;
    }

    .form-field textarea {
        min-height: 135px;
    }

    .form-actions {
        flex-direction: column;

        align-items: stretch;

        margin-top: 1.2rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .contact-info-item {
        padding: 1rem;

        gap: 0.8rem;
    }

    .contact-info-item .icon {
        width: 40px;
        height: 40px;
    }
}


/* ==========================================================================
   37. MOBILE CTA
   ========================================================================== */

@media (max-width: 640px) {

    .cta-banner {
        grid-template-columns: 1fr;

        gap: 1.5rem;

        padding: 1.7rem;

        border-radius: var(--radius-md);
    }

    .cta-banner .btn {
        width: 100%;
    }

    .cta-banner::after {
        width: 180px;
        height: 180px;

        right: -100px;
        bottom: -100px;
    }
}


/* ==========================================================================
   38. MOBILE FOOTER
   ========================================================================== */

@media (max-width: 640px) {

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 2rem;

        padding-block: 3rem 2rem;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 0.8rem;

        padding-block: 1.2rem;
    }

    .social-links {
        width: 100%;
    }
}



/* ==========================================================================
   40. VERY SMALL PHONES
   ========================================================================== */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 1.5rem);
    }

    .section {
        padding-block: 3rem;
    }

    .hero {
        padding-block: 3.25rem;
    }

    .page-hero {
        padding-block: 2.75rem;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand {
        font-size: 0.95rem;
    }

    .brand small {
        font-size: 0.48rem;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .hero-ctas {
        gap: 0.65rem;
    }

    .stat-strip {
        gap: 1rem;
    }

    .stat .num {
        font-size: 1.4rem;
    }

    .stat .label {
        font-size: 0.6rem;

        line-height: 1.4;
    }

    .card {
        padding: 1.3rem;
    }

    .vm-card {
        padding: 1.4rem;
    }

    .objective {
        grid-template-columns: 36px minmax(0, 1fr);

        gap: 0.75rem;
    }

    .objective .index {
        font-size: 1.35rem;
    }

    .contact-form {
        padding: 1.15rem;
    }

    .contact-info-item {
        align-items: flex-start;
    }

    .contact-info-item .icon {
        width: 36px;
        height: 36px;
    }

    .cta-banner {
        padding: 1.4rem;
    }

    .back-top {
        width: 43px;
        height: 43px;

        right: max(12px, env(safe-area-inset-right));

        bottom: max(12px, env(safe-area-inset-bottom));
    }
}


/* ==========================================================================
   41. EXTRA SMALL PHONES
   ========================================================================== */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 1.25rem);
    }

    .brand-mark {
        width: 44px;
        height: 44px;
    }

    .brand {
        font-size: 0.88rem;
    }

    .brand small {
        display: none;
    }

    .hero {
        padding-block: 2.75rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stat-strip {
        grid-template-columns: 1fr 1fr;

        gap: 0.75rem;
    }

    .stat .num {
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-field input,
    .form-field textarea,
    .form-field select {
        padding-inline: 0.75rem;
    }
}


/* ==========================================================================
   42. TOUCH DEVICES
   ========================================================================== */

@media (hover: none) {

    .btn:hover {
        transform: none;
    }

    .card:hover {
        transform: none;

        box-shadow: none;
    }

    .social-links a:hover {
        transform: none;
    }

    .back-top:hover {
        transform: none;
    }
}


/* ==========================================================================
   43. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   44. FINAL MOBILE SAFETY OVERRIDES
   ========================================================================== */

/*
   These rules are intentionally at the VERY END.
   They prevent any component from accidentally creating horizontal
   scrolling on phones.
*/

@media (max-width: 640px) {

    .hero,
    .page-hero,
    .section,
    .site-footer,
    .cta-banner,
    .contact-page {
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    svg,
    video,
    iframe {
        max-width: 100%;
    }

    table {
        display: block;

        max-width: 100%;

        overflow-x: auto;
    }

    pre,
    code {
        max-width: 100%;

        overflow-x: auto;
    }

    .btn {
        max-width: 100%;
    }

    .form-field,
    .contact-info-item,
    .card,
    .vm-card,
    .program-card {
        min-width: 0;
    }
}
/* ==========================================================================
   CPD ACCREDITATION POPUP
   ========================================================================== */

.cpd-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.cpd-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ---------- BACKDROP ---------- */

.cpd-popup-overlay {
  position: absolute;
  inset: 0;

  background: rgba(7, 15, 38, 0.78);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}


/* ---------- POPUP CARD ---------- */

.cpd-popup-card {
  position: relative;
  z-index: 1;

  width: min(560px, 100%);

  padding: 42px 42px 38px;

  background: var(--navy-950);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 18px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4);

  text-align: center;

  transform: translateY(20px) scale(0.97);

  transition: transform 0.3s ease;
}

.cpd-popup.is-open .cpd-popup-card {
  transform: translateY(0) scale(1);
}


/* ---------- CLOSE BUTTON ---------- */

.cpd-popup-close {
  position: absolute;

  top: 16px;
  right: 18px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;

  background: transparent;
  color: rgba(255, 255, 255, 0.75);

  font-size: 25px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cpd-popup-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: rotate(90deg);
}


/* ---------- BADGE ---------- */

.cpd-popup-badge {
  width: 76px;
  height: 76px;

  margin: 0 auto 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--gold-600);

  color: var(--navy-950);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.25);
}

.cpd-popup-badge span {
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.cpd-popup-badge small {
  margin-top: 4px;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.08em;
}


/* ---------- TEXT ---------- */

.cpd-popup-eyebrow {
  margin: 0 0 10px;

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.18em;

  color: var(--gold-500);
}

.cpd-popup-card h2 {
  margin: 0 auto 14px;

  max-width: 470px;

  font-family: "Fraunces", serif;

  font-size: clamp(1.8rem, 4vw, 2.4rem);

  line-height: 1.15;

  color: #ffffff;
}

.cpd-popup-text {
  max-width: 450px;

  margin: 0 auto 25px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.98rem;
  line-height: 1.7;
}


/* ---------- ACCREDITATION DETAILS ---------- */

.cpd-popup-meta {
  display: flex;

  justify-content: center;

  gap: 45px;

  margin: 0 auto 28px;

  padding: 17px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cpd-popup-meta div {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.cpd-popup-meta span {
  font-family: "IBM Plex Mono", monospace;

  font-size: 0.62rem;

  text-transform: uppercase;

  letter-spacing: 0.1em;

  color: rgba(255, 255, 255, 0.48);
}

.cpd-popup-meta strong {
  font-size: 0.95rem;

  color: var(--gold-500);
}


/* ---------- CERTIFICATE BUTTON ---------- */

.cpd-certificate-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  min-height: 48px;

  padding: 12px 22px;

  border: 0;
  border-radius: 6px;

  background: var(--gold-600);
  color: var(--navy-950);

  font-family: inherit;

  font-size: 0.88rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cpd-certificate-btn:hover {
  background: var(--gold-500);

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.cpd-certificate-btn span {
  font-size: 1.1rem;
}


/* ==========================================================================
   CPD CERTIFICATE VIEWER
   ========================================================================== */

.cpd-certificate-modal {
  position: fixed;
  inset: 0;

  z-index: 11000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.cpd-certificate-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cpd-certificate-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.86);
}


/* ---------- CERTIFICATE CONTAINER ---------- */

.cpd-certificate-container {
  position: relative;
  z-index: 1;

  width: min(1000px, 100%);

  max-height: 92vh;

  padding: 12px;

  background: #ffffff;

  border-radius: 8px;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.5);

  overflow: auto;
}


/* ---------- CERTIFICATE IMAGE ---------- */

.cpd-certificate-image {
  display: block;

  width: 100%;
  height: auto;

  max-height: calc(92vh - 24px);

  object-fit: contain;
}


/* ---------- CERTIFICATE CLOSE ---------- */

.cpd-certificate-close {
  position: absolute;

  top: -48px;
  right: 0;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;

  background: rgba(7, 15, 38, 0.9);
  color: #ffffff;

  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 640px) {

  .cpd-popup {
    padding: 16px;
  }

  .cpd-popup-card {
    padding: 38px 22px 28px;

    border-radius: 15px;

    max-height: 90vh;
    overflow-y: auto;
  }

  .cpd-popup-badge {
    width: 66px;
    height: 66px;

    margin-bottom: 16px;
  }

  .cpd-popup-badge span {
    font-size: 20px;
  }

  .cpd-popup-card h2 {
    font-size: 1.65rem;
  }

  .cpd-popup-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .cpd-popup-meta {
    gap: 20px;

    padding: 14px 10px;
  }

  .cpd-popup-meta span {
    font-size: 0.55rem;
  }

  .cpd-popup-meta strong {
    font-size: 0.82rem;
  }

  .cpd-certificate-btn {
    width: 100%;

    font-size: 0.82rem;
  }

  .cpd-certificate-modal {
    padding: 10px;
  }

  .cpd-certificate-container {
    width: 100%;

    max-height: 88vh;

    padding: 6px;
  }

  .cpd-certificate-close {
    top: -46px;
    right: 0;
  }
}


/* ---------- PREVENT PAGE SCROLL WHEN POPUP IS OPEN ---------- */

body.cpd-popup-open {
  overflow: hidden;
}




/* --------------------------------------------------------------------------
   CONTACT PAGE — MOBILE
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {

  /* The contact page has an INLINE grid style.
     This overrides that style at mobile size. */

  .section .container > .grid {
    grid-template-columns: 1fr !important;
  }


  /* Contact information first */
  .contact-info-card {
    width: 100%;
  }


  /* Contact form card */
  .card {
    min-width: 0;
  }


  /* ACTUAL contact form grid */
  #contact-form .form-grid {
    display: grid !important;

    grid-template-columns: 1fr !important;

    gap: 0 !important;

    width: 100%;
  }


  /* ACTUAL full-width message field */
  #contact-form .form-field,
  #contact-form .form-field.full {
    grid-column: 1 / -1 !important;

    width: 100%;

    min-width: 0;

    margin-bottom: 1rem;
  }


  /* Inputs */
  #contact-form input,
  #contact-form textarea,
  #contact-form select {
    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

    font-size: 16px;
  }


  /* Message */
  #contact-form textarea {
    min-height: 150px;
  }


  /* Submit button */
  #contact-form > .btn {
    width: 100%;

    justify-content: center;

    box-sizing: border-box;
  }
}


/* --------------------------------------------------------------------------
   SMALL PHONES
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {

  .nav {
    min-height: 64px;
  }

  .nav-links {
    top: 64px !important;

    height: calc(100vh - 64px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand {
    gap: 0.55rem;
    font-size: 1.05rem;
  }

  .brand small {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }


  /* Contact card */
  #contact-form {
    width: 100%;
  }

  #contact-form input,
  #contact-form textarea,
  #contact-form select {
    padding: 0.8rem 0.85rem;
  }


  /* Give the form card comfortable phone spacing */
  .card:has(#contact-form) {
    padding: 1.15rem;
  }
}


/* --------------------------------------------------------------------------
   VERY SMALL PHONES
   -------------------------------------------------------------------------- */

@media (max-width: 360px) {

  .brand small {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  #contact-form .btn {
    width: 100%;
  }
}
/* =========================================================
   MOBILE NAVBAR (final, clean version)
   Dropdown panel under the header. Uses position:absolute (not fixed)
   because the header has backdrop-filter, which breaks fixed children.
   ========================================================= */

@media (max-width: 860px) {

    .site-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        overflow: visible;
    }

    .site-header .nav {
        position: relative;
        min-height: 72px;
    }

    .site-header .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        cursor: pointer;
        z-index: 10002;
    }

    .site-header .nav-links {
        display: none;
    }

    .site-header .nav-links.is-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;

        position: absolute;
        top: 100% !important;
        bottom: auto !important;
        left: 0;
        right: 0;
        width: 100%;
        height: auto !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto;

        padding: 1.5rem 1.5rem 2rem;
        background: var(--navy-950);
        transform: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
        z-index: 10001;
    }

    .site-header .nav-links.is-open a {
        font-size: 1.1rem;
        width: 100%;
    }
}