/* =========================================
   LAYOUT CSS
   Header, Hero, Footer, Global Sections
   ========================================= */

/* --- Header --- */
body {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.site-header {
    background: rgba(250, 240, 230, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    /* Make it stick */
    top: 0;
    /* Stick to the top */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.top-bar {
    background: var(--primary-soft);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Ensure smooth scrolling aligns correctly below the fixed header */
#newsletter {
    scroll-margin-top: 150px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 400px) {
    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
}

.top-bar a:hover {
    color: var(--primary);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.logo {
    text-align: center;
}

.logo h1 {
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
}

.logo .tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-family: var(--font-body);
    /* Changed to Montserrat for softer look */
    /* New Premium Look */
    font-weight: 500;
    /* Bolder to make the change obvious */
    font-size: 0.95rem;
    /* Slightly larger for readability */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-soft);
    transition: 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-soft);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    height: 75vh;
    /* Taller hero for more breathing room */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('../images/hero-home.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    border-radius: 0 0 80px 80px;
    margin-bottom: 60px;
    /* Increased separation from next section */
}

.hero-content h2 {
    font-size: 4.5rem;
    /* Larger title */
    color: #ffffff !important;
    margin-bottom: 60px;
    /* MUCH larger gap */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    font-style: italic;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 70px;
    /* MUCH larger gap */
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    display: inline-block;
    padding: 20px 50px;
    border-radius: 50px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Animated Header (Sub-pages) --- */
.page-header {
    background: linear-gradient(rgba(171, 115, 124, 0.5), rgba(74, 59, 59, 0.6)), url('https://images.unsplash.com/photo-1487412947132-26f5714bcfa2?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center 30%;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    margin-bottom: 60px;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.page-header h2 {
    font-size: 4rem;
    color: #ffffff !important;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

.animated-header {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
    border-radius: 0 0 50% 50% / 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.animated-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 25s infinite alternate ease-in-out;
    z-index: 0;
}

.animated-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(171, 115, 124, 0.8), rgba(74, 59, 59, 0.4));
    z-index: 1;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.header-content h2 {
    font-size: 4rem;
    color: #ffffff !important;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    font-style: italic;
    animation: slideDown 1s ease-out;
}

.header-content p {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 12px 35px;
    border-radius: 30px;
    display: inline-block;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: slideUp 1.2s ease-out 0.3s backwards;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Intro Section --- */
.intro-section {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-content {
    flex: 1;
    max-width: 100%;
    /* overflow: hidden; Removed to prevent clipping */
}

.intro-image {
    flex: 1;
    position: relative;
}

.intro-image img {
    width: 70%;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 15px 20px 40px rgba(171, 115, 124, 0.2);
    filter: brightness(1.02) contrast(0.98);
    transition: transform 0.5s ease;
}

.intro-image img:hover {
    transform: translateY(-5px);
    box-shadow: 15px 20px 50px rgba(171, 115, 124, 0.3);
    filter: brightness(1.05) sepia(0);
}

.intro-content h3 {
    /* Font size restored to plain rem for consistent 'bigness' */
    font-size: 2.8rem;
    margin-bottom: 5px;
    color: var(--primary);
    line-height: 1.3;
    white-space: nowrap;
    /* User insists on single line */
    width: 100%;
    text-align: center;
}

.intro-content p[style*="Great Vibes"] {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.intro-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* --- Grids (Services & Info) --- */
.services-grid,
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    /* Significantly increased gap */
    margin-top: 80px;
    /* Increased gap from title */
}

/* --- Footer --- */
.site-footer {
    background: #3d3536;
    color: #f0f0f0;
    padding: 80px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-soft);
}

.footer-col p {
    color: #e0e0e0;
    margin-bottom: 12px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #6e6060;
    font-size: 0.9rem;
}

.contact-right i {
    margin-right: 5px;
}

#dynamic-loc {
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
    white-space: nowrap;
}

/* --- Animations Keyframes --- */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        list-style: none !important;
        /* Force no bullets */
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        list-style: none !important;
        /* Double force no bullets */
    }

    .main-nav li::before {
        content: none !important;
        /* Remove custom CSS bullets on LI if any */
        display: none !important;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        /* More breathing room */
        font-size: 1.1rem;
        /* Slightly larger on mobile */
        text-align: center;
        /* Center aligned */
        width: 100%;
        font-weight: 500;
        letter-spacing: 2px;
    }

    /* Remove the bullet point dot on mobile */
    .main-nav a::before {
        display: none !important;
    }

    /* Remove the underline effect on mobile for cleaner look */
    .main-nav a::after {
        display: none !important;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .page-header h2 {
        font-size: 2.5rem;
    }

    .intro-section {
        flex-direction: column;
    }

    .intro-content h3 {
        font-size: 1.6rem;
        text-align: center;
    }

    .header-content h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .header-content p {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .animated-header {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .intro-content h3 {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    /* Mobile Optimization: Top Bar & Hero */
    .top-bar {
        font-size: 0.75rem;
    }

    /* Slightly smaller for address/phone fit */
    .hero-content h2 {
        font-size: 2rem;
    }

    /* Reduce tagline size on mobile */
    .hero-content p {
        font-size: 1rem;
        padding: 12px 30px;
        margin-bottom: 40px;
    }

    /* Compact hero title */
}