/**
 * Vibe Ride Sacramento - Main Stylesheet
 * Converted from Tailwind CSS v4 to standard CSS
 */

/* ============================================
   CUSTOM PROPERTIES (CSS Variables)
   ============================================ */
:root {
    /* Spacing & Layout */
    --radius: 0.35rem;
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
    --radius-2xl: calc(var(--radius) + 8px);

    /* Colors - Light Theme */
    --background: oklch(0.995 0.002 90);
    --foreground: oklch(0.16 0.01 60);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.16 0.01 60);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.16 0.01 60);
    --primary: oklch(0.78 0.13 85);
    --primary-foreground: oklch(0.14 0.01 60);
    --secondary: oklch(0.96 0.006 85);
    --secondary-foreground: oklch(0.2 0.01 60);
    --muted: oklch(0.965 0.005 85);
    --muted-foreground: oklch(0.5 0.012 70);
    --accent: oklch(0.95 0.02 85);
    --accent-foreground: oklch(0.2 0.01 60);
    --destructive: oklch(0.55 0.2 22);
    --destructive-foreground: oklch(0.98 0.003 90);
    --border: oklch(0.9 0.008 85);
    --input: oklch(0.9 0.008 85);
    --ring: oklch(0.78 0.13 85);

    /* Brand Colors */
    --gold: oklch(0.78 0.13 85);
    --gold-soft: oklch(0.88 0.08 88);
    --gold-foreground: oklch(0.14 0.01 60);
    --burgundy: oklch(0.36 0.12 18);
    --burgundy-foreground: oklch(0.97 0.01 90);
    --ink: oklch(0.155 0.008 60);
    --ink-foreground: oklch(0.97 0.004 90);
    --ink-muted: oklch(0.72 0.01 85);

    /* Typography */
    --font-display: "Playfair Display", ui-serif, Georgia, serif;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

    /* Shadows */
    --shadow-luxe: 0 24px 60px -24px oklch(0 0 0 / 0.55);
    --shadow-gold: 0 12px 40px -14px oklch(0.78 0.13 85 / 0.45);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Section Dark Background */
.section-dark {
    background-color: var(--ink);
    color: var(--ink-foreground);
    background-image: radial-gradient(
        circle at 20% 0%,
        oklch(0.78 0.13 85 / 0.09),
        transparent 55%
    );
}

/* Eyebrow Text */
.eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
}

