/* ====================================
   ANARITA WELLNESS LAND CUSTOM STYLES
   Extending Woodland Template
   ==================================== */

/* Modern Serif Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

/* Color Scheme */
:root {
    --anarita-primary: #2c5530;
    --anarita-secondary: #4a7c4e;
    --anarita-accent: #8b9d6f;
    --anarita-light: #f5f7f3;
    --anarita-dark: #1a1a1a;
    --anarita-gold: #c9a868;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lora', serif;
}

/* Apply Serif Fonts */
body {
    font-family: var(--font-body) !important;
    background-image: url('../images/back1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6,
.large-title, .nav-link, .navbar-brand,
.project-description h3, .house-name {
    font-family: var(--font-heading) !important;
}

/* Section Headers (About, Project, etc.) - 30% smaller */
h2 {
    font-size: 2.8rem !important;
}

/* About Section - 3 Equal Columns (1/3 each) */
#about-section._2x1-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
}

#about-section .about-blocks-wrapper {
    display: contents;
}

/* Make about section text columns wider on wide screens */
.about-block {
    max-width: 100% !important;
}

/* Logo in about section - make it a regular image that scales */
#about-section img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

/* Features Section - 1/3 - 2/3 Grid Split */
#features-section._2x1-grid {
    grid-template-columns: 1fr 2fr !important;
}

/* Fixed Header - Transparent, Sky Blue on Scroll */
.navbar-logo-left {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent !important;
    transition: background-color 0.3s ease;
}

.navbar-logo-left.scrolled {
    background: linear-gradient(180deg, rgba(17, 58, 108, 0.665) 0%, rgba(17, 58, 108, 0.63) 100%) !important;
}

.navbar-logo-left-container {
    box-shadow: none !important;
    background: transparent !important;
}

