/* Contact Page Styles 2025 - Updated for New HTML Structure */

:root {
    --primary-navy: #0D1E4E;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #e0e0e0;
    --text-gray: #6c757d;
    --hover-navy: #0a1739;
    --navbar-height: 120px;
}

body {
    background-color: var(--white);
    color: #333;
    padding-top: var(--navbar-height);
}

/* Full Width Section */
.full-width-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Row & Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

.g-4 > * {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

.g-3 > * {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Column Layouts */
.col-lg-6 {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-4 {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.col-sm-6 {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.col-sm-12 {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

/* Same Height Row */
.same-height-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Content Box */
.content-box {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(13, 30, 78, 0.08);
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(13, 30, 78, 0.12);
}

.h-100 {
    height: 100%;
}

/* Typography */
.section-title {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.lead {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/* Fix spacing for the first content box */
.content-box > .section-title:first-child {
    margin-bottom: 0.75rem;
}

.content-box > .lead:first-of-type {
    margin-bottom: 1.5rem;
}

/* Contact Boxes (Small Boxes) */
.contact-box {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-box:hover,
.contact-box:active {
    background: var(--white);
    border-color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 30, 78, 0.15);
}

.small-box {
    min-height: 160px;
}

/* Equal Height Cards */
.equal-height-cards {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-cards > * {
    display: flex;
}

/* Contact Icons */
.contact-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    filter: brightness(0) saturate(100%) invert(11%) sepia(36%) saturate(3039%) hue-rotate(205deg) brightness(95%) contrast(97%);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.contact-box h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.contact-box p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.contact-box a {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-box a:hover,
.contact-box a:active {
    color: var(--hover-navy);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.mt-4 {
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--light-gray);
    border-radius: 50%;
    color: var(--primary-navy);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--border-gray);
}

.social-links a:hover,
.social-links a:active {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 30, 78, 0.3);
    border-color: var(--primary-navy);
}

/* Utility Classes */
.w-100 {
    width: 100%;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    width: 100%;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    font-family: inherit;
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 0.2rem rgba(13, 30, 78, 0.1);
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: #999;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230D1E4E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form Spacing */
.mb-3 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

.btn-custom {
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 30, 78, 0.2);
}

.btn-custom:hover,
.btn-custom:active {
    background: var(--hover-navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 30, 78, 0.3);
}

.btn-custom:active {
    transform: translateY(0);
}

/* Responsive Design */

/* Small Devices (576px and up) */
@media (min-width: 576px) {
    .col-sm-6 {
        width: 50%;
    }
    
    .col-sm-12 {
        width: 100%;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333333%;
    }
    
    .contact-icon {
        width: 56px;
        height: 56px;
    }
    
    .small-box {
        min-height: 180px;
    }
    
    .content-box {
        padding: 40px 35px;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }
    
    .full-width-section {
        padding: 80px 0;
    }
    
    .content-box {
        padding: 50px 40px;
    }
}

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .full-width-section {
        padding: 100px 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .full-width-section {
        padding: 40px 0;
    }

    .content-box {
        padding: 30px 20px;
    }

    .contact-box {
        padding: 20px 15px;
    }
    
    .small-box {
        min-height: 140px;
    }

    .social-links a {
        width: 50px;
        height: 50px;
    }

    .form-control,
    .form-select {
        padding: 10px 14px;
    }

    .btn-custom {
        padding: 12px 24px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .g-3 > * {
        margin-bottom: 15px;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .social-links,
    .btn {
        display: none;
    }
    
    .content-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* Mobile Optimizations for Get in Touch */
@media (max-width: 767px) {
    .equal-height-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .equal-height-cards .contact-box {
        padding: 15px 10px;
        min-height: 120px;
    }
    

    /* Make Hours box full width */
    .equal-height-cards .contact-box.hours-box {
        grid-column: span 2;
    }

    .contact-box h5 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .contact-box p,
    .contact-box a {
        font-size: 0.9rem;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
    }

    .social-links {
        gap: 15px;
        margin-top: 1.5rem;
    }

    .social-links a {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 767px) {
    .equal-height-cards .hours-box {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        align-items: center;   /* center horizontally */
        justify-content: center; /* center vertically */
        text-align: center;
        min-height: 140px; /* keeps good touch size */
    }

    .hours-box h5,
    .hours-box p {
        text-align: center;
        margin: 4px 0; /* tighten spacing */
    }
}


/* Mobile Optimizations for Get in Touch */
@media (max-width: 767px) {
    .equal-height-cards {
        display: grid;
        grid-template-columns: 1fr; /* one per row */
        gap: 16px; /* space between cards */
    }

    .equal-height-cards .contact-box {
        width: 100%;            /* full width */
        padding: 18px 15px;     /* comfortable touch padding */
        min-height: 120px;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
    }

    .contact-box h5 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .contact-box p,
    .contact-box a {
        font-size: 0.9rem;
    }

    /* Center Hours box contents */
    .hours-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hours-box h5,
    .hours-box p {
        text-align: center;
        margin: 4px 0;
    }
}

/* Enhanced Scroll Animation Styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for contact boxes */
.contact-box:nth-child(1) { transition-delay: 0.1s; }
.contact-box:nth-child(2) { transition-delay: 0.2s; }
.contact-box:nth-child(3) { transition-delay: 0.3s; }

/* Social links animation */
.social-links a {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.social-links.revealed a:nth-child(1) { transition-delay: 0.1s; }
.social-links.revealed a:nth-child(2) { transition-delay: 0.2s; }
.social-links.revealed a:nth-child(3) { transition-delay: 0.3s; }

.social-links.revealed a {
    opacity: 1;
    transform: translateY(0);
}
