/* ========================================
   Surya Madina — Homepage CSS
   Clone of attayibah.com design
   ======================================== */

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #2e8b57;
    --secondary-color: #e5c15d;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --navbar-bg: #1e1e1e;
    --navbar-text: #e0e0e0;
    --footer-bg: #0f2e1b;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--navbar-text) !important;
    font-weight: 500;
    margin-left: 15px;
}

.btn-gold {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-gold:hover {
    background-color: #b5922b;
    color: white;
    transform: translateY(-2px);
}

/* Dark Mode Toggle */
.theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--navbar-text);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: 0.3s;
}

.theme-toggle:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?w=1920&q=80') center/cover no-repeat;
    z-index: 0;
}

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-overlay {
    background: rgba(26, 77, 46, 0.55);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

body.dark-mode .parallax-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.parallax-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Feature Cards */
.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--card-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Package Cards */
.bg-light {
    background-color: var(--bg-color) !important;
}

.package-section-heading {
    gap: 24px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
    align-items: start;
    gap: 28px;
}

.package-card {
    width: 100%;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(26, 77, 46, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(22, 45, 32, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(22, 45, 32, 0.16);
}

.package-card-header {
    min-height: 90px;
    padding: 20px 22px 18px;
    border-bottom: 1px solid rgba(26, 77, 46, 0.08);
}

.package-card-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #8a6a0a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.package-card-label i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.package-card-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

.package-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #090909;
}

.package-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    transition: transform 0.5s ease;
}

.package-card-media-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 38, 23, 0.68);
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.package-card-media-link span {
    padding: 10px 22px;
    color: #fff;
    background: var(--secondary-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.package-card:hover .package-card-media-link {
    opacity: 1;
}

.package-card:hover .package-card-media-link span {
    transform: translateY(0);
}

.package-card:hover .package-card-media img {
    transform: scale(1.04);
}

/* Package Details */
.package-card-details {
    padding: 16px 22px;
    border-top: 1px solid rgba(26, 77, 46, 0.08);
}

.pkg-meta {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 4px;
    opacity: 0.8;
}

.pkg-meta span {
    font-weight: 600;
    color: var(--primary-color);
    opacity: 1;
}

.pkg-price {
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
}

.pkg-dates {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
}

.pkg-dates i {
    color: var(--secondary-color);
    margin-right: 4px;
}

body.dark-mode .pkg-dates {
    color: #aaa;
}

.package-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    color: var(--primary-color);
    background: var(--card-bg);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.package-card-footer i {
    transition: transform 0.2s ease;
}

.package-card-footer:hover {
    color: #fff;
    background: var(--primary-color);
}

.package-card-footer:hover i {
    transform: translateX(4px);
}

/* Haji Section */
.haji-section {
    position: relative;
    padding: 150px 0;
    text-align: center;
    color: white;
    overflow: hidden;
}

.haji-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1564769625905-50e93615e769?w=1920&q=80') center/cover no-repeat;
    z-index: 0;
}

.haji-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 77, 46, 0.7);
    z-index: 1;
}

body.dark-mode .haji-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Haji Cards */
.haji-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    height: 100%;
    position: relative;
}

.haji-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.haji-featured {
    border: 2px solid var(--secondary-color);
}

.haji-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.haji-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.haji-card h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 20px;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.map-wrapper {
    padding: 5px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Floating WA */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Dark Mode Specifics */
body.dark-mode .package-card {
    border-color: rgba(229, 193, 93, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .package-card-header {
    border-bottom-color: rgba(229, 193, 93, 0.14);
}

body.dark-mode .package-card-label {
    color: #e5c15d;
}

body.dark-mode .haji-card {
    background-color: #1e1e1e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .text-muted {
    color: #bbb !important;
}

body.dark-mode .map-wrapper {
    background-color: #1e1e1e;
}

.section-title-hover:hover {
    color: #d4af37 !important;
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .package-section-heading {
        align-items: flex-start !important;
        flex-direction: column;
        margin-bottom: 2rem !important;
    }

    .package-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .package-card-header {
        min-height: auto;
        padding: 18px;
    }

    .package-card-header h3 {
        font-size: 1.1rem;
    }

    .package-card-footer {
        padding: 15px 18px;
    }

    .haji-section {
        padding: 80px 0;
    }
}
