/* ===================================================
   Trip-X360 — Design System & Global Styles
   =================================================== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
    /* Primary Palette */
    --primary:          #1565C0;
    --primary-dark:     #0D47A1;
    --primary-light:    #42A5F5;
    --primary-subtle:   #E3F2FD;

    /* Accent */
    --accent:           #FF6F00;
    --accent-dark:      #E65100;
    --accent-light:     #FFB74D;
    --accent-subtle:    #FFF3E0;

    /* Neutrals */
    --white:            #FFFFFF;
    --off-white:        #F8F9FA;
    --light-gray:       #F0F2F5;
    --gray:             #9E9E9E;
    --dark-gray:        #616161;
    --dark:             #1A1A2E;
    --darker:           #10102A;
    --black:            #0A0A1A;

    /* Semantic */
    --success:          #2E7D32;
    --warning:          #F57F17;
    --danger:           #C62828;
    --info:             #0288D1;

    /* WhatsApp */
    --whatsapp:         #25D366;

    /* Typography */
    --font-heading:     'Outfit', sans-serif;
    --font-body:        'Inter', sans-serif;

    /* Spacing */
    --section-padding:  80px 0;
    --container-padding: 0 15px;

    /* Shadows */
    --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md:        0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg:        0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl:        0 12px 60px rgba(0, 0, 0, 0.15);
    --shadow-primary:   0 4px 20px rgba(21, 101, 192, 0.25);
    --shadow-accent:    0 4px 20px rgba(255, 111, 0, 0.25);

    /* Borders */
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-full:      50%;

    /* Transitions */
    --transition-fast:  0.2s ease;
    --transition-base:  0.3s ease;
    --transition-slow:  0.5s ease;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-accent:  linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    --gradient-dark:    linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    --gradient-hero:    linear-gradient(180deg, rgba(10, 10, 26, 0.5) 0%, rgba(10, 10, 26, 0.7) 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ----- Section Styles ----- */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-light {
    background-color: var(--off-white);
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
    color: var(--white);
}

.section-dark p {
    opacity: 0.85;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 0;
}

/* ----- Buttons ----- */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-primary);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.35);
    color: var(--white);
}

.btn-accent-custom {
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-accent);
}

.btn-accent-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 111, 0, 0.35);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 30px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* ----- Cards ----- */
.card-custom {
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ----- Page Banner ----- */
.page-banner {
    background: var(--gradient-primary);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
}

.page-banner h1 {
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb {
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.page-banner .breadcrumb-item.active {
    color: var(--white);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ----- Rating Stars ----- */
.rating {
    color: #FFC107;
    font-size: 0.9rem;
}

.rating .fa-star-half-stroke {
    color: #FFC107;
}

.rating .far.fa-star {
    color: #DDD;
}

/* ----- Badge ----- */
.badge-price {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .section-title h2 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .page-banner { padding: 80px 0 50px; }
    .page-banner h1 { font-size: 2.25rem; }
}

@media (max-width: 767.98px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    .section-title h2 { font-size: 1.75rem; }
    .section { padding: 50px 0; }
    .section-title { margin-bottom: 40px; }
    .page-banner { padding: 70px 0 40px; }
    .page-banner h1 { font-size: 1.85rem; }
    .btn-primary-custom,
    .btn-accent-custom,
    .btn-outline-custom {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    html { font-size: 15px; }
    .page-banner h1 { font-size: 1.5rem; }
}
