/*
Theme Name: IBJ - Incredible Bharat Journey
Theme URI: https://incrediblebharatjourney.com
Author: IBJ Bespoke Digital
Author URI: https://incrediblebharatjourney.com
Description: Ultra-luxury, animated editorial WordPress theme crafted for IBJ — Incredible Bharat Journey. Designed for bespoke royal Indian travel packages, private aviation, heritage palace stays, and curated expeditions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ibj-incredible-bharat
Tags: luxury, travel, dark-mode, animations, custom-post-type, responsive
*/

:root {
    --ibj-obsidian: #0B0D10;
    --ibj-charcoal: #13171D;
    --ibj-gold: #D4AF37;
    --ibj-gold-light: #F3E5AB;
    --ibj-gold-dim: rgba(212, 175, 55, 0.25);
    --ibj-alabaster: #F8F6F1;
    --ibj-muted: #9BA1A6;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--ibj-obsidian);
    color: var(--ibj-alabaster);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--ibj-obsidian);
    color: var(--ibj-alabaster);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.35s var(--ease-luxury);
}

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

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Preloader */
#ibj-preloader {
    position: fixed;
    inset: 0;
    background: var(--ibj-obsidian);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s var(--ease-luxury), visibility 0.9s;
}
#ibj-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-monogram {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    letter-spacing: 0.35em;
    color: var(--ibj-gold);
    animation: pulseGold 2s infinite ease-in-out;
}
.preloader-line {
    width: 140px;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin-top: 1.25rem;
    position: relative;
    overflow: hidden;
}
.preloader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ibj-gold);
    animation: lineSweep 1.4s var(--ease-luxury) forwards;
}

@keyframes pulseGold {
    0%, 100% { opacity: 0.65; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}
@keyframes lineSweep {
    to { left: 100%; }
}

/* Custom Cursor Follower */
.ibj-cursor {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ibj-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-luxury), height 0.3s var(--ease-luxury), background-color 0.3s;
    mix-blend-mode: difference;
}
.ibj-cursor.hovering {
    width: 56px;
    height: 56px;
    background-color: rgba(212, 175, 55, 0.15);
}

/* Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.5s var(--ease-luxury), padding 0.5s var(--ease-luxury), border-color 0.5s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background-color: rgba(11, 13, 16, 0.92);
    backdrop-filter: blur(14px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--ibj-gold-dim);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand-emblem {
    width: 44px;
    height: 44px;
    border: 1px solid var(--ibj-gold);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--ibj-gold);
    letter-spacing: 0.12em;
    transform: rotate(45deg);
    transition: transform 0.6s var(--ease-luxury);
}
.brand-emblem span {
    transform: rotate(-45deg);
}
.brand-logo:hover .brand-emblem {
    transform: rotate(225deg);
}
.brand-logo:hover .brand-emblem span {
    transform: rotate(-225deg);
}
.brand-text-wrap {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    letter-spacing: 0.18em;
    color: var(--ibj-alabaster);
    line-height: 1.1;
}
.brand-subtitle {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--ibj-gold);
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.main-nav a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ibj-alabaster);
    position: relative;
    padding-bottom: 4px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ibj-gold);
    transition: width 0.4s var(--ease-luxury);
}
.main-nav a:hover {
    color: var(--ibj-gold);
}
.main-nav a:hover::after {
    width: 100%;
}

/* Luxury Buttons */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 2.25rem;
    border: 1px solid var(--ibj-gold);
    color: var(--ibj-gold);
    background: transparent;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.45s var(--ease-luxury);
}
.btn-luxury::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ibj-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.55s var(--ease-luxury);
    z-index: -1;
}
.btn-luxury:hover {
    color: var(--ibj-obsidian);
}
.btn-luxury:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section with Ken Burns Slow Zoom */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: kenBurns 22s infinite alternate ease-in-out;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(11,13,16,0.45) 0%, rgba(11,13,16,0.92) 100%);
    z-index: 1;
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding: 0 1.5rem;
}
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--ibj-gold);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 1.08;
    margin-bottom: 1.75rem;
    color: var(--ibj-alabaster);
}
.hero-title em {
    font-style: italic;
    color: var(--ibj-gold-light);
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--ibj-muted);
    max-width: 640px;
    margin: 0 auto 2.75rem;
    font-weight: 300;
}
.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ibj-gold);
}
.scroll-cue-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--ibj-gold), transparent);
    animation: scrollDrop 2s infinite ease-in-out;
}
@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Sections & Grid */
.section-padding {
    padding: 7.5rem 0;
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4.5rem;
}
.section-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}
.gold-divider {
    width: 64px;
    height: 1px;
    background: var(--ibj-gold);
    margin: 1.5rem auto;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}
.package-card {
    background: var(--ibj-charcoal);
    border: 1px solid rgba(212, 175, 55, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s var(--ease-luxury), border-color 0.6s var(--ease-luxury), box-shadow 0.6s;
}
.package-card:hover {
    transform: translateY(-10px);
    border-color: var(--ibj-gold);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
}
.package-thumb {
    position: relative;
    height: 290px;
    overflow: hidden;
}
.package-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease-luxury);
}
.package-card:hover .package-thumb img {
    transform: scale(1.09);
}
.package-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(11, 13, 16, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--ibj-gold-dim);
    color: var(--ibj-gold);
    padding: 0.4rem 0.95rem;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.package-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.package-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ibj-gold);
    margin-bottom: 0.85rem;
}
.package-title {
    font-size: 1.75rem;
    margin-bottom: 0.9rem;
    line-height: 1.25;
}
.package-excerpt {
    color: var(--ibj-muted);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}
.package-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.package-price span {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ibj-muted);
}
.package-price strong {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--ibj-gold-light);
    font-weight: 500;
}

/* Royal Pillars / Bespoke Experience */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.pillar-box {
    padding: 2.75rem 2.25rem;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(145deg, rgba(19, 23, 29, 0.9), rgba(11, 13, 16, 0.95));
    transition: border-color 0.4s;
}
.pillar-box:hover {
    border-color: var(--ibj-gold);
}
.pillar-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--ibj-gold);
    margin-bottom: 1rem;
    display: block;
}

/* Concierge Modal & Form */
.ibj-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.88);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.ibj-modal.open {
    display: flex;
}
.modal-card {
    background: var(--ibj-charcoal);
    border: 1px solid var(--ibj-gold);
    max-width: 580px;
    width: 100%;
    padding: 3rem;
    position: relative;
    animation: modalFade 0.5s var(--ease-luxury);
}
@keyframes modalFade {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--ibj-gold);
    font-size: 1.75rem;
    cursor: pointer;
}
.ibj-form-group {
    margin-bottom: 1.25rem;
}
.ibj-form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ibj-gold);
    margin-bottom: 0.45rem;
}
.ibj-form-group input,
.ibj-form-group select,
.ibj-form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--ibj-obsidian);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--ibj-alabaster);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}
.ibj-form-group input:focus,
.ibj-form-group select:focus,
.ibj-form-group textarea:focus {
    outline: none;
    border-color: var(--ibj-gold);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--ibj-gold-dim);
    padding: 5rem 0 2.5rem;
    background: #08090C;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 3.5rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--ibj-muted);
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .ibj-cursor { display: none; }
}
