/* ===== CSS Variables for Easy Theming ===== */
:root {
    --primary: #0077be;
    --primary-dark: #005f94;
    --text-dark: #333;
    --text-light: #777;
    --bg-light: #f9f9f9;
    --bg-gray: #f4f7fa;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Header ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

.header-phone .phone-number {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.header-phone .phone-number:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.header-phone .phone-number i {
    font-size: 1rem;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subhead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.btn-small {
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--primary-dark);
}

/* ===== Flight Search Form ===== */
.search-section {
    background: var(--white);
    padding: 3rem 0;
    margin-top: -3rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.search-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
}

.flight-search-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 200px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group.half {
    flex: 1 1 calc(50% - 1rem);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Features Section ===== */
.features {
    padding: 4rem 0;
    background: var(--bg-gray);
}

.features h2,
.destinations h2,
.testimonials h2,
.contact-form-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #222;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.8rem;
}

/* ===== Destinations (Popular Routes) ===== */
.destinations {
    padding: 4rem 0;
    background: var(--white);
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.destination-card:hover {
    background: #e9edf2;
}

.destination-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.destination-card p {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

/* ===== Countries Served (New Section) ===== */
.countries-served {
    background-color: var(--bg-gray);
    padding: 4rem 0;
    text-align: center;
}

.countries-served h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #222;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.country-item {
    background: var(--white);
    border-radius: 30px;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-weight: 500;
    color: #2c3e50;
    transition: var(--transition);
    border: 1px solid #eaeaea;
    display: inline-block;
}

.country-item:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Country chips (used in flights.html) */
.country-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 2rem 0;
}

.country-chip {
    background: #f0f4f8;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e3c72;
    border: 1px solid #d0ddee;
    transition: var(--transition);
}

.country-chip:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 4rem 0;
    background: var(--bg-gray);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.03);
    font-style: italic;
}

.testimonial-item cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
}

/* ===== Footer ===== */
footer {
    background: #222;
    color: #ccc;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/page-header.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Flights Page ===== */
.destinations-list {
    padding: 0 0 4rem;
}

.destination-category {
    margin-bottom: 3rem;
}

.destination-category h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.route-item {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.route-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.route-item span {
    font-weight: 600;
    color: var(--primary);
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary);
    margin-top: 1.5rem;
}

/* ===== About Page ===== */
.about-content {
    padding: 2rem 0 4rem;
}

.about-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin: 1.5rem 0 1rem;
    color: var(--primary);
}

.about-text ul {
    margin-top: 1rem;
}

.about-text ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text ul li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team {
    background: var(--bg-gray);
    padding: 4rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 5px solid var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.team-member h3 {
    margin-bottom: 0.3rem;
}

.team-member p {
    color: var(--text-light);
}

/* ===== Contact Page ===== */
.contact-info {
    padding: 2rem 0 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.8rem;
}

.contact-card a {
    color: var(--primary);
    font-weight: 600;
}

.contact-form-section {
    background: var(--bg-gray);
    padding: 4rem 0;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.map iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        padding: 1rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        text-align: center;
        padding: 0.8rem 0;
    }
    .hamburger {
        display: flex;
    }
    .header-phone {
        margin-left: auto;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .about-content .container {
        grid-template-columns: 1fr;
    }
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-group {
        flex: 1 1 100%;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .destination-grid,
    .route-grid {
        grid-template-columns: 1fr;
    }
    .country-chips {
        gap: 0.5rem;
    }
    .country-chip {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 1rem;
    }
}