/* ─────────────────────────────────────────
   Al Barakah Tours — Main Stylesheet
   v1.0.0
───────────────────────────────────────── */

:root {
    --green:       #1A3D2B;
    --green-mid:   #245038;
    --green-light: #2E6645;
    --gold:        #C9A84C;
    --gold-light:  #E2C47A;
    --gold-pale:   #F5EDD3;
    --ivory:       #F8F4EE;
    --sand:        #E8DCC8;
    --charcoal:    #1C1C1C;
    --text-mid:    #3D3D3D;
    --text-muted:  #7A7060;
    --white:       #FFFFFF;
    --nav-height:  72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--ivory); color: var(--charcoal); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ── SKIP LINK ── */
.skip-link {
    position: absolute; top: -100%; left: 0;
    background: var(--gold); color: var(--green);
    padding: 8px 16px; font-weight: 600; z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px; height: var(--nav-height);
    background: rgba(26, 61, 43, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
    width: 38px; height: 38px;
    border: 1.5px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: var(--gold); }
a.nav-brand, .nav-brand {
    color: var(--white); font-family: 'Playfair Display', serif;
    font-size: 18px; letter-spacing: 0.02em; text-decoration: none;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,0.78); font-size: 13.5px; font-weight: 400;
    text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--gold); }
.nav-cta {
    background: var(--gold); color: var(--green); font-size: 13px; font-weight: 600;
    padding: 10px 24px; border-radius: 2px; text-decoration: none;
    letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-mobile-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white); transition: all 0.3s;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
    background: var(--gold); color: var(--green);
    padding: 15px 36px; font-size: 14px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; border-radius: 2px; transition: all 0.2s;
    border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
    border: 1px solid rgba(255,255,255,0.35); color: var(--white);
    padding: 14px 32px; font-size: 14px; font-weight: 400;
    letter-spacing: 0.04em; text-decoration: none; border-radius: 2px;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════════ */
.section-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 48px); font-weight: 700;
    color: var(--green); line-height: 1.2; margin-bottom: 56px;
    max-width: 520px;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    background: var(--green);
    display: flex; align-items: center; overflow: hidden;
    padding-top: var(--nav-height);
}
.hero-bg-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 80% at 10% 80%, rgba(201,168,76,0.05) 0%, transparent 60%);
}
.hero-kaaba {
    position: absolute; right: 0; bottom: 0; top: 0;
    width: 55%; opacity: 0.18; pointer-events: none;
    display: flex; align-items: flex-end; justify-content: center;
}
.hero-kaaba svg { width: 100%; height: 100%; }
.hero-content {
    position: relative; z-index: 2;
    padding: 80px 60px 160px;
    max-width: 660px;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold); font-size: 11px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 28px;
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-arabic {
    font-family: 'Amiri', serif; font-size: 34px; color: var(--gold-light);
    direction: rtl; margin-bottom: 20px; opacity: 0.88; line-height: 1.5;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700; line-height: 1.1;
    color: var(--white); margin-bottom: 24px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
    font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.68);
    margin-bottom: 44px; max-width: 480px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-stats {
    position: absolute; bottom: 48px; left: 60px; right: 60px; z-index: 2;
    display: flex; gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px;
}
.hero-stat {
    flex: 1; padding-right: 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
    margin-right: 40px;
}
.hero-stat:last-child { border-right: none; margin-right: 0; }
.hero-stat-num {
    font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700;
    color: var(--gold); line-height: 1;
}
.hero-stat-label {
    font-size: 11px; color: rgba(255,255,255,0.5);
    margin-top: 6px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ═══════════════════════════════════════
   GOLD DIVIDER
═══════════════════════════════════════ */
.gold-rule {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding: 56px 60px; background: var(--ivory);
}
.gold-rule::before, .gold-rule::after {
    content: ''; flex: 1; height: 1px; background: var(--gold); opacity: 0.4;
}
.gold-rule svg { width: 22px; height: 22px; fill: var(--gold); opacity: 0.7; flex-shrink: 0; }

/* ═══════════════════════════════════════
   WHY US
═══════════════════════════════════════ */
.why { background: var(--ivory); padding: 0 60px 100px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--sand); }
.why-card {
    background: var(--white); padding: 44px 40px; transition: background 0.25s;
}
.why-card:hover { background: var(--green); }
.why-card:hover .why-icon { background: rgba(255,255,255,0.1); }
.why-card:hover .why-icon svg { stroke: var(--gold); }
.why-card:hover .why-title { color: var(--white); }
.why-card:hover .why-text { color: rgba(255,255,255,0.65); }
.why-card:hover .why-num { color: rgba(255,255,255,0.15); }
.why-num {
    font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 700;
    color: var(--sand); line-height: 1; margin-bottom: 20px; transition: color 0.25s;
}
.why-icon {
    width: 48px; height: 48px; background: var(--gold-pale);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: all 0.25s; flex-shrink: 0;
}
.why-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; transition: stroke 0.25s; }
.why-title {
    font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
    color: var(--green); margin-bottom: 12px; transition: color 0.25s;
}
.why-text { font-size: 14.5px; line-height: 1.75; color: var(--text-muted); transition: color 0.25s; }

