/* static/css/base.css */

/* --- CSS Variables & Theming --- */
:root {
    /* High Contrast Construction Theme */
    --primary-color: #FFB703;
    /* Construction Yellow/Orange */
    --primary-hover: #E09F00;
    --text-main: #1A1A1A;
    --text-muted: #4A4A4A;
    --bg-main: #FFFFFF;
    --bg-secondary: #F4F4F9;
    --border-color: #E2E8F0;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;

    /* Animation & Transitions */
    --transition-speed: 0.3s ease-in-out;
}

/* Dark Mode Preferences (System level as requested) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main: #F4F4F9;
        --text-muted: #A0AEC0;
        --bg-main: #121212;
        --bg-secondary: #1E1E1E;
        --border-color: #2D3748;
    }
}

/* --- Global Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* For smooth anchor scrolling */
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography Hierarchy --- */
/* --- Typography Hierarchy --- */

/* 1. Shared styles for ALL headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* 2. ONLY make the h1 (your main header) giant */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* 3. Give the other headings normal sizes */
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}


a {
    text-decoration: none;
    color: var(--text-main);
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Add to base.css or layout.css if not already there */
main {
    /* Adjust the 80px to match the actual height of your fixed header */
    padding-top: 0px;
}

/* Default state for the search tab buttons */
.search-tabs button {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    /* Makes the color change smooth */
    cursor: pointer;
    /* (Keep your existing padding and border-radius here) */
}

/* The ACTIVE state - Using your Loovidra Gold */
.search-tabs button.active {
    background-color: #FBB03B;
    /* Loovidra Gold/Orange */
    color: #1E232E;
    /* Your dark theme color for the text so it pops */
    border-color: #FBB03B;
    font-weight: bold;
}

/* --- FLOATING BUTTONS (WhatsApp & Back to Top) --- */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Moves them to the right side! */
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Space between the two buttons */
    z-index: 9999;
    /* Keeps them on top of everything */
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Hover Effect for both */
.float-btn:hover {
    transform: scale(1.15);
    /* Makes them grow slightly when hovered */
}

/* WhatsApp Styling */
.whatsapp-btn {
    background-color: #25D366;
    /* Official WhatsApp Green */
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
}

/* Back to Top Styling */
.back-to-top {
    background-color: #2c3e50;
    /* Dark blue/grey to match your site */
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: none;
    /* Hidden at first, JavaScript will reveal it */
}

.back-to-top:hover {
    background-color: #f39c12;
    /* Turns yellow on hover to match your brand */
}