@import url('https://fonts.cdnfonts.com/css/amazon-ember');

* { margin: 0; padding: 0; box-sizing: border-box; }

/* `:root` tokens inherited from design-tokens.css */

/* ---------- CUSTOM CURSOR ---------- */
body.custom-cursor-active,
body.custom-cursor-active * { cursor: none !important; }
.custom-cursor-glow {
    position: fixed; top: 0; left: 0; width: 34px; height: 34px;
    pointer-events: none; z-index: 99998; border-radius: 50%;
    background: radial-gradient(circle, var(--glow-light) 0%, var(--glow-purple) 40%, var(--glow-deep) 62%, transparent 70%);
    filter: blur(6px); opacity: 0.8; transform: translate(-50%, -50%); will-change: left, top;
}
.custom-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    pointer-events: none; z-index: 99999;
    background: url("../../img/cursor.png") center / contain no-repeat;
    transform: translate(-50%, -50%); will-change: left, top;
}
@media (pointer: coarse) and (hover: none) { .custom-cursor, .custom-cursor-glow { display: none; } }

/* ---------- BASE ---------- */
html {
    min-height: 100%;
    background: var(--bg-gradient);
    background-repeat: no-repeat;
}

body {
    font-family: var(--font-sans);
    color: #ffffff; background: transparent; position: relative; min-height: 100vh;
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes patternShift { 0% { background-position: 0 0; } 100% { background-position: 840px 840px; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.sticker { position: fixed; bottom: 30px; right: 30px; width: 120px; height: auto; z-index: 999; animation: float 3s ease-in-out infinite; pointer-events: none; }

/* ---------- OFFICERS — layout from base.css site-header ---------- */

/* ---------- PAGE: OFFICERS ---------- */
.of-page { position: relative; z-index: 1; padding: 130px var(--page-padding) 40px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease; margin-bottom: 28px; }
.page-back:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.page-back .arrow { transition: transform 0.25s ease; }
.page-back:hover .arrow { transform: translateX(-4px); }

.of-hero { text-align: center; margin-bottom: 40px; animation: fadeInUp 0.8s ease-out both; }
.page-label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 16px; padding: 6px 16px; background: rgba(255,255,255,0.06); border-radius: 100px; border: 1px solid rgba(255,255,255,0.1); }
.of-hero h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; line-height: 1.04; margin-bottom: 16px; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.of-hero p { font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 640px; margin: 0 auto; text-align: center; }

/* Finder window */
.of-finder-wrap { max-width: 1160px; margin: 0 auto; }

@keyframes ofPulseGlow {
    0%, 100% { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 20px rgba(187, 175, 253, 0.08); }
    50% { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 40px rgba(187, 175, 253, 0.15); }
}

.of-finder-window {
    position: relative;
    width: 100%;
    border-radius: 12px;
    background: rgba(28, 26, 42, 0.92);
    backdrop-filter: blur(55px) saturate(180%);
    -webkit-backdrop-filter: blur(55px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    animation: ofPulseGlow 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.of-finder-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(40, 40, 45, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    gap: 12px;
    min-height: 44px;
}

.of-finder-controls { display: flex; gap: 8px; flex-shrink: 0; }

.of-finder-control {
    width: 13px; height: 13px; border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.of-finder-control.red { background: #ff5f57; border-color: #e04e47; }
.of-finder-control.yellow { background: #ffbd2e; border-color: #e0a524; }
.of-finder-control.green { background: #28c840; border-color: #1fa833; }

.of-finder-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2px;
    font-family: var(--font-sans);
}

.of-finder-title-icon {
    display: inline-block;
    width: 16px; height: 16px;
    background: url("../../img/awscatlogo.png") center / contain no-repeat;
    vertical-align: middle;
    margin-right: 6px;
    filter: brightness(0.8);
}

.of-finder-body {
    display: flex;
    flex: 1;
    min-height: 0;
    background: rgba(20, 20, 25, 0.88);
}

.of-finder-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: rgba(30, 30, 35, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.of-finder-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    margin: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.of-finder-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.of-finder-sidebar-item.active {
    background: rgba(187, 175, 253, 0.15);
    color: #bbaffd;
}

.of-finder-sidebar-item .icon {
    width: 18px;
    height: 18px;
    background: url("../../img/folder.png") center / contain no-repeat;
    flex-shrink: 0;
}

.of-finder-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 16px;
}

.of-finder-sidebar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.25);
    padding: 8px 16px 4px;
}

.of-finder-main {
    flex: 1;
    padding: 24px 28px 28px;
    overflow-y: auto;
    min-width: 0;
    min-height: 520px;
}

.of-finder-main::-webkit-scrollbar { width: 3px; }
.of-finder-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Officer org chart */
.of-org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
}

.of-org-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.of-org-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    text-align: center;
}

.of-org-section-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.of-org-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.of-org-row--president {
    margin-bottom: 4px;
}

.of-org-row--leadership {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 18.75rem));
    align-items: stretch;
    justify-content: center;
    gap: clamp(12px, 2vw, 16px);
    width: 100%;
    margin: 0 auto 4px;
}

.of-org-row--leadership .of-card.of-contact-card {
    width: 100%;
    max-width: 18.75rem;
    justify-self: center;
    height: 100%;
}

.of-org-row--roster {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 18.75rem));
    align-items: stretch;
    justify-content: center;
    gap: clamp(12px, 2vw, 16px);
    width: 100%;
    margin: 0 auto;
}

.of-org-row--roster .of-card.of-contact-card {
    width: 100%;
    max-width: 18.75rem;
    flex: none;
    height: 100%;
}

