/* =========================================================
   AZADI RECREATIONAL COMPLEX - JOIN ARC PAGE
   Navy + gold theme.

   CONTENTS
    1. Design tokens
    2. Base
    3. Header
    4. Hero and buttons
    5. Layout and sections
    6. Membership rates note
    7. How to apply (infographic)
    8. Online application form
    9. Membership bylaws
   10. Before you apply
   11. Back to home button
   12. Footer
   13. Responsive
   14. Reduced motion
   ========================================================= */


/* ---------- 1. Design tokens ---------- */
:root {
    --navy:        #12263F;
    --navy-mid:    #193d5d;
    --navy-deep:   #071422;
    --navy-footer: #0d1d2d;
    --gold:        #d4af37;
    --gold-light:  #e7c47a;
    --gold-bright: #f0c866;
    --page-bg:     #f4f7f9;
    --white:       #ffffff;
    --border:      #d7e4ea;
    --text-muted:  #5b6c77;
    --danger:      #c0392b;

    --font-body:    Arial, Helvetica, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;

    --shadow-card: 0 5px 18px rgba(18, 38, 63, .06);
    --container:   1100px;
}


/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--navy);
    font-family: var(--font-body);
    line-height: 1.5;
}

a {
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}


/* ---------- 3. Header ---------- */
.arc-header {
    padding: 16px 6%;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    color: var(--white);
    border-bottom: 1px solid rgba(212, 175, 55, .6);
    box-shadow: 0 5px 22px rgba(0, 0, 0, .18);
}

.arc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: var(--container);
    margin: auto;
}

.arc-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--white);
}

.arc-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.arc-brand-title {
    font-family: var(--font-heading);
    font-size: 21px;
    letter-spacing: 1px;
}

.arc-brand-subtitle {
    margin-top: 4px;
    color: var(--gold-light);
    font-size: 9px;
    letter-spacing: 2px;
}


/* ---------- 4. Hero and buttons ---------- */
.membership-hero {
    width: 92%;
    max-width: var(--container);
    margin: 28px auto 0;
    padding: 35px 28px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, .6);
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(18, 38, 63, .15);
}

.membership-hero h1 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 52px);
}

.membership-hero p {
    max-width: 760px;
    color: #dce7ee;
    font-size: 14px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.arc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 19px;
    border: 1px solid var(--gold);
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: .25s ease;
}

.arc-btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--navy);
}

.arc-btn-gold:hover {
    background: linear-gradient(135deg, #ffe08a, #e0b94d);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .25);
}

.arc-btn-outline {
    background: rgba(255, 255, 255, .05);
    color: var(--white);
}

.arc-btn-outline:hover {
    background: rgba(212, 175, 55, .14);
    color: #f5d77a;
    transform: translateY(-2px);
}


/* ---------- 5. Layout and sections ---------- */
.arc-container {
    width: 92%;
    max-width: var(--container);
    margin: 24px auto 50px;
}

.arc-section {
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.arc-section h2 {
    margin-bottom: 7px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 25px;
}

.section-intro {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}


/* ---------- 6. Membership rates note ---------- */
.important-note {
    margin-top: 15px;
    padding: 12px 14px;
    border-left: 3px solid var(--gold);
    border-radius: 5px;
    background: #faf7ed;
    color: #5c533d;
    font-size: 18px;
    line-height: 1.55;
}

.important-note a {
    color: var(--navy);
    font-weight: 700;
}


/* ---------- 7. How to apply (infographic) ---------- */
.arc-infographic-section {
    padding-top: 10px;
    padding-bottom: 10px;
}

.arc-infographic {
    margin-top: 24px;
    padding: 34px 28px 30px;
    overflow: hidden;
    border: 1px solid #d9e6f1;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
    box-shadow: 0 12px 35px rgba(12, 45, 78, .08);
}

.arc-section .arc-info-title {
    margin: 0;
    color: #0b315b;
    font-family: var(--font-body);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.6px;
    text-align: center;
}

.arc-info-intro {
    max-width: 760px;
    margin: 8px auto 30px;
    color: #526b84;
    font-size: 16px;
    text-align: center;
}

/* Process cards */
.arc-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px;
}

.arc-process::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 49px;
    z-index: 0;
    height: 3px;
    background: linear-gradient(90deg, #54b7ff, #f5b72b, #42c989, #ef4f78);
    opacity: .35;
}

.arc-process-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 355px;
    padding: 30px 20px 22px;
    border: 1.5px solid;
    border-radius: 20px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.arc-process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px rgba(20, 55, 90, .12);
}

.arc-process-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.18;
}

.arc-process-card p {
    max-width: 255px;
    color: #304c68;
    font-size: 15px;
    line-height: 1.55;
}

.arc-step-badge {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-top: -58px;
    margin-bottom: 18px;
    border: 5px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    font-size: 25px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(20, 55, 90, .12);
}

.arc-info-icon {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 16px;
    border-radius: 50%;
}

.arc-info-icon svg {
    width: 68px;
    height: 68px;
}

