/* Custom CSS for ProDentim Clone */

/* Local Font Definitions */
@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-green: #007953;
    /* Darker green for header */
    --hero-green: #88b093;
    /* Muted light green for hero background */
    --accent-red: #d32f2f;
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Quicksand', sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.d-none {
    display: none;
}

.mobile-br {
    display: none;
    /* Hidden by default (desktop) */
}

/* Header/Nav */
.top-nav-bar {
    background-color: var(--primary-green);
    padding: 20px 0;
    /* Increased padding */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.order-btn-img {
    height: 45px;
}

/* Hero Section */
.hero-section {
    background-color: var(--hero-green);
    padding: 60px 0;
    color: var(--white);
}

.hero-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.hero-image-col {
    flex: 0 0 40%;
}

.hero-text-col {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Doctor Section */
.doctor-section {
    background-color: var(--white);
    padding: 80px 0;
}

.doctor-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.doctor-img-col {
    flex: 0 0 35%;
}

.doctor-text-col {
    flex: 1;
}

.sub-headline {
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.doctor-desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
}

.ref-link {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #999;
    text-decoration: underline;
}

/* Toggle Checkbox Styles */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Menu Toggle Logic */
    .nav-toggle-label {
        display: flex;
    }

    .nav-menu {
        display: none;
        /* Hidden by default layout */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        /* Adjust based on header height */
        left: 0;
        background-color: var(--primary-green);
        padding: 20px 0;
        z-index: 100;
        text-align: center;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-toggle:checked~.nav-menu {
        display: flex;
        /* Show when checked */
    }

    .nav-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hero-section {
        padding: 80px 0 30px 0;
        /* Increased top padding for space above bottle */
    }

    /* Hero adjustments */
    .hero-grid {
        flex-direction: column;
        text-align: left;
        /* Text aligns left */
        gap: 10px;
        /* Reduced gap between items */
    }

    .hero-text-col {
        padding-right: 20px;
        /* Force text wrapping to match design */
    }

    .hero-image-col {
        order: -1;
        /* Image on top */
        flex: 0 0 100%;
        margin-bottom: 5px;
        /* Tighter spacing to text */
        display: flex;
        justify-content: center;
        /* Keep image centered */
    }

    .hero-title {
        font-size: 1.8rem;
        /* Smaller font on mobile */
    }

    .hero-subtext {
        font-size: 24px;
        /* Increased size as requested */
        line-height: 1.5;
        /* Increased line height */
    }

    /* Mobile Break Utility */
    .mobile-br {
        display: block;
    }

    /* Doctor adjustments */
    .doctor-grid {
        flex-direction: column;
        text-align: center;
    }

    .doctor-img-col {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    .ref-link {
        text-align: center;
    }
}

/* Cookie Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Semi-transparent background */
    backdrop-filter: blur(1px);
    /* Blur effect */
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background-color: #e0e0e0;
    /* Light gray background like screenshot */
    padding: 25px 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
    /* Slight rounding */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.modal-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.85rem;
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
}

.accept-btn {
    background-color: #007bff;
    /* Blue button */
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    /* No underline for link */
    display: inline-block;
    /* Proper spacing for link */
}

.accept-btn:hover {
    background-color: #0056b3;
}