.of-org-row--operations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-items: center;
    gap: clamp(16px, 4vw, 48px);
    width: min(100%, 40rem);
    margin: 0 auto;
}

.of-org-row--vice-president {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-items: center;
    gap: clamp(16px, 4vw, 48px);
    width: min(100%, 760px);
    margin: 0 auto;
}

.of-group { margin-bottom: 0; }
.of-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 18px;
}

.of-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Individual officer box — iOS Contacts card inside */
.of-card.of-contact-card {
    --of-card-photo: 7.5rem;
    --of-card-max: 18.75rem;
    --of-card-pad-block: 1.375rem;
    --of-card-pad-inline: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(100%, var(--of-card-max));
    min-width: 0;
    max-width: var(--of-card-max);
    height: 100%;
    flex: 0 0 auto;
    padding: var(--of-card-pad-block) var(--of-card-pad-inline) var(--of-card-pad-inline);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #3a1580 0%, #2d1066 45%, #1a0a4a 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.of-card.of-contact-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.of-card.of-contact-card.in-view:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

/* iOS contact elements (shared + card-scoped) */
.of-contact-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1 1 auto;
    padding-bottom: 14px;
}

.of-contact-photo-ring {
    width: var(--of-card-photo, 7.5rem);
    height: var(--of-card-photo, 7.5rem);
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.of-contact-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.of-contact-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(145deg, #4a2d9e, #8874d4);
    font-family: var(--font-sans);
}

.of-contact-meta {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    margin: 0 0 8px;
    font-family: var(--font-sans);
}

.of-contact-name {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 4px;
    font-family: var(--font-sans);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.of-contact-nickname {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 4px;
    font-family: var(--font-sans);
    min-height: 1.125rem;
}

.of-contact-nickname--spacer {
    visibility: hidden;
}

.of-contact-role {
    font-size: 12px;
    font-weight: 700;
    color: #f29b3c;
    margin: 0;
    font-family: var(--font-sans);
    max-width: 100%;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.of-card--president .of-contact-photo-ring {
    border: 3.5px solid #f29b3c;
    box-shadow: 0 0 18px rgba(242, 155, 60, 0.45);
    padding: 3px;
    background: transparent;
    box-sizing: border-box;
}

.of-contact-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: auto 0 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.of-contact-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 62px;
    min-height: 58px;
    padding: 8px 4px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.of-contact-action:hover:not(.is-disabled) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.of-contact-action.is-disabled {
    opacity: 0.34;
    cursor: default;
}

.of-contact-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.of-contact-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.of-contact-action-label {
    font-size: 9px;
    font-weight: 500;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-sans);
}

.of-contact-details {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.of-contact-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.of-contact-field:last-child {
    border-bottom: none;
}

.of-contact-field-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    font-family: var(--font-sans);
}

.of-contact-field-value {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--font-sans);
}

.of-finder-footer {
    position: relative;
    z-index: 3;
    padding: 8px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 35, 0.9);
    min-height: 32px;
    font-family: var(--font-sans);
}

.of-finder-footer > span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
}

.of-finder-footer-items {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
}

.of-finder-footer-items span {
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- SITE FOOTER ---------- */
.site-footer {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.site-footer-card {
    position: relative;
    width: 100%;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.site-footer-card::before {
    display: none;
}

.site-footer-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 10vw 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.site-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

.site-footer-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.site-footer-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-footer-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
}

.site-footer-desc {
    max-width: 540px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.site-footer-social {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #f29b3c;
    border: 1px solid rgba(242, 155, 60, 0.6);
    box-shadow: 0 6px 18px rgba(242, 155, 60, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-footer-social:hover {
    transform: translateY(-3px);
    background: #f7ad58;
    border-color: rgba(230, 158, 69, 0.9);
    box-shadow: 0 0 22px rgba(242, 155, 60, 0.55);
}

.site-footer-social svg {
    width: 20px;
    height: 20px;
    display: block;
}

.site-footer-bottom {
    position: relative;
    z-index: 1;
    padding: 16px 10vw 20px;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) { :root { --page-padding: 5vw; } }
@media (max-width: 1024px) {
    :root { --page-padding: 5vw; }
    .sticker { width: 80px; bottom: 16px; right: 16px; }
    .of-page { padding: 100px 5vw 30px; }
    .of-finder-sidebar { display: none; }
    .of-finder-main { padding: var(--mobile-finder-pad, 14px) !important; min-height: 0; }
    .of-grid { grid-template-columns: 1fr; gap: 14px; }
    .of-org-row { flex-direction: column; align-items: stretch; }
    .of-org-row--leadership {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }
    .of-org-row--leadership .of-card.of-contact-card {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    .of-org-row--roster {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .of-org-row--roster .of-card.of-contact-card {
        max-width: 100%;
        width: 100%;
    }
    .of-org-row--operations {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .of-org-row--vice-president {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .of-card.of-contact-card {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        --of-card-max: 100%;
    }
    .of-contact-name { font-size: 1.1rem; }
    .of-finder-footer {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 10px var(--mobile-finder-pad, 14px);
        font-size: 10px;
    }
    .of-finder-footer-items {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 10px;
    }
    .site-footer { padding: 0; }
    .site-footer-main { padding: 36px 5vw 28px; }
    .site-footer-logo-row { flex-direction: column; gap: 10px; }
    .site-footer-titles { align-items: center; text-align: center; }
    .site-footer-title { font-size: 19px; }
    .site-footer-desc { font-size: 14px; }
    .site-footer-bottom { padding: 14px 5vw 16px; font-size: 9px; }
}