/* ═══════════════════════════════════════
   PACKAGES
═══════════════════════════════════════ */
.packages { background: var(--green); padding: 100px 60px; }
.packages .section-label::before { background: var(--gold); }
.packages .section-title { color: var(--white); }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 36px; position: relative; transition: all 0.25s;
    display: flex; flex-direction: column;
}
.pkg-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(201,168,76,0.4); }
.pkg-card.featured { background: var(--gold-pale); border-color: var(--gold); }
.pkg-card.featured .pkg-name  { color: var(--green); }
.pkg-card.featured .pkg-desc  { color: var(--text-muted); }
.pkg-card.featured .pkg-price { color: var(--green); }
.pkg-card.featured .pkg-from,
.pkg-card.featured .pkg-per   { color: var(--text-muted); }
.pkg-card.featured .pkg-feature        { color: var(--text-mid); }
.pkg-card.featured .pkg-feature::before{ background: var(--green); }
.pkg-card.featured .pkg-price-row      { border-color: rgba(26,61,43,0.15); }
.pkg-card.featured .pkg-cta { background: var(--green); color: var(--gold); border-color: var(--green); }
.pkg-card.featured .pkg-cta:hover { background: var(--green-mid); }
.pkg-badge {
    position: absolute; top: -12px; left: 36px;
    background: var(--gold); color: var(--green);
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 14px;
}
.pkg-type {
    font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px;
}
.pkg-card.featured .pkg-type { color: var(--green-light); }
.pkg-name {
    font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
    color: var(--white); margin-bottom: 10px; line-height: 1.2;
}
.pkg-desc { font-size: 13.5px; color: rgba(255,255,255,0.55); margin-bottom: 28px; line-height: 1.65; }
.pkg-price-row {
    display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
}
.pkg-from { font-size: 12px; color: rgba(255,255,255,0.5); }
.pkg-price { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: var(--gold); }
.pkg-per { font-size: 12px; color: rgba(255,255,255,0.5); align-self: flex-end; margin-bottom: 6px; }
.pkg-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg-feature {
    font-size: 13.5px; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; gap: 10px;
}
.pkg-feature::before { content: ''; width: 5px; height: 5px; background: var(--gold); flex-shrink: 0; }
.pkg-cta {
    display: block; text-align: center; text-decoration: none;
    background: transparent; border: 1px solid var(--gold);
    color: var(--gold); font-size: 13px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 13px 24px; transition: all 0.2s; margin-top: auto;
}
.pkg-cta:hover { background: var(--gold); color: var(--green); }

