/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* =========================================
   1. RESET & BASIS
   ========================================= */
.site-header, .site-footer, .site-info, #masthead, header.site-header, #mobile-header, .main-navigation { 
    display: none !important; 
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
    color: #334155; 
}

body.no-scroll { overflow: hidden !important; height: 100vh !important; }
.site-content { padding-top: 80px !important; } 


/* =========================================
   2. HEADER (FULL WIDTH DOCKED)
   ========================================= */
.custom-header {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important;
    z-index: 2147483647 !important; 
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.03) !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important; 
    transition: all 0.3s ease;
}

.nav-container { 
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: 100%; 
    max-width: 1250px; 
    margin: 0 auto;
    padding: 0 20px; 
    gap: 20px;
}

/* LOGO */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; border-radius: 6px; }

.logo-text-wrapper {
    display: flex; flex-direction: column; justify-content: center; line-height: 1.1;
}
.logo-title {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; color: #0f172a;
}
.logo-subtitle {
    font-family: 'Inter', sans-serif; 
    font-weight: 600; 
    font-size: 10px; 
    color: #0ea5e9;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* LINKS */
.nav-links { display: flex; gap: 6px; align-items: center; height: 100%; margin: 0; padding: 0; }
.nav-item { 
    font-size: 14px; font-weight: 500; color: #64748b; text-decoration: none; 
    transition: all 0.2s; cursor: pointer; white-space: nowrap; padding: 8px 16px; border-radius: 99px;
}
.nav-item:hover, .dropdown:hover .dropdown-toggle { 
    color: #0f172a; 
    background: transparent !important; 
}

/* DROPDOWNS */
.custom-header .nav-links .dropdown { position: relative !important; display: flex !important; align-items: center !important; height: 100% !important; }
.custom-header .dropdown-toggle { display: flex !important; align-items: center !important; height: 100% !important; position: relative; z-index: 10; }
.custom-header .dropdown-toggle::after {
    content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform 0.2s; margin-left: 6px; margin-top: -3px; flex-shrink: 0; opacity: 0.6;
}
.custom-header .dropdown:hover .dropdown-content { 
    display: block !important; animation: dropdownSnap 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; 
}
.custom-header .dropdown:hover .dropdown-toggle::after { transform: rotate(225deg) !important; margin-top: 3px !important; }

@keyframes dropdownSnap {
    0% { opacity: 0; transform: translateX(-50%) scale(0.98) translateY(-2px) !important; }
    100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0) !important; }
}

.custom-header .dropdown-content { 
    display: none; position: absolute !important; background: #ffffff !important; 
    min-width: 280px !important; 
    border: 1px solid rgba(0,0,0,0.04) !important; 
    border-radius: 16px !important; padding: 12px 0 !important; z-index: 2147483647 !important; 
    box-shadow: 0 15px 40px -5px rgba(0,0,0,0.12), 0 5px 15px -5px rgba(0,0,0,0.05) !important; 
    left: 50% !important; top: 100% !important; margin-top: 4px !important; 
    transform: translateX(-50%) !important; transform-origin: top center !important; animation: none !important;
}
.custom-header .dropdown-content::before { content: ""; position: absolute; top: -20px; left: 0; width: 100%; height: 30px; background: transparent; z-index: 2147483647; }

