:root {
    --color-dark-blue: #39404F;
    --color-orange: #EA9216;
    --color-off-white: #E9E9E9;
    --color-white: #FFFFFF;
    --color-text-dark: #1a1a1a;
    --color-text-light: #f0f0f0;

    --font-heading: 'Momcake', 'Playfair Display', serif;
    --font-body: 'Recoleta', 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark-blue);
    line-height: 1.6;
    background-color: var(--color-off-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #d68310;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 146, 22, 0.4);
}

.btn-outline {
    border-color: var(--color-orange);
    color: var(--color-white);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn-outline-dark {
    border-color: var(--color-orange);
    color: var(--color-dark-blue);
    background-color: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn-transparent {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-transparent:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header - Liquid Glass Effect */
.header {
    position: fixed;
    top: 1rem;
    /* Floating slightly from top for better 'glass object' feel */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    /* Not full width to emphasize the glass card look */
    max-width: 1200px;
    z-index: 1000;

    /* Liquid Glass Visuals */
    background-color: rgba(255, 255, 255, 0.05);
    /* Very subtle fill */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    /* Rounded corners like the button */

    /* Complex Shadow for Liquid/Glass Feel adapted from user code */
    box-shadow:
        0 0 8px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);

    padding: 0.8rem 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--color-orange);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* Hero Section Wrapper */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-dark-blue);
    /* Default matches bottom */
}

/* Top Illustrated Card */
.hero-card {
    position: relative;
    height: 65vh;
    /* Approx 2/3 of screen */
    min-height: 500px;
    width: 100%;
    background-color: var(--color-dark-blue);
    background-image: url('assets/hero-bg-flat.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* The core visual requirement: rounded bottom corners and shadow */
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);

    z-index: 10;
    /* Ensure it floats above the bottom section visually */
    display: flex;
    justify-content: center;
    padding-top: 120px;
    /* Space for fixed header + breathing room */
}

.mobile-hero-video {
    display: none;
}

/* Overlay for text readability on image if needed */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    pointer-events: none;
    z-index: 1;
}

.hero-top-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

/* Bottom Dark Content Section */
.hero-bottom-content {
    background-color: #39404F;
    flex-grow: 1;
    /* Fill remaining space */
    display: flex;
    align-items: center;
    padding: 3rem 0;
    margin-top: -10px;
    /* Slight overlap prevention ensures no gap */
    padding-top: 4rem;
    /* Add visual space from the shadow */
}

.hero-text-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
}

.hero-text-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text-content .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
}

/* Reuse existing button styles but ensure container is centered */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-hero-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-transform: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(234, 146, 22, 0.3);
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-white);
}

/* Eyebrow Logic */
.eyebrow {
    color: var(--color-orange);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    /* Add subtle backing for definition over image */
    backdrop-filter: blur(4px);
    border-radius: 4px;
}

/* Philosophy Section */
.philosophy {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-off-white);
    text-align: center;
    /* Subtle noise texture using CSS gradient */
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #E9E9E9 10px), repeating-linear-gradient(#f5f5f555, #f5f5f5);
    position: relative;
    overflow: hidden;
}

.philosophy .container {
    position: relative;
    z-index: 2;
}

.philosophy-video-mobile {
    display: none;
}

