/*
Theme Name: First Travel & Shipping Services Ltd Theme
Theme URI: https://example.com/firsttravel-theme
Author: Antigravity
Author URI: https://example.com
Description: Premium, clean WordPress theme for First Travel and Shipping Services Ltd (RC No. 8734474). Designed to match the sleek travl theme aesthetic with 4 Core Business Area services.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: firsttravel-theme
*/

/* CSS Reset & Design Tokens (Matching Travl Design System) */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --primary-cyan: #06b6d4;
    --primary-teal: #0d9488;
    --accent-coral: #f97316;
    --accent-gold: #f59e0b;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;
    --border-line: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(6, 182, 212, 0.3);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-line);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-sub);
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-line);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-gold));
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

/* Navigation Header */
header.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-line);
    transition: var(--transition);
}

header.site-navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-coral));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    list-style: none;
    flex: 1;
    margin: 0 1.5rem;
}

.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.4rem 0;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-coral));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-phone-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-phone-link:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.nav-btn-cta {
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 7rem;
    background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.15), transparent 60%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-sub);
    margin-bottom: 2rem;
}

.hero-search-box {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    margin-top: 3.5rem;
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-cyan);
    white-space: nowrap;
    letter-spacing: 0.06em;
}

.search-field input,
.search-field select {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-line);
    color: #fff;
    padding: 0 1.2rem;
    height: 50px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}

.hero-card-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-line);
}

.hero-card-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge-floating {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Services Grid (4 Core Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
}

.package-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.08);
}

.package-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-highlight);
}

.package-price-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-gold));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.package-body {
    padding: 1.8rem;
}

.package-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.package-highlights li {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-highlights li::before {
    content: '✓';
    color: var(--primary-cyan);
    font-weight: bold;
}

/* Destinations Grid */
.destinations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.destination-card {
    flex: 1 1 220px;
    max-width: 280px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    border: 1px solid var(--border-line);
    transition: var(--transition);
    cursor: pointer;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.95) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Partners Grid */
.partners-grid {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2.5rem;
    opacity: 0.7;
}

.partner-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-sub);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Footer */
footer.site-footer {
    background: #090d16;
    padding-top: 5rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--border-line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-line);
}

.newsletter-box {
    display: flex;
    gap: 0.5rem;
}

.newsletter-box input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-line);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

/* Modal & Floating Chat Widget */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 650px;
    padding: 2.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header .section-subtitle {
    margin-bottom: 0.3rem;
}

.modal-header h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    width: 100%;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-cyan);
    letter-spacing: 0.05em;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-line);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.form-group select option {
    background: #1e293b;
    color: #fff;
}

.chat-widget-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
    transition: var(--transition);
    border: none;
}

.chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    padding: 1.2rem;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    max-width: 85%;
}

.chat-bubble.bot {
    background: rgba(6, 182, 212, 0.15);
    color: #fff;
    border: 1px solid rgba(6, 182, 212, 0.3);
    align-self: flex-start;
}

.chat-bubble.user {
    background: var(--primary-teal);
    color: #fff;
    align-self: flex-end;
}

.toast-notification {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    color: #fff;
    padding: 1rem 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    font-weight: 600;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
    transform: translateX(0);
}

@media (max-width: 992px) {
    .hero-grid, .services-grid, .packages-grid, .testimonials-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .search-form-grid, .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 0;
        gap: 1.8rem;
        border-bottom: 1px solid var(--border-line);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        z-index: 999;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-phone-link .phone-text {
        display: none;
    }
    .nav-phone-link {
        padding: 0.5rem 0.7rem;
    }
    .nav-toggle {
        display: flex;
    }
}