/* ═══════════════════════════════════════
   PROCESS
═══════════════════════════════════════ */
.process { background: var(--ivory); padding: 100px 60px; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(var(--step-count, 4), 1fr);
    gap: 0; position: relative; margin-top: 56px;
}
.process-steps::before {
    content: '';
    position: absolute; top: 27px; left: calc(100% / (var(--step-count, 4) * 2));
    right: calc(100% / (var(--step-count, 4) * 2));
    height: 1px; background: var(--gold); opacity: 0.35;
}
.process-step { padding: 0 24px; text-align: center; }
.process-num {
    width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
    font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
    color: var(--gold); background: var(--ivory); position: relative; z-index: 1;
}
.process-title {
    font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600;
    color: var(--green); margin-bottom: 10px;
}
.process-text { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testimonials { background: var(--sand); padding: 100px 60px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.testi-card {
    background: var(--white); padding: 36px 32px;
    border-left: 3px solid var(--gold);
    display: flex; flex-direction: column;
}
.testi-stars { color: var(--gold); font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-text {
    font-family: 'Playfair Display', serif; font-size: 16px; font-style: italic;
    line-height: 1.75; color: var(--text-mid); margin-bottom: 24px; flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--green); display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--gold);
    font-family: 'Playfair Display', serif; flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; color: var(--charcoal); font-style: normal; display: block; }
.testi-loc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════ */
.cta-banner {
    background: var(--green); padding: 80px 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    position: relative; overflow: hidden; flex-wrap: wrap;
}
.cta-banner::before {
    content: '';
    position: absolute; right: -60px; top: -60px; bottom: -60px; width: 400px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner-text { position: relative; z-index: 1; }
.cta-banner-text .section-label { margin-bottom: 12px; }
.cta-banner-text h2 {
    font-family: 'Playfair Display', serif; font-size: clamp(26px, 3vw, 38px); font-weight: 700;
    color: var(--white); line-height: 1.2; max-width: 460px;
}
.cta-banner-text h2 em { color: var(--gold); font-style: normal; }
.cta-banner-action { flex-shrink: 0; text-align: center; position: relative; z-index: 1; }
.cta-banner-action .btn-primary { display: block; margin-bottom: 12px; white-space: nowrap; }
.cta-banner-action p { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer { background: #0D2219; padding: 60px; }
.footer-inner {
    display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.45); margin-top: 16px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════
   TRUST BADGE
═══════════════════════════════════════ */
.trust-badge {
    position: fixed; bottom: 32px; right: 32px; z-index: 99;
    background: var(--white); border: 1px solid var(--sand);
    padding: 14px 18px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.trust-badge-icon { font-size: 26px; line-height: 1; }
.trust-badge-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--green); }
.trust-badge-text span { font-size: 11.5px; color: var(--text-muted); }

/* ═══════════════════════════════════════
   INDEX / BLOG (fallback)
═══════════════════════════════════════ */
.site-main { padding: calc(var(--nav-height) + 40px) 60px 80px; max-width: 860px; margin: 0 auto; }
.entry-title { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--green); margin-bottom: 16px; }
.entry-content { line-height: 1.8; color: var(--text-mid); }

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════ */
@media ( max-width: 1024px ) {
    .site-nav { padding: 0 32px; }
    .nav-links { gap: 24px; }
    .hero-content { padding: 80px 32px 160px; }
    .hero-stats { left: 32px; right: 32px; }
    .why { padding: 0 32px 80px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .packages { padding: 80px 32px; }
    .pkg-grid { grid-template-columns: 1fr; max-width: 520px; }
    .process { padding: 80px 32px; }
    .testimonials { padding: 80px 32px; }
    .testi-grid { grid-template-columns: 1fr; max-width: 560px; }
    .cta-banner { padding: 60px 32px; }
    .site-footer { padding: 48px 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .gold-rule { padding: 40px 32px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════ */
@media ( max-width: 768px ) {
    .site-nav { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-links.is-open {
        display: flex; flex-direction: column; position: fixed;
        top: var(--nav-height); left: 0; right: 0; bottom: 0;
        background: rgba(26,61,43,0.98); padding: 40px 24px; gap: 24px;
        z-index: 99;
    }
    .nav-links.is-open a { font-size: 18px; }
    .nav-mobile-toggle { display: flex; }
    .nav-cta { display: none; }

    .hero { min-height: auto; }
    .hero-content { padding: 48px 20px 200px; }
    .hero-kaaba { width: 100%; opacity: 0.1; }
    .hero h1 { font-size: 36px; }
    .hero-arabic { font-size: 26px; }
    .hero-sub { font-size: 15px; }
    .hero-stats { left: 20px; right: 20px; flex-wrap: wrap; gap: 20px; bottom: 28px; }
    .hero-stat { flex: 1 1 40%; border-right: none; margin-right: 0; padding-right: 0; }
    .hero-stat-num { font-size: 26px; }

    .gold-rule { padding: 32px 20px; }
    .why { padding: 0 20px 60px; }
    .why-grid { grid-template-columns: 1fr; }

    .packages { padding: 60px 20px; }
    .pkg-grid { grid-template-columns: 1fr; }

    .process { padding: 60px 20px; }
    .process-steps {
        grid-template-columns: 1fr !important;
    }
    .process-steps::before { display: none; }
    .process-step { padding: 0 0 40px; text-align: left; display: flex; gap: 20px; }
    .process-num { margin: 0; flex-shrink: 0; }

    .testimonials { padding: 60px 20px; }
    .testi-grid { grid-template-columns: 1fr; }

    .cta-banner { padding: 48px 20px; flex-direction: column; align-items: flex-start; }
    .cta-banner-action { width: 100%; }
    .cta-banner-action .btn-primary { width: 100%; text-align: center; }

    .site-footer { padding: 40px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-bottom-links { flex-wrap: wrap; gap: 12px; }

    .trust-badge { bottom: 16px; right: 16px; left: 16px; }
    .section-title { margin-bottom: 36px; }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */
@media ( prefers-reduced-motion: reduce ) {
    *, *::before, *::after { transition: none !important; }
    html { scroll-behavior: auto; }
}
