@import url('variables.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-dark-grey);
    background-color: var(--color-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    background: var(--color-gold-dark);
    transform: translateY(-2px);
}

/* =========================================
   PREMIUM SEARCH BAR (MOBILE OPTIMIZED)
   ========================================= */
.premium-search-bar {
    display: flex;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    max-width: 700px;
    margin: 0 auto;
    align-items: center;
    transition: all 0.3s ease;
}

.search-icon-wrapper {
    padding-left: 20px;
    color: var(--color-gold);
    font-size: 1.2rem;
}

.premium-search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: var(--color-dark);
    font-family: var(--font-body);
    min-width: 0; /* CRITICAL: Prevents flexbox blowout on mobile */
}

.premium-search-btn {
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    white-space: nowrap; /* Prevents the word "Search" from breaking into two lines */
    flex-shrink: 0;
}

/* =========================================
   VIP WHATSAPP WIDGET
   ========================================= */
.vip-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99999; /* CRITICAL: Forces it above EVERYTHING else, including mobile browser bars */
    transition: transform 0.3s ease;
    text-decoration: none;
}

.vip-whatsapp-btn:hover {
    transform: scale(1.1);
}

.vip-whatsapp-btn svg {
    fill: #fff;
    width: 35px;
    height: 35px;
}

/* =========================================
   MOBILE TYPOGRAPHY & LAYOUT BREAKPOINTS
   ========================================= */
@media (max-width: 768px) {
    /* Scale down typography for small screens dynamically */
    h1 { font-size: clamp(2rem, 6vw, 2.5rem) !important; }
    h2 { font-size: clamp(1.75rem, 5vw, 2.2rem) !important; }
    h3 { font-size: clamp(1.3rem, 4vw, 1.8rem) !important; }
    
    .container { padding: 0 15px; }
}

@media (max-width: 500px) {
    /* Shrink the search pill safely for narrow iPhones */
    .premium-search-bar { padding: 5px; }
    .search-icon-wrapper { display: none; } /* Hide the magnifying glass to save space */
    .premium-search-input { padding: 12px 15px; font-size: 1rem; }
    .premium-search-btn { padding: 12px 20px; font-size: 0.95rem; }
    
    /* Safely tuck the WhatsApp button above mobile browser menus */
    .vip-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .vip-whatsapp-btn svg { width: 30px; height: 30px; }
}