/* ============================================
   LAYOUT CSS - Grids, Flex, Header, Footer
   ============================================ */

/* Flex Utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ========== NAVBAR ========== */
.navbar {
    width: 100%;
    background: #efefef;
    border-bottom: 6px solid #5144A6;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navbar scrolled state */
.navbar.scrolled {
    background: #7B6ED6;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navbar.scrolled .menu a {
    color: #FFFFFF;
}

.navbar.scrolled .menu a::after {
    background: #F2BE22;
}

.navbar.scrolled .menu a.active {
    color: #F2BE22;
}

.navbar.scrolled .menu a:hover {
    color: #F2BE22;
}

.navbar.scrolled .right a {
    color: #FFFFFF;
}

.navbar.scrolled .whatsapp-link {
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .whatsapp-link:hover {
    background: #25D366;
    color: white;
}

.navbar.scrolled .mobile-toggle span {
    background: #FFFFFF;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Menu */
.menu {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #5144A6;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.menu a:hover {
    color: #6CA6D9;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #5b3df5;
    transition: width 0.25s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a.active {
    color: #5b3df5;
    font-weight: 600;
}

/* Right (WhatsApp) */
.right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.right a {
    font-family: 'Fredoka', sans-serif;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #4b2bbd;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-link {
    background: rgba(108, 211, 77, 0.12);
    padding: 6px 14px;
    border-radius: 30px;
}

.whatsapp-link i {
    font-size: 16px;
    color: #25D366;
}

.whatsapp-link:hover {
    background: #25D366;
    color: white;
}

.whatsapp-link:hover i {
    color: white;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #4b2bbd;
    border-radius: 3px;
    transition: 0.3s;
}

.navbar.scrolled .mobile-toggle span {
    background: #FFFFFF;
}

/* ========== FOOTER ========== */
.footer {
    background: #7B6ED6;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-logo h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.footer-logo p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    opacity: 0.9;
    color: rgba(255,255,255,0.8);
}

.footer-col h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 12px;
    opacity: 0.85;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.footer-col ul li a {
    transition: opacity 0.3s;
    font-weight: 400;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--yellow);
}

.footer-col ul li i {
    margin-right: 8px;
    width: 20px;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
}

.footer-contact p i {
    margin-right: 8px;
    width: 20px;
}

.footer-contact a {
    color: var(--yellow);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a i {
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--yellow);
    color: var(--purple);
    transform: translateY(-3px);
}