/**
 * Homepage — CSS
 *
 * Covers: hero, trust bar, featured tours, why choose us,
 * destinations grid, social proof, how it works, blog highlights,
 * WhatsApp CTA, and all homepage-specific cards.
 */


/* =========================================================================
   SHARED SECTION STYLES
   ========================================================================= */

.dn-section {
    padding: var(--dn-section-py, clamp(4rem, 3rem + 4vw, 7.5rem)) 0;
}

/* Tours grid — shared with archive pages */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
@media (max-width: 960px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.dn-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.dn-section__title {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    font-weight: 700;
    color: var(--dn-text, #1A1A18);
    margin: 0;
    line-height: 1.2;
}
.dn-section__title--center {
    text-align: center;
    margin-bottom: 40px;
}

.dn-section__link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--dn-accent, #E8A045);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease;
}
.dn-section__link:hover {
    gap: 10px;
}


/* =========================================================================
   1. HERO — Full-viewport, single image
   ========================================================================= */

.hero-home {
    position: relative;
    height: 85vh;
    height: 85svh;
    min-height: 500px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-home__bg {
    position: absolute;
    inset: 0;
}
.hero-home__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: dn-ken-burns 25s ease-in-out infinite alternate;
}
/* Ken Burns — subtle cinematic zoom per Black Tomato/Lonely Planet */
@keyframes dn-ken-burns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-home__image { animation: none; }
}

/* Fallback gradient if no image */
.hero-home__bg:empty {
    background: linear-gradient(135deg, #1B3A4B 0%, #2C5364 50%, #1B3A4B 100%);
}

.hero-home__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(27, 58, 75, 0.15) 0%, rgba(27, 58, 75, 0.5) 100%),
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-home__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 64px; /* Account for header overlap */
}

.hero-home__headline {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    text-wrap: balance;
}

.hero-home__subheadline {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 32px;
    max-width: 560px;
    line-height: 1.5;
}

.hero-home__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-home__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.hero-home__btn:hover {
    transform: translateY(-2px);
}

