/* 
    VivaNova Consulting - Master Stylesheet (v1.2)
    Updates: Mobile-first responsiveness, fluid containers, & utility classes.
    Theme: Executive Green & Gold
    Typography: Playfair Display (Headlines) & Montserrat (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Primary Palette */
    --vivanova-green: #1a4331;    /* Deep Executive Green */
    --vivanova-gold: #c5a059;     /* Refined Metallic Gold */
    --vivanova-gold-light: #e2cf9f;
    
    /* Neutrals */
    --bg-white: #ffffff;
    --bg-cream: #fdfbf7;
    --text-main: #1a1a1a;
    --text-muted: #545454;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Animation & Spacing */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --section-padding: 100px 10%;
    --container-width: 1200px;
    
    /* Boutique Refinement */
    --border-radius: 12px; 
}

/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Navigation - High-End Layout */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(26, 67, 49, 0.1);
}

.nav-brand img {
    height: 105px; 
    width: auto;
    border-radius: var(--border-radius); 
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center; /* Vertically centers slogan with logo */
    gap: 1.5rem;        /* Space between logo and text */
}

/* --- Slogan Next to Logo (Updated to match Nav Links) --- */

.nav-brand {
    display: flex;
    align-items: center; 
    gap: 2rem; /* Increased gap for a cleaner horizontal look */
}

.nav-slogan {
    font-family: var(--font-body); /* Matches Home/Services/About Us */
    color: var(--vivanova-green);
    font-size: 0.9rem;             /* Matches nav-links */
    font-weight: 600;              /* Matches nav-links */
    letter-spacing: 0.1rem;        /* Matches nav-links */
    text-transform: uppercase;     /* Matches nav-links */
    font-style: normal;            /* Removes italics */
    white-space: nowrap;           /* Forces text onto a single line */
}

@media (max-width: 768px) {
    :root { 
        --section-padding: 60px 5%; 
        --border-radius: 8px; 
    }
    
    /* Nav & Hamburger Override */
    nav { padding: 1rem 5%; }
    .nav-brand img { height: 60px; }

    /* ADD THIS LINE HERE to hide the slogan on mobile */
    .nav-slogan { display: none !important; }
    
    .menu-toggle { display: flex; }
    
    /* ... rest of your existing mobile code ... */
}

/* Mobile Tweak: Keep it hidden on mobile to avoid overlapping the menu */
@media (max-width: 992px) {
    .nav-slogan {
        display: none;
    }
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--vivanova-green);
    transition: var(--transition);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--vivanova-green);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--vivanova-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--vivanova-gold);
}

/* 3. Hero Sections */
section {
    padding: var(--section-padding);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-cream);
    padding-top: 150px;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--vivanova-green);
}

.accent-gold {
    color: var(--vivanova-gold);
}

/* 4. Buttons & UI Elements */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background-color: var(--vivanova-green);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    border: 1px solid var(--vivanova-green);
    transition: var(--transition);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 30px; 
    text-align: center;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--vivanova-green);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--vivanova-gold);
    color: var(--vivanova-gold);
}

.btn-outline:hover {
    background-color: var(--vivanova-gold);
    color: var(--white);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* 5. Utility Classes (Mobile-First Replacement for Inline Styles) */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Responsive Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.grid-1-15 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Fluid Visual Placeholders & Images */
.fluid-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--vivanova-green);
    border-radius: var(--border-radius);
    opacity: 0.5;
    overflow: hidden;
}

.fluid-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* iframe Wrapper for Google Calendar */
.iframe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--white);
}

.iframe-container iframe {
    width: 100%;
    border: none;
}

/* 6. Universal Rounded Boxes */
.principle-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 3rem;
    background: var(--bg-cream);
    border-top: 3px solid var(--vivanova-gold);
}

.info-card {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
}

.booking-wrapper {
    padding: 4rem;
    border: 1px dashed var(--vivanova-gold);
    border-radius: calc(var(--border-radius) * 1.5);
    max-width: 800px;
    margin: 0 auto;
}

/* 7. Footer */
footer {
    background-color: var(--vivanova-green);
    color: var(--white);
    padding: 80px 10% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-brand h2 {
    color: var(--vivanova-gold);
    margin-bottom: 1rem;
}

.footer-copy {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 8. Mobile Responsiveness (Jank Removal) */
@media (max-width: 992px) {
    .nav-links { gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .grid-2 { gap: 3rem; }
    .grid-1-15 { gap: 3rem; }
}

@media (max-width: 768px) {
    :root { 
        --section-padding: 60px 5%; 
        --border-radius: 8px; 
    }
    
    /* Nav & Hamburger Override */
    nav { padding: 1rem 5%; }
    .nav-brand img { height: 60px; }
    
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        max-height: 300px;
    }
    
    .nav-links li {
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(26, 67, 49, 0.05);
    }

    /* Stacking Grids */
    .grid-2, .grid-1-15 { 
        grid-template-columns: 1fr; 
    }
    
    /* Logical Stacking Order for Alternating Content */
    .order-1-mobile { order: 1 !important; }
    .order-2-mobile { order: 2 !important; }

    /* Adjustments */
    .hero { text-align: center; padding-top: 120px; }
    .hero p { margin: 0 auto; }
    .btn-group { justify-content: center; }
    .booking-wrapper { padding: 2rem 1.5rem; }
}
/* --- Add this section to the bottom of style.css --- */

/* 9. Desktop-Specific Refinements (fixing 'crap' layout) */
@media (min-width: 993px) {
    
    /* 1. Address excessive image size and layout scale */
    .grid-1-15 {
        grid-template-columns: 1fr 2fr; /* Give more space to the text */
        gap: 6rem; /* Increase gap for cleaner separation */
        max-width: 1200px; /* Constrain the overall section max width */
        margin: 0 auto; /* Center the grid */
    }

    /* Constrain the parent container of the photo specifically on desktop */
    .grid-1-15 > div:first-child {
        max-width: 380px; /* Prevent the photo from getting too huge */
        margin: 0 auto; /* Center the constrained photo container */
    }
    
    /* 2. Fix layout and spacing for Core Competencies */
    .bio-text ul {
        display: flex; /* Force horizontal flow on desktop */
        flex-wrap: nowrap; /* Prevent wrapping unless absolutely necessary */
        gap: 2.5rem; /* Wide gaps between items */
        justify-content: start;
        text-align: left;
    }
    
    .bio-text ul li {
        white-space: nowrap; /* Keep competence phrases on one line */
    }

    /* 3. General Desktop Spacing Refinement */
    .hero {
        padding-top: 180px; /* Standardize desktop hero padding */
        padding-bottom: 80px;
    }
}