/* Import base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a2e35;
    --secondary: #f39c12;
    --accent: #2c3e50;
    --light: #ecf0f1;
    --dark: #15272a;
    --text: #333;
    --text-light: #f8f9fa;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Header Styles */
nav {
    display: flex;
    flex-wrap: wrap;
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: var(--dark);
    font-size: 14px;
}

.contact {
    display: flex;
    gap: 25px;
}

.contact p a {
    text-decoration: none;
    color: var(--light);
}

.contact p {
    margin: 0;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact p strong {
    color: var(--secondary);
}

.socials {
    display: flex;
    gap: 15px;
}

.socials i {
    color: var(--light);
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.socials i:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.main-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 24px;
    color: var(--light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--secondary);
}

.navitems {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Navigation h3 styles - to be added to both CSS files */
.navitems h3 {
    color: var(--light);
    font-weight: 500;
    position: relative;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
    margin: 0; /* Reset Bootstrap margin */
    font-size: 18px; /* Set explicit size */
    line-height: 1.6; /* Match your body line-height */
    display: inline-block;
}

.navitems h3:after {
    content: none;
}

.navitems h3:hover:after {
    width: 100%;
}

.navitems h3:hover {
    color: var(--secondary);
}

.navitems button {
    background: var(--secondary);
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.navitems button h3 {
    color: var(--dark);
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.navitems button:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.4);
}

.navitems a {
    text-decoration: none;
}


.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #1a2e3568;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    /* 1. Always keep it in the flow: */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    /* 2. Hide it off-screen initially: */
    transform: translateX(100%);
    transition: transform 0.3s ease; /* animate the slide */
    pointer-events: none;
}

.sidebar a{
    width: 100%;
}

.sidebar .main-nav{
    flex: 1;
}

.sidebar .bottom-bar{
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar-menu{
    display: none;
}

.sidebar.active {
    transform: translateX(0);
    pointer-events: auto;
}

/* Contact Hero Section */
.contact-hero {
    position: relative;
    height: 81vh;
    background: linear-gradient(rgba(26, 46, 53, 0.85), rgba(26, 46, 53, 0.9)), 
                url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--light);
    padding: 0 40px;
    text-align: center;
}

.contact-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.contact a{
    text-decoration: none;
}

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--secondary);
}

.contact-text h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--secondary);
}

.business-hours {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.subject-select {
    position: relative;
}

.subject-select::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent);
}

.subject-select select {
    appearance: none;
    background-color: white;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 30px;
    padding: 16px 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.5);
}

/* Map Section */
.map-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.map-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Styles */
footer {
    background: var(--primary);
    color: var(--light);
    padding: 60px 40px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.footer-column p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-links i {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hideOnMobile{ 
        display: none; 
    }

    .bottom-bar .contact p{
        font-size: 11px;
    }

    .bottom-bar .contact{
        padding: 10px;
    }

    .grid{
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 1rem;               /* optional spacing */
        align-items: center; 
        width: 100%;
    }

    .grid-logo{
        
        grid-row: 1;
        grid-column: 1;
    }

    .grid-menu{
        grid-row: 1;
        grid-column: 2;
        justify-self: end; 
    }

    .sidebar{
        height: 100vh;
    }

    .sidebar-menu{
        display: inline-block;
    }

    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-nav {
        flex-direction: column;
        padding: 20px;
    }
    
    .navitems {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.8rem;
    }
    
    .navitems {
        gap: 20px;
    }
    
    .clearing-content {
        flex-direction: column;
    }
    
    .clearing-steps {
        width: 100%;
    }

    .contact-hero{
        height: 60vh;
    }

    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-container {
        /* switch off the full-width grid */
        display: flex;
        flex-direction: column;
        align-items: center;       /* <-- center the children */
        padding: 0 20px;           /* optional: shrink your side-padding on mobile */
    }

    .contact-info,
    .contact-form {
        /* give each card a sensible max-width */
        width: 100%;
        max-width: 400px;          /* tweak this to taste */
        margin-bottom: 40px;       /* space between them */
    }
}

@media (max-width: 768px) {
    .hideOnMobile{ 
        display: none; 
    }

    .sidebar-menu{
        display: flex;
    }

    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-nav {
        flex-direction: column;
    }
    
    .navitems {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-hero {
        padding: 0 20px;
    }
    
    .contact-hero h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-info, .contact-form {
        padding: 30px 20px;
    }
    
    .map-section {
        padding: 0 20px;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Custom Modal Styles */
#thankYouModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

#thankYouModal .modal-header {
    background: var(--primary);
    color: white;
    border-bottom: 2px solid var(--secondary);
}

#thankYouModal .modal-title {
    font-weight: 600;
}

#thankYouModal .btn-close {
    filter: invert(1);
}

#thankYouModal .modal-body {
    text-align: center;
    padding: 30px;
}

#thankYouModal .modal-body p {
    font-size: 18px;
    margin-bottom: 0;
}

#thankYouModal .modal-icon {
    font-size: 60px;
    color: var(--secondary);
    margin-bottom: 20px;
}