/* ========================================
   Al-Madinah Travel - Haji & Umrah Website
   Theme: Middle Eastern Classic
   Colors: Gold Sand (#C19A6B), Dark Brown (#3B2F2F)
   Fonts: Amiri (Arabic) + Nunito (Body)
======================================== */

/* CSS Variables */
:root {
    --gold-sand: #C19A6B;
    --gold-light: #D4AF7A;
    --gold-dark: #A67C52;
    --dark-brown: #3B2F2F;
    --brown-light: #5C4A4A;
    --cream: #FDF5E6;
    --cream-dark: #F5E6D3;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #6B6B6B;
    --success: #4CAF50;
    --warning: #FF9800;
    
    --font-arabic: 'Amiri', serif;
    --font-body: 'Nunito', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-brown);
    background-color: var(--cream);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-brown);
}

.arabic-style {
    font-family: var(--font-arabic);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-sand), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold-sand);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--dark-brown));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-brown);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--dark-brown);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-arabic {
    font-family: var(--font-arabic);
    font-size: 24px;
    color: var(--gold-sand);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-sand);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/hero-kaaba.jpg') center/cover no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(59, 47, 47, 0.7) 0%,
        rgba(59, 47, 47, 0.8) 50%,
        rgba(59, 47, 47, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.ornament-top,
.ornament-bottom {
    font-size: 24px;
    color: var(--gold-sand);
    letter-spacing: 20px;
    margin: 15px 0;
}

.hero-title {
    font-family: var(--font-arabic);
    font-size: clamp(28px, 5vw, 48px);
    color: var(--gold-sand);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--cream);
    font-style: italic;
    margin-bottom: 20px;
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.ornament-divider .line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-sand), transparent);
}

.ornament-divider .diamond {
    color: var(--gold-sand);
    font-size: 12px;
}

.hero-heading {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--gold-sand);
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   Section Headers
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.light .section-title {
    color: var(--white);
}

.section-header.light .title-underline {
    background: linear-gradient(90deg, transparent, var(--gold-sand), transparent);
}

.section-ornament {
    display: block;
    font-family: var(--font-arabic);
    font-size: 36px;
    color: var(--gold-sand);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-sand), var(--gold-dark));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About/Features Section
======================================== */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--cream);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(193, 154, 107, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-sand);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold-sand), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
}

/* ========================================
   Jadwal Section
======================================== */
.jadwal-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.jadwal-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 15px;
}

.jadwal-table thead {
    background: linear-gradient(135deg, var(--dark-brown), var(--brown-light));
    color: var(--white);
}

.jadwal-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.jadwal-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(193, 154, 107, 0.2);
}

.jadwal-table tbody tr:hover {
    background: rgba(193, 154, 107, 0.1);
}

.jadwal-table tbody tr.highlight {
    background: rgba(193, 154, 107, 0.15);
}

.jadwal-table tbody tr.highlight:hover {
    background: rgba(193, 154, 107, 0.25);
}

.jadwal-table .price {
    font-weight: 700;
    color: var(--dark-brown);
}

.status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status.available {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.status.limited {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.table-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(193, 154, 107, 0.1);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--gray);
}

.table-note i {
    color: var(--gold-sand);
}

/* ========================================
   Paket Section
======================================== */
.paket-section {
    padding: 80px 0;
    background: var(--white);
}

.paket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.paket-card {
    background: var(--cream);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.paket-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.paket-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--gold-sand), var(--gold-dark));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
}

.paket-badge.special {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.paket-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.paket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.paket-card:hover .paket-image img {
    transform: scale(1.1);
}

.paket-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(59, 47, 47, 0.9), transparent);
}

.paket-type {
    color: var(--gold-sand);
    font-family: var(--font-arabic);
    font-size: 20px;
}

.paket-content {
    padding: 25px;
}

.paket-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.paket-desc {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 20px;
}

.paket-features {
    margin-bottom: 25px;
}

.paket-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--dark-brown);
}

.paket-features i {
    color: var(--gold-sand);
    font-size: 14px;
}

.paket-price {
    text-align: center;
    padding: 20px;
    margin: -25px -25px 20px;
    background: linear-gradient(135deg, var(--dark-brown), var(--brown-light));
    color: var(--white);
}

.price-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.price-amount {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-sand);
    margin: 5px 0;
}

.price-person {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   Galeri Section
======================================== */
.galeri-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--white);
    border: 2px solid var(--gold-sand);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-brown);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, var(--gold-sand), var(--gold-dark));
    color: var(--white);
}

.tab-btn i {
    font-size: 18px;
}

.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-grid.active {
    display: grid;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 47, 47, 0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--gold-sand);
    font-size: 20px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: var(--white);
    font-size: 14px;
}

/* ========================================
   Testimonial Section
======================================== */
.testimonial-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-brown), var(--brown-light));
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    position: relative;
    margin-bottom: 25px;
}

.quote-icon {
    color: var(--gold-sand);
    font-size: 32px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.testimonial-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-brown);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-sand), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--white);
    font-size: 20px;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 13px;
    color: var(--gray);
}

/* ========================================
   Kontak Section
======================================== */
.kontak-section {
    padding: 80px 0;
    background: var(--white);
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--cream);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-sand), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white);
    font-size: 20px;
}

.info-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.info-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.whatsapp-btn i {
    font-size: 24px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--dark-brown);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-arabic {
    font-size: 32px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold-sand);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold-sand);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold-sand);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--gold-sand);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
}

.footer-ornament {
    color: var(--gold-sand);
    font-size: 18px;
    letter-spacing: 15px;
    margin-bottom: 15px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-license {
    font-size: 12px;
    margin-top: 5px;
}

/* ========================================
   Floating Elements
======================================== */
.floating-wa {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: pulse 2s infinite;
}

.floating-wa i {
    color: var(--white);
    font-size: 32px;
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-sand), var(--gold-dark));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.back-to-top i {
    color: var(--white);
    font-size: 20px;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .kontak-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-brown);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .jadwal-table thead {
        display: none;
    }
    
    .jadwal-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid rgba(193, 154, 107, 0.3);
        border-radius: var(--border-radius);
        overflow: hidden;
    }
    
    .jadwal-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(193, 154, 107, 0.1);
    }
    
    .jadwal-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--dark-brown);
    }
    
    .paket-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .paket-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .floating-wa {
        bottom: 90px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .back-to-top {
        right: 15px;
        width: 45px;
        height: 45px;
    }
}
