/* Global Styles */
:root {
    --primary-color: #384959;
    /* Dark Slate Blue/Grey */
    --secondary-color: #88BDF2;
    /* Sky Blue */
    --accent-color: #6A89A7;
    /* Muted Blue/Grey */
    --bg-light: #f0f6fc;
    /* Very light tint of the palette's light blue */
    --text-dark: #2c3e50;
    --text-light: #546e7a;
    --white: #ffffff;
    --border-color: #BDDDFC;
    /* Using the Light Blue for borders */
    --shadow-sm: 0 4px 12px rgba(56, 73, 89, 0.1);
    --shadow-md: 0 10px 20px rgba(56, 73, 89, 0.15);
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #ffffff;
    /* backdrop-filter: blur(10px); Removed to ensure solid mismatch doesn't occur */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
}

.site-logo {
    display: block;
    max-height: 80px;
    /* Theme suggested height */
    max-width: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-logo {
        max-height: 60px;
        /* Smaller for mobile */
        max-width: 220px;
    }
}

.logo {
    /* Legacy text style - can be removed or kept as fallback container spec if needed,
       but we are replacing text with img class .site-logo */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 10px 0;
    display: block;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.main-nav ul ul {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.main-nav li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul ul li {
    width: 100%;
}

.main-nav ul ul a {
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.main-nav ul ul a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    /* Fallback until image is applied */
    /* Fallback until image is applied */
    background-image: linear-gradient(135deg, rgba(9, 99, 126, 0.9) 0%, rgba(122, 178, 178, 0.3) 100%), url('assets/lovinium_hero_bg_1770225834996.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 73, 89, 0.7);
    /* Dark overlay using primary color */
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.eyebrow {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

/* Sections General */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Feature List */
.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-list li::before {
    content: "•";
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.image-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Mission Banner */
.product-hero {
    background-color: var(--primary-color);
    padding: 120px 0 60px;
    color: var(--white);
    text-align: center;
}

.product-hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.product-hero p {
    color: var(--white);
    opacity: 0.9;
    font-size: 1.2rem;
}

.mission-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.mission-banner p {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--white);
    margin: 0;
    font-style: italic;
}

/* Our Philosophy (Regeneration Requires... Section) */
.philosophy-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.philosophy-section h2,
.philosophy-section h3 {
    color: var(--white) !important;
}

.philosophy-quote {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--secondary-color);
    /* Highlight color for text */
    margin: 0 auto 30px;
    max-width: 800px;
}

.philosophy-section p {
    color: #e0e0e0;
    /* Light grey for body text on dark bg */
    max-width: 700px;
    margin: 0 auto;
}

/* What We Do */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.card-icon {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0, 212, 255, 0.2);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card ul {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.service-card ul li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-light);
    padding-left: 15px;
    position: relative;
}

.service-card ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Philosophy */
.content-center {
    text-align: center;
    max-width: 800px;
}

.philosophy h2 {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
}

.philosophy h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-dark);
}

/* Check List */
.check-list li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    font-weight: 500;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 900;
}

.simple-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Modalities Grid */
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Core Principle Box */
.core-principle-box {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 40px;
    border-radius: 12px;
}

.core-principle-box h3,
.core-principle-box p {
    color: var(--white) !important;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-col h4 {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-col a {
    color: var(--white);
    text-decoration: underline;
}

.footer-col p {
    color: var(--white);
    opacity: 0.9;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
    color: inherit;
}

/* Responsive */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

/* Header Scroll Effect */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
}

/* Responsive */
@media (max-width: 900px) {
    .site-header .container {
        padding: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        /* Matches header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        padding: 40px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: var(--shadow-md);
    }

    .site-header.scrolled+.main-nav,
    .main-nav {
        top: 80px;
        /* Adjust if header height changes on scroll */
    }

    .main-nav.active {
        transform: translateX(0);
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    /* Dropdown in Mobile */
    .main-nav ul ul {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-light);
        width: 100%;
        text-align: center;
        padding: 10px 0;
        margin-top: 10px;
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }
}

/* Popup Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Flex when visible */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-icon {
    font-size: 50px;
    color: var(--lovi-secondary, #88BDF2);
    margin-bottom: 20px;
    line-height: 1;
}

.popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.popup-content p {
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.close-popup:hover {
    color: var(--primary-color);
}