/**
 * Quartermaster Foundation - Custom Styles
 *
 * This file contains custom styles that extend Tailwind CSS.
 * Keep this file minimal - prefer Tailwind utility classes in HTML.
 *
 * Color Reference:
 * - Navy: #1e3a5f
 * - Gold: #f5a623
 * - Text: #333333
 */

/* ===========================================
   BASE STYLES
   =========================================== */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Body defaults */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===========================================
   NAVIGATION STYLES
   =========================================== */

.nav-link {
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: #1e3a5f;
}

.nav-link-active {
    color: #1e3a5f;
    border-bottom-color: #f5a623;
}

/* ===========================================
   BUTTON STYLES
   =========================================== */

.btn-primary {
    display: inline-block;
    background-color: #f5a623;
    color: #1e3a5f;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #d4891a;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-block;
    background-color: #1e3a5f;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-secondary:hover {
    background-color: #2d4a6f;
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #1e3a5f;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #1e3a5f;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background-color: #1e3a5f;
    color: white;
}

/* ===========================================
   FORM STYLES
   =========================================== */

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label-required::after {
    content: " *";
    color: #dc2626;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===========================================
   CARD STYLES
   =========================================== */

.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.card-bordered {
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

/* ===========================================
   SECTION STYLES
   =========================================== */

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #f9fafb;
}

.section-navy {
    background-color: #1e3a5f;
    color: white;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */

.heading-1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e3a5f;
}

.heading-2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1e3a5f;
}

.heading-3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e3a5f;
}

.text-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Gold accent text */
.text-gold {
    color: #f5a623;
}

/* Navy text */
.text-navy {
    color: #1e3a5f;
}

/* ===========================================
   UTILITIES
   =========================================== */

/* Gold underline accent */
.underline-gold {
    position: relative;
    display: inline-block;
}

.underline-gold::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #f5a623;
}

/* Divider with compass */
.divider-compass {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.divider-compass::before,
.divider-compass::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.divider-compass img {
    margin: 0 1rem;
    height: 2rem;
    width: auto;
    opacity: 0.5;
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 640px) {
    .heading-1 {
        font-size: 2rem;
    }

    .heading-2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }
}
