/* 
 * Beautic Travel - Boutique Design System v2
 * Palette: Deep Navy, Gold, White, Obsidian
 */

:root {
    --navy: #001f3f;
    --navy-dark: #001326;
    --gold: #D4AF37;
    --gold-bright: #F9E27A;
    --gold-hover: #C5A022;
    --obsidian: #1a1a1a;
    --light-bg: #fdfdfd;
    --white: #ffffff;
    --text-dark: #1a1a1a; /* Deeper for better contrast */
    --text-muted: #777777;
    --glass: rgba(255, 255, 255, 0.92);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

/* Theme Awareness: Force light text on dark sections, but respect nested light surfaces */
.text-white, .bg-navy, .hero {
    color: var(--white);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5, .bg-navy h6,
.hero h1, .hero h2 {
    color: var(--white) !important;
}

/* Glass Surface Override: Text inside light glass boxes should always be high contrast (Navy) */
.search-box-luxury, .card-luxury {
    color: var(--text-dark) !important;
}
.search-box-luxury h1, .search-box-luxury h2, .search-box-luxury h3, .search-box-luxury h4,
.card-luxury h1, .card-luxury h2, .card-luxury h3, .card-luxury h4 {
    color: var(--navy) !important;
}

.success-message-text {
    color: var(--text-dark);
}
.bg-navy > .success-message-text, .hero > .success-message-text {
    color: var(--white);
}
/* Specific override for success text inside glass boxes */
.search-box-luxury .success-message-text {
    color: var(--text-dark) !important;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: var(--white);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-hover), var(--gold));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--glass) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.02);
}
.navbar-brand img {
    height: 65px;
    width: auto;
    transition: all 0.4s ease;
}
.navbar.shadow-lg .navbar-brand img {
    height: 55px;
}
.nav-link {
    font-weight: 700;
    color: var(--navy) !important;
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold) !important; }

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 0;
    background-size: cover;
    background-position: center;
    background-color: var(--navy); /* Fallback */
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,31,63,0.7), rgba(0,31,63,0.4));
}
.hero-content {
    position: relative;
    z-index: 1;
}

/* Luxury Card */
.card-luxury {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
    background: var(--white);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}
.card-luxury:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--gold-bright);
}
.card-luxury .card-img-wrap {
    height: 280px;
    overflow: hidden;
    background: #eee;
}
.card-luxury img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.card-luxury:hover img {
    transform: scale(1.08);
}

/* Sections */
.section-padding { padding: 100px 0; }
.bg-light-gold { background-color: #fdfaf0 !important; }
.bg-navy, .luxury-cta-section { 
    background-color: var(--navy) !important; 
    position: relative;
    z-index: 1;
}
.luxury-cta-section h2, .luxury-cta-section p {
    color: var(--white) !important;
}

/* Search Box Glass */
.search-box-luxury {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Footer Improvements */
footer {
    background-color: var(--navy-dark);
    color: rgba(255,255,255,0.6);
    padding: 100px 0 40px;
}
footer h5 { 
    color: var(--white); 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 2px; 
    margin-bottom: 30px;
}
footer .footer-logo {
    font-size: 1.5rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    display: block;
}
footer .nav-link { padding: 0; margin-bottom: 15px; color: rgba(255,255,255,0.6) !important; text-transform: none; font-size: 0.9rem; }
footer .nav-link:hover { color: var(--gold) !important; }

/* Typography Helpers */
.display-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.subtitle-gold {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800; /* Increased for contrast */
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

/* Animations */
.animate-up {
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}
/* Preloader Pulse */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.filter-grayscale { filter: grayscale(1); transition: filter 0.3s ease; }
.filter-grayscale:hover { filter: grayscale(0); }

.hover-gold:hover { color: var(--gold) !important; transform: translateY(-2px); }

/* God Mode Typograhpy Overrides */
.legal-content h4 {
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin-top: 3rem !important;
}

/* ----------------------------------------------------------------------
 * WIDGET INTEGRATION
 * ---------------------------------------------------------------------- */

tp-cascoon {
    --primary-color: var(--navy) !important;
    --primary-bg-text-color: var(--white) !important;
    --dark-color: var(--text-dark) !important;
    --light-color: #ffffff !important;
    --special-color: rgba(212, 175, 55, 0.2) !important;
    --border-radius: 4px !important;
    margin-bottom: 0 !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    min-height: 80px; /* Prevent layout shift */
}

/* Fix for widget power-by label */
.tp_powered_by {
    opacity: 0.3 !important;
    filter: grayscale(1) !important;
    transition: opacity 0.3s ease !important;
}
.tp_powered_by:hover {
    opacity: 0.7 !important;
}

/* Ensure inputs in widgets look premium */
tp-cascoon input, tp-cascoon select, tp-cascoon button {
    border-radius: 2px !important;
}
