/*
Theme Name: Casa Namaste Custom V1.2 Release
Theme URI: https://casanamaste.net
Author: Senior WordPress Product Architect
Description: Polished production theme with verified assets for Jayne & Bruce's vacation homes.
Version: 1.2.3
License: GNU General Public License v2 or later
Text Domain: casanamaste
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FBFBFA;
    color: #222222;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* --- MICROINTERACTIONS --- */
.card-image-wrap img, .mosaic-item img, .fav-panel-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-image-wrap:hover img, .mosaic-item:hover img, .fav-panel-card:hover img {
    transform: scale(1.025);
}

.btn-editorial, .btn-closer-action {
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-editorial:hover, .btn-closer-action:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* --- AIRBNB STICKY HEADER --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 8%;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    transition: padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-logo {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.brand-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -4px;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-link,
.nav-dropdown-trigger {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.3s ease;
}

/* --- SOLID HEADER FOR INNER PAGES & SCROLLED STATE --- */
body:not(.home):not(.front-page) #site-header,
#site-header.scrolled {
    background-color: #FFFFFF;
    padding: 14px 8%;
    border-bottom: 1px solid #E2DCD0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body:not(.home):not(.front-page) .brand-logo,
#site-header.scrolled .brand-logo { color: #222222; }

body:not(.home):not(.front-page) .brand-subtitle,
#site-header.scrolled .brand-subtitle { color: #6A6A66; }

body:not(.home):not(.front-page) .nav-link,
body:not(.home):not(.front-page) .nav-dropdown-trigger,
#site-header.scrolled .nav-link,
#site-header.scrolled .nav-dropdown-trigger { color: #222222; }

body:not(.home):not(.front-page) .nav-link:hover,
body:not(.home):not(.front-page) .nav-dropdown-trigger:hover,
#site-header.scrolled .nav-link:hover,
#site-header.scrolled .nav-dropdown-trigger:hover { color: #6A6A66; }

/* --- DROPDOWN MENUS --- */
.nav-dropdown-item {
    position: relative;
}

.btn-nav-dropdown {
    background-color: #FFFFFF;
    color: #222222;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.2s ease, color 0.2s ease;
}

body:not(.home):not(.front-page) .btn-nav-dropdown,
#site-header.scrolled .btn-nav-dropdown {
    background-color: #222222;
    color: #FBFBFA;
}

.dropdown-menu-box {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid #E2DCD0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    width: 240px;
    margin-top: 6px;
    padding: 8px 0;
    animation: gentleFade 0.2s ease forwards;
    z-index: 2100;
}

.dropdown-menu-box::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-dropdown-item:hover .dropdown-menu-box {
    display: block;
}

.dropdown-menu-box a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #222222;
    text-align: left;
}

.dropdown-menu-box a:hover {
    background-color: #F4F4F2;
    color: #6A6A66;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #FFFFFF;
}

body:not(.home):not(.front-page) .mobile-nav-toggle,
#site-header.scrolled .mobile-nav-toggle { color: #222222; }

@keyframes gentleFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SPLIT HERO --- */
#brand-split-hero {
    display: flex;
    height: 85vh;
    width: 100%;
    position: relative;
    background-color: #222222;
    overflow: hidden;
}

.hero-pane-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-pane {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-pane-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    z-index: 5;
}

.hero-pane::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.hero-brand-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #FFFFFF;
    width: 90%;
    pointer-events: none;
}

.hero-brand-overlay h1 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 64px;
    font-weight: 400;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.hero-brand-overlay p {
    font-size: 18px;
    letter-spacing: 0.03em;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* --- STRIP --- */
.identity-strip-container {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2DCD0;
    padding: 24px 4%;
    text-align: center;
}

.identity-strip-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6A6A66;
}

/* --- STRUCTURES --- */
.section-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 8%;
}

.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.bg-alt { background-color: #F4F4F2; border-top: 1px solid #E2DCD0; border-bottom: 1px solid #E2DCD0; }
.text-center { text-align: center; }

.section-title {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 46px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: #6A6A66;
    margin-bottom: 48px;
}

.homes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
}

.card-image-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background-color: #E2DCD0;
    margin-bottom: 20px;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.card-title { font-family: "Instrument Serif", Georgia, serif; font-size: 32px; font-weight: 400; }
.card-rating { font-weight: 600; font-size: 15px; }
.card-location { font-size: 15px; color: #6A6A66; margin-bottom: 6px; }
.card-specs { font-size: 14px; color: #444444; font-weight: 500; margin-bottom: 20px; }

.btn-editorial {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid #222222;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editorial-panel {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 80px;
}

.editorial-panel.reverse { flex-direction: row-reverse; }
.panel-image { width: 50%; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.panel-info { width: 50%; }

.experience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px; }
.experience-card h4 { font-family: "Instrument Serif", Georgia, serif; font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.experience-card p { font-size: 16px; color: #444444; line-height: 1.7; }

.perfect-for-box {
    padding-top: 16px;
    border-top: 1px solid #E2DCD0;
}

.perfect-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6A6A66;
    margin-bottom: 12px;
    font-weight: 700;
}

.perfect-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.perfect-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    background-color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #E2DCD0;
    color: #444444;
}

.bg-alt .perfect-tag {
    background-color: #F4F4F2;
}

/* --- IMMERSIVE GALLERY MATRICES (FIXED FULL CONTAINER COVERAGE) --- */
.photo-mosaic-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 240px);
    gap: 16px;
    margin-bottom: 24px;
}

