/* ==========================================================================
   Design System & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #3E6A5B; /* Longjing Tea Green */
    --color-primary-light: #5B8B79;
    --color-secondary: #C7A254; /* Gold/Wood accent */
    --color-dark: #1A1A1A; /* Ink Black */
    --color-light: #F9F9F9; /* Off-white */
    --color-gray: #666666;
    --color-white: #FFFFFF;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Borders & Shadows */
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-family: var(--font-serif); }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--space-md); color: var(--color-gray); }

.highlight {
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-style: italic;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(62, 106, 91, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 106, 91, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--color-dark);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-serif);
}

.logo span {
    color: var(--color-primary);
    font-family: var(--font-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--color-dark);
    /* We use the local photo provided by the user for the main visual */
    background-image: url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-white);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* We'll need a mobile menu later */
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Sections & Tour Cards
   ========================================================================== */
.section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tour-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.tour-content {
    padding: 1.5rem;
}

.tour-price {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.tour-actions {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    flex: 1;
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Tours Detail Page Styles
   ========================================================================== */
.page-tours {
    background-color: var(--color-light);
}

.page-header {
    height: 40vh;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
}

.text-center {
    text-align: center;
}

.tour-detail-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.tour-header {
    position: relative;
    color: var(--color-white);
    padding: var(--space-xl) var(--space-lg);
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
}

.tour-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}

.tour-header-content {
    position: relative;
    z-index: 1;
}

.tour-header h2 {
    color: var(--color-white);
    margin-bottom: 0.8rem;
    font-size: 2.2rem;
}

.tour-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.tour-pricing {
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.tour-body {
    padding: var(--space-lg);
}

.lead-text {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--color-primary-light);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.timeline-item .time {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.timeline-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    margin-top: 0.8rem;
    box-shadow: var(--shadow-sm);
    display: block;
}

/* App Guides Grid */
.app-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--space-lg);
}

.app-card {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-primary);
}

.app-card h3 {
    margin-bottom: 0.5rem;
}

.app-card ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--color-gray);
}

.app-card li {
    margin-bottom: 0.5rem;
}

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }

/* ==========================================================================
   About & Contact Page Styles
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-section h2, .contact-form-section h2 {
    color: var(--color-primary);
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

.contact-info {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-secondary);
}

.form-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background-color: var(--color-light);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
}

textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
