/* ==========================================================================
   BUCEO.CO — Premium Design Layer
   "Organic Ocean Identity"
   
   This file overrides Tailwind defaults and styles.css generics.
   Load AFTER styles.css and Tailwind CDN in main.php.
   ========================================================================== */


/* ══════════════════════════════════════════════════════════════════════════
   1. TYPOGRAPHY — Montserrat Display + DM Sans Body
   ══════════════════════════════════════════════════════════════════════════ */

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Montserrat', 'Outfit', system-ui, sans-serif !important;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 800;
    line-height: 1.1;
}

h3 {
    font-weight: 700;
    line-height: 1.15;
}

body,
p,
span,
a,
li,
label,
input,
textarea,
select,
button {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}


/* ══════════════════════════════════════════════════════════════════════════
   2. ORGANIC SHAPES — Asymmetric Border Radius
   ══════════════════════════════════════════════════════════════════════════ */

/* "Water Drop" — top-right heavily rounded, rest subtle */
.radius-organic {
    border-radius: 8px 40px 8px 24px;
}

/* "Wave" — alternating radius for editorial feel */
.radius-wave {
    border-radius: 24px 8px 24px 8px;
}

/* "Pebble" — beach stone shape */
.radius-pebble {
    border-radius: 32px 16px 32px 8px;
}

/* "Coral" — inverse water drop */
.radius-coral {
    border-radius: 40px 8px 24px 8px;
}

/* Hero images — dramatic asymmetric */
.radius-hero {
    border-radius: 4px 48px 4px 32px;
}

/* ── Apply organic radius to trip/course/product cards globally ── */
.card-lift,
article[class*="rounded"] {
    border-radius: 8px 32px 8px 20px !important;
}

/* Card images inherit the top shape only */
.card-lift .relative:first-child,
article[class*="rounded"] .relative:first-child {
    border-radius: 8px 32px 0 0;
    overflow: hidden;
}

/* ── Overlap / Negative margin ── */
.overlap-up {
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}

.overlap-up-sm {
    margin-top: -1.5rem;
    position: relative;
    z-index: 10;
}


/* ══════════════════════════════════════════════════════════════════════════
   3. OCEAN SHADOWS — Colored & Diffused
   ══════════════════════════════════════════════════════════════════════════ */

/* Replace generic grey shadows with ocean-tinted ones */
:root {
    --shadow-ocean: 0 8px 30px -8px rgba(14, 165, 233, 0.18);
    --shadow-ocean-lg: 0 16px 50px -12px rgba(14, 165, 233, 0.22);
    --shadow-ocean-xl: 0 24px 60px -15px rgba(14, 165, 233, 0.28);
    --shadow-deep: 0 12px 40px -10px rgba(6, 44, 65, 0.25);
    --shadow-abyss: 0 20px 50px -15px rgba(6, 44, 65, 0.35);
    --shadow-warm: 0 8px 30px -8px rgba(255, 107, 53, 0.15);
}

/* Cards get ocean shadows */
.card-lift,
article[class*="rounded"],
.card {
    box-shadow: var(--shadow-ocean) !important;
}

.card-lift:hover,
article[class*="rounded"]:hover,
.card:hover {
    box-shadow: var(--shadow-ocean-xl) !important;
}

/* Buttons get matching colored shadows */
a[class*="bg-cyan"],
button[class*="bg-cyan"],
a[class*="bg-ocean"],
button[class*="bg-ocean"] {
    box-shadow: 0 6px 25px -5px rgba(14, 165, 233, 0.35);
}

a[class*="bg-green"],
button[class*="bg-green"] {
    box-shadow: 0 6px 25px -5px rgba(37, 211, 102, 0.35);
}

/* Utility classes */
.shadow-ocean {
    box-shadow: var(--shadow-ocean) !important;
}

.shadow-ocean-lg {
    box-shadow: var(--shadow-ocean-lg) !important;
}

.shadow-ocean-xl {
    box-shadow: var(--shadow-ocean-xl) !important;
}

.shadow-deep {
    box-shadow: var(--shadow-deep) !important;
}

.shadow-abyss {
    box-shadow: var(--shadow-abyss) !important;
}

