/* ==== GLOBAL 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;
}

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

.navitems a{
    text-decoration: none;
}

.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: white;

}

.contact a,
.contact a:visited,
.contact a:hover,
.contact a:focus {
text-decoration: none;
}


.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;
}

.navitems h3 {
    color: var(--light);
    font-weight: 500;
    position: relative;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
}

.navitems h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

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

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

.navitems .current-page {
    color: var(--secondary);
}

.navitems .current-page:after {
    width: 100%;
}

.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:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.4);
}

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

.navitems button h3:after {
    display: 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;
}

/* ===== CLEARING HERO SECTION ===== */
.clearing-hero {
    position: relative;
    min-height: 81vh; /* Changed from fixed height to min-height */
    background: linear-gradient(rgba(26, 46, 53, 0.85), rgba(26, 46, 53, 0.9)), 
                url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?q=80&w=764&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--light);
    padding: 20px; /* Added base padding */
    overflow: hidden;
    text-align: center;
}

.clearing-hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
    margin: 0 auto;
    padding: 20px; /* Added inner padding */
}

.clearing-hero h1 {
    font-size: 2.5rem; /* Reduced base size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.clearing-hero p {
    font-size: 1rem; /* Reduced base size */
    margin-bottom: 30px;
    max-width: 800px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: 100px 40px;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    color: #f39c12;

}

.section-title p {
    color: var(--accent);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: black;
}

#section-title-benefits p{
    color: white;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 350px;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
}

.step-img {
    height: 200px;
    overflow: hidden;
}

.step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.step-card:hover .step-img img {
    transform: scale(1.05);
}

.step-content {
    padding: 25px;
}

.step-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-content p {
    color: var(--text);
    margin-bottom: 15px;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 40px;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    padding: 100px 40px;
    background: var(--primary);
    color: var(--light);
}

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

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.benefit-card p {
    opacity: 0.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 40px;
    background: linear-gradient(rgba(26, 46, 53, 0.9), rgba(26, 46, 53, 0.9)), 
                url('https://images.unsplash.com/photo-1624062999726-083e5268525d?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--light);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ===== INQUIRY FORM SECTION ===== */
.inquiry-section {
    padding: 100px 40px;
    background: white;
}

.inquiry-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.form-info {
    flex: 1;
}

.form-info h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.form-info p {
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-details {
    background: var(--light);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.contact-icon {
    background: var(--primary);
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text);
    margin: 0;
}

.contact-form {
    flex: 1;
    background: var(--light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

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

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

.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: 1rem;
    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);
}

.subject-select select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.contact-form button {
    width: 100%;
    padding: 16px;
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.contact-form button:hover {
    background: #e67e22;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalFade 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.8rem;
}

.modal-body p {
    color: var(--text);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.modal-footer button {
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.modal-footer button:hover {
    background: var(--dark);
}

/* ===== FOOTER ===== */
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;
}

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

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

/* ===== 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;
    }

    .clearing-hero {
        min-height: 50vh; /* Reduced height on mobile */
        padding: 15px; /* Increased padding on mobile */
    }
    
    .clearing-hero-content {
        padding: 15px;
    }
    
    .clearing-hero h1 {
        font-size: 2rem; /* Smaller heading on mobile */
    }
    
    .clearing-hero p {
        font-size: 0.9rem; /* Smaller paragraph on mobile */
    }
    
    .inquiry-container {
        flex-direction: column;
    }

    .contact-form{
        padding: 0;
    }
    
    .form-info {
        text-align: center;
    }
}

@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;
        padding: 20px;
    }
    
    .navitems {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .clearing-hero {
        padding: 20px 20px;
        text-align: center;
        height: 60vh;
    }
    
    .clearing-hero-content {
        margin: 0 auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .clearing-hero h1 {
        font-size: 2.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .clearing-hero {
        min-height: 45vh; /* Further reduced height on small screens */
    }
    
    .clearing-hero h1 {
        font-size: 1.7rem; /* Even smaller heading */
    }
    
    .cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    
    .btn {
        width: 100%; /* Full-width buttons */
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}