/* ============================================
   COGO TOURS & TRAVELS — Premium Stylesheet
   Clean, organized, mobile-first
   ============================================ */

/* --- 1. VARIABLES & RESET --- */
:root {
    --brand: #ff9800;
    --brand2: #ff5a00;
    --dark: #0f172a;
    --dark2: #1e293b;
    --text: #475569;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --wa-green: #25d366;
    --wa-dark: #128c7e;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background: var(--light-bg);
    color: var(--dark);
    padding-bottom: 70px;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* --- 2. NAVIGATION (Sticky Oval Menu) --- */
.nav-container, .navbar, .header-nav { 
    position: fixed; 
    top: 20px; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 9999; 
    width: auto;
}

.top-navbar {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 9999;
}

.nav-links {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 9px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-links a {
    color: #ff9800 !important; 
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 30px;
    transition: background 0.25s;
}

.nav-links a:hover { 
    background: rgba(255,255,255,0.12); 
}

.nav-links a.nav-enquire {
    color: #ffffff !important; 
    background-color: #ff9800 !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    margin-left: 6px;
}

.nav-links a.nav-enquire:hover { 
    background: var(--brand2) !important; 
}

/* --- 3. HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.75;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    z-index: 2;
}

.hero-tagline {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-bottom: 70px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--brand);
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.tagline-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* --- 4. SHARED SECTION STYLES --- */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand2);
    margin-bottom: 6px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.section-title.light { color: white; }

.section-sub {
    font-size: 0.82rem;
    color: var(--text);
    margin-bottom: 20px;
}

/* --- 5. CAB BOOKING SECTION --- */
.cab-section {
    padding: 40px 16px;
    background: #fffbeb;
    border-bottom: 2px solid #fef3c7;
}

.cab-container {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    padding: 24px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    text-align: center;
}

.cab-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row input, .form-row select {
    flex: 1;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--light-bg);
    transition: border 0.2s;
}

.form-row input:focus, .form-row select:focus {
    outline: none;
    border-color: var(--brand);
    background: white;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.input-group label {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 3px;
}

.cab-btn {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255,152,0,0.35);
}

.cab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,152,0,0.45);
}

.response-note {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
}

/* --- 6. TOURS SECTION & GRID --- */
.tours-section {
    padding: 40px 16px;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}

.tour-nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 30px;
}

.topic-btn {
    background: var(--white);
    color: var(--dark2);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    transition: all 0.25s;
}

.topic-btn:hover {
    background: var(--dark);
    color: white;
    transform: translateY(-2px);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark2);
    text-align: left;
    margin: 30px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
}

.tour-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 10px;
    text-align: left;
}

/* --- 7. TOUR CARDS & ANIMATIONS --- */
.tour-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.13);
}

/* Gold glow effect */
.tour-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 14px;
    background: linear-gradient(45deg, var(--brand), #ffd700, var(--brand2));
    background-size: 300% 300%;
    animation: goldMove 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.tour-card:hover::before { opacity: 1; }

@keyframes goldMove {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tour-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tour-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 6px 0 5px;
    color: var(--dark);
}

.tour-info p {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
    flex-grow: 1;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 10px;
    font-size: 0.8rem;
    color: var(--text);
}

.price {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--dark);
}

/* --- 8. TAGS & BUTTONS --- */
.tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.international { background: #fee2e2; color: #b91c1c; }
.tag.pilgrim { background: #fef9c3; color: #a16207; }

.book-mini-btn {
    display: block;
    text-align: center;
    background: var(--wa-green);
    color: white;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 14px;
    transition: background 0.2s, transform 0.2s;
}

.book-mini-btn:hover {
    background: var(--wa-dark);
    transform: translateY(-2px);
}

/* --- 9. ABOUT SECTION --- */
.about-section {
    background: var(--dark);
    padding: 50px 20px;
    text-align: center;
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
}

.about-section .section-label { color: var(--brand); }

.about-text {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 18px 24px;
    min-width: 100px;
}

.stat-box strong {
    display: block;
    font-size: 1.6rem;
    color: var(--brand);
    font-weight: 800;
}

.stat-box span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.seo-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
}

/* --- 10. FOOTER & FIXED ELEMENTS --- */
.main-footer {
    background: #070d1a;
    color: white;
    padding: 36px 20px 120px;
    text-align: center;
}

.main-footer h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--brand);
}

.main-footer p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 6px;
}

.footer-copy {
    font-size: 0.72rem;
    opacity: 0.4;
    margin-top: 16px;
}

.mobile-action-bar {
    position: fixed;
    bottom: 12px;
    left: 5%;
    right: 5%;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.mobile-action-bar a {
    flex: 1;
    text-align: center;
    padding: 13px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}

.mobile-action-bar a:hover { transform: scale(1.03); }
.mobile-call { background: linear-gradient(135deg, #0f172a, #1e293b); }
.mobile-wa { background: linear-gradient(135deg, #25d366, #128c7e); }

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(255,152,0,0.4);
    transition: transform 0.2s;
}

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

/* --- 11. MEDIA QUERIES --- */
@media (min-width: 600px) {
    .tour-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .tour-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .nav-links { padding: 7px 14px; gap: 2px; }
    .nav-links a { font-size: 0.75rem; padding: 4px 8px; }
    .brand-name { font-size: 1.2rem; letter-spacing: 2px; }
    .tagline-text { font-size: 0.85rem; }
    .hero-tagline { padding-bottom: 90px; }
    .cab-container { padding: 20px 14px; }
    .form-row { flex-direction: column; }
    .section-title { font-size: 1.25rem; }
    .about-stats { gap: 10px; }
    .stat-box { padding: 14px 18px; min-width: 85px; }
    .stat-box strong { font-size: 1.3rem; }
}
/* --- NEW BENTO & FEATURED DEVELOPMENTS --- */

/* 1. Logic for the Bento Grid (Desktop only) */
@media (min-width: 1024px) {
    .bento-layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px; /* Controls the height of the grid rows */
        gap: 25px;
    }

    .tour-card.featured {
        grid-column: span 2; /* Makes the card 2 columns wide */
        grid-row: span 2;    /* Makes the card 2 rows tall */
    }

    .tour-card.featured img {
        height: 320px; /* Scales the image for the larger card */
    }
}

/* 2. Style for the 'Best Seller' badge */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Extra breathing room for the featured card text */
.tour-card.featured .tour-info h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.tour-card.featured .tour-info p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}
