/* css/modern.css - modern UI layer that builds on existing theme variables */
:root {
    --modern-container: 1100px;
}

/* Typography: clear hierarchical headings for better visual rhythm */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--brown-dark);
    margin: 0 0 0.6rem;
    line-height: 1.12;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    /* primary hero/title */
}

h2 {
    font-size: 2rem;
    /* section titles */
}

h3 {
    font-size: 1.4rem;
    /* subsection / card titles */
}

h4 {
    font-size: 1.1rem;
}

/* Slightly reduce package card h3 to fit card layout while keeping hierarchy */
.package-content h3,
.package-card h3 {
    font-size: 1.25rem;
    margin: 0;
}


/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: var(--green-medium);
    color: var(--white);
    border-radius: 6px;
    z-index: 2200;
    box-shadow: var(--shadow-medium);
}

/* Smooth in-page anchor scrolling */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: var(--modern-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brown-dark)
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brown-dark)
}

.site-nav {
    position: relative
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center
}

.nav-link {
    color: var(--brown-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .18s, color .18s
}

.nav-link:focus-visible {
    outline: 3px solid rgba(34, 139, 34, 0.18);
    outline-offset: 2px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(0, 0, 0, 0.04);
    outline: none
}

.btn {
    --btn-padding: 10px 16px;
    display: inline-block;
    padding: var(--btn-padding);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer
}

.btn-cta {
    background: var(--green-medium);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(20, 60, 40, 0.08)
}

.nav-link.btn-cta {
    padding: 8px 14px;
    border-radius: 10px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer
}

.hamburger {
    width: 22px;
    height: 2px;
    background: var(--brown-dark);
    display: block;
    position: relative
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--brown-dark);
    transition: transform .18s
}

.hamburger::before {
    top: -6px
}

.hamburger::after {
    top: 6px
}

@media (max-width:900px) {
    .nav-list {
        position: absolute;
        right: 12px;
        top: 64px;
        background: var(--white);
        flex-direction: column;
        padding: 12px;
        border-radius: 10px;
        box-shadow: var(--shadow-medium);
        min-width: 220px;
        opacity: 0;
        transform: translateY(-6px) scale(.98);
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease;
    }

    .nav-list.show {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex
    }

    .brand-title {
        display: none
    }
}

/* animate hamburger into X when open */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-link.active {
    background: var(--green-medium);
    color: #fff
}

.nav-link.active {
    box-shadow: 0 6px 18px rgba(20, 60, 40, 0.08);
}

/* Inputs, buttons, forms */
input,
textarea,
select,
.btn {
    font-family: 'Poppins', sans-serif
}

input,
textarea,
select {
    border: 1px solid var(--gray-light);
    padding: 10px 12px;
    border-radius: 8px;
    transition: box-shadow .12s, border-color .12s
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: var(--green-medium)
}

.review-card {
    transition: transform .18s, box-shadow .18s
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium)
}

/* small helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* Ensure images don't overflow nav/brand */
.brand-logo,
img.logo-img {
    max-height: 48px
}

/* ===== PACKAGES GRID & CARDS (responsive fixes) ===== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    align-items: start;
    margin: 32px 0;
    padding: 0 20px;
}

.package-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

/* Keyboard focus state for package cards */
.package-card:focus {
    outline: 3px solid rgba(76, 175, 80, 0.18);
    outline-offset: 4px;
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.package-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.package-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.package-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brown-dark);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.package-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

/* ABOUT SECTION LAYOUT */
.about-modern .about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

/* Polished About section and Trusted badge */
.about-modern {
    --about-gap: 28px;
}

.about-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
}

.about-img-main img,
.about-img-secondary img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(8, 30, 20, 0.12);
    transition: transform .28s ease, box-shadow .28s ease;
}

.about-img-main img:hover,
.about-img-secondary img:hover {
    transform: translateY(-6px) scale(1.01);
}

.about-img-secondary img {
    max-width: 320px;
    margin-left: auto;
    transform: translateY(-18px);
}

.about-badge {
    position: absolute;
    left: 20px;
    bottom: -22px;
    background: linear-gradient(90deg, rgba(28, 109, 42, 1), rgba(63, 170, 86, 1));
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(6, 24, 12, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 40;
    min-width: 240px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}

.about-badge .badge-number {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.about-badge .badge-text {
    font-size: 0.95rem;
    opacity: 0.98;
    line-height: 1.05;
}

.about-badge .badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

/* Badge icon animation: gentle float + subtle pulse */
@keyframes badgeFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 6px 18px rgba(6, 24, 12, 0.10);
    }

    50% {
        box-shadow: 0 10px 28px rgba(6, 24, 12, 0.16);
    }

    100% {
        box-shadow: 0 6px 18px rgba(6, 24, 12, 0.10);
    }
}

.about-badge .badge-icon {
    animation: badgeFloat 4s ease-in-out infinite, badgePulse 3.4s ease-in-out infinite;
    will-change: transform, box-shadow;
}

@media (prefers-reduced-motion: reduce) {
    .about-badge .badge-icon {
        animation: none;
    }
}

/* Slideshow styles for About page */
.about-slideshow {
    padding: 2rem 0;
}

.about-slideshow .slideshow {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(8, 20, 12, 0.12);
    background: #111;
}

.about-slideshow .slides {
    display: flex;
    transition: transform 480ms ease;
    will-change: transform;
}

.about-slideshow .slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    height: 420px;
    opacity: 0.98;
}

.about-slideshow .slideshow-prev,
.about-slideshow .slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.about-slideshow .slideshow-prev {
    left: 12px;
}

.about-slideshow .slideshow-next {
    right: 12px;
}

.about-slideshow .slideshow-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 8px;
}

.about-slideshow .slideshow-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
}

.about-slideshow .slideshow-dots button.active {
    background: #fff;
    width: 12px;
    height: 12px
}

@media (max-width:700px) {
    .about-slideshow .slides img {
        height: 260px;
    }

    .about-slideshow .slideshow {
        border-radius: 8px;
    }
}

.about-content {
    padding: 6px 0;
}

/* Background visual container for About sections */
.about-visual {
    background-size: cover;
    background-position: center center;
    border-radius: 14px;
    min-height: 360px;
    box-shadow: 0 24px 60px rgba(8, 30, 20, 0.12);
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .about-visual {
        min-height: 220px;
        border-radius: 10px;
    }
}

@media (max-width: 900px) {
    .about-images {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-img-secondary img {
        transform: translateY(0);
        max-width: 100%;
    }

    .about-badge {
        position: static;
        display: inline-block;
        margin-top: 6px;
        box-shadow: 0 8px 22px rgba(10, 30, 20, 0.12);
    }
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .about-modern .about-wrapper {
        grid-template-columns: 1fr;
    }

    .package-image {
        height: 180px;
    }

    .packages-grid {
        padding: 0;
        gap: 16px;
    }

    .container {
        padding: 0 14px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .brand-logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .package-image {
        height: 140px;
    }

    .nav-list {
        right: 8px;
        min-width: 180px;
    }
}

/* Small-viewport hero and typography tweaks for better fold behavior */
@media (max-width: 900px) {
    .hero-modern {
        min-height: 60vh;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .package-content h3 {
        font-size: 1.05rem;
    }

    .packages-cta {
        text-align: center;
        margin: 18px 0 40px;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        min-height: 50vh;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .package-content {
        padding: 12px;
    }
}