.dropdown-header {
    display: block; font-size: 14px; font-weight: 800; color: #0f172a; 
    text-transform: uppercase; padding: 8px 20px 8px 20px; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 6px;
}
.custom-header .dropdown-content a { 
    display: block !important; color: #475569 !important; padding: 8px 20px !important; 
    text-decoration: none !important; font-size: 14px !important; font-weight: 500 !important;
    transition: all 0.15s ease !important; white-space: nowrap !important; 
}
.custom-header .dropdown-content a:hover { color: #0ea5e9 !important; background: #f8fafc !important; padding-left: 24px !important; }

/* MOBILE RESPONSIVE */
.mobile-controls { display: none; align-items: center; gap: 10px; }
.mobile-menu-btn { 
    display: none; width: 30px !important; height: 30px !important;
    flex-direction: column !important; justify-content: center !important; align-items: center !important;
    gap: 5px !important; padding: 0 !important;
    background: transparent !important; border: none !important; cursor: pointer !important; 
}
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #0f172a; border-radius: 9px; transition: 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .mobile-controls { display: flex; }
    .mobile-menu-btn { display: flex !important; }
    
    .nav-links {
        position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
        background: #ffffff; flex-direction: column; align-items: center; justify-content: flex-start;
        padding: 40px 20px; gap: 0 !important;
        transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-item { font-size: 22px; padding: 20px 0; width: 100%; text-align: center; border-bottom: 1px solid #f8fafc; border-radius: 0; }
    .dropdown { flex-direction: column; width: 100%; height: auto; border-bottom: 1px solid #f8fafc; }
    .dropdown-toggle { width: 100%; justify-content: center; padding: 20px 0; font-size: 22px; font-weight:600; color:#0f172a; }
    .dropdown-content { position: static; transform: none; box-shadow: none; border: none; background: #f8fafc; width: 100%; display: none; padding: 10px 0; }
    .dropdown.open .dropdown-content { display: flex; flex-direction: column; align-items: center; }
    .dropdown-header { font-size: 14px; margin-top: 15px; border-bottom: none; }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .nav-item { font-size: 13px !important; padding: 6px 12px !important; }
    .logo-img { height: 30px; }
    .logo-title { font-size: 16px; }
    .logo-subtitle { font-size: 9px; }
}

/* =========================================
   3. FOOTER STYLES (FULL WIDTH)
   ========================================= */
.custom-footer {
    width: 100% !important; margin: 0 !important; padding: 0 !important;
    background: #f8fafc !important; 
    border-top: 1px solid #e2e8f0 !important;
    position: relative !important; display: block !important; 
    margin-top: 80px !important; 
}
.footer-content-wrapper {
    width: 100%; max-width: 1250px; margin: 0 auto;
    padding: 60px 20px 40px 20px; display: flex; flex-direction: column;
}

@media (min-width: 901px) {
    .footer-bento-wrapper { display: none !important; } 
    .desktop-footer-view {
        display: grid; grid-template-columns: 1fr 1.5fr 0.8fr; align-items: center; gap: 40px; padding-bottom: 50px;
    }
    .mono-brand h3 { font-size: 32px; margin: 0; letter-spacing: -1px; font-weight:800; color:#0f172a; line-height:1; }
    .mono-brand span { font-size: 11px; color: #475569; text-transform: uppercase; letter-spacing: 2px; font-weight:700; display:block; margin-top:8px; }
    .mono-brand p { margin-top:20px; font-size:14px; color:#64748b; line-height:1.6; max-width:260px; }
    .desktop-copyright { margin-top: 30px; font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

    .mono-links { display: flex; gap: 60px; flex-direction: column; justify-content: center; border-left: 1px solid #e2e8f0; padding-left: 60px; border-right: 1px solid #e2e8f0; padding-right: 20px; }
    .link-cols { display:grid; grid-template-columns: 1fr 1fr; gap:40px; width:100%; }
    .mono-col { display: flex; flex-direction: column; align-items: flex-start; }
    .mono-col strong { display: block; font-size: 12px; color: #94a3b8; text-transform: uppercase; margin-bottom: 20px; font-weight:700; letter-spacing:1px; }
    .mono-col a { display: inline-block; width: fit-content; color: #334155; text-decoration: none; margin-bottom: 12px; font-weight: 500; font-size: 15px; transition: 0.2s; }
    .mono-col a:hover { color: #0ea5e9; transform: translateX(3px); }

    .mono-action { display: flex; justify-content: flex-end; align-items: center; }
    .whatsapp-mono { 
        background: #25D366; color: #fff; border: none; text-decoration:none; 
        padding: 16px 30px; border-radius: 99px; font-weight: 700; font-size: 15px; 
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2); transition: all 0.2s; 
        display:inline-flex; align-items:center; gap:10px; white-space: nowrap; 
    }
    .whatsapp-mono:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3); }
}

@media (max-width: 900px) {
    .desktop-footer-view { display: none !important; }
    .footer-bento-wrapper { display: none !important; }
    .desktop-footer-view { display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
    .mono-links { border: none; padding: 0; gap: 40px; width: 100%; }
    .mono-action { justify-content: flex-start; width: 100%; }
    .link-cols { gap: 30px; }
}

.footer-divider { width: 100%; height: 1px; background: #e2e8f0; margin-bottom: 30px; }
.finder-integrated { display: flex; align-items: center; gap: 20px; width: 100%; }
.fb-title { font-size: 16px; font-weight: 700; color: #0ea5e9; white-space: nowrap; margin-right: 10px; }
.fb-group { display: flex; align-items: center; gap: 10px; flex: 1; }
.fb-label { font-size: 12px; text-transform: uppercase; color: #94a3b8; font-weight: 700; white-space: nowrap; }

.fb-select {
    width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid #cbd5e1; background: #ffffff;
    font-size: 14px; color: #334155; font-family: 'Inter', sans-serif; font-weight: 500;
    appearance: none; cursor: pointer;
    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='%2364748b' 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 14px center; background-size: 14px;
    transition: 0.2s;
}
.fb-select:hover { border-color: #94a3b8; }

.fb-btn {
    background: #0f172a; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.fb-btn:hover { background: #334155; transform: translateY(-1px); }

@media (max-width: 900px) {
    .finder-integrated {
        flex-direction: column; align-items: flex-start; gap: 15px;
        background: #fff; padding: 20px; border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
        max-width: 500px; margin: 0 auto;
    }
    .fb-title { font-size: 18px; width: 100%; text-align: center; margin-bottom: 5px; }
    .fb-group { width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; }
    .fb-select { padding: 12px 14px; }
    .fb-btn { width: 100%; justify-content: center; display: flex; padding: 14px; }
    .footer-divider { display: none; }
}
