/* ==========================================================================
   Farabi Tour & Travel - Style Sheets
   Aesthetic, Modern, Responsive, and Premium Design
   ========================================================================== */

/* --- Design System & CSS Variables --- */
:root {
    --primary-green: #0a6b3d;
    --primary-green-hover: #07522d;
    --primary-green-light: #e2f2e9;
    --text-main: #0f291b;
    --text-desc: #55625a;
    --bg-light: #ffffff;
    --bg-secondary: #f4f7f5;
    --border-color: #e5e9e6;
    --white: #ffffff;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-card: 0 10px 30px rgba(10, 107, 61, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px rgba(10, 107, 61, 0.08), 0 1px 12px rgba(0, 0, 0, 0.03);
    --shadow-btn: 0 4px 14px rgba(10, 107, 61, 0.25);
    
    /* Layout Sizes */
    --header-height: 80px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color: var(--text-main);
    font-family: var(--font-family);
    background-color: var(--bg-light);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
}

/* --- Container & Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* Badge Tag */
.badge-tag {
    display: inline-block;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    text-transform: capitalize;
}

/* Section Common Headers */
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-desc);
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 107, 61, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green-light);
    transform: translateY(-2px);
}

.btn-icon-right {
    margin-left: 8px;
    transition: var(--transition-smooth);
}

.btn-primary:hover .btn-icon-right {
    transform: translateX(4px);
}

/* --- Sticky Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--primary-green);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link.active {
    color: var(--white);
    font-weight: 700;
}

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

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

/* --- Hero / About Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Left: Images Layout */
.hero-images-wrapper {
    position: relative;
    padding-bottom: 60px; /* Space for overlapping sub image */
}

.main-image-container {
    position: relative;
    width: 85%;
    border-radius: 24px;
    overflow: visible;
}

.hero-img-main {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Experience Floating Badge */
.experience-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 107, 61, 0.25);
    z-index: 10;
    min-width: 110px;
    animation: float 4s ease-in-out infinite alternate;
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.badge-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 4px;
    line-height: 1.2;
}

/* Sub Image Overlapping */
.sub-image-container {
    position: absolute;
    bottom: 0px;
    right: 20px;
    width: 52%;
    z-index: 5;
}

.hero-img-sub {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 6px solid var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Hero Right: Content Layout */
.hero-content {
    padding-left: 10px;
}

.hero-title {
    font-size: 2.625rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-paragraph {
    font-size: 1.05rem;
    color: var(--text-desc);
    line-height: 1.65;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 35px;
    flex-wrap: wrap;
}

/* Consultation Widget */
.consultation-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.whatsapp-circle-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e1e6e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.consultation-wrapper:hover .whatsapp-circle-icon {
    background-color: var(--primary-green-light);
    border-color: var(--primary-green-light);
    transform: scale(1.08);
}

.consultation-text {
    display: flex;
    flex-direction: column;
}

.consult-label {
    font-size: 0.8rem;
    color: var(--text-desc);
}

.consult-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green-light);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--primary-green);
    color: var(--white);
    transform: rotate(5deg);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.service-card-description {
    font-size: 0.9rem;
    color: var(--text-desc);
    line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.testimonials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(10, 107, 61, 0.03);
}

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

.quote-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    font-weight: 500;
    font-style: italic;
}

/* --- Call To Action (CTA Banner) --- */
.cta-section {
    padding: 100px 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9); /* Whitish transparent overlay */
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.cta-title {
    font-size: 2.375rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.05rem;
    color: var(--text-desc);
    line-height: 1.7;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta-whatsapp {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-cta-services {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background-color: rgba(255,255,255,0.7);
}

.btn-cta-services:hover {
    background-color: var(--primary-green-light);
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0 100px 0;
    background-color: var(--bg-secondary);
}

/* Contact cards: Address & WhatsApp */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-card {
    background-color: var(--primary-green-light);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 15px rgba(10, 107, 61, 0.03);
}

.info-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.info-content {
    font-size: 0.95rem;
    color: var(--text-desc);
    line-height: 1.5;
}

/* Contact Form Card */
.contact-form-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: var(--shadow-card);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.form-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
}

.form-title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 12px auto 35px auto;
    border-radius: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #d2dcd5;
    background-color: var(--white);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8c9b91;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(10, 107, 61, 0.08);
}

.form-group textarea {
    resize: none;
}

.form-submit-container {
    text-align: center;
    margin-top: 10px;
}

.btn-submit {
    min-width: 180px;
}

/* Alert Message */
.success-alert {
    display: none; /* Show dynamically with JS */
    align-items: center;
    gap: 20px;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(10, 107, 61, 0.15);
    margin-top: 25px;
    animation: slideUp 0.4s ease-out;
}

.success-alert.show {
    display: flex;
}

.success-alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-alert-content h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.success-alert-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.footer-container p {
    font-size: 0.9rem;
    color: var(--text-desc);
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(10, 107, 61, 0.3);
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Promo Section --- */
.promo-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.promo-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green-light);
}

.promo-image-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.promo-card:hover .promo-img {
    transform: scale(1.05);
}

.promo-badge-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(10, 107, 61, 0.3);
    z-index: 2;
}

.promo-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.promo-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.promo-card-desc {
    font-size: 0.88rem;
    color: var(--text-desc);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-promo-wa {
    width: 100%;
    padding: 10px 18px;
    font-size: 0.88rem;
    border-radius: 50px;
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-promo-wa:hover {
    background-color: var(--primary-green-hover);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-item:hover .video-play-icon {
    background: var(--primary-green);
    transform: translate(-50%, -50%) scale(1.15);
    border-color: var(--white);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 107, 61, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 20px;
    text-align: center;
    pointer-events: none;
}

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

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

.gallery-category {
    font-size: 0.8rem;
    color: var(--primary-green-light);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.gallery-title {
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.3;
}

/* --- Lightbox Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 41, 27, 0.95); /* Deep dark forest green overlay */
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 2010;
}

.modal-close:hover {
    color: var(--primary-green-light);
    transform: scale(1.1);
}

.modal-caption {
    margin: 20px auto 0 auto;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Responsive Media Queries --- */

/* Tablet Layout (1024px and below) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Mobile Large Layout (768px and below) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .navbar-menu {
        gap: 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        padding-left: 0;
    }
    
    .hero-cta {
        justify-content: center;
        gap: 24px;
    }
    
    .hero-images-wrapper {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-card {
        padding: 30px;
    }
}

/* Mobile Small Layout (480px and below) */
@media (max-width: 480px) {
    .navbar-logo {
        font-size: 1.25rem;
    }
    
    .navbar-menu {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.85rem;
    }
}
