/* ==========================================================================
   Cheap As Chips: Premium Bike Rentals Phuket - Core CSS Design System (Green Theme)
   ========================================================================== */

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

/* Base Theme Variables */
:root {
    /* LIGHT THEME (Default) - Tropical Jungle & Emerald Coast */
    --color-bg: #f4f7f4;
    --color-bg-card: rgba(255, 255, 255, 0.9);
    --color-bg-nav: rgba(244, 247, 244, 0.85);
    --color-border: rgba(20, 83, 45, 0.08);
    --color-border-glow: rgba(16, 185, 129, 0.18);

    --color-primary: #10b981;       /* Vibrant Emerald Green */
    --color-primary-rgb: 16, 185, 129;
    --color-secondary: #16a34a;     /* Lush Palm Green */
    --color-secondary-rgb: 22, 163, 74;
    --color-accent: #84cc16;        /* Tropical Lime Accent */
    --color-success: #22c55e;       /* Fresh Grass Green */
    --color-error: #ef4444;         /* Coral Red */

    --color-text-primary: #0f2d1a;  /* Deep Forest Black */
    --color-text-secondary: #1f4d30;/* Dark Leaf Green */
    --color-text-muted: #4a6b53;    /* Sage Green Muted */

    /* Glassmorphism Defaults */
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px 0 rgba(20, 83, 45, 0.04);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout Constants */
    --max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


/* Base Document Style */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(var(--color-secondary-rgb), 0.03) 0%, transparent 40%),
                var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
}

p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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

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

/* Section Common Styling */
section {
    padding: 6.5rem 0;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

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

.section-header p {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Dynamic Gradients & Glassmorphism Utilities */
.glass {
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass:hover {
    border-color: var(--color-border-glow);
    box-shadow: 0 8px 32px 0 rgba(var(--color-primary-rgb), 0.06);
}

.gradient-text-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-orange {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Visibility Utilities */
.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}
