/* ============================================================
   ASQS - Static HTML Stylesheet
   ------------------------------------------------------------
   Headings : Open Sans
   Body     : Manrope
   Section  backgrounds are set INLINE on each <section> in the
   HTML via style="background-image:url('assets/bg/pattern-*.png')"
   — edit the HTML directly to swap a pattern.
   ============================================================ */

:root {
    /* Brand palette */
    --asqs-blue: #1B70B6;
    --asqs-blue-dark: #145A93;
    --asqs-blue-light: #7AB8E0;
    --asqs-ink: #1F2933;
    --asqs-muted: #6B7785;
    --asqs-bg: #ffffff;
    --asqs-soft: #f5f7fa;
    --asqs-border: #e6eaef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    letter-spacing: .5px;
    line-height: 1.6;
    color: var(--asqs-ink);
    background: var(--asqs-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .display {
    font-family: "Lora", "Helvetica Neue", sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--asqs-ink);
}

h1 { font-size: clamp(42px, 5.5vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.5vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.018em; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
h5 { font-size: 17px; font-weight: 500; }
h6 { font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--asqs-blue); }

p { color: var(--asqs-muted); }
a { color: var(--asqs-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--asqs-blue-dark); }

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

/* ---- Layout helpers ---------------------------------------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.row { display: flex; flex-wrap: wrap; gap: 40px; }
.col { flex: 1; min-width: 0; }

@media (min-width: 1024px) {
    .container { padding: 0 40px; }
}

/* ---- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: var(--asqs-blue);
    color: #fff;
    border-color: var(--asqs-blue);
    box-shadow: 0 12px 30px -8px rgba(20, 90, 147, 0.35);
}
.btn-primary:hover {
    background: var(--asqs-blue-dark);
    border-color: var(--asqs-blue-dark);
    color: #fff;
}
.btn-outline {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--asqs-ink);
    border-color: var(--asqs-border);
}
.btn-outline:hover { border-color: var(--asqs-ink); background: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--asqs-blue);
    border-color: transparent;
    padding: 8px 4px;
    box-shadow: none;
}
.btn-ghost:hover { color: var(--asqs-blue-dark); background: transparent; }

/* ---- Header ------------------------------------------------ */
.site-header2 {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--asqs-border);
}
.site-header2 .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo img { height: 72px; width: auto; user-select: none; }
@media (min-width: 1024px) { .logo img { height: 92px; } }

.nav { display: none; align-items: center; gap: 28px; }
.nav a:not(.btn) {
    font-family: "Lora", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--asqs-ink);
    position: relative;
    padding-bottom: 4px;
}
.nav a:not(.btn)::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s;
}
.nav a:not(.btn):hover::after, .nav a:not(.btn).active::after { transform: scaleX(1); }
.nav a:not(.btn).active { color: var(--asqs-blue); }
/* Header CTA button — defensive reset so header link styles can't bleed in */
.nav a.btn {
    padding: 10px 18px;
    font-size: 14px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0;
}
.nav a.btn::after { content: none; }
.nav a.btn:hover { color: #fff; }

@media (min-width: 1100px) { .nav { display: flex; } .menu-toggle { display: none; } }
@media (max-width: 1099px) {
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 28px 24px;
        border-bottom: 1px solid var(--asqs-border);
        box-shadow: 0 20px 40px -20px rgba(20, 90, 147, 0.25);
    }
    .nav.open { display: flex; }
    .nav a { font-size: 16px; }
}
.menu-toggle {
    background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--asqs-ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---- Section base (pattern supplied inline via style=) ----- */
.sec {
    position: relative;
    padding: 96px 0;
    background-repeat: repeat;
    background-position: center top;
    background-color: #fff;
    overflow: hidden;
}
.sec.sec-soft { background-color: var(--asqs-soft); }
.sec.sec-dark {
    background-color: var(--asqs-ink);
    color: #fff;
}
.sec.sec-dark h1, .sec.sec-dark h2, .sec.sec-dark h3, .sec.sec-dark h4 { color: #fff; }
.sec.sec-dark p { color: rgba(255, 255, 255, 0.72); }
.sec.sec-dark h6 { color: var(--asqs-blue-light); }

/* Two "no-tile" hero patterns (topo/waves/glow) need cover-ish positioning */
.sec.sec-bg-cover {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.sec.sec-bg-right {
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60% auto;
}
.sec.sec-bg-bottom {
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
}

@media (min-width: 1024px) { .sec { padding: 128px 0; } }

/* ---- Hero spec -------------------------------------------- */
.hero .grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
    .hero .grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.hero .eyebrow { color: var(--asqs-blue); margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
    color: var(--asqs-blue);
    font-style: italic;
    font-weight: 500;
}
.hero .lead {
    font-size: 19px;
    color: var(--asqs-muted);
    max-width: 520px;
    margin-bottom: 36px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .photo {
    position: relative;
    box-shadow: 0 30px 80px -30px rgba(20, 90, 147, 0.4);
    aspect-ratio: 5 / 4;
    background: var(--asqs-soft);
}
.hero .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.hero .badge {
    position: absolute;
    bottom: -20px; left: -20px;
    background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 20px 50px -20px rgba(20, 90, 147, 0.25);
}
.hero .badge .label {
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--asqs-muted);
}
.hero .badge .value {
    font-family: "Lora", sans-serif;
    font-size: 26px; font-weight: 700; color: var(--asqs-ink); margin-top: 2px;
}

/* ---- Page hero (inner pages) ------------------------------ */
.page-hero { padding: 112px 0 96px; }
.page-hero h1 { margin-top: 16px; max-width: 900px; margin-bottom: 20px; }
.page-hero h1 .accent {
    color: var(--asqs-blue);
    font-style: italic;
    font-weight: 500;
}
.page-hero .lead {
    font-size: 18px; color: var(--asqs-muted); max-width: 640px;
}

/* ---- Section headings block ------------------------------ */
.sec-head { margin-bottom: 56px; }
.sec-head h2 { margin-top: 16px; max-width: 760px; }
.sec-head .lead { margin-top: 16px; color: var(--asqs-muted); max-width: 480px; font-size: 16px; }
.sec-head .flex {
    display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 1024px) {
    .sec-head .flex { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* ---- Goal / Topic / Statute cards -------------------------- */
.card-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1px; background: var(--asqs-border);
    border: 1px solid var(--asqs-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px -30px rgba(20, 90, 147, 0.18);
}
@media (min-width: 768px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-grid.col-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: #fff;
    padding: 36px 32px;
    transition: background 0.25s;
}
.card:hover { background: var(--asqs-soft); }
.card .num {
    font-family: "Lora", sans-serif;
    color: var(--asqs-muted); font-size: 13px; letter-spacing: 0.12em;
    margin-bottom: 22px; display: flex; justify-content: space-between;
}
.card .num .arrow {
    color: var(--asqs-muted); transition: all 0.2s;
}
.card:hover .num .arrow {
    color: var(--asqs-blue); transform: translate(3px, -3px);
}
.card h3 { font-family: "Lora", sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.card .body-text { font-size: 15px; color: var(--asqs-muted); }
.card .role-tag {
    display: inline-block;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--asqs-blue); margin-bottom: 12px; font-weight: 700;
}

/* ---- Simple 2/3/4-col grid ------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Topic pills (dark section) --------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
    display: inline-flex; align-items: center;
    padding: 12px 20px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff; font-size: 15px;
    transition: all 0.2s; cursor: default;
}
.pill:hover {
    border-color: var(--asqs-blue);
    background: rgba(27, 112, 182, 0.18);
}

/* ---- Quote block (mission) -------------------------------- */
.quote {
    font-family: "Lora", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 26px; line-height: 1.4;
    color: var(--asqs-ink);
    border-left: 2px solid var(--asqs-blue);
    padding: 8px 0 8px 24px;
}

/* ---- CTA panel -------------------------------------------- */
.cta-panel {
    background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 24px;
    padding: 64px 48px;
    display: grid; grid-template-columns: 1fr; gap: 32px;
    box-shadow: 0 30px 70px -30px rgba(20, 90, 147, 0.25);
    align-items: center;
}
@media (min-width: 1024px) {
    .cta-panel { grid-template-columns: 2fr 1fr; padding: 80px 72px; }
}
.cta-panel .actions { display: flex; flex-direction: column; gap: 12px; }

/* ---- Board / Member avatar ------------------------------- */
.avatar {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--asqs-soft), #e7eef5);
    display: flex; align-items: center; justify-content: center;
    font-family: "Lora", sans-serif;
    font-size: 56px; font-weight: 700;
    color: rgba(27, 112, 182, 0.4);
    margin-bottom: 20px;
}
.board-card {
    background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 18px;
    padding: 26px;
    transition: all 0.25s;
}
.board-card:hover {
    border-color: var(--asqs-blue);
    box-shadow: 0 24px 50px -30px rgba(20, 90, 147, 0.35);
    transform: translateY(-2px);
}
.board-card h4 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.board-card .role { font-size: 13px; color: var(--asqs-muted); }

/* ---- Event card ------------------------------------------- */
.event-card {
    background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 20px;
    padding: 40px;
    display: grid; grid-template-columns: 1fr; gap: 28px;
    box-shadow: 0 24px 60px -30px rgba(20, 90, 147, 0.2);
}
@media (min-width: 768px) { .event-card { grid-template-columns: 240px 1fr; gap: 40px; } }
.event-date {
    padding: 20px;
    background: var(--asqs-soft);
    border-radius: 14px;
    text-align: left;
}
.event-date .day {
    font-family: "Lora", sans-serif;
    font-size: 48px; font-weight: 700;
    color: var(--asqs-blue); line-height: 1;
}
.event-date .month {
    font-family: "Lora", sans-serif;
    letter-spacing: 0.22em; text-transform: uppercase;
    font-size: 12px; color: var(--asqs-muted); margin-top: 8px; font-weight: 700;
}
.event-date .time { margin-top: 14px; color: var(--asqs-ink); font-size: 14px; font-weight: 600; }
.event-date .tag {
    display: inline-block; margin-top: 14px;
    padding: 4px 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    background: var(--asqs-blue); color: #fff; border-radius: 4px; font-weight: 600;
}
.event-card h3 { font-size: 24px; margin-bottom: 10px; }
.event-card .subtitle { color: var(--asqs-blue); font-weight: 700; margin-bottom: 16px; }
.event-card .event-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Downloads list -------------------------------------- */
.download-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .download-list { grid-template-columns: repeat(2, 1fr); } }
.download-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 22px 24px; background: #fff;
    border: 1px solid var(--asqs-border); border-radius: 14px;
    transition: all 0.2s;
}
.download-item:hover {
    border-color: var(--asqs-blue);
    transform: translateX(2px);
}
.download-item .icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: rgba(27, 112, 182, 0.1);
    color: var(--asqs-blue);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.download-item h4 { font-size: 15px; font-weight: 700; color: var(--asqs-ink); margin-bottom: 4px; }
.download-item p { font-size: 13px; line-height: 1.5; }

/* ---- Featured block (publications) ----------------------- */
.featured {
    background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    box-shadow: 0 30px 70px -30px rgba(20, 90, 147, 0.22);
}
.featured .tag {
    display: inline-block;
    background: var(--asqs-blue); color: #fff;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 4px;
    margin-bottom: 20px; font-weight: 700;
}
.featured h2 { margin-bottom: 20px; }
.featured p { font-size: 17px; margin-bottom: 16px; }

/* ---- Partner logo grid ----------------------------------- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
.logo-tile {
    background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 14px;
    aspect-ratio: 3 / 2;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    transition: all 0.25s;
}
.logo-tile:hover {
    border-color: var(--asqs-blue);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(20, 90, 147, 0.22);
}
.logo-tile img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-tile .placeholder {
    font-family: "Lora", sans-serif;
    font-weight: 700; font-size: 14px; color: var(--asqs-muted);
    text-align: center;
}

/* ---- Fees table ------------------------------------------- */
.fees-table {
    background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 20px;
    overflow: hidden;
}
.fees-table .row {
    display: flex; gap: 0; padding: 18px 24px;
    border-bottom: 1px solid var(--asqs-border);
    flex-wrap: nowrap;
}
.fees-table .row:last-child { border-bottom: none; }
.fees-table .row:hover { background: var(--asqs-soft); }
.fees-table .label { flex: 1; color: var(--asqs-ink); font-weight: 500; }
.fees-table .price {
    font-family: "Lora", sans-serif;
    font-weight: 700; color: var(--asqs-blue); white-space: nowrap;
}

/* ---- Form ----------------------------------------------- */
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--asqs-ink); margin-bottom: 8px;
}
.form-field label .req { color: var(--asqs-blue); }
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--asqs-border);
    border-radius: 12px;
    background: #fff;
    font-family: inherit; font-size: 15px;
    color: var(--asqs-ink);
    transition: all 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--asqs-blue);
    box-shadow: 0 0 0 3px rgba(27, 112, 182, 0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-success {
    display: none;
    align-items: center; gap: 8px;
    color: var(--asqs-blue); font-weight: 600; font-size: 14px;
}
.form-success.show { display: inline-flex; }

/* ---- Contact info cards ---------------------------------- */
.info-card {
    display: flex; gap: 16px;
    padding: 20px; background: #fff;
    border: 1px solid var(--asqs-border);
    border-radius: 16px;
    transition: all 0.2s;
    margin-bottom: 14px;
}
.info-card:hover { border-color: var(--asqs-blue); }
.info-card .icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: rgba(27, 112, 182, 0.1);
    color: var(--asqs-blue);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.info-card .label {
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--asqs-muted); margin-bottom: 4px; font-weight: 600;
}
.info-card .value { font-size: 15px; color: var(--asqs-ink); }
.bank-box {
    background: var(--asqs-soft);
    border: 1px solid var(--asqs-border);
    border-radius: 16px;
    padding: 24px;
}
.bank-box dl { display: grid; grid-template-columns: 80px 1fr; gap: 8px 16px; font-size: 14px; }
.bank-box dt { color: var(--asqs-muted); }
.bank-box dd { color: var(--asqs-ink); font-family: "Lora", monospace; font-weight: 700; }

