/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - CASA PRIMAVERA
   ========================================================================== */
:root {
    color-scheme: light only;
    /* Color Palette */
    --color-sage: #738662;
    --color-sage-light: #90a380;
    --color-sage-dark: #58694b;
    --color-sage-rgb: 115, 134, 98;
    
    --color-coral: #E37E65;
    --color-coral-light: #f19780;
    --color-coral-dark: #cc634a;
    --color-coral-rgb: 227, 126, 101;
    
    --color-cream: #FAF6F0;
    --color-cream-light: #FDFBF8;
    --color-cream-dark: #EFEAE0;
    
    --color-text: #3C3B38;
    --color-text-muted: #72706C;
    --color-white: #ffffff;
    
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(115, 134, 98, 0.05);
    --shadow-md: 0 12px 32px rgba(115, 134, 98, 0.1);
    --shadow-lg: 0 20px 48px rgba(48, 51, 46, 0.15);
    
    /* Layout */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 28px;
    
    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

iframe {
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
}

h2 {
    font-size: 2.25rem;
    color: var(--color-sage-dark);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-text);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-sage-dark);
    margin-bottom: 1.25rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.sub-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-coral);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-coral);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(227, 126, 101, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 126, 101, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--color-sage);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(115, 134, 98, 0.2);
}

