/*
Theme Name: FlyFlightBooking
Theme URI: https://example.com/flyflightbooking
Author: Your Name
Author URI: https://example.com
Description: A clean purple & white travel booking theme for a USA airlines 3rd party portal with dynamic homepage sections and multilingual-ready structure (no plugins required).
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flyflightbooking
*/

:root {
    --ffb-purple: #5a2ca0;
    --ffb-purple-dark: #401c73;
    --ffb-accent: #ffb703;
    --ffb-bg: #f8f5ff;
    --ffb-text: #14121f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--ffb-bg);
    color: var(--ffb-text);
    line-height: 1.6;
}

/* Utility */

.ffb-container {
    width: min(1120px, 100% - 2rem);
    margin-inline: auto;
}

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

/* Header & Navigation */

.ffb-header {
    background: linear-gradient(90deg, var(--ffb-purple), var(--ffb-purple-dark));
    color: #fff;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ffb-logo a {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-size: 1.2rem;
}

.ffb-logo span {
    font-weight: 400;
    opacity: 0.85;
    font-size: 0.9rem;
    display: block;
}

/* Language switcher */
.ffb-lang-switch {
    display: flex;
    gap: 0.4rem;
    font-size: 0.8rem;
    align-items: center;
    color: #e5dbff;
}
.ffb-lang-switch a {
    color: #f5eefe;
    text-decoration: none;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.ffb-lang-switch a.ffb-lang-active {
    border-color: rgba(255,255,255,0.8);
    background-color: rgba(0,0,0,0.1);
}

/* Nav */

.ffb-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.ffb-nav a {
    color: #f5eefe;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.ffb-nav a:hover,
.ffb-nav .current-menu-item > a {
    color: #fff;
    border-bottom: 2px solid var(--ffb-accent);
    padding-bottom: 0.2rem;
}

.ffb-cta {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background-color: var(--ffb-accent);
    color: #381776;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
}

.ffb-cta:hover {
    background-color: #e39c00;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

/* Hero */


.ffb-hero {
    background: radial-gradient(circle at top left, #f5eefe 0, #f8f5ff 50%, #ffffff 100%);
    padding: 3rem 0 2.5rem;
}

.ffb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    align-items: center;
}

.ffb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(90, 44, 160, 0.08);
    color: var(--ffb-purple-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ffb-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background-color: var(--ffb-accent);
}

.ffb-hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.25rem, 3vw, 3rem);
    color: #1b1233;
    line-height: 1.1;
}

.ffb-hero h1 span {
    color: var(--ffb-purple);
}

.ffb-hero-sub {
    margin-top: 0.8rem;
    font-size: 0.98rem;
    max-width: 34rem;
    color: #51486b;
}

/* Search Card */

.ffb-search-card {
    margin-top: 1.6rem;
    background-color: #fff;
    border-radius: 1.25rem;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 18px 45px rgba(27, 18, 51, 0.14);
}

.ffb-search-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.ffb-search-tab {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(90, 44, 160, 0.14);
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b3a7f;
    background-color: #faf7ff;
    cursor: pointer;
}

.ffb-search-tab.ffb-active {
    background-color: var(--ffb-purple);
    color: #fff;
    border-color: transparent;
}

.ffb-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.ffb-field-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #796b9d;
    margin-bottom: 0.25rem;
}

.ffb-input,
.ffb-select {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid #ded7f3;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
    outline: none;
}

.ffb-input:focus,
.ffb-select:focus {
    border-color: var(--ffb-purple);
    box-shadow: 0 0 0 1px rgba(90, 44, 160, 0.2);
}

.ffb-search-submit {
    align-self: flex-end;
    padding: 0.65rem 0.8rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--ffb-purple), var(--ffb-purple-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.ffb-search-meta {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #7b719c;
}

/* Hero Aside */

.ffb-hero-aside {
    background: #1b1233;
    border-radius: 1.3rem;
    padding: 1.4rem 1.4rem 1.1rem;
    color: #efe9ff;
    box-shadow: 0 18px 45px rgba(18, 9, 40, 0.7);
}

.ffb-hero-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b2a0ff;
}

