/* css/global.css */
@import url("header.css");
@import url("footer.css");

/* NEW: Responsive base font size */
html {
    font-size: 14px; /* Set smaller base font size for mobile */
}

@media (min-width: 768px) {
    html {
        font-size: 16px; /* Restore default base font size for tablets and desktops */
    }
}


body {
    background-color: #fff0e1; /* Brand color */
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    color: #374151; /* Default text color (text-gray-700) */
}

/* NEW OR MODIFIED: Inner content container */
.content-container { /* This will be used INSIDE full-width sections */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;  /* Horizontal padding for content */
    padding-right: 1rem; /* Horizontal padding for content */
}

/* Ensure sections themselves don't have conflicting padding if they are to be full-width */
section {
    padding-top: 3rem; /* Vertical padding can remain on the section */
    padding-bottom: 3rem; /* Vertical padding can remain on the section */
    /* Horizontal padding will be handled by the inner .content-container */
}

/* Special case for sections that have their own background color and need padding inside */
section.full-bleed-bg {
    padding-left: 0; /* Override default browser padding if any */
    padding-right: 0;
}

/* Star Rating Utility */
.stars .fa-star.filled {
    color: #FFD700; /* Gold color for filled stars */
}

/* List Style Utilities */
.list-style-disc-orange li {
    padding-left: 1.5em;
    position: relative;
}
.list-style-disc-orange li::before {
    content: "\2022";
    color: #ad5207;
    display: inline-block;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: inherit;
}

.list-check li {
    padding-left: 1.5em;
    position: relative;
}
.list-check li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #ad5207;
    position: absolute;
    left: 0;
    line-height: inherit;
}

/* Primary Button Style */
.btn-primary {
    background-color: #ad5207;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition-property: background-color, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box; /* FIX: This prevents padding from causing overflow */
}
.btn-primary:hover {
    background-color: #e88e07;
    transform: scale(1.05);
}

/* Brand Color Utilities */
.text-brand-primary { color: #ad5207; }
.bg-brand-primary { background-color: #ad5207; }
.text-brand-secondary { color: #e88e07; }
.bg-brand-background { background-color: #fff0e1; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1F2937; }
.text-white { color: #ffffff; }

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    box-sizing: border-box;
}
.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #e88e07;
    box-shadow: 0 0 0 2px #e88e07;
}
label.form-label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group.message-group {
     margin-bottom: 1.5rem;
}
textarea.form-input {
    resize: vertical;
}

/* General heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    color: #ad5207;
}

/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20b954;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 26px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

/* Pulse animation for attention */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
}

/* WhatsApp tooltip */
.whatsapp-float::before {
    content: "Chat with us!";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #374151;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #374151;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Popup Styles */
.whatsapp-popup-container {
    position: fixed;
    bottom: 100px; /* Position above the floating icon */
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    font-family: 'Inter', sans-serif;
    display: none; /* Initially hidden */
}
.whatsapp-popup-header {
    background-color: #ad5207;
    color: white;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.whatsapp-popup-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.whatsapp-popup-body {
    padding: 15px;
}
.whatsapp-popup-body p {
    font-size: 0.9rem;
    color: #4B5563; /* text-gray-600 */
    margin-top: 0;
}
.prefilled-messages {
    list-style: none;
    padding: 0;
    margin: 0;
}
.prefilled-messages li {
    margin-bottom: 10px;
}
.prefilled-messages a {
    display: block;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #374151; /* text-gray-700 */
    transition: background-color 0.3s;
}
.prefilled-messages a:hover {
    background-color: #e0e0e0;
}
/* WhatsApp Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 30px; /* Moves the icon further up from the bottom on mobile */
    }

    #whatsapp-popup {
        bottom: 90px; /* Adjusts the popup position to be above the moved icon */
        right: 15px;
        width: calc(100% - 30px); /* Makes the popup responsive to screen width */
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .whatsapp-float::before {
        display: none; /* Hide tooltip on mobile to save space */
    }
    
    .whatsapp-float::after {
        display: none;
    }
}

/* Ensure button doesn't interfere with other elements */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    .whatsapp-float i {
        font-size: 22px;
    }
}