/* Colour variants (shared by process and document cards) */
.blue   { --c-border: #63bcff; --c-bg: linear-gradient(180deg, #eef8ff, #e5f4ff); --c-badge: #2789e9; --c-ring: rgba(84, 183, 255, .17);  --c-ink: #1468b7; --c-title: #075da7; }
.yellow { --c-border: #f4b51f; --c-bg: linear-gradient(180deg, #fff9e9, #fff3ca); --c-badge: #f4a414; --c-ring: rgba(245, 183, 43, .18);  --c-ink: #a76700; --c-title: #8d5200; }
.green  { --c-border: #4fd18e; --c-bg: linear-gradient(180deg, #effdf5, #e2f9ec); --c-badge: #39bf7b; --c-ring: rgba(66, 201, 137, .17);  --c-ink: #087044; --c-title: #09633e; }
.pink   { --c-border: #f05a7e; --c-bg: linear-gradient(180deg, #fff1f5, #ffe7ed); --c-badge: #ed426d; --c-ring: rgba(239, 79, 120, .15);  --c-ink: #a51d45; --c-title: #941b40; }

.arc-process-card         { border-color: var(--c-border); background: var(--c-bg); }
.arc-process-card h3      { color: var(--c-title); }
.arc-step-badge           { background: var(--c-badge); }
.arc-info-icon            { background: var(--c-ring); color: var(--c-ink); }

/* Required documents */
.arc-documents-wrap {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid #dce8f2;
}

.arc-documents-title {
    margin: 0;
    color: #0b315b;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    text-align: center;
}

.arc-documents-intro {
    margin: 7px auto 24px;
    color: #526b84;
    font-size: 16px;
    text-align: center;
}

.arc-documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.arc-document-info {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #dce7f0;
    border-radius: 18px;
}

.arc-document-info.blue  { background: #eef8ff; --c-doc-ring: #d9efff; --c-doc-ink: #1268ae; }
.arc-document-info.pink  { background: #fff0f5; --c-doc-ring: #ffdce7; --c-doc-ink: #a51d45; }
.arc-document-info.green { background: #edfcf4; --c-doc-ring: #d5f6e3; --c-doc-ink: #087044; }

.arc-document-icon {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--c-doc-ring);
    color: var(--c-doc-ink);
}

.arc-document-icon svg {
    width: 58px;
    height: 58px;
}

.arc-document-info h4 {
    margin: 0 0 7px;
    color: var(--c-title);
    font-size: 18px;
    line-height: 1.2;
}

.arc-document-info.blue h4 {
    color: #0b315b;
}

.arc-document-info p {
    color: #48627a;
    font-size: 14px;
    line-height: 1.45;
}


/* ---------- 8. Online application form ---------- */
.up-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 18px;
    list-style: none;
}

.up-step {
    display: flex;
    flex: 1 1 200px;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafb;
    color: #35505f;
    font-size: 13px;
    line-height: 1.4;
}

.up-step b {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 12px;
}

.up-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
    border-radius: 5px;
    background: #faf7ed;
    color: #5c533d;
    font-size: 13px;
}

.up-download a.up-link {
    border-bottom: 1px solid var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.up-form {
    display: grid;
    gap: 16px;
}

.up-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.up-field.full {
    grid-column: 1 / -1;
}

.up-field label,
.up-drop > .up-label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.up-field label i,
.up-drop > .up-label i {
    color: var(--danger);
    font-style: normal;
}

.up-field label small,
.up-drop > .up-label small {
    color: #6b7c87;
    font-weight: 400;
}

.up-field input[type="text"],
.up-field input[type="tel"],
.up-field input[type="email"],
.up-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1.5px solid #c9dce5;
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.up-field textarea {
    min-height: 84px;
    resize: vertical;
}

.up-field input:focus,
.up-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .22);
}

.up-field.is-bad input,
.up-field.is-bad textarea {
    border-color: var(--danger);
    background: #fff8f7;
}

/* File boxes */
.up-drop {
    position: relative;
    padding: 14px;
    border: 2px dashed #b9cfdb;
    border-radius: 12px;
    background: #f8fbfd;
    transition: border-color .2s ease, background .2s ease;
}

.up-drop:hover,
.up-drop:focus-within {
    border-color: var(--gold);
    background: #fffdf5;
}

.up-drop.is-bad {
    border-color: var(--danger);
    background: #fff8f7;
}

.up-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.up-drop-row {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.up-pick {
    flex: none;
    padding: 9px 15px;
    border-radius: 9px;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}

.up-fname {
    min-width: 0;
    color: #4d6272;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.up-hint {
    margin-top: 7px;
    color: #6b7c87;
    font-size: 12px;
    pointer-events: none;
}

.up-photo-preview {
    display: block;
    width: 96px;
    height: 120px;
    margin-top: 10px;
    object-fit: cover;
    border: 2px solid var(--gold);
    border-radius: 8px;
    pointer-events: none;
}

.up-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafb;
    color: #35505f;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.up-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--navy);
}

.up-check.is-bad {
    border-color: var(--danger);
    background: #fff8f7;
}

/* Spam trap */
.up-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.up-status {
    min-height: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.up-status.is-error { color: #b32d20; font-weight: 700; }
.up-status.is-info  { color: #35505f; }

.up-submit {
    justify-self: start;
    min-width: 230px;
    padding: 14px 26px;
    font-size: 13px;
    cursor: pointer;
}

.up-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

/* Success message */
.up-done {
    padding: 26px 22px;
    border: 1px solid #4fd18e;
    border-radius: 14px;
    background: linear-gradient(180deg, #effdf5, #e2f9ec);
    color: #09633e;
    text-align: center;
}

.up-done .tick {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #39bf7b;
    color: var(--white);
    font-size: 28px;
}

.up-done h3 { margin-bottom: 6px; font-size: 20px; }
.up-done p  { color: #2c5a45; font-size: 13px; line-height: 1.6; }

.up-done .ref {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 18px;
    border: 1px dashed #39bf7b;
    border-radius: 9px;
    background: var(--white);
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* The [hidden] attribute must beat the display rules above */
.up-form[hidden],
.up-done[hidden],
.up-photo-preview[hidden] {
    display: none;
}


/* ---------- 9. Membership bylaws ---------- */
.sop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sop-card {
    padding: 17px;
    border: 1px solid #dce7ec;
    border-radius: 11px;
    background: #fbfcfd;
}

.sop-card h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 14px;
}

.sop-card ul {
    padding-left: 18px;
}

.sop-card li {
    margin-bottom: 4px;
    color: #52636e;
    font-size: 13px;
    line-height: 1.6;
}

.sop-card li:last-child {
    margin-bottom: 0;
}


/* ---------- 10. Before you apply ---------- */
.final-note {
    padding: 22px;
    border: 1px solid rgba(212, 175, 55, .6);
    border-radius: 14px;
    background: var(--navy);
    color: var(--white);
}

.final-note h2 {
    margin-bottom: 7px;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 22px;
}

.final-note p {
    color: #dce7ee;
    font-size: 13px;
    line-height: 1.65;
}


/* ---------- 11. Back to home button ---------- */
.bottom-home-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 20px 38px;
}

.bottom-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    padding: 14px 28px;
    border: 1px solid rgba(201, 162, 39, .55);
    border-radius: 50px;
    background: linear-gradient(135deg, #132b43, #1e4568);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    box-shadow: 0 8px 22px rgba(19, 43, 67, .2);
    transition: all .25s ease;
}

.bottom-home-icon {
    color: #f7e58a;
    font-size: 20px;
    line-height: 1;
    transform: translateY(-1px);
}

.bottom-home-button:hover {
    border-color: #c9a227;
    background: linear-gradient(135deg, #1e4568, #132b43);
    box-shadow: 0 12px 28px rgba(19, 43, 67, .28);
    transform: translateY(-3px);
}

.bottom-home-button:active {
    transform: translateY(-1px);
}


/* ---------- 12. Footer ---------- */
footer {
    padding: 25px 15px;
    background: var(--navy-footer);
    color: #aebec8;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

footer strong {
    color: var(--gold);
}


/* ---------- 13. Responsive ---------- */
@media (max-width: 1050px) {
    .arc-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 52px 22px;
    }

    .arc-process::before {
        display: none;
    }

    .arc-documents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .arc-header-inner {
        align-items: flex-start;
    }

    .arc-brand-title {
        font-size: 18px;
    }

    .membership-hero {
        margin-top: 16px;
        padding: 27px 20px;
    }

    .sop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .up-grid {
        grid-template-columns: 1fr;
    }

    .up-submit {
        width: 100%;
        justify-self: stretch;
    }

    .up-drop-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .arc-infographic {
        padding: 26px 14px 22px;
        border-radius: 18px;
    }

    .arc-process {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .arc-process-card {
        min-height: auto;
        padding-top: 30px;
    }

    .arc-document-info {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .arc-document-icon {
        width: 76px;
        height: 76px;
    }

    .arc-document-icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 600px) {
    .bottom-home-wrap {
        padding: 26px 16px 32px;
    }

    .bottom-home-button {
        width: min(100%, 280px);
        min-width: 0;
        padding: 14px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .arc-header {
        padding: 13px;
    }

    .arc-header-inner {
        gap: 10px;
    }

    .arc-brand {
        gap: 9px;
    }

    .arc-brand img {
        width: 45px;
        height: 45px;
    }

    .arc-brand-title {
        font-size: 14px;
    }

    .arc-brand-subtitle {
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    .membership-hero {
        width: 94%;
        padding: 23px 17px;
    }

    .membership-hero h1 {
        font-size: 32px;
    }

    .membership-hero p {
        font-size: 13px;
    }

    .arc-container {
        width: 94%;
    }

    .arc-section {
        padding: 18px 15px;
    }

    .arc-section h2 {
        font-size: 22px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .arc-btn {
        width: 100%;
    }

    .final-note {
        padding: 18px;
    }
}


/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}