/* BHD Kenya - Main Stylesheet
 * Custom CSS + animation states.
 * Tailwind CDN handles utility classes during development.
 */

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-left.active {
    transform: translateX(0);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-right.active {
    transform: translateX(0);
}

.reveal.reveal-scale {
    transform: scale(0.9);
    opacity: 0;
}

.reveal.reveal-scale.active {
    transform: scale(1);
    opacity: 1;
}

.reveal.reveal-rotate {
    transform: translateY(30px) rotate(-2deg);
    opacity: 0;
}

.reveal.reveal-rotate.active {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

/* Stagger reveal groups — children animate in sequence */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-reveal-stagger].active > * {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HERO SWIPER SLIDER
   ============================================= */
.heroSwiper {
    width: 100%;
    height: auto;
}

/* Gold pagination bullets */
.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(202, 167, 78, 0.4);
    opacity: 1;
    border: 1px solid rgba(202, 167, 78, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 36px;
    border-radius: 6px;
    background: #caa74e;
    border-color: #caa74e;
    box-shadow: 0 0 12px rgba(202, 167, 78, 0.4);
}

.hero-pagination {
    bottom: 28px !important;
}

/* Glass-effect navigation arrows */
.hero-nav.swiper-button-prev,
.hero-nav.swiper-button-next {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.hero-nav.swiper-button-prev:hover,
.hero-nav.swiper-button-next:hover {
    background: rgba(202, 167, 78, 0.2);
    border-color: rgba(202, 167, 78, 0.4);
    transform: scale(1.05);
}

.hero-nav.swiper-button-prev::after,
.hero-nav.swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
    color: #caa74e;
}

/* Slide text entrance animations */
.heroSwiper .swiper-slide-active .hero-slide-badge {
    animation: heroFadeUp 0.6s 0.2s ease-out both;
}
.heroSwiper .swiper-slide-active .hero-slide-title {
    animation: heroFadeUp 0.7s 0.35s ease-out both;
}
.heroSwiper .swiper-slide-active .hero-slide-desc {
    animation: heroFadeUp 0.7s 0.5s ease-out both;
}
.heroSwiper .swiper-slide-active .hero-slide-cta {
    animation: heroFadeUp 0.7s 0.65s ease-out both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   BUTTON BASE STYLES
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #caa74e; /* bhd-gold */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #e6c878; /* bhd-gold-light */
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #1b1f24; /* bhd-dark */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* =============================================
   BUTTON MICRO-INTERACTIONS
   ============================================= */

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Shimmer effect on btn-outline */
.btn-outline {
    position: relative;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(202, 167, 78, 0.08) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-outline:hover::after {
    transform: translateX(100%);
}

/* =============================================
   CARD ENHANCEMENTS
   ============================================= */
.card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 31, 36, 0.12),
                0 8px 16px rgba(27, 31, 36, 0.08);
}

/* =============================================
   TEXT SHIMMER (Gold gradient text)
   ============================================= */
.text-shimmer {
    background: linear-gradient(
        120deg,
        #caa74e 0%,
        #e6c878 25%,
        #caa74e 50%,
        #e6c878 75%,
        #caa74e 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    to { background-position: 200% center; }
}

/* =============================================
   ANIMATED GRADIENT BACKGROUND
   ============================================= */
.animated-gradient {
    background: linear-gradient(
        -45deg,
        #2a336f, #1b1f24, #2a336f, #3a4590
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================================
   FLOATING / UTILITY ANIMATIONS
   ============================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* =============================================
   LINE CLAMP UTILITIES
   ============================================= */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   SCROLLBAR HIDE UTILITY
   ============================================= */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* =============================================
   PROSE CONTENT STYLING (Blog/Pages)
   ============================================= */
.prose-bhd h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1b1f24;
}

.prose-bhd h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1b1f24;
}

.prose-bhd p {
    margin-bottom: 1em;
    line-height: 1.75;
    color: #4b5563;
}

.prose-bhd ul, .prose-bhd ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose-bhd li {
    margin-bottom: 0.5em;
    color: #4b5563;
}

.prose-bhd ul li { list-style: disc; }
.prose-bhd ol li { list-style: decimal; }

.prose-bhd img {
    border-radius: 0.75rem;
    margin: 1.5em 0;
}

.prose-bhd a {
    color: #caa74e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose-bhd a:hover {
    color: #e6c878;
}

.prose-bhd blockquote {
    border-left: 4px solid #caa74e;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #6b7280;
}

.prose-bhd table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.prose-bhd th, .prose-bhd td {
    padding: 0.75em 1em;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.prose-bhd th {
    background: #f5f6f8;
    font-weight: 600;
    color: #1b1f24;
}