.philosophy h2 {
    color: var(--color-dark-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.philosophy p {
    color: #555;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn-philosophy {
    background-color: transparent;
    color: var(--color-dark-blue);
    border: 1px solid var(--color-orange);
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-philosophy:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(234, 146, 22, 0.3);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-dark-blue);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-link:hover {
    color: var(--color-orange);
}

/* Method Section */
.method {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    text-align: center;
    background-image: linear-gradient(rgba(57, 63, 79, 0.8), rgba(57, 63, 79, 0.8)), url('assets/method-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.method h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.method p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-off-white);
}

.services h2 {
    color: var(--color-dark-blue);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    color: var(--color-orange);
    margin-bottom: 1.5rem;
    background-color: rgba(234, 146, 22, 0.1);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.service-icon,
.icon-box img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    max-width: 100%;
}

.service-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: var(--color-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    gap: 10px;
}

/* Location Section */
.location {
    padding: var(--spacing-xl) 0;
    background-color: #f5f5f5;
    text-align: center;
}

.location h2 {
    color: var(--color-dark-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.location p {
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.map-container {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark-blue);
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--color-white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.accordion-content ul {
    padding: 1rem 2rem;
    list-style: disc;
    color: #666;
}

.accordion.active .accordion-header {
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background-color: #f0f0f0;
}

.accordion.active .accordion-content {
    max-height: 300px;
    /* Adjust as needed */
    border: 1px solid #ddd;
    border-top: none;
}

.accordion-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Final CTA */
.final-cta {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.final-cta p {
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background-color: #2c313f;
    color: #ccc;
    padding: var(--spacing-lg) 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 1rem;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a:hover {
    color: var(--color-orange);
}

.contact-col li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-col .icon {
    color: var(--color-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {

    .nav-menu,
    .header .btn {
        display: none;
    }

    .logo-img {
        height: 35px;
    }

    .header {
        padding: 0.4rem 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Mobile Hero Adjustments */
    .hero-wrapper {
        min-height: 100dvh;
        /* Force full viewport height on mobile to push next section down */
        display: flex;
        flex-direction: column;
    }

    .hero-card {
        background-image: url('assets/hero-bg-mobile.png');
        background-position: center bottom;
        background-size: cover;
        height: 60vh;
        min-height: 250px;
        padding-top: 120px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        margin-top: 0;
        position: relative;
        overflow: hidden;
        /* Ensure video stays within rounded corners */
    }

    .mobile-hero-video {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 80%;
        z-index: 0;
        /* Behind text */
    }

    /* Ensure text stays on top */
    .hero-top-container {
        position: relative;
        z-index: 2;
    }

    .hero-bottom-content {
        padding-top: 5rem;
        /* Increased further to 5rem */
        padding-bottom: 2rem;
        text-align: center;
        margin-top: -20px;
        /* Pull up slightly more */
    }

    .hero-text-content {
        padding: 0 1.5rem;
    }

    .hero-text-content h1 {
        font-size: 1.6rem;
        /* Smaller font for mobile */
        margin-bottom: 1rem;
    }

    .hero-text-content .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .eyebrow {
        font-size: 0.55rem;
        padding: 0.3rem 0.6rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* Philosophy Card Mobile Styles */
    .philosophy-card {
        position: relative;
        background-color: var(--color-dark-blue);
        /* Fallback */
        border-radius: 30px;
        overflow: hidden;
        padding: 3rem 1.5rem;
        color: var(--color-white);
    }

    .philosophy-video-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        /* Darkens video */
        z-index: 1;
    }

    .philosophy-card h2,
    .philosophy-card p {
        position: relative;
        z-index: 2;
        color: var(--color-white);
    }

    .philosophy-card .btn-philosophy {
        color: var(--color-white);
        border-color: var(--color-white);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.8rem;
    }

    .hero-content {
        text-align: center;
        /* Ensure alignment */
    }
}

.accordion {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark-blue);
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--color-white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.accordion-content ul {
    padding: 1rem 2rem;
    list-style: disc;
    color: #666;
}

.accordion.active .accordion-header {
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background-color: #f0f0f0;
}

.accordion.active .accordion-content {
    max-height: 300px;
    /* Adjust as needed */
    border: 1px solid #ddd;
    border-top: none;
}

.accordion-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Final CTA */
.final-cta {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.final-cta p {
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background-color: #2c313f;
    color: #ccc;
    padding: var(--spacing-lg) 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 1rem;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a:hover {
    color: var(--color-orange);
}

.contact-col li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-col .icon {
    color: var(--color-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {

    .nav-menu,
    .header .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Mobile Hero Adjustments */
    .hero {
        background-image: url('assets/hero-bg-mobile.png');
        background-position: center bottom;
    }

    .hero-content {
        text-align: left;
        padding: 0 1rem;
    }

    .eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15rem;
    }

    .method h2 {
        font-size: 1.8rem;
        /* Smaller font for mobile */
    }
}