/**
 * Custom Premium Stylesheet for Othala Marroquinería
 */

:root {
    --brand-cream: #efe6df;
    --brand-dark: #1e1b16;
    --brand-taupe: #b2a696;
    --brand-brown: #5d4b3d;
    --brand-rust: #814629;
    --brand-white: #ffffff;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
}

/* Force full width on parent theme containers */
.page-template-homepage #content,
.page-template-homepage .ast-container,
.page-template-homepage #primary,
.page-template-homepage #main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.othala-custom-home {
    background-color: var(--brand-cream);
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.othala-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* General Typography resets for our elements */
.othala-custom-home h1, 
.othala-custom-home h2, 
.othala-custom-home h3, 
.othala-custom-home h4 {
    font-family: var(--font-serif);
    color: var(--brand-dark);
    margin: 0 0 15px 0;
    font-weight: 500;
}

/* Global Buttons */
.othala-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 0; /* Luxury sharp edges */
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.othala-btn-primary {
    background-color: var(--brand-dark);
    color: var(--brand-cream);
    border: 1px solid var(--brand-dark);
}

.othala-btn-primary:hover {
    background-color: var(--brand-rust);
    border-color: var(--brand-rust);
    color: var(--brand-white);
    transform: translateY(-2px);
}

.othala-btn-outline {
    background-color: transparent;
    color: var(--brand-dark);
    border: 1px solid var(--brand-dark);
}

.othala-btn-outline:hover {
    background-color: var(--brand-dark);
    color: var(--brand-cream);
    transform: translateY(-2px);
}

/* 1. Hero Video Banner */
.othala-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    text-align: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30,27,22,0.4) 0%, rgba(30,27,22,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-tagline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--brand-taupe);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(60px, 8vw, 100px);
    line-height: 1.1;
    color: var(--brand-white) !important;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.hero-description {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.8;
    color: var(--brand-cream);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .othala-btn-outline {
    border-color: var(--brand-cream);
    color: var(--brand-cream);
}

.hero-buttons .othala-btn-outline:hover {
    background-color: var(--brand-cream);
    color: var(--brand-dark);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-scroll-indicator span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-taupe);
}

.indicator-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--brand-taupe) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.indicator-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--brand-cream);
    animation: scroll-dot 2s infinite ease-in-out;
}

@keyframes scroll-dot {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(60px); }
}

/* 2. Brand Qualities Section */
.othala-qualities {
    padding: 100px 0;
    background-color: var(--brand-cream);
}

.qualities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.othala-section-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brand-rust);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.othala-section-title {
    font-size: clamp(36px, 4vw, 48px);
    margin-bottom: 30px;
    line-height: 1.2;
}

.qualities-intro {
    font-size: 17px;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--brand-brown);
}

.quality-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    font-size: 24px;
    color: var(--brand-rust);
    margin-top: 5px;
}

.feature-body h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 5px;
}

.feature-body p {
    font-size: 14px;
    color: var(--brand-brown);
    margin: 0;
}

.qualities-video-col {
    display: flex;
    justify-content: center;
}

.luxury-video-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.frame-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.frame-decor {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--brand-rust);
    z-index: -1;
    pointer-events: none;
}

/* 3. Lifestyle Parallax Banner */
.othala-lifestyle {
    position: relative;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    text-align: center;
    overflow: hidden;
}

.lifestyle-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax effect */
    z-index: 1;
}

.lifestyle-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.lifestyle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 27, 22, 0.55);
    z-index: 2;
}

.lifestyle-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 0 20px;
}

.lifestyle-tagline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--brand-taupe);
    display: block;
    margin-bottom: 20px;
}

.lifestyle-title {
    font-size: clamp(38px, 5vw, 56px);
    color: var(--brand-white) !important;
    margin-bottom: 20px;
}

.lifestyle-text {
    font-size: 17px;
    font-weight: 300;
    color: var(--brand-cream);
    margin-bottom: 35px;
}

/* 4. Category Circular Bubbles */
.othala-categories {
    padding: 100px 0 50px 0;
    background-color: var(--brand-cream);
}

.othala-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.header-divider {
    width: 60px;
    height: 1px;
    background-color: var(--brand-rust);
    margin: 20px auto 0 auto;
}

.categories-bubble-wrapper {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.bubble-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 120px;
}

.bubble-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid transparent;
    padding: 3px;
    background-color: var(--brand-cream);
    transition: var(--transition-smooth);
}

.bubble-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.bubble-label {
    margin-top: 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    color: var(--brand-brown);
    transition: var(--transition-fast);
}

/* Hover & Active Bubble States */
.bubble-item:hover .bubble-circle {
    transform: translateY(-5px);
    border-color: var(--brand-rust);
}

.bubble-item:hover .bubble-circle img {
    transform: scale(1.08);
}

.bubble-item:hover .bubble-label {
    color: var(--brand-rust);
}

.bubble-item.active .bubble-circle {
    border-color: var(--brand-dark);
    box-shadow: 0 5px 15px rgba(30, 27, 22, 0.1);
}

.bubble-item.active .bubble-label {
    color: var(--brand-dark);
    font-weight: 700;
}

/* 5. Product Grid */
.othala-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--brand-white);
    border: 1px solid rgba(178, 166, 150, 0.2);
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 27, 22, 0.05);
}

.product-image-container {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: var(--brand-cream);
}

