/* =========================================================
   Ascend — main stylesheet
   Colours, spacing and type are set once here as variables.
   ========================================================= */

:root {
    --navy: #13224a;
    --navy-2: #1d3270;
    --accent: #f08a24;        /* sunrise orange */
    --accent-dark: #b85f0c;   /* text-safe orange */
    --teal: #0e8a73;
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #1c2333;
    --muted: #535d73;
    --line: #e2e6ef;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(19, 34, 74, 0.08);
    --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 18px;              /* larger base size: easier for every reader */
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-2); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header & navigation ---------- */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 74px; gap: 20px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.45rem; letter-spacing: 0.5px;
    color: var(--navy); text-decoration: none;
}
.logo svg { width: 36px; height: 36px; }

.nav-links {
    list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center;
}
.nav-links a {
    text-decoration: none; color: var(--text); font-weight: 600;
    padding: 8px 14px; border-radius: 8px;
}
.nav-links a:hover { background: var(--bg); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--accent-dark); }

.menu-toggle {
    display: none; background: none; border: 2px solid var(--line);
    border-radius: 8px; padding: 8px 12px; font-size: 1rem; font-weight: 700;
    color: var(--navy); cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block; text-decoration: none; font-weight: 700;
    padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1b1203; }
.btn-primary:hover { color: #1b1203; box-shadow: 0 8px 20px rgba(240,138,36,.35); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-2); }
.nav-links .btn { padding: 10px 20px; color: #1b1203; }
.nav-links .btn:hover { background: var(--accent); color: #1b1203; }

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(circle at 85% 110%, rgba(240,138,36,.45), transparent 45%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff; padding: 90px 0 100px; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: 1.25rem; max-width: 40ch; color: #dbe3f7; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.eyebrow {
    display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero-art svg { width: 100%; max-width: 420px; margin-left: auto; }

.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #dbe3f7; padding: 64px 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 60ch; font-size: 1.15rem; margin: 0; }

/* ---------- Sections & cards ---------- */

section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

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

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    background: #fff3e6; color: var(--accent-dark); margin-bottom: 16px;
}
.card .icon svg { width: 28px; height: 28px; }

.tag {
    display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; padding: 4px 10px; border-radius: 999px;
    background: #e5f5f1; color: var(--teal); margin-bottom: 12px;
}
.tag-soon { background: #eef0f7; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 28px; left: 28px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 800;
    display: grid; place-items: center;
}
.step h3 { margin-top: 20px; }

/* Pricing */
.price-card { text-align: center; display: flex; flex-direction: column; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 10px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card ul { text-align: left; padding-left: 1.2em; color: var(--muted); flex: 1; }
.price-card.featured { border: 2px solid var(--accent); }

/* Values */
.values { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.values li {
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 18px; font-weight: 600; color: var(--navy);
}

/* Callout band */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #dbe3f7; border-radius: var(--radius); padding: 48px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* Service detail blocks */
.service-block { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: none; }
.service-block .icon { width: 56px; height: 56px; }
.service-block p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 8px; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--teal); font-weight: 800;
}

/* Toggle panel (Learn more) */
.toggle-btn {
    background: none; border: 2px solid var(--navy); color: var(--navy);
    border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; font-size: .95rem;
}
.toggle-btn:hover { background: var(--navy); color: #fff; }
.details-panel { margin-top: 20px; }
.details-panel[hidden] { display: none; }
.details-panel figure { margin: 18px 0 0; }
.details-panel img { border-radius: 10px; border: 1px solid var(--line); width: 700px; }
.details-panel figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Notice boxes */
.notice {
    background: #fff8ef; border-left: 5px solid var(--accent);
    padding: 18px 22px; border-radius: 8px; color: var(--text);
}
.notice-info { background: #eef4ff; border-left-color: var(--navy-2); }

/* Contact */
.contact-method { display: flex; gap: 16px; align-items: flex-start; }
.contact-method .icon { flex-shrink: 0; }
.big-link { font-size: 1.3rem; font-weight: 700; word-break: break-all; }

/* Privacy / legal text */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; background: #fff; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: #eef0f7; color: var(--navy); }
.legal .updated { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: #0d1836; color: #b9c3dd; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
.site-footer .logo { color: #fff; margin-bottom: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero-grid, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .cta-band { padding: 32px; }
}

@media (max-width: 760px) {
    .menu-toggle { display: block; }
    .nav { flex-wrap: wrap; }
    .nav-links {
        display: none; width: 100%; flex-direction: column; align-items: stretch;
        padding-bottom: 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; }
    section { padding: 56px 0; }
    .service-block { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Checklist used as a card */
.card.checklist { padding: 28px; }

/* "Not sure which one?" box under the prices */
.price-help { margin-top: 32px; text-align: center; }
.price-help p { max-width: 640px; margin: 0 auto 16px; }
.price-card .tag { align-self: center; }
.packages-head { margin-top: 56px; }
.price-note { text-align: center; color: var(--muted); margin-top: 20px; }
.year-card { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 2px dashed var(--accent); }
.year-card p { margin: 0; }
@media (max-width: 700px) { .year-card { flex-direction: column; align-items: flex-start; } }
.quickfix-card { margin-top: 0; margin-bottom: 24px; border-style: solid; }

/* =========================================================
   "Ask Ascend" helper
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.helper-launcher {
    position: fixed; right: 20px; bottom: 84px; z-index: 1000;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); color: #fff; border: 0; border-radius: 999px;
    padding: 14px 20px; font: inherit; font-weight: 700; font-size: 1rem;
    box-shadow: 0 10px 28px rgba(19,34,74,.3); cursor: pointer;
}
.helper-launcher svg { width: 22px; height: 22px; }
.helper-launcher:hover, .helper-launcher:focus-visible { background: var(--navy-2); outline: 3px solid var(--accent); outline-offset: 2px; }
.helper-launcher.is-open span { display: none; }
.helper-panel {
    position: fixed; right: 20px; bottom: 154px; z-index: 1000;
    width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 184px));
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(19,34,74,.25); overflow: hidden; padding: 0; margin: 0;
}
.helper-panel[hidden] { display: none; }
.helper-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 14px 16px; }
.helper-head span { display: block; font-size: .85rem; opacity: .85; }
.helper-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.helper-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); font-size: .95rem; }
.helper-msg { max-width: 90%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; }
.helper-msg p { margin: 0 0 .5em; } .helper-msg p:last-child { margin-bottom: 0; }
.helper-msg ul, .helper-msg ol { margin: .3em 0 .6em; padding-left: 1.2em; }
.helper-bot { background: var(--card); border: 1px solid var(--line); align-self: flex-start; }
.helper-user { background: var(--navy-2); color: #fff; align-self: flex-end; }
.helper-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.helper-chip { background: #fff; border: 2px solid var(--accent); color: var(--navy); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.helper-chip:hover, .helper-chip:focus-visible { background: #fff4e8; }
.helper-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.helper-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; }
.helper-form input:focus { outline: none; border-color: var(--accent); }
.helper-form .btn { padding: 10px 16px; }
.helper-note { margin: 0; padding: 0 12px 10px; font-size: .78rem; color: var(--muted); }
@media (max-width: 520px) {
    .helper-launcher { right: 12px; bottom: 76px; }
    .helper-panel { right: 12px; left: 12px; width: auto; bottom: 140px; }
}

/* Founder photo in the homepage hero */
.hero-photo { position: relative; max-width: 380px; margin-left: auto; }
.photo-frame { position: relative; margin: 0; }
.photo-frame::before {
    content: ""; position: absolute; inset: -14px -14px 14px 14px; border-radius: 28px;
    background: linear-gradient(135deg, var(--accent), #f6b46b); opacity: .9; z-index: 0;
}
.photo-frame img {
    position: relative; z-index: 1; width: 100%; height: auto; border-radius: 24px;
    box-shadow: 0 24px 50px rgba(5, 12, 35, .45); border: 4px solid #fff;
}
.photo-badge {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
    background: #fff; color: var(--text); border-radius: 14px; padding: 10px 14px;
    box-shadow: 0 12px 30px rgba(5, 12, 35, .3); font-size: .85rem; line-height: 1.3;
}
.photo-badge strong { display: block; color: var(--navy); font-size: .95rem; }
.photo-badge-top { top: -22px; left: -36px; }
.photo-badge-bottom { bottom: 28px; right: -28px; }
.photo-badge .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14,138,115,.2); flex: none; }
.photo-badge svg { width: 26px; height: 26px; color: #fff; background: var(--accent); border-radius: 50%; padding: 5px; flex: none; }
@media (max-width: 900px) {
    .hero-art.hero-photo { display: block; max-width: 280px; margin: 40px auto 0; }
    .photo-badge-top { top: -26px; left: -12px; }
    .photo-badge-bottom { right: -12px; }
}

/* About page: founder and recent work */
.founder-photo { margin: 0; max-width: 340px; justify-self: center; }
.founder-photo img { border-radius: 24px; border: 4px solid #fff; box-shadow: 0 0 0 6px var(--accent), var(--shadow); }
.work-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
@media (max-width: 760px) { .work-card { flex-direction: column; align-items: flex-start; } }

/* Checks and certifications badges */
.cred-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cred { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .92rem; color: var(--navy); }
.cred svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.cred-note { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* About page: qualifications */
.quals .card h3, .quals-safety h3 { font-size: 1.15rem; }
.quals .checklist li, .quals-safety .checklist li { font-size: .95rem; }
.quals-safety { margin-top: 24px; }
.quals-cols { columns: 2; column-gap: 32px; }
.quals-cols li { break-inside: avoid; }
@media (max-width: 760px) { .quals-cols { columns: 1; } }

/* About page: employability awards banner */
.awards-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; text-align: center; padding: 64px 0; }
.awards-banner h2 { color: #fff; margin-bottom: 6px; }
.awards-sub { color: #c9d3ee; margin: 0 0 36px; }
.awards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; }
.awards li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.awards img { width: 140px; height: 140px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
@media (max-width: 520px) { .awards { gap: 20px; } .awards img { width: 110px; height: 110px; } }
.work-card .btn { white-space: nowrap; flex: none; }