/* ---- Helper utilities ------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; } .mb-12 { margin-bottom: 48px; }
.eyebrow {
    font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--asqs-blue); font-weight: 600;
}

/* ---- Footer ---------------------------------------------- */
.site-footer {
    background: var(--asqs-ink);
    color: #fff;
    padding: 80px 0 40px;
    position: relative;
    isolation: isolate;
}
.site-footer .logo-box {
    background: #fff; padding: 18px;
    border-radius: 12px; display: inline-block;
}
.site-footer .logo-box img { height: 56px; }
.site-footer h6 {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px; letter-spacing: 0.22em;
    margin-bottom: 20px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 12px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .grid-4 { gap: 40px; }
.site-footer hr {
    border: none; border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 50px 0 24px;
}
.site-footer .bottom {
    display: flex; flex-direction: column; gap: 12px;
    justify-content: space-between; align-items: flex-start;
    font-size: 13px; color: rgba(255, 255, 255, 0.55);
}
@media (min-width: 768px) { .site-footer .bottom { flex-direction: row; align-items: center; } }
.site-footer .contact-item {
    display: flex; gap: 10px; color: rgba(255, 255, 255, 0.85);
    font-size: 14px; line-height: 1.5;
}
.site-footer .contact-item .icon { color: var(--asqs-blue-light); flex-shrink: 0; margin-top: 2px; }
.din-shadow {
    box-shadow: 0 20px 60px -30px rgba(20, 90, 147, 0.18);
}
.din-radius{
    border-radius: 16px;
}
.din-border {
    border: 1px solid var(--asqs-border);
}