/*
Theme Name: Travixa
Author: Dev Pixas
Description: A highly speed-optimized custom theme for luxury resorts and villas.
Version: 1.1
Text Domain: travixa
Domain Path: /languages
*/

*, *::after, *::before { box-sizing: border-box; }
body, html { margin: 0; padding: 0; width: 100%; max-width: 100vw; overflow-x: clip !important; }

/* ==========================================
   LENIS SMOOTH SCROLL REQUIRED CSS
   ========================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ==========================================
   GLOBAL VARIABLES & TYPOGRAPHY
   ========================================== */
:root {
    --bg-cream: #f4f3ef;
    --bg-olive: #454b42;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --accent-color: #a4967a;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --primary-blue: transparent; /* Reset for old variables */
    --text-white: #fff;
}

/* 
   FIX: Removed 'background-color' from 'body, p' so that paragraphs 
   remain completely transparent and inherit the section's background color.
*/
body, p { 
    font-family: var(--font-sans); 
    font-size: 16px; 
    font-weight: 300; 
    line-height: 1.8; 
    color: var(--text-dark); 
    /* background-color: var(--bg-cream);  <-- This was causing the white box issue */
}

/* Added background to body only, so it acts as default page color but not on every p tag */
body { background-color: var(--bg-cream); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; margin-top: 0; }
h1 { font-size: 4rem; line-height: 1.1; letter-spacing: -1px;}
h2 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 2rem; margin-bottom: 15px; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }

/* ==========================================
   HEADER DESKTOP - TRAVIXA CUSTOM
   ========================================== */
.site-header { position: absolute; top:0; left:0; width:100%; z-index: 1000; background-color: transparent; padding: 20px 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--text-light); transition: background 0.3s; }
.header-left { display: flex; align-items: center; justify-content: flex-start; }
.header-center { display: flex; align-items: center; justify-content: center; text-align: center; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

/* Hamburger Menu Icon (Forced on Desktop) */
.desktop-hamburger { display: block !important; background: none; border: none; cursor: pointer; color: var(--text-light); padding: 0; margin-right: 20px; }
.desktop-hamburger svg { width: 35px; height: 35px; stroke: currentColor; }
.site-header.scrolled { background-color: rgba(0,0,0,0.8); position: fixed; height: auto; padding: 15px 40px;}

.header-logo a { font-family: var(--font-serif); font-size: 24px; font-weight: 400; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; }
.header-logo img { max-height: 40px; }

.btn-book-now { background-color: transparent; color: var(--text-light); padding: 10px 25px; border: 1px solid var(--text-light); border-radius: 30px; font-family: var(--font-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; }
.btn-book-now:hover { background-color: var(--text-light); color: var(--text-dark); }

/* Hide standard desktop nav since hamburger is used */
.header-nav.desktop-only { display: none !important; }

/* ==========================================
   NEW HOMEPAGE LAYOUT (MATCHING SCREENSHOT)
   ========================================== */
.travixa-hero { height: 100vh; position: relative; display: flex; align-items: flex-end; padding: 60px; background-size: cover; background-position: center; }
.travixa-hero::after { content: ''; position: absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%); pointer-events: none; }
.travixa-hero-content { position: relative; z-index: 2; color: var(--text-light); width: 100%; max-width: 1200px; margin: 0 auto; }
.travixa-hero-content h1 { font-size: 5vw; text-transform: uppercase; line-height: 1; margin:0; }

.travixa-section { padding: 120px 5%; width: 100%; }
.travixa-section.olive-bg { background-color: var(--bg-olive); color: var(--text-light); }

.travixa-container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.subtitle { font-family: var(--font-sans); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; display: block; opacity: 0.7; }
.intro-text { max-width: 800px; margin: 0 auto 80px; }
.intro-text h2 { font-size: 3rem; line-height: 1.3;}

/* Image Grids & Alternating Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.align-start { align-items: flex-start; }
.grid-img { width: 100%; height: auto; object-fit: cover; }
.stagger-img-1 { margin-top: -50px; }
.stagger-img-2 { width: 80%; margin-left: auto; }

.suite-card { display: flex; align-items: center; gap: 40px; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); padding: 40px 0; margin-top: 60px; }
.suite-card h3 { font-size: 3rem; margin:0; }
.suite-controls { display: flex; gap: 15px; }
.suite-controls button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; cursor: pointer; transition: 0.3s; }
.suite-controls button:hover { background: #fff; color: var(--bg-olive); }

.masonry-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; margin-top: 60px; }
.masonry-item-1 { grid-column: 1 / 6; }
.masonry-item-2 { grid-column: 6 / 13; margin-top: 100px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.service-card img { width: 100%; height: 400px; object-fit: cover; margin-bottom: 20px; }
.service-card h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-top: 1px solid #ddd; padding-top: 15px; }

.instagram-feed { display: flex; gap: 20px; margin-top: 60px; overflow-x: auto; padding-bottom: 20px; }
.instagram-feed img { width: 300px; height: 300px; object-fit: cover; flex-shrink: 0; }

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    .site-header { padding: 15px 20px; grid-template-columns: auto 1fr auto; gap: 15px; }
    .header-logo a { font-size: 18px; }
    .btn-book-now { padding: 8px 15px; font-size: 11px; }
    .grid-2, .cards-3 { grid-template-columns: 1fr; gap: 40px; }
    .masonry-layout { display: flex; flex-direction: column; gap: 20px; }
    .masonry-item-2 { margin-top: 0; }
    .travixa-hero-content h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .travixa-section { padding: 80px 20px; }
}

@media (max-width: 768px) {
    .desktop-hamburger svg { width: 30px; height: 30px; }
}