/* ===============================================================
   COMMON.CSS - Shared components across all pages
   Load after critical.css
================================================================ */

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

/* ========== HEADER ENHANCEMENTS ========== */
header.scrolled {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
   
}

.nav-menu a {
    position: relative;
    transition: var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition-fast);
}
/* EXCLUDE telephone link */
.nav-menu a.no-underline::after {
    content: none;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

.nav-cta:hover {
    background: var(--accent-green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== SECTION UTILITIES ========== */
section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease forwards;
}

.section-title {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.section-title:hover {
    color: var(--accent-green);
}

.section-subtitle {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight-yellow);
    transition: var(--transition-fast);
}

.section-subtitle:hover::after {
    width: 100%;
}

/* ========== BUTTON ENHANCEMENTS ========== */
.btn {
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: #1fb854;
    transform: translateY(-3px) scale(1.05);
    animation: pulse 2s infinite;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
    background: var(--light-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: #003399;
}

.btn:active {
    transform: scale(0.98);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 19px;
    margin-bottom: 20px;
    color: var(--white);
    transition: var(--transition-fast);
}

.footer-column h3:hover {
    color: var(--accent-green);
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    position: relative;
    padding-left: 3px;
}

.footer-column ul li a:hover {
    color: var(--highlight-yellow);
    opacity: 1;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    font-size: 20px;
}

.social-icon:hover {
    background: var(--accent-green);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    opacity: 0.8;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.4s ease;
    cursor: pointer;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--accent-green);
    transform: translateY(-7px) scale(1.1) rotate(360deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* ========== ACCESSIBILITY ========== */
*:focus-visible {
    outline: 2px solid var(--highlight-yellow);
    outline-offset: 3px;
}

/* ========== BREADCRUMB ========== */
.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: var(--transition-fast);
}

.page-breadcrumb a {
    transition: var(--transition-fast);
}

.page-breadcrumb a:hover {
    color: var(--highlight-yellow);
}

.page-breadcrumb i {
    font-size: 10px;
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding: 0;
        margin-bottom: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .nav-cta {
        margin-top: 10px;
        display: block;
        text-align: center;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    section {
        padding: 45px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
}