.ffb-hero-stat-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 1rem;
}

.ffb-stat {
    flex: 1;
}

.ffb-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.ffb-stat-label {
    font-size: 0.78rem;
    color: #c8bfff;
}

.ffb-airline-pills {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ffb-pill {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px dashed rgba(239, 233, 255, 0.4);
    font-size: 0.75rem;
}

/* Sections */

.ffb-section {
    padding: 2.5rem 0 0.5rem;
}

.ffb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ffb-section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8d7ab8;
}

.ffb-section-title {
    font-size: 1.4rem;
    margin-top: 0.3rem;
    color: #24163f;
}

.ffb-section-sub {
    font-size: 0.92rem;
    max-width: 26rem;
    color: #6b628c;
}

/* Generic card and grids */

.ffb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.ffb-card {
    background-color: #fff;
    border-radius: 1.1rem;
    padding: 1rem 1rem 0.9rem;
    box-shadow: 0 10px 24px rgba(55, 37, 112, 0.08);
    border: 1px solid rgba(216, 204, 255, 0.7);
}

.ffb-card-img-wrap {
    border-radius: 0.8rem;
    overflow: hidden;
    margin-bottom: 0.7rem;
}
.ffb-card-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

/* Deal cards */

.ffb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.ffb-route {
    font-weight: 700;
    color: #281745;
    font-size: 0.95rem;
}

.ffb-tag-savings {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    background-color: rgba(255, 183, 3, 0.14);
    color: #7a5300;
    border-radius: 999px;
}

.ffb-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.ffb-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ffb-purple-dark);
}

.ffb-price-note {
    font-size: 0.78rem;
    color: #7a719a;
}

.ffb-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #8a80ac;
    margin-bottom: 0.7rem;
}

.ffb-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ffb-purple-dark);
    text-decoration: none;
}

/* Why Choose Us */

.ffb-grid-3-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.ffb-icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background-color: rgba(90, 44, 160, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--ffb-purple-dark);
}

/* FAQ */

.ffb-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 2.4fr);
    gap: 1.8rem;
    align-items: flex-start;
}

.ffb-faq-item {
    background-color: #fff;
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(216, 204, 255, 0.8);
}

.ffb-faq-q {
    font-weight: 600;
    font-size: 0.95rem;
    color: #271741;
    margin-bottom: 0.25rem;
}

.ffb-faq-a {
    font-size: 0.85rem;
    color: #6b628c;
}

/* Blog */

.ffb-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.ffb-blog-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 0.9rem 0.95rem 0.85rem;
    border: 1px solid rgba(216, 204, 255, 0.7);
}

.ffb-blog-meta {
    font-size: 0.78rem;
    color: #8b80aa;
    margin-bottom: 0.3rem;
}

/* Page content */

.ffb-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.6rem;
}

/* Footer */

.ffb-footer {
    margin-top: 2.5rem;
    padding: 1.5rem 0 1.2rem;
    background-color: #130c24;
    color: #c7bfe8;
    font-size: 0.85rem;
}

.ffb-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0,1.5fr) minmax(0,1.5fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.ffb-footer a {
    color: #e4ddff;
    text-decoration: none;
    font-size: 0.85rem;
}

.ffb-footer a:hover {
    text-decoration: underline;
}

.ffb-footer-bottom {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(199, 191, 232, 0.2);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 900px) {
    .ffb-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ffb-hero-aside {
        order: -1;
    }
    .ffb-grid-3,
    .ffb-grid-3-icons,
    .ffb-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ffb-faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ffb-footer-grid {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
}

@media (max-width: 640px) {
    .ffb-nav {
        display: none;
    }
    .ffb-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ffb-grid-3,
    .ffb-grid-3-icons,
    .ffb-blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ffb-footer-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

.ffb-success-note {margin-top:0.75rem;padding:0.6rem 0.9rem;border-radius:0.75rem;background:rgba(56,23,118,0.06);color:#2c2057;font-size:0.85rem;}