.mosaic-item { 
    background-color: #E2DCD0; 
    border-radius: 12px; 
    overflow: hidden; 
    position: relative; 
    width: 100%;
    height: 100%;
}

.mosaic-item-1 { 
    grid-column: 1 / 2; 
    grid-row: 1 / 3; 
}

.mosaic-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-action-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.at-a-glance-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 36px;
    padding: 28px 0;
    border-top: 1px solid #E2DCD0;
    border-bottom: 1px solid #E2DCD0;
    margin-bottom: 48px;
    font-size: 15px;
    font-weight: 500;
    color: #444444;
}

.property-split-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }
.property-narrative-panel p { font-size: 16px; color: #333333; margin-bottom: 24px; line-height: 1.8; }

.inline-visual-anchor { 
    margin: 48px 0; 
    border-radius: 16px; 
    overflow: hidden; 
    aspect-ratio: 16/9; 
    width: 100%;
}

.inline-visual-anchor a,
.inline-visual-anchor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sticky-reservation-card {
    border: 1px solid #E2DCD0;
    border-radius: 16px;
    padding: 40px;
    background-color: #FFFFFF;
    position: sticky;
    top: 120px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.btn-airbnb-redirect {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #222222;
    color: #FBFBFA;
    padding: 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
}

.btn-airbnb-redirect:hover { background-color: #000000; }

.featured-review-container { background-color: #FFFFFF; border-radius: 16px; padding: 60px 8%; text-align: center; border: 1px solid #E2DCD0; max-width: 1000px; margin: 0 auto; }
.review-text { font-family: "Instrument Serif", Georgia, serif; font-size: 28px; line-height: 1.4; margin: 24px 0; color: #222222; }
.review-links-row { display: flex; justify-content: center; gap: 40px; margin-top: 24px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.review-links-row a { border-bottom: 2px solid #222222; padding-bottom: 2px; }

.home-host-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.host-image-frame { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; }
.guide-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 16px; }
.guide-preview-card { background: #FFFFFF; border: 1px solid #E2DCD0; border-radius: 16px; padding: 40px; transition: box-shadow 0.3s ease; }
.guide-preview-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.guide-preview-card h4 { font-family: "Instrument Serif", Georgia, serif; font-size: 28px; margin-bottom: 8px; }
.guide-preview-card p { font-size: 15px; color: #6A6A66; margin-bottom: 20px; }

footer { border-top: 1px solid #E2DCD0; padding: 80px 8%; background-color: #FFFFFF; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 64px; }
.footer-brand .logo { font-family: "Instrument Serif", Georgia, serif; font-size: 28px; margin-bottom: 4px; }
.footer-brand .sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #6A6A66; }
.footer-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; color: #6A6A66; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; font-size: 14px; color: #444444; }
.footer-links li a:hover { color: #6A6A66; }

/* --- MOBILE & RESPONSIVE LAYOUT MATRIX --- */
@media (max-width: 960px) {
    #site-header {
        padding: 16px 5%;
        background-color: #FFFFFF;
        border-bottom: 1px solid #E2DCD0;
        position: sticky;
        top: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    
    .brand-logo { color: #222222 !important; font-size: 24px; }
    .brand-subtitle { color: #6A6A66 !important; font-size: 9px; }
    .mobile-nav-toggle { display: block; color: #222222 !important; }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0; 
        width: 100%;
        background-color: #FFFFFF;
        border-bottom: 1px solid #E2DCD0;
        padding: 24px 6%;
        gap: 20px;
        align-items: flex-start;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    
    .nav-menu.active { display: flex; }
    .nav-link, .nav-dropdown-trigger { color: #222222 !important; }
    .nav-dropdown-item, .btn-nav-dropdown { width: 100%; text-align: left; }
    .dropdown-menu-box { position: relative; width: 100%; top: 0; box-shadow: none; border: none; background-color: #F4F4F2; margin-top: 8px; }

    /* REFINED HERO LAYOUT FOR MOBILE */
    #brand-split-hero {
        height: 65vh;
        min-height: 420px;
    }
    
    .hero-pane-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
    }
    
    .hero-pane {
        width: 50%;
        height: 100%;
    }

    .hero-brand-overlay h1 {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .hero-brand-overlay p {
        font-size: 14px;
        line-height: 1.4;
    }

    .identity-strip-container {
        padding: 16px 4%;
    }

    .identity-strip-text {
        font-size: 11px;
        letter-spacing: 0.08em;
        line-height: 1.5;
    }

    .homes-grid, 
    .experience-grid, 
    .property-split-layout, 
    .guide-cards-grid, 
    .about-layout, 
    .closer-grid, 
    .footer-grid, 
    .home-host-section, 
    .editorial-panel, 
    .guide-preview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .editorial-panel.reverse { flex-direction: column; }
    .panel-image, .panel-info { width: 100%; }
    .photo-mosaic-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .sticky-reservation-card { position: relative; top: 0; }
    .section-wrap { padding: 48px 5%; }
}