/* Gold Rule (Decorative Line) */
.gold-rule {
    display: block;
    width: 3.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal[data-visible="true"] {
    opacity: 1;
    transform: none;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-xs { max-width: 20rem; }
.min-w-0 { min-width: 0; }

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-\[minmax\(0\,1fr\)_auto\] { grid-template-columns: minmax(0, 1fr) auto; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-3 { row-gap: 0.75rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.isolate { isolation: isolate; }
.overflow-hidden { overflow: hidden; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.truncate { 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sizing */
.w-full { width: 100%; }
.w-11 { width: 2.75rem; }
.w-10 { width: 2.5rem; }
.w-4 { width: 1rem; }
.h-full { height: 100%; }
.h-13 { height: 3.25rem; }
.h-12 { height: 3rem; }
.h-11 { width: 2.75rem; height: 2.75rem; }
.h-10 { height: 2.5rem; }
.h-5 { height: 1.25rem; }
.h-4 { height: 1rem; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-center { object-position: center; }

/* Opacity */
.opacity-45 { opacity: 0.45; }

/* Place Items */
.place-items-center {
    place-items: center;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-\[0\.65rem\] { font-size: 0.65rem; }
.text-\[0\.7rem\] { font-size: 0.7rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }

/* Text Colors */
.text-gold { color: var(--gold); }
.text-ink-foreground { color: var(--ink-foreground); }
.text-ink-muted { color: var(--ink-muted); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-gold-foreground { color: var(--gold-foreground); }
.text-ink-muted\/80 { color: oklch(0.72 0.01 85 / 0.8); }
.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }

/* ============================================
   SPACING
   ============================================ */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pl-7 { padding-left: 1.75rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Appearance */
.appearance-none {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ============================================
   BORDERS & BACKGROUNDS
   ============================================ */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/25 { border-color: rgba(255, 255, 255, 0.25); }
.border-gold\/50 { border-color: oklch(0.78 0.13 85 / 0.5); }
.border-gold\/60 { border-color: oklch(0.78 0.13 85 / 0.6); }
.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
.shadow-luxe { box-shadow: var(--shadow-luxe); }
.shadow-gold { box-shadow: var(--shadow-gold); }

.bg-ink { background-color: var(--ink); }
.bg-gold { background-color: var(--gold); }
.bg-gold-soft { background-color: var(--gold-soft); }
.bg-transparent { background-color: transparent; }
.bg-card { background-color: var(--card); }
.bg-secondary { background-color: var(--secondary); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-ink\/95 { background-color: oklch(0.155 0.008 60 / 0.95); }
.bg-foreground { background-color: var(--foreground); }
.bg-background { background-color: var(--background); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-primary,
button[type="submit"] {
    background-color: var(--gold);
    color: var(--gold-foreground);
}

.btn-primary:hover,
button[type="submit"]:hover {
    background-color: var(--gold-soft);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--ink-foreground);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hover States */
.hover\:text-gold:hover { color: var(--gold); }
.hover\:text-gold-soft:hover { color: var(--gold-soft); }
.hover\:text-ink-foreground:hover { color: var(--ink-foreground); }
.hover\:bg-gold-soft:hover { background-color: var(--gold-soft); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-ink\/90:hover { background-color: oklch(0.155 0.008 60 / 0.9); }
.hover\:border-gold\/60:hover { border-color: oklch(0.78 0.13 85 / 0.6); }

/* ============================================
   HEADER SPECIFIC
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 50;
}

header .sticky {
    position: sticky;
    top: 0;
}

header .backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Navigation Menu Styles - Force override all button styles */
header nav ul,
header nav ul.menu {
    display: flex !important;
    align-items: center !important;
    gap: 1.75rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header nav ul li,
header nav ul.menu li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

header nav ul li a,
header nav ul.menu li a,
header nav a {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #d4af37 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline-block !important;
}

header nav ul li a:hover,
header nav ul.menu li a:hover,
header nav ul li.current-menu-item a,
header nav ul li.current_page_item a {
    color: #e5c158 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

header nav ul li.menu-item-has-children {
    position: relative;
}

/* Dropdown menus */
header nav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.35rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    display: none;
    flex-direction: column;
    gap: 0;
}

header nav ul li:hover > ul.sub-menu {
    display: flex;
}

header nav ul li ul.sub-menu li {
    width: 100%;
}

header nav ul li ul.sub-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0.05em;
}

header nav ul li ul.sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   TEXT ALIGNMENT & MISC
   ============================================ */
.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-\[0\.12em\] { letter-spacing: 0.12em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.28em\] { letter-spacing: 0.28em; }
.cursor-pointer { cursor: pointer; }

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    background-color: var(--background);
    color: var(--foreground);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-color: var(--gold);
}

/* Dark form inputs (for hero booking form) */
.bg-ink\/85 input[type="text"],
.bg-ink\/85 input[type="email"],
.bg-ink\/85 input[type="tel"],
.bg-ink\/85 input[type="date"],
.bg-ink\/85 input[type="time"],
.bg-ink\/85 input[type="number"],
.bg-ink\/85 select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--ink-foreground) !important;
}

.bg-ink\/85 input::placeholder {
    color: oklch(0.72 0.01 85 / 0.7) !important;
}

.bg-ink\/85 select option {
    background-color: var(--ink) !important;
    color: var(--ink-foreground) !important;
}

/* More specific selectors for dark inputs */
.hero input,
.hero select,
section.hero input[type="text"],
section.hero input[type="email"],
section.hero input[type="tel"],
section.hero input[type="date"],
section.hero input[type="time"],
section.hero input[type="number"],
section.hero select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f5f5f5 !important;
}

section.hero input::placeholder,
section.hero select::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.hidden { display: none; }

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:flex { display: flex; }
    .sm\:inline-flex { display: inline-flex; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:text-lg { font-size: 1.125rem; }
    .sm\:text-xl { font-size: 1.25rem; }
    .sm\:text-4xl { font-size: 2.25rem; }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-between { justify-content: space-between; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:grid-cols-\[minmax\(0\,1fr\)_340px\] { grid-template-columns: minmax(0, 1fr) 340px; }
    .lg\:items-center { align-items: center; }
    .lg\:text-6xl { font-size: 3.75rem; }
    .lg\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .lg\:pb-24 { padding-bottom: 6rem; }
}

/* ============================================
   STAR RATING
   ============================================ */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

.star-rating .star {
    color: var(--gold);
    font-size: 1rem;
}

.star-rating .star.filled {
    opacity: 1;
}

/* ============================================
   TRANSITIONS
   ============================================ */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: ease;
    transition-duration: 0.2s;
}

.transition-all {
    transition-property: all;
    transition-timing-function: ease;
    transition-duration: 0.3s;
}

/* ============================================
   SVG & ICONS
   ============================================ */
svg {
    display: inline-block;
    vertical-align: middle;
}

.fill-gold { fill: var(--gold); }
.fill-current { fill: currentColor; }

/* ============================================
   CUSTOM COMPONENTS
   ============================================ */

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--ink);
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;
}

.hero .gradient-overlay,
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--ink), oklch(0.155 0.008 60 / 0.85), oklch(0.155 0.008 60 / 0.4));
}

/* Fleet & Service Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxe);
}

/* Dark cards (for testimonials on dark background) */
.section-dark .card,
.card.bg-ink {
    background-color: var(--ink) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.section-dark .card .text-muted-foreground,
.card.bg-ink .text-ink-muted {
    color: oklch(0.72 0.01 85) !important;
}

/* Blockquote */
blockquote {
    font-style: italic;
}

/* List Styles */
ul {
    list-style: none;
}

/* Mobile Menu Toggle */
#mobile-menu-toggle .close-icon {
    display: none;
}

#mobile-menu-toggle[aria-expanded="true"] .menu-icon {
    display: none;
}

#mobile-menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
}
