﻿/*
Theme Name: carparking
Theme URI: http://example.com/carparking
Author: Antigravity
Author URI: http://example.com/
Description: Professional car parking and black car service theme.
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: carparking
*/

/* --- Typography Synchronization --- */
body {
    font-family: 'DM Sans', sans-serif !important;
}

.font-display, h1, h2, h3, h4, .hero-title {
    font-family: 'DM Serif Display', serif !important;
}

/* Header Font Fix */
nav a, 
#mobile-drawer a {
    font-family: 'DM Sans', sans-serif !important;
}

#main-nav .lg\:flex a {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.btn-primary,
.btn-ghost {
    font-family: 'DM Sans', sans-serif !important;
}

.section-label {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
}

/* --- Testimonials Slider Parity --- */
.testimonials-slider {
    padding: 20px 0 60px !important;
    overflow: visible !important;
}

.testimonials-slider .swiper-slide {
    height: auto !important;
    display: flex !important;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.testimonials-slider .swiper-slide-active {
    opacity: 1;
}

.testimonials-slider .testimonial-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

@media (min-width: 768px) {
    .testimonials-slider .testimonial-card {
        min-height: 180px;
    }
}

.testimonials-slider .swiper-button-next, 
.testimonials-slider .swiper-button-prev {
    color: #D1D5DB !important;
    width: 50px !important;
    height: 50px !important;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(10,10,10,0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonials-slider .swiper-button-next:after, 
.testimonials-slider .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.testimonials-slider .swiper-button-next:hover, 
.testimonials-slider .swiper-button-prev:hover {
    border-color: rgba(192,192,192,0.4);
    background: rgba(255,255,255,0.05);
}

.testimonials-slider .swiper-pagination-bullet {
    background: rgba(255,255,255,0.2) !important;
    width: 30px !important;
    height: 2px !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.testimonials-slider .swiper-pagination-bullet-active {
    background: #C0C0C0 !important;
    width: 50px !important;
}

@media (max-width: 768px) {
    .testimonials-slider .swiper-button-next, 
    .testimonials-slider .swiper-button-prev {
        display: none !important;
    }
}

footer h4, 
footer a, 
footer p, 
footer span {
    font-family: 'DM Sans', sans-serif !important;
}

/* --- Form Improvements --- */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: #fdfdfd !important;
    transition: background-color 5000s ease-in-out 0s;
}

input::placeholder {
    color: rgba(209, 213, 219, 0.3) !important;
}

select option {
    background-color: #1a1a1a;
    color: #fdfdfd;
}

/* --- Obsidian Design System Tokens --- */
:root {
    --obsidian: #000;
    --void: #050505;
    --charcoal: #0a0a0a;
    --ivory: #f0efed;
    --silver-primary: #b8b8b8;
    --silver-dim: #666;
    --silver-chrome: #9a9a9a;
    --silver-light: #d9d9d9;
    --background: #080808;
    --foreground: #d4d4d4;
    --emerald-500: #10b981;
    --amber-500: #f59e0b;
}

/* Background Utilities */
.bg-obsidian { background-color: var(--obsidian); }
.bg-void { background-color: var(--void); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-background { background-color: var(--background); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-silver-primary\/10 { background-color: rgba(184, 184, 184, 0.1); }
.bg-silver-primary\/20 { background-color: rgba(184, 184, 184, 0.2); }
.bg-silver-primary\/30 { background-color: rgba(184, 184, 184, 0.3); }

/* Text Utilities */
.text-ivory { color: var(--ivory); }
.text-silver-primary { color: var(--silver-primary); }
.text-silver-dim { color: var(--silver-dim); }
.text-silver-chrome { color: var(--silver-chrome); }
.text-silver-light { color: var(--silver-light); }
.text-obsidian { color: var(--obsidian); }
.text-chrome {
    background: linear-gradient(160deg, #efefef, #c8c8c8 30%, #9a9a9a 60%, silver 80%, #888) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}
.text-silver-highlight {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #888, #fff 45% 55%, #888) 0 0/200%;
    -webkit-background-clip: text;
    animation: glint 4s linear infinite;
}

@keyframes glint {
    to { background-position: 200%; }
}

/* Border Utilities */
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-silver-primary\/30 { border-color: rgba(184, 184, 184, 0.3); }
.border-silver-primary\/20 { border-color: rgba(184, 184, 184, 0.2); }

/* Components */
.card-dark {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s ease;
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(184, 184, 184, 0.2);
}

.btn-primary {
    color: #000 !important;
    background: linear-gradient(180deg, #d4d4d4, #9a9a9a 50%, #5a5a5a) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.4) !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px rgba(255,255,255,0.5) !important;
}

.btn-ghost {
    color: #c8c8c8 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(184, 184, 184, 0.15) !important;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-ghost:hover {
    color: #efefef !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(184, 184, 184, 0.4) !important;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: #9a9a9a;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

/* --- Design System Utilities --- */
.divider-chrome {
    background: linear-gradient(90deg, transparent, rgba(184, 184, 184, 0.2) 50%, transparent);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(184, 184, 184, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 184, 184, 0.2);
}

/* Modal States */
.modal-overlay {
    transition: opacity 0.5s ease;
}

.modal-content {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.translate-y-8 { transform: translateY(2rem); }
.translate-y-0 { transform: translateY(0); }

.testimonial-content.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 3px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 192, 0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 192, 192, 0.4);
}

/* Dashboard Specific Fixes */
.ride-row:hover {
    background: rgba(255, 255, 255, 0.015) !important;
}

.ride-row.active {
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 2px solid var(--silver-primary);
}

/* ==========================================================================
   FONT SYSTEM - Matching Design Template Exactly
   ========================================================================== */

/* DM Serif Display - Latin Extended subset */
@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/ccc01da6a2b3d788-s.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Serif Display - Latin (primary) subset */
@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/fa3e259cafa8f47e-s.p.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans - Latin Extended subset (weights 300-700) */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('./assets/fonts/7ab938503e4547a1-s.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans - Latin (primary) subset (weights 300-700) */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('./assets/fonts/13971731025ec697-s.p.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bind CSS variables to match the design Tailwind theme layer */
:root {
    --font-display: 'DM Serif Display', 'Times New Roman', serif;
    --font-sans: 'DM Sans', Arial, sans-serif;
}

/* Apply fonts globally */
body, nav a, #mobile-drawer a, .btn-primary, .btn-ghost, .section-label,
footer *, input, select, textarea, button {
    font-family: 'DM Sans', Arial, sans-serif !important;
}

h1, h2, h3, h4, .font-display, .hero-title {
    font-family: 'DM Serif Display', 'Times New Roman', serif !important;
}

.text-ivory {
    color: #f0efed !important;
}

.text-chrome {
    display: inline-block !important;
    background: linear-gradient(160deg, #efefef, #c8c8c8 30%, #9a9a9a 60%, silver 80%, #888) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.text-silver-chrome {
    color: #b8b8b8 !important;
}