.hero-home__btn--primary {
    background: var(--dn-accent, #E8A045);
    color: var(--dn-primary, #1B3A4B);
}
.hero-home__btn--primary:hover {
    box-shadow: 0 4px 20px rgba(232, 160, 69, 0.5);
}

.hero-home__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.hero-home__btn--outline:hover {
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}


/* =========================================================================
   2. TRUST BAR — Dark contrast band (Apple/Stripe pattern)
   ========================================================================= */

.trust-bar {
    background: var(--dn-primary, #1B3A4B);
    padding: 24px 0;
}

.trust-bar__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.trust-bar__item:last-child {
    border-right: none;
}

.trust-bar__icon {
    color: var(--dn-accent, #E8A045);
    opacity: 0.8;
    flex-shrink: 0;
}

.trust-bar__number {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--dn-accent, #E8A045);
    margin-right: 4px;
    line-height: 1;
}

.trust-bar__label {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
    .trust-bar__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        flex-wrap: wrap;
    }
    .trust-bar__item {
        border-right: none;
        padding: 12px 16px;
    }
    .trust-bar__item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}


/* =========================================================================
   4. WHY CHOOSE US — Premium cards on dark bg (Stripe pattern)
   ========================================================================= */

.home-why-us {
    background: var(--dn-primary, #1B3A4B);
    color: #fff;
}
.home-why-us .dn-section__title,
.home-why-us .dn-section__title--center {
    color: #fff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.why-us-card {
    background: #fff;
    border-top: 3px solid var(--dn-accent, #E8A045);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .why-us-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    }
}

.why-us-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(232, 160, 69, 0.12);
    border-radius: 14px;
    color: var(--dn-accent, #E8A045);
    font-size: 28px;
    margin-bottom: 0;
}

.why-us-card__title {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--dn-text, #1A1A18);
    margin: 20px 0 8px;
}

.why-us-card__text {
    font-family: var(--dn-font-body, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.65;
    color: var(--dn-muted, #8C7B6E);
    margin: 0;
}

@media (max-width: 960px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* =========================================================================
   5. DESTINATIONS GRID — Bento-style mosaic (Airbnb pattern)
   ========================================================================= */

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 12px;
}

/* First card spans 2x2 for visual hierarchy */
.dest-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.dest-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .dest-card:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    }
    .dest-card:hover .dest-card__image {
        transform: scale(1.03);
    }
    .dest-card:hover .dest-card__overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
    }
}

.dest-card__image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.dest-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dest-card__image--placeholder {
    background: linear-gradient(135deg, #EDE8E0, #D4CCC3);
}

.dest-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    transition: background 0.3s ease;
}

.dest-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

/* Large (featured) card typography */
.dest-card:first-child .dest-card__title {
    font-size: 20px;
}
.dest-card:first-child .dest-card__content {
    padding: 24px;
}

.dest-card__title {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Tagline only visible on featured (large) cards */
.dest-card__tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 4px 0 0;
    display: none;
}
.dest-card:first-child .dest-card__tagline {
    display: block;
}

@media (max-width: 960px) {
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
    }
    .dest-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media (max-width: 600px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .dest-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}


/* =========================================================================
   6. SOCIAL PROOF — Dark section with watermark (Aman pattern)
   ========================================================================= */

.home-social-proof {
    background: var(--dn-primary, #1B3A4B);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative watermark number behind section */
.home-social-proof::before {
    content: '4.8';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: 200px;
    font-weight: 700;
    color: #fff;
    opacity: 0.03;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.home-social-proof__headline {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.5rem);
    font-weight: 300;
    color: #fff;
    margin: 0 0 24px;
    position: relative;
}

.home-social-proof__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
}

.home-social-proof__score {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: 64px;
    font-weight: 700;
    color: var(--dn-accent, #E8A045);
    line-height: 1;
}

.home-social-proof__rating .dn-stars {
    color: var(--dn-accent, #E8A045);
    font-size: 24px;
}

.home-social-proof__count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.home-social-proof__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.social-proof-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    text-align: left;
    transition: background 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .social-proof-card:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.14);
    }
}
.social-proof-card .dn-stars {
    color: var(--dn-accent, #E8A045);
    margin-bottom: 12px;
}
.social-proof-card__quote {
    font-family: var(--dn-font-body, 'Inter', sans-serif);
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px;
    padding: 0;
    border: none;
}
.social-proof-card__name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
    .home-social-proof__cards {
        grid-template-columns: 1fr;
    }
    .home-social-proof::before {
        font-size: 120px;
    }
}


/* =========================================================================
   7. HOW IT WORKS — Card steps with numbered badges (Wise pattern)
   ========================================================================= */

.home-how-it-works {
    background: var(--dn-primary, #1B3A4B);
    color: #fff;
}
.home-how-it-works .dn-section__title,
.home-how-it-works .dn-section__title--center {
    color: #fff;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.hiw-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, background 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
    .hiw-step:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.07);
    }
    .hiw-step:hover .hiw-step__number {
        transform: scale(1.06);
    }
}

.hiw-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--dn-accent, #E8A045);
    color: var(--dn-primary, #1B3A4B);
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.hiw-step__title {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.hiw-step__text {
    font-family: var(--dn-font-body, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

@media (max-width: 767px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hiw-step {
        text-align: left;
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 16px;
        align-items: start;
        padding: 24px;
    }
    .hiw-step__number {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin: 0;
        grid-row: 1 / 3;
    }
}


/* =========================================================================
   8. BLOG HIGHLIGHTS
   ========================================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(27, 58, 75, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(27, 58, 75, 0.12);
    }
    .blog-card:hover .blog-card__image {
        transform: scale(1.03);
    }
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B3A4B 0%, #2C5364 50%, #E8A045 100%);
}
.blog-card__placeholder-text {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
    user-select: none;
}

.blog-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(27, 58, 75, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.blog-card__title {
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--dn-text, #1A1A18);
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    font-size: 13px;
    color: var(--dn-muted, #8C7B6E);
    margin-bottom: 12px;
}

.blog-card__cta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--dn-accent, #E8A045);
}

@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   9. WHATSAPP CTA BANNER
   ========================================================================= */

.whatsapp-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1B3A4B 0%, #2C5364 100%);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.015) 40px,
            rgba(255,255,255,0.015) 41px
        ),
        linear-gradient(135deg, #1B3A4B 0%, #2C5364 100%);
    text-align: center;
    padding: 80px 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 70% 100%, 30% calc(100% - 20px), 0 calc(100% - 40px));
}
.whatsapp-cta::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}
.whatsapp-cta::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.whatsapp-cta__headline {
    font-family: var(--dn-font-display, 'Fraunces', serif);
    font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
    font-weight: 500;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
}

.whatsapp-cta__text {
    font-family: var(--dn-font-body, 'Inter', sans-serif);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 28px;
}

.whatsapp-cta__trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--dn-font-body, 'Inter', sans-serif);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}
.whatsapp-cta__trust .dn-icon {
    opacity: 0.7;
}

.whatsapp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #25D366;
    color: #fff;
    font-family: var(--dn-font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.whatsapp-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.5), 0 4px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-cta__phone {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0 0;
}
.whatsapp-cta__phone a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}
.whatsapp-cta__phone a:hover {
    color: #fff;
    border-bottom-color: #fff;
}