.product-image-primary, .product-image-secondary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Image Hover Swap effect */
.product-card:hover .product-image-primary {
    transform: scale(1.05);
}

.product-card:hover .product-image-secondary {
    opacity: 1;
    transform: scale(1.05);
}

.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 27, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

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

.othala-btn-view {
    background-color: rgba(239, 230, 223, 0.95);
    color: var(--brand-dark);
    border: none;
    padding: 12px 25px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.othala-btn-view:hover {
    background-color: var(--brand-dark);
    color: var(--brand-cream);
}

.product-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-rust);
    margin-bottom: 10px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-brown);
}

/* 6. Our Story (Storytelling Gallery) */
.othala-story {
    padding: 120px 0;
    background-color: var(--brand-white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-cream);
}

.masonry-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.masonry-item:hover .masonry-img {
    transform: scale(1.04);
}

.item-large {
    grid-row: span 2;
    aspect-ratio: 3/4;
}

.item-small {
    aspect-ratio: 1/1;
}

.item-video {
    aspect-ratio: 1/1;
}

.story-text-col {
    padding-right: 20px;
}

.story-paragraph {
    font-size: 16px;
    line-height: 1.8;
    color: var(--brand-brown);
    margin-bottom: 25px;
    font-weight: 300;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(178, 166, 150, 0.3);
    padding-top: 30px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--brand-rust);
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-brown);
    margin-top: 5px;
}

/* 7. Instagram Mockup Section */
.othala-instagram {
    padding: 100px 0;
    background-color: var(--brand-cream);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--brand-dark);
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 27, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: var(--brand-white);
    font-size: 28px;
    transition: var(--transition-fast);
}

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

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.instagram-follow-btn-container {
    text-align: center;
}

/* 8. Product Details Modal */
.othala-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 27, 22, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.othala-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.othala-modal {
    background-color: var(--brand-cream);
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    border-radius: 0;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.othala-modal-backdrop.open .othala-modal {
    transform: scale(1);
}

.othala-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--brand-white);
    border: none;
    color: var(--brand-dark);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.othala-modal-close:hover {
    background-color: var(--brand-rust);
    color: var(--brand-white);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.modal-image-col {
    aspect-ratio: 4/5;
    background-color: var(--brand-cream);
    max-height: 80vh;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-col {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-title {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 10px;
}

.modal-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(178, 166, 150, 0.3);
    margin: 25px 0;
}

.modal-detail-section {
    margin-bottom: 25px;
}

.modal-detail-section h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-rust);
    margin-bottom: 8px;
}

.modal-detail-section p {
    font-size: 14px;
    color: var(--brand-brown);
    margin: 0;
    line-height: 1.6;
}

.modal-cta-box {
    margin-top: 15px;
    background-color: var(--brand-white);
    padding: 25px;
    border: 1px solid rgba(178, 166, 150, 0.2);
}

.cta-notice {
    font-size: 12px;
    color: var(--brand-brown);
    margin-bottom: 15px;
}

.modal-cta-box .othala-btn {
    width: 100%;
}

/* 9. Floating WhatsApp Button */
.othala-floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--brand-rust);
    color: var(--brand-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(129, 70, 41, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.othala-floating-whatsapp::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--brand-rust);
    animation: whatsapp-pulse 2s infinite ease-out;
}

.othala-floating-whatsapp:hover {
    background-color: var(--brand-dark);
    transform: scale(1.08);
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll Reveals classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    .qualities-grid, .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .qualities-video-col {
        order: -1;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-info-col {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .insta-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .othala-btn {
        width: 80%;
    }
}

/* Custom Header Overlay and Glassmorphism for Astra Header */
.othala-header-trans {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: transparent !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(239, 230, 223, 0.1) !important;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease !important;
}

/* Make Astra menu items light/white initially to contrast with dark hero */
.othala-header-trans .main-navigation a,
.othala-header-trans .main-header-bar a,
.othala-header-trans .ast-custom-button,
.othala-header-trans .main-header-menu a,
.othala-header-trans .menu-link {
    color: var(--brand-cream) !important;
    transition: var(--transition-fast) !important;
}

.othala-header-trans .main-navigation a:hover,
.othala-header-trans .main-header-bar a:hover,
.othala-header-trans .main-header-menu a:hover,
.othala-header-trans .menu-link:hover {
    color: var(--brand-taupe) !important;
}

/* Scrolled state: glassmorphism, light background, dark text */
.othala-header-scrolled {
    position: fixed !important;
    background-color: rgba(239, 230, 223, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(30, 27, 22, 0.08) !important;
    box-shadow: 0 4px 20px rgba(30, 27, 22, 0.05);
}

.othala-header-scrolled .main-navigation a,
.othala-header-scrolled .main-header-bar a,
.othala-header-scrolled .main-header-menu a,
.othala-header-scrolled .menu-link {
    color: var(--brand-dark) !important;
}

.othala-header-scrolled .main-navigation a:hover,
.othala-header-scrolled .main-header-bar a:hover,
.othala-header-scrolled .main-header-menu a:hover,
.othala-header-scrolled .menu-link:hover {
    color: var(--brand-rust) !important;
}

/* Hide theme title on homepage header if we want it clean */
.page-template-template-othala .site-title,
.page-template-template-othala .site-description {
    color: inherit !important;
}

