/* Common CSS - Header, Footer & Shared Styles */

/* Reset and Base Styles */
/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #000000;
    padding: 12px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.announcement-banner.hidden {
    transform: translateY(-100%);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.banner-link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.banner-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.banner-link:hover .banner-arrow {
    transform: translateX(3px);
}

.banner-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.banner-close:hover {
    opacity: 1;
}

/* Adjust header position when banner is visible */
body.banner-visible .main-header {
    top: 48px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 10px 50px 10px 15px;
    }
    
    .banner-link {
        font-size: 14px;
    }
    
    .banner-close {
        right: 15px;
        font-size: 18px;
    }
    
    body.banner-visible .main-header {
        top: 44px;
    }
    
    body.banner-visible .mobile-nav {
        top: 124px;
    }
}

@media (max-width: 480px) {
    .announcement-banner {
        padding: 8px 45px 8px 10px;
    }
    
    .banner-link {
        font-size: 13px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #444444;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2E3B2C;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #93B47E;
    color: #2E3B2C;
}

.btn-primary:hover {
    background-color: #35A854;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #2E3B2C;
    border: 2px solid #2E3B2C;
}

.btn-secondary:hover {
    background-color: #2E3B2C;
    color: #FFFFFF;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Header */
.main-header {
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(147, 180, 126, 0.1);
}
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(147, 180, 126, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}
.main-header.scrolled .logo-img {
    height: 50px;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: 2rem;
}

.nav-link {
    color: #2E3B2C;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 12px 0;
    line-height: 1;
}

.nav-link:hover {
    color: #93B47E;
}

.contact-btn {
    background-color: #93B47E;
    color: #2E3B2C !important;
    padding: 12px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.contact-btn:hover {
    background-color: #35A854;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Mega Menu Styles */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border-top: 3px solid #93B47E;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.mega-column {
    display: flex;
    flex-direction: column;
}

.mega-header {
    color: #93B47E;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F5F5F5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-links li {
    margin-bottom: 4px;
}

.mega-links a {
    display: block;
    padding: 8px 12px 8px 0;
    margin-bottom: 6px;
    color: #2E3B2C;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    line-height: 1.4;
    white-space: normal; /* Allow text to wrap if needed */
}

.mega-links a:hover {
    color: #93B47E;
    padding-left: 12px;
    background-color: rgba(147, 180, 126, 0.05);
}

.link-description {
    display: block;
    font-size: 13px;
    color: #888888;
    font-weight: 400;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.mega-links a:hover .link-description {
    color: #666666;
}

.mega-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: #93B47E;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mega-links a:hover::before {
    opacity: 1;
    left: -8px;
}

.mega-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
/* Special styling for Features mega menu - vertical layout */
.mega-dropdown:first-child .mega-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mega-dropdown:first-child .mega-column {
    display: block;
    width: 100%;
}

.mega-dropdown:first-child .mega-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.mega-dropdown:first-child .mega-links li {
    margin-bottom: 0;
    flex-shrink: 0;
}

.mega-dropdown:first-child .mega-links a {
    padding: 8px 16px 8px 0;
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.3;
}

.mega-dropdown:first-child .mega-header {
    margin-bottom: 1rem;
}

/* Keep default grid layout for other mega menus */
.mega-dropdown:not(:first-child) .mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}
/* Fix arrow animation for Features mega menu horizontal layout */
.mega-dropdown:first-child .mega-links a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    color: #93B47E;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mega-dropdown:first-child .mega-links a:hover::before {
    opacity: 1;
    left: -8px;
}

.mega-dropdown:first-child .mega-links a:hover {
    color: #93B47E;
    padding-left: 16px;
    background-color: rgba(147, 180, 126, 0.05);
}
/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2E3B2C;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    z-index: 999;
    overflow-y: auto;
    padding: 20px 20px 40px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 80px);
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #F5F5F5;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    color: #2E3B2C;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #93B47E;
}

.mobile-mega-section {
    margin-top: 12px;
    padding-left: 20px;
    border-left: 3px solid #93B47E;
    background: #F8FBF6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.mobile-mega-header {
    color: #93B47E;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-mega-links li {
    margin-bottom: 8px;
}

.mobile-mega-links a {
    display: block;
    padding: 8px 0;
    color: #2E3B2C;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.mobile-mega-links a:hover {
    color: #93B47E;
}

.mobile-link-description {
    display: block;
    font-size: 13px;
    color: #888888;
    font-weight: 400;
    margin-top: 2px;
}

.mobile-contact-btn {
    background-color: #93B47E;
    color: #2E3B2C !important;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    font-weight: 700;
}

.mobile-contact-btn:hover {
    background-color: #35A854;
    color: #FFFFFF !important;
}
.mobile-mega-section {
    display: none;
    margin-top: 12px;
    padding-left: 20px;
    border-left: 3px solid #93B47E;
    background: #F8FBF6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.mobile-nav-item.active .mobile-mega-section {
    display: block;
}

/* Footer */
.main-footer {
    background-color: #2E3B2C;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: #D1D1D1;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-section h4 {
    color: #93B47E;
    font-size: 18px;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

.footer-links a {
    color: #D1D1D1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #93B47E;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #444444;
}

.footer-copyright p {
    color: #D1D1D1;
    font-size: 14px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #D1D1D1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #93B47E;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        min-height: 80px;
        transition: all 0.3s ease;
    }
    .main-header.scrolled .header-content {
        padding: 0.75rem 0;
        min-height: 70px;
    }
    
    
    .mega-dropdown .nav-link {
        pointer-events: auto;
    }
    
    .mega-dropdown:hover .dropdown-arrow {
        transform: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .mega-menu-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .mega-header {
        font-size: 15px;
    }
    
    .mega-links a {
        font-size: 14px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .btn-large {
        font-size: 16px;
        padding: 14px 28px;
    }
}