/* =====================================================================
   Prime Gold Connect — Stylesheet
   Mobile-first. Breakpoints: 560px (large phone), 800px (tablet), 1100px (desktop)
   ===================================================================== */

:root {
    /* Palette — deep plum + gold, drawn from the brand deck */
    --plum-950: #1B1029;
    --plum-900: #2D1A47;
    --plum-800: #3B2560;
    --plum-700: #4E3277;
    --gold-500: #D4A019;
    --gold-600: #B8860B;
    --gold-100: #F6E7C1;
    --cream:    #F7F6F2;
    --white:    #FFFFFF;
    --ink:      #241830;
    --ink-soft: #5B4E6B;
    --line:     #E7E1D8;
    --success:  #2F7D5D;
    --error:    #B3261E;

    --font-display: "Fraunces", "Georgia", serif;
    --font-body: "Work Sans", "Segoe UI", sans-serif;
    --font-mono: "Space Mono", monospace;

    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 20px;
    --shadow-card: 0 10px 30px -12px rgba(27, 16, 41, 0.25);
    --shadow-soft: 0 4px 16px -6px rgba(27, 16, 41, 0.15);

    --wrap: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--gold-500);
    color: var(--plum-950);
    padding: 0.75rem 1.25rem;
    z-index: 200;
    font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-s);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
    background: var(--gold-500);
    color: var(--plum-950);
}
.btn-gold:hover { background: var(--gold-600); }
.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(27, 16, 41, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 160, 25, 0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    min-width: 0;
}
.brand-mark {
    color: var(--gold-500);
    font-size: 1.4rem;
    line-height: 1;
    flex: none;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.brand-tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-100);
    white-space: nowrap;
}

.main-nav { display: none; }
.nav-cta { display: none; }

.nav-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: none;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-500);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    max-height: 0;
    overflow: hidden;
    background: var(--plum-950);
    transition: max-height 0.25s ease;
}
.mobile-nav.open { max-height: 480px; }
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0.25rem;
}
.mobile-nav a {
    display: block;
    padding: 0.75rem 0.25rem;
    color: var(--white);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav li:last-child a { border-bottom: none; margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: radial-gradient(120% 140% at 15% 0%, var(--plum-800) 0%, var(--plum-900) 45%, var(--plum-950) 100%);
    color: var(--white);
    overflow: hidden;
    padding-block: 4rem 4.5rem;
}
.hero-bg { position: absolute; inset: 0; opacity: 0.9; pointer-events: none; }
.hero-svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--plum-700);
    margin: 0 0 0.75rem;
}
.eyebrow-light { color: var(--gold-100); }

.hero-title {
    font-size: clamp(2.1rem, 8vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}
.hero-strap {
    font-size: clamp(1rem, 3.2vw, 1.25rem);
    color: var(--gold-100);
    max-width: 32rem;
    margin: 0 auto 0.75rem;
}
.hero-motto {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 30rem;
    margin: 0 auto 1.75rem;
    letter-spacing: 0.01em;
}
.hero-motto-sep { color: var(--gold-500); margin: 0 0.35rem; }
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 160, 25, 0.45);
    color: var(--gold-100);
    white-space: nowrap;
}
.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    max-width: 22rem;
    margin: 0 auto;
}

/* ---------- Sections (generic) ---------- */
.section { padding-block: 3.5rem; }
.section-tint { background: var(--cream); }
.section-dark {
    background: var(--plum-950);
    color: var(--white);
}
.section-head { margin-bottom: 2.25rem; text-align: center; }
.section-title { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: 0.85rem; }
.section-title-light { color: var(--white); }
.section-subtitle {
    color: var(--ink-soft);
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.02rem;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }
.body-text { color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; }
.about-copy .section-title { text-align: left; margin-bottom: 1rem; }
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.feature-card {
    background: var(--cream);
    border-radius: var(--radius-m);
    padding: 1.5rem;
    border: 1px solid var(--line);
}
.feature-icon { font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Vision / Mission / Values ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.vm-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.75rem;
}
.vm-text { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.values-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.value-chip {
    background: var(--plum-900);
    color: var(--gold-100);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.service-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.5rem;
}
.service-icon { font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- International pathways note (inside Partners section) ---------- */
.pathways-note {
    margin-top: 2.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.75rem;
    text-align: center;
}
.pathways-note h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.pathways-note p {
    color: var(--ink-soft);
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    font-size: 0.93rem;
}
.pathways-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.pathways-steps li {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    color: var(--plum-900);
    font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.75rem;
    margin: 0;
}
.testimonial-card blockquote {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--plum-900);
}
.testimonial-card figcaption {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-weight: 600;
}

/* ---------- News & Events ---------- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.news-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 0.9rem 1.1rem;
    font-size: 0.92rem;
}
.news-chip span:first-child { font-size: 1.15rem; }

/* ---------- Partners ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.partner-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.partner-flag { font-size: 2.5rem; margin-bottom: 0.75rem; }
.partner-card h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.partner-place { color: var(--gold-600); font-weight: 600; font-size: 0.9rem; margin: 0 0 1rem; }
.partner-text { color: var(--ink-soft); font-size: 0.93rem; margin: 0 0 1.25rem; }
.stat-chip {
    display: inline-block;
    background: var(--plum-900);
    color: var(--gold-100);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

/* ---------- Programmes (accordion cards) ---------- */
.programme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.programme-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
}
.programme-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
}
.programme-card summary::-webkit-details-marker { display: none; }
.programme-icon { font-size: 1.3rem; flex: none; }
.programme-title { flex: 1; }
.programme-chevron {
    color: var(--gold-600);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    flex: none;
}
.programme-card[open] .programme-chevron { transform: rotate(45deg); }
.programme-card[open] summary { border-bottom: 1px solid var(--line); }
.programme-list { padding: 0.9rem 1.25rem 1.25rem 2.75rem; }
.programme-list li {
    position: relative;
    padding: 0.35rem 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
}
.programme-list li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.85rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-500);
}

/* ---------- Pathway / stepway (signature element) ---------- */
.stepway {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    counter-reset: step;
    margin-bottom: 2.5rem;
    position: relative;
}
.stepway-item {
    position: relative;
    padding-left: 3.25rem;
}
.stepway-item::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 2.75rem;
    bottom: -1.75rem;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--gold-500) 0 6px, transparent 6px 12px);
}
.stepway-item:last-child::before { display: none; }
.stepway-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--plum-900);
    color: var(--gold-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.stepway-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.stepway-item p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

.requirements-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.75rem;
}
.requirements-box h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.requirements-box ul { display: flex; flex-direction: column; gap: 0.6rem; }
.requirements-box li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
}
.requirements-box li::before {
    content: "•";
    color: var(--gold-600);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ---------- Application form ---------- */
.application-form {
    max-width: 40rem;
    margin: 0 auto;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 1.75rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--plum-900); }
.form-field input,
.form-field select {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--white);
    color: var(--ink);
    width: 100%;
}
.form-field input:focus,
.form-field select:focus {
    border-color: var(--gold-500);
}
.form-field.has-error input,
.form-field.has-error select { border-color: var(--error); }
.field-error {
    font-size: 0.78rem;
    color: var(--error);
    min-height: 1em;
}
.form-status {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-s);
    font-size: 0.92rem;
    display: none;
}
.form-status.status-success {
    display: block;
    background: rgba(47, 125, 93, 0.12);
    color: var(--success);
    border: 1px solid rgba(47, 125, 93, 0.35);
}
.form-status.status-error {
    display: block;
    background: rgba(179, 38, 30, 0.1);
    color: var(--error);
    border: 1px solid rgba(179, 38, 30, 0.3);
}
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ---------- Why choose us ---------- */
.checklist {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.98rem;
}
.check-mark {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--plum-950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}
.why-cta { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--plum-950);
    color: rgba(255, 255, 255, 0.85);
    padding-block: 3rem 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.brand-footer { margin-bottom: 1rem; }
.footer-about p { font-size: 0.9rem; color: rgba(255,255,255,0.65); max-width: 26rem; }
.social-list { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1rem; }
.social-list a {
    font-size: 0.85rem;
    color: var(--gold-100);
    border-bottom: 1px solid transparent;
}
.social-list a:hover { border-color: var(--gold-100); }
.footer-col h3 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-100);
    margin-bottom: 0.9rem;
}
.footer-list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-list a { font-size: 0.9rem; }
.footer-list a:hover { color: var(--gold-100); }
.footer-address { font-size: 0.9rem; margin: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* =====================================================================
   Breakpoints
   ===================================================================== */

/* Large phones */
@media (min-width: 480px) {
    .hero-ctas { flex-direction: row; justify-content: center; max-width: none; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (min-width: 800px) {
    .main-nav { display: block; }
    .nav-cta { display: inline-flex; }
    .nav-toggle { display: none; }
    .mobile-nav { display: none; }

    .main-nav ul { display: flex; gap: 1.75rem; }
    .main-nav a {
        color: rgba(255,255,255,0.85);
        font-size: 0.92rem;
        font-weight: 500;
        padding: 0.3rem 0;
        border-bottom: 2px solid transparent;
        transition: border-color 0.15s ease, color 0.15s ease;
    }
    .main-nav a:hover { color: var(--white); border-color: var(--gold-500); }

    .about-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
    .vm-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .programme-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .main-nav ul { gap: 1.1rem; }
    .main-nav a { font-size: 0.85rem; }

    .stepway { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .stepway-item { padding-left: 0; padding-top: 3.25rem; }
    .stepway-item::before {
        left: 2.75rem;
        right: -1.5rem;
        top: 1.1rem;
        bottom: auto;
        height: 2px;
        width: auto;
        background: repeating-linear-gradient(to right, var(--gold-500) 0 6px, transparent 6px 12px);
    }
    .stepway-item:last-child::before { display: none; }
    .stepway-marker { left: 0; top: 0; }

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

/* Desktop */
@media (min-width: 1100px) {
    .hero { padding-block: 6rem 6.5rem; }
    .section { padding-block: 5.5rem; }
    .feature-grid { gap: 1.25rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