/* Logo - White Bold with Shadow */
.navbar-brand h2 {
    font-size: 2.25rem !important;
    line-height: 1.2;
    text-align: left;
    margin: 0 !important;
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Navigation Links - White Bold with Shadow - Larger */
.nav-link {
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Full Width Hero - No Overlays */
.hero-section {
    height: 95vh;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-images-wrapper {
    width: 100vw !important;
    height: 95vh !important;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-images-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove all overlays and dimming */
.hero-image-background,
.animated-overlay-blocks,
.page-title {
    display: none !important;
}

/* Wellness Land Title Section */
.wellness-title-section {
    padding: 0 0 2rem 0;
    background: white;
    margin: 0 !important;
}

.wellness-title-section .container {
    padding: 0 !important;
    margin: 0 !important;
}

.wellness-title {
    font-size: 4.9rem;
    font-weight: 700;
    color: black;
    text-align: center;
    margin: -3rem 0 1rem 0;
    letter-spacing: normal;
    font-family: var(--font-heading) !important;
    line-height: 1.1;
}

.title-divider {
    width: 100px;
    height: 1px;
    background-color: black;
    border: none;
    margin: 0 auto;
}

/* Responsive Wellness Title */
@media (max-width: 991px) {
    .wellness-title {
        font-size: 3.5rem;
        margin: -2rem 0 1rem 0;
        line-height: 1.2;
    }
}

@media (max-width: 767px) {
    .wellness-title {
        font-size: 4rem;
        margin: 0 0 1rem 0;
        padding: 0 1rem;
    }

    .wellness-title-section {
        padding: 1rem 0 2rem 0;
    }
}

@media (max-width: 479px) {
    .wellness-title {
        font-size: 3rem;
        margin: 0 0 1rem 0;
        padding: 0 1rem;
    }
}

/* Projects Section - Subheaders and Wider Cards */
.project-thumbnails-wrapper {
    grid-row-gap: 0 !important;
    row-gap: 0 !important;
}

.project-subheader {
    font-size: 1.8rem !important;
    font-weight: 600;
    color: black;
    text-align: center;
    margin: 3rem 0 0 0;
    font-family: var(--font-heading) !important;
    letter-spacing: normal !important;
}

.project-subheader:first-of-type {
    margin-top: 1rem;
}

.project-thumbnail {
    margin-bottom: 3rem !important;
    margin-top: 0 !important;
}

.project-content-box {
    max-width: 33.8vw !important;  /* 30% wider: 26vw * 1.3 = 33.8vw */
    min-width: auto !important;
}

.project-content-box.left-aligned {
    left: auto !important;
}

/* On narrow and midsize screens: cards 80% width, centered, overlapping images */
@media screen and (max-width: 2000px) {
    .project-content-box {
        max-width: 80vw !important;
        width: 80vw !important;
        position: relative !important;
        inset: auto !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        box-shadow: 2px 2px 15px rgba(0,0,0,0.2) !important;
        padding: 1rem 30px 30px 30px !important;
        margin-top: -100px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        z-index: 5 !important;
    }

    .project-content-box.left-aligned {
        inset: auto !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
    }

    .project-thumbnail {
        position: relative !important;
    }

    .project-thumbnail.right-aligned {
        align-items: center !important;
    }

    .project-description {
        margin-top: 0 !important;
    }
}

/* Only stack below image when viewport is below 300px */
@media (max-width: 300px) {
    .project-thumbnail {
        align-items: center !important;
    }

    .project-thumbnail.right-aligned {
        align-items: center !important;
    }

    .project-content-box {
        max-width: 90% !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 1rem auto 0 auto !important;
    }

    .project-content-box.left-aligned {
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}

/* Make lists more visual in project cards */
.project-description .w-layout-hflex {
    gap: 0.5rem !important;
}

.project-label {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

.bullet-indicator {
    display: none;
}

/* Timetable List Styling */
.timetable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timetable-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
}

.timetable-list li:last-child {
    border-bottom: none;
}

.timetable-list li strong {
    color: var(--anarita-primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Interactive Tour Section - Full Width */
.tour-full-width {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tour-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    max-width: 100%;
}

.tour-video-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    /* Maintain 16:9 aspect ratio for video container */
    aspect-ratio: 16 / 9;
    background: #000;
}

/* On narrow screens, use 80% viewport height instead of aspect ratio */
@media (max-width: 768px) {
    .tour-video-wrapper {
        height: 80vh;
        aspect-ratio: unset;
    }

    .tour-full-width .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #tour-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Force floor plans to single column on narrow screens */
    #floorPlansContainer > div {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    #floorPlansContainer img {
        max-width: 100% !important;
    }

    /* Prevent horizontal overflow in house details */
    .house-details-card {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .floor-plans-section {
        overflow-x: hidden !important;
    }
}

/* Dual video elements with instant switching (no transition) */
.tour-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.tour-video.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.tour-video.inactive {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Legacy selector - keep for backward compatibility if needed */
#tourVideo {
    width: 100%;
    display: block;
    background: #000;
}

/* Remove gradient overlay */
.video-overlay-gradient {
    display: none;
}

/* Tour Controls */
.tour-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.tour-btn {
    min-width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.9);
    padding: 0 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-btn:hover {
    background: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* House Selector */
.house-selector {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    text-align: center;
    background: rgba(17, 58, 108, 0.665);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.house-selector-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.house-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.house-btn {
    min-width: 45px;
    height: 45px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.house-btn:hover:not(:disabled):not(.active) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.house-btn.active {
    background: white;
    color: #113a6c;
    border-color: white;
}

.house-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive adjustments for house buttons */
@media (max-width: 550px) {
    .house-selector {
        padding: 0.75rem 1rem;
    }

    .house-selector-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .house-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .house-buttons {
        gap: 0.2rem;
    }
}

/* House Details Card */
.house-details-card {
    background: rgba(80, 103, 135, 1);
    padding: 1rem 2.5rem 2.5rem;
}

.house-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
}

.house-specs {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-align: center;
}

.house-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.house-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 2rem;
}

.floor-plans-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.floor-plans-section h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: white;
}

.floor-plans-section p {
    color: rgba(255, 255, 255, 0.7);
}

/* Inline Email Form */
.inline-email-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 175px;
    max-width: 280px;
    height: 45px;
    padding: 0 1rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.send-details-btn {
    min-width: 160px;
    height: 45px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 1.5rem;
}

.send-details-btn:hover {
    background: white;
    color: #113a6c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Gallery Grid */
.gallery-grid-anarita {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lead Capture Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    color: #666;
    margin-bottom: 2rem;
}

/* Accordion Customization */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content.first {
    max-height: 0;
}

.accordion-trigger.active + .accordion-content {
    max-height: 1000px;
}

/* Color Overrides for Anarita */
.primary-button {
    background-color: var(--anarita-secondary) !important;
    transition: all 0.3s ease;
}

.primary-button:hover {
    background-color: var(--anarita-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.nav-link:hover {
    color: var(--anarita-secondary);
}

/* Hero Video Overlay */
.hero-images-wrapper video {
    filter: brightness(0.8);
}

/* Hide animated overlay blocks */
.animated-overlay-blocks {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-title {
        bottom: 0 !important;
        top: auto !important;
        inset: auto 0 0 0 !important;
    }

    .page-title h1 {
        font-size: 3.5rem;
    }

    .page-title .container {
        padding: 0 2rem;
    }

    .tour-container {
        grid-template-columns: 1fr;
    }

    .house-details-card {
        padding: 2rem;
    }

    .house-name {
        font-size: 1.75rem;
    }

    .next-house-btn {
        padding: 12px 30px;
        font-size: 1rem;
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 80vh !important;
    }

    .hero-images-wrapper {
        height: 80vh !important;
        min-height: 80vh !important;
        max-height: 80vh !important;
    }

    .gallery-grid-anarita {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 200px;
    }

    .house-specs {
        gap: 0.75rem;
    }

    .house-specs .spec {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .house-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 479px) {
    .page-title {
        bottom: 0 !important;
        top: auto !important;
        inset: auto 0 0 0 !important;
    }

    .page-title h1 {
        font-size: 2.5rem;
    }

    .page-title .container {
        padding: 0 1.5rem;
    }

    .page-title p {
        font-size: 1rem !important;
    }

    .next-house-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        bottom: 15px;
    }

    .house-details-card {
        padding: 1.5rem;
    }

    .house-name {
        font-size: 1.5rem;
    }
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--anarita-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--anarita-secondary);
}
