/* Color Palette Variables */
:root {
    /* Primary Colors */
    --primary-navy: #24406f;
    --primary-beige: #cdc7bd;
    
    /* Secondary Colors */
    --navy-dark: #1a2e4f;
    --navy-light: #2f5082;
    --beige-dark: #b8af9f;
    --beige-light: #e6e2da;
    
    /* Neutral Colors */
    --text-dark: #2a2a2a;
    --text-medium: #5a5a5a;
    --text-light: #8a8a8a;
    --white: #ffffff;
    --off-white: #fafaf8;
    
    /* Background Colors */
    --bg-light: #f5f3f0;
    --bg-medium: var(--beige-light);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-dark);
}

header {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

nav ul li a:hover {
    color: var(--primary-beige);
}

.hero {
    background: #f5f3f0;
    text-align: center;
    padding: 0.5rem 2rem 1.5rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero img {
    width: 45%;
    height: 45%;
    object-fit: cover;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5em;
    margin: 0 0 0.5rem;
    color: var(--primary-navy);
    font-weight: bold;
    animation: fadeInDown 1s ease-out;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.5em;
    margin: 0.25rem 0 1.5rem;
    color: var(--text-dark);
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 64, 111, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn:hover {
    background-color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(36, 64, 111, 0.4);
}

/* Carousel Section */
.carousel-section {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-navy);
}

/* Category Selector */
.category-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.75rem 2rem;
    background-color: var(--beige-light);
    color: var(--text-dark);
    border: 2px solid var(--beige-dark);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: var(--primary-beige);
    border-color: var(--primary-navy);
}

.category-btn.active {
    background-color: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

/* Carousel */
.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.carousel-track-container {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(36, 64, 111, 0.15);
}

.carousel-track {
    display: flex;
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(36, 64, 111, 0.3);
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background-color: var(--navy-dark);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--beige-dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background-color: var(--primary-beige);
    transform: scale(1.2);
}

.indicator-dot.active {
    background-color: var(--primary-navy);
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-logo img {
        height: 50px;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li a {
        font-size: 0.95rem;
        padding: 0.5rem;
    }
    
    .hero {
        padding: 0.5rem 1rem 1.5rem;
        min-height: 250px;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-tagline {
        font-size: 1.2em;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
    
    .carousel-section {
        padding: 2rem 1rem;
    }
    
    .carousel-track {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .category-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 200px;
    }
    
    .carousel {
        gap: 0.5rem;
    }
}


.about-section {
    padding: 4rem 2rem;
    background-color: var(--bg-light);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.veteran-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 2.5rem;
    padding: 0.75rem 2rem 0.75rem 4.5rem;
    background-color: var(--white);
    border-radius: 50px;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(36, 64, 111, 0.3);
}

.ega {
    height: 40px;
    width: auto;
    position: absolute;
    left: 1.5rem;
}

.veteran-text {
    color: var(--primary-navy);
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(36, 64, 111, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(36, 64, 111, 0.2);
}

.feature h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    position: relative;
}

.feature h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-beige);
    margin: 0.5rem auto;
}

.feature p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Update the existing about-features class to add some spacing */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 1rem;
}

/* Ensure smooth transitions on mobile */
@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .feature:hover {
        transform: scale(1.02); /* Smaller scale on mobile to prevent overflow */
    }
    
    .veteran-badge {
        max-width: 280px;
        padding: 0.6rem 1.5rem 0.6rem 3.5rem;
    }
    
    .ega {
        height: 32px;
        left: 1rem;
    }
    
    .veteran-text {
        font-size: 0.95rem;
    }
}

.services-section {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.services-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(36, 64, 111, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(36, 64, 111, 0.2);
}

.service-card h3 {
    text-align: center;
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    text-align: center;
    color: var(--text-medium);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-btn {
    display: block;
    text-align: center;
    background-color: var(--primary-navy);
    color: var(--white);
    text-decoration: none;
    padding: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
    align-self: stretch;
}

.service-btn:hover {
    background-color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(36, 64, 111, 0.3);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

.contact-section {
    padding: 4rem 2rem;
    background-color: var(--bg-light);
    margin-bottom: 60px; /* Add space for fixed footer */
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(36, 64, 111, 0.1);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-item i {
    margin-right: 1rem;
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.service-areas {
    flex: 1;
}

.service-areas p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.service-areas strong {
    color: var(--primary-navy);
}

.business-hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--beige-light);
}

.business-hours p {
    margin: 0.5rem 0;
    color: var(--text-medium);
}

.contact-form {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(36, 64, 111, 0.1);
}

/* Hide honeypot field for spam protection */
.contact-form .hidden {
    display: none;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--beige-dark);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    color: var(--text-medium);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-navy);
    outline: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background-color: var(--white);
    padding: 0 0.5rem;
    color: var(--primary-navy);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--navy-dark);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
}

footer {
    background-color: var(--primary-navy);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000;
}