.btn-secondary:hover {
    background-color: var(--color-sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 134, 98, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    font-weight: 600;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-call {
    background-color: var(--color-cream-light);
    color: var(--color-sage-dark);
    border: 2px solid var(--color-sage);
    font-weight: 600;
    gap: 10px;
}

.btn-call:hover {
    background-color: var(--color-sage);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 134, 98, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-sage-dark);
    border: 2px solid var(--color-sage);
    gap: 8px;
    font-weight: 500;
}

.btn-outline:hover {
    background-color: var(--color-sage);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-icon, .btn-arrow, .btn-arrow-out {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   HERO / HEADER SECTION
   ========================================================================== */
.hero {
    position: relative;
    background: radial-gradient(circle at top, var(--color-cream-light) 0%, var(--color-cream) 100%);
    padding: 5rem 0 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-cream-dark);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: radial-gradient(var(--color-sage) 1px, transparent 0);
    background-size: 24px 24px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
    border-radius: 50%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 5px;
    animation: fadeInScale 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-sage-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-coral);
    font-style: italic;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: var(--color-sage-light);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-divider span.flower-icon {
    font-size: 1.25rem;
    color: var(--color-coral);
}

.hero-divider::before, .hero-divider::after {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background-color: var(--color-cream-dark);
}

.hero-tagline {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Animations */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.about-text p strong {
    color: var(--color-text);
}

.about-card {
    background-color: var(--color-cream);
    border: 1px solid var(--color-cream-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.about-card-badge {
    position: absolute;
    top: -12px;
    left: 28px;
    background-color: var(--color-sage);
    color: var(--color-white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.info-icon {
    font-size: 1.75rem;
    background-color: var(--color-white);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-list li strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.info-list li span {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   VR TOURS SECTION
   ========================================================================== */
.tours-section {
    padding: 6rem 0;
    background-color: var(--color-cream);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.tour-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid rgba(115, 134, 98, 0.08);
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tour-thumbnail-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.tour-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover .tour-thumbnail {
    transform: scale(1.06);
}

.tour-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(90, 105, 75, 0.4);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.tour-card:hover .tour-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 70px;
    height: 70px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.play-icon {
    width: 32px;
    height: 32px;
    fill: var(--color-sage-dark);
    margin-left: 4px; /* offset slightly to visually center the play triangle */
}

.tour-card:hover .play-btn-circle {
    transform: scale(1);
    background-color: var(--color-coral);
}

.tour-card:hover .play-icon {
    fill: var(--color-white);
}

.tour-info {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-badge {
    align-self: flex-start;
    background-color: rgba(227, 126, 101, 0.1);
    color: var(--color-coral-dark);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tour-info h3 {
    margin-bottom: 0.75rem;
}

.tour-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.tour-footer {
    margin-top: auto;
}

.tour-footer .btn {
    width: 100%;
    gap: 8px;
}

/* ==========================================================================
   FEATURES / SERVICES SECTION
   ========================================================================== */
.features-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-cream-dark);
}

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

.feature-item {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(115, 134, 98, 0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.feature-item:hover .feature-icon-wrapper {
    background-color: var(--color-sage);
    color: var(--color-white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(115, 134, 98, 0.2);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   BOOKING & CONTACT SECTION
   ========================================================================== */
.booking-section {
    padding: 6rem 0;
    background-color: var(--color-cream);
}

.booking-card-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.booking-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--color-cream-dark);
}

.booking-content {
    padding: 3.5rem;
}

.booking-content h2 {
    margin-bottom: 1rem;
}

.booking-content p {
    color: var(--color-text-muted);
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-buttons .btn {
    justify-content: flex-start;
    padding-left: 2rem;
}

.booking-details {
    background-color: var(--color-cream-light);
    border-left: 1px solid var(--color-cream-dark);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.details-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.details-item p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.4;
}

.details-item strong {
    color: var(--color-sage-dark);
}

.booking-details .btn-outline {
    width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-sage-dark);
    color: var(--color-cream-light);
    padding: 4rem 0 3rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-sage);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info .footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-cream);
    margin-bottom: 0.5rem;
}

.footer-info .footer-address {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-info .footer-cin {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-credits {
    text-align: right;
}

.footer-credits p {
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.footer-credits .webgl-credit {
    font-size: 0.8rem;
    opacity: 0.5;
    font-style: italic;
}

/* ==========================================================================
   3D VR VIEWER MODAL
   ========================================================================== */
.vr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vr-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(48, 51, 46, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    z-index: 10000;
    width: 94vw;
    height: 88vh;
    background-color: #000000;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vr-modal.active .modal-container {
    transform: scale(1);
}

/* Modal Controls */
.modal-header {
    background-color: var(--color-cream-light);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-cream-dark);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-sage-dark);
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-muted);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-btn:hover {
    background-color: var(--color-cream-dark);
    color: var(--color-sage-dark);
}

.modal-btn.close-btn:hover {
    background-color: #fde8e4;
    color: var(--color-coral-dark);
}

.control-svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Modal Body */
.modal-body {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: calc(100% - 54px);
    background-color: #000000;
}

#vr-iframe {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000000;
}

/* Loading Overlay */
.modal-loader {
    position: absolute;
    inset: 0;
    background-color: #1e201c;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.modal-loader p {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--color-cream);
    opacity: 0.8;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(227, 126, 101, 0.2);
    border-radius: 50%;
    border-top-color: var(--color-coral);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE STYLES (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

/* Tablet viewports (< 992px) */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .booking-card {
        grid-template-columns: 1fr;
    }
    
    .booking-details {
        border-left: none;
        border-top: 1px solid var(--color-cream-dark);
        padding: 3rem 3.5rem;
    }
}

/* Mobile viewports (< 768px) */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    .hero {
        padding: 4rem 0 5rem 0;
    }
    
    .logo-wrapper {
        width: 170px;
        height: 170px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-divider::before, .hero-divider::after {
        width: 50px;
    }
    
    .about-section, .tours-section, .features-section, .booking-section {
        padding: 4.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .about-card {
        padding: 2rem 1.5rem;
    }
    
    .booking-content {
        padding: 2.5rem 2rem;
    }
    
    .booking-details {
        padding: 2.5rem 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-credits {
        text-align: center;
    }
    
    /* VR Modal fullscreen on mobile for best visibility */
    .modal-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }

    /* General buttons mobile resize to prevent layout wrapping */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    .tour-footer .btn {
        padding: 0.75rem 1rem;
    }
}

/* Small mobile viewports (< 480px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .contact-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

