/* ===================================
   COMMON STYLES - Header, Nav & Footer
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 95, 79, 0.1);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Top Bar Section */
.top-bar {
    background: linear-gradient(135deg, #1B5E3F 0%, #2D5F4F 100%);
    padding: 12px 0;
    font-size: 13px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    color: white;
    font-weight: 500;
}

/* Navigation Bar */
nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.nav-links a {
    color: #1B5E3F;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #FF7F3E, #FF9F6E);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #FF7F3E;
}

.nav-links li {
    position: relative;
    z-index: 1;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
    display: none;
}

.dropdown:hover::after {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: white;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border-top: 4px solid #FF7F3E;
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #333;
    padding: 16px 24px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-content a::before {
    content: '\2192';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: #FF7F3E;
    font-weight: bold;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #F1F8F5 0%, #E8F5E9 100%);
    color: #1B5E3F;
    padding-left: 35px;
}

.dropdown-content a:hover::before {
    left: 15px;
    opacity: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn::after {
    content: '\25BC';
    font-size: 8px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

/* Contact Button */
.btn-contact {
    background: linear-gradient(135deg, #FF7F3E 0%, #FF9F6E 100%);
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 127, 62, 0.3);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-clip-path: inset(0 0 0 0 round 30px);
    clip-path: inset(0 0 0 0 round 30px);
}

.btn-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: transform 0.5s ease;
    pointer-events: none;
    transform: translateX(-100%);
}

.btn-contact:hover::before {
    transform: translateX(100%);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 62, 0.4);
}

.btn-contact:hover::after {
    width: 0;
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background: linear-gradient(135deg, #0D4A2F 0%, #1B5E3F 50%, #2D5F4F 100%);
    color: white;
    padding: 100px 40px 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FF7F3E, #FFB088);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-about {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.footer-section h4 {
    font-size: 17px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #FF7F3E;
    font-family: 'Poppins', sans-serif;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #FF7F3E;
    padding-left: 8px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF7F3E, #FF9F6E);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(255, 127, 62, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 127, 62, 0.5);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        gap: 20px;
        padding: 0 20px;
        font-size: 12px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .footer-section h4 {
        margin-bottom: 20px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
    }

    nav {
        padding: 10px 15px;
    }

    .logo img {
        height: 45px;
    }

    .nav-links {
        gap: 15px;
        font-size: 13px;
    }

    .btn-contact {
        padding: 10px 20px;
        font-size: 13px;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-section h4 {
        font-size: 15px;
    }
}