:root {
    color-scheme: dark;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(255, 182, 18, 0.65);
    outline-offset: 4px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    float: right;
    transition: transform 0.25s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

.btn-cta {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1px solid rgba(255, 182, 18, 0.25);
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(255, 182, 18, 0.25);
}

.btn-cta:hover::after {
    opacity: 1;
    transform: scale(1.05);
}

.btn-cta--solid-dark:hover {
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.btn-cta--outline {
    background: transparent;
}

.btn-cta--outline:hover {
    color: #000000;
    background: #FFB612;
    box-shadow: 0 18px 30px rgba(255, 182, 18, 0.2);
}

.btn-cta--outline-dark {
    background: transparent;
}

.btn-cta--outline-dark:hover {
    color: #FFB612;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.experience-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.group:hover .experience-photo {
    transform: scale(1.07);
}

.hero-field-lines {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 20, 20, 0.8), rgba(0, 0, 0, 0.85));
}

.hero-field-lines::before,
.hero-field-lines::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(255, 182, 18, 0.12), transparent 45%),
        linear-gradient(90deg, rgba(255, 182, 18, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 182, 18, 0.06) 1px, transparent 1px);
    background-size:
        100% 100%,
        140px 100%,
        100% 90px;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.hero-field-lines::after {
    transform: rotate(2deg) scale(1.05);
    opacity: 0.25;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.2rem;
    border-radius: 9999px;
    background: rgba(255, 182, 18, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.35em;
}

.hero-divider {
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 182, 18, 0), rgba(255, 182, 18, 0.55), rgba(255, 182, 18, 0));
}

.hero-stat-card {
    position: relative;
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-stat-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(255, 182, 18, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 182, 18, 0.3);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.hero-stat-card:hover::after {
    opacity: 1;
}

.hero-stat-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2.75rem;
    line-height: 1;
    font-weight: 700;
    color: #FFB612;
}

.hero-stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.85);
}

.hero-stat-subtitle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
}

.hero-media {
    position: relative;
    isolation: isolate;
}

.hero-media::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(255, 182, 18, 0.4), rgba(90, 20, 20, 0.4));
    opacity: 0.35;
    filter: blur(14px);
    z-index: -1;
}

.hero-floating-card {
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    min-width: 220px;
    padding: 1.35rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 182, 18, 0.95), rgba(255, 182, 18, 0.25));
    box-shadow: 0 0 12px rgba(255, 182, 18, 0.55);
}

@media (max-width: 640px) {
    .hero-stat-card {
        padding: 1.25rem 1.1rem;
    }

    .hero-stat-number {
        font-size: 2.25rem;
    }
}

/* Placeholder note: replace `assets/img/photos/*.jpg` with real imagery */

.commanders-form {
    --form-bg: rgba(26, 17, 16, 0.85);
    --form-border: rgba(255, 255, 255, 0.12);
    --form-border-active: rgba(255, 182, 18, 0.65);
    --form-text: rgba(255, 255, 255, 0.85);
    --form-text-muted: rgba(255, 255, 255, 0.55);
}

.commanders-form label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.commanders-form .required-indicator {
    color: #FFB612;
    margin-left: 0.35rem;
}

.commanders-form .form-input,
.commanders-form .form-select {
    width: 100%;
    border-radius: 0.85rem;
    border: 1px solid var(--form-border);
    background-color: var(--form-bg);
    color: var(--form-text);
    padding: 0.95rem 1.1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.95rem;
}

.commanders-form .form-input:focus,
.commanders-form .form-select:focus {
    border-color: var(--form-border-active);
    box-shadow: 0 0 0 3px rgba(255, 182, 18, 0.15);
}

.commanders-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23FFB612' d='M6 8 0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 0.75rem auto;
    padding-right: 2.8rem;
}

.commanders-form .form-input::placeholder {
    color: var(--form-text-muted);
}

.commanders-form .form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    border-radius: 0.35rem;
    border: 1px solid var(--form-border);
    background-color: rgba(12, 7, 6, 0.9);
    accent-color: #FFB612;
}

.commanders-form a {
    color: #FFB612;
}