.shadow-warm {
    box-shadow: var(--shadow-warm) !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   4. BRAND VISUAL ELEMENTS — Custom bullets, accents, micro-details
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Custom list bullets: ocean dot ── */
.rich-text ul li::before,
.brand-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #0ba5ec, #065986);
    border-radius: 50%;
    margin-right: 0.75rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.brand-list li {
    display: flex;
    align-items: baseline;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #334155;
}

/* ── Brand check marks (for feature lists) ── */
.brand-check li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0ba5ec 0%, #065986 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.brand-check li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

/* ── Subtle decorative line ("wave accent") ── */
.wave-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0ba5ec, #36bffa, transparent);
    border-radius: 2px;
    margin-top: 0.75rem;
}

.wave-accent-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0ba5ec, #36bffa, transparent);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* ── Section labels (replace uppercase tracking) ── */
.section-label {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #0ba5ec;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}


/* ══════════════════════════════════════════════════════════════════════════
   5. TEXTURE & DEPTH — Gradients, surfaces, no flat white
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Surface backgrounds (replaces flat bg-white / bg-slate-50) ── */
.surface-light {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.surface-warm {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 40%, #f8fafc 100%);
}

/* Ocean depth gradient for dark sections */
.surface-abyss {
    background: linear-gradient(180deg, #0f172a 0%, #062c41 40%, #0b4a6f 100%);
}

.surface-deep {
    background: linear-gradient(180deg, #0b4a6f 0%, #065986 50%, #026aa2 100%);
}

/* Subtle grain texture overlay */
.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.grain {
    position: relative;
}

.grain>* {
    position: relative;
    z-index: 1;
}

/* ── Mesh gradient for hero sections ── */
.mesh-ocean {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 44, 65, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
}

/* ── "Glass" card for overlaying dark backgrounds ── */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px 32px 8px 20px;
}


/* ══════════════════════════════════════════════════════════════════════════
   6. TRIP CARD — "Roatán" Style Override
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Card container: organic shape + ocean shadow ── */
.trip-card-premium {
    position: relative;
    background: #fff;
    border-radius: 8px 36px 8px 24px;
    overflow: hidden;
    box-shadow: var(--shadow-ocean-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.08);
}

.trip-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-ocean-xl);
}

/* ── Image: asymmetric top + inner shadow ── */
.trip-card-premium .trip-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.trip-card-premium .trip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.trip-card-premium:hover .trip-card-image img {
    transform: scale(1.08);
}

/* Inner vignette on image */
.trip-card-premium .trip-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 40%,
            rgba(6, 44, 65, 0.5) 100%);
    pointer-events: none;
}

/* ── Badge: glassmorphism ── */
.trip-card-premium .trip-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.85rem;
    border-radius: 4px 16px 4px 12px;
}

/* ── Date bar: overlaps image ── */
.trip-card-premium .trip-date-bar {
    position: relative;
    margin-top: -1.25rem;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    z-index: 5;
    background: linear-gradient(135deg, #0b4a6f, #065986);
    color: #fff;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 6px 18px 6px 14px;
    box-shadow: 0 4px 15px -4px rgba(6, 44, 65, 0.4);
}

/* ── Card body ── */
.trip-card-premium .trip-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.trip-card-premium .trip-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    transition: color 0.3s;
}

.trip-card-premium:hover .trip-title {
    color: #026aa2;
}

.trip-card-premium .trip-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ── Price section ── */
.trip-card-premium .trip-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.trip-card-premium .trip-price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 600;
}

.trip-card-premium .trip-price {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.trip-card-premium .trip-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #026aa2;
    transition: all 0.3s;
}

.trip-card-premium:hover .trip-cta {
    color: #0ba5ec;
    gap: 0.6rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   MICRO-ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Staggered children (add class to parent grid) */
.stagger-cards>*:nth-child(1) {
    animation-delay: 0s;
}

.stagger-cards>*:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-cards>*:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-cards>*:nth-child(4) {
    animation-delay: 0.3s;
}

.stagger-cards>*:nth-child(5) {
    animation-delay: 0.4s;
}

.stagger-cards>*:nth-child(6) {
    animation-delay: 0.5s;
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

    /* Slightly less dramatic radius on mobile */
    .card-lift,
    article[class*="rounded"] {
        border-radius: 8px 24px 8px 16px !important;
    }

    .trip-card-premium {
        border-radius: 8px 24px 8px 16px;
    }

    .trip-card-premium .trip-date-bar {
        margin-top: -1rem;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        border-radius: 4px 14px 4px 10px;
    }
}