/* =============================================================================
   MSP Chauffeur Service — shared design system
   Old-school luxury livery: black lacquer, oxblood red, ivory, brass hairlines.
   Type: Prata (engraved display serif) + Jost (1920s geometric sans).
   ============================================================================= */

html { scroll-behavior: smooth; }

body {
    background-color: #0a0b0e;
    color: #f1e9d7;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(47, 107, 255, 0.55);
    color: #f7f1e3;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0b0e; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1b41a8, #0d1d4d);
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Signature: the coach plate — double hairline frame like an engraved
   plate on a vintage limousine door. Use .plate on panels and photos.
   -------------------------------------------------------------------------- */
.plate {
    position: relative;
    border: 1px solid rgba(193, 154, 63, 0.38);
}
.plate::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(193, 154, 63, 0.18);
    pointer-events: none;
}

/* Ivory variant for light sections */
.plate-dark {
    position: relative;
    border: 1px solid rgba(10, 11, 14, 0.45);
}
.plate-dark::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(10, 11, 14, 0.2);
    pointer-events: none;
}

/* Engraved caption plate under framed photographs */
.caption-plate {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(193, 154, 63, 0.45);
    background: linear-gradient(180deg, #1f2229, #111317);
    padding: 0.55rem 1.4rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #d9b96a;
}

/* --------------------------------------------------------------------------
   Eyebrow — letterspaced small caps flanked by hairlines + diamond
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #c19a3f;
}
.eyebrow::before,
.eyebrow::after {
    content: '';
    height: 1px;
    width: 2.5rem;
    background: linear-gradient(90deg, transparent, rgba(193, 154, 63, 0.6));
}
.eyebrow::after {
    background: linear-gradient(90deg, rgba(193, 154, 63, 0.6), transparent);
}

/* Diamond divider between sections */
.divider-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(193, 154, 63, 0.7);
    font-size: 0.6rem;
}
.divider-diamond::before,
.divider-diamond::after {
    content: '';
    height: 1px;
    flex: 1;
    max-width: 10rem;
    background: linear-gradient(90deg, transparent, rgba(193, 154, 63, 0.35));
}
.divider-diamond::after {
    background: linear-gradient(90deg, rgba(193, 154, 63, 0.35), transparent);
}

/* --------------------------------------------------------------------------
   Buttons — rectangular, engraved hairline inset, letterspaced caps
   -------------------------------------------------------------------------- */
.btn-carmine {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(180deg, #2f6bff, #2455d6);
    color: #f7f1e3;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.18), 0 8px 24px rgba(47, 107, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-carmine:hover {
    background: linear-gradient(180deg, #4a80ff, #2f6bff);
    box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.3), 0 10px 30px rgba(47, 107, 255, 0.4);
    transform: translateY(-1px);
}
.btn-carmine:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid rgba(193, 154, 63, 0.45);
    color: #e7dcc4;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.btn-ghost:hover {
    border-color: rgba(193, 154, 63, 0.8);
    background: rgba(193, 154, 63, 0.07);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header-scrolled {
    background: rgba(10, 11, 14, 0.96) !important;
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(193, 154, 63, 0.22);
}

.elegant-link {
    position: relative;
}
.elegant-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #2f6bff, transparent);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.elegant-link:hover::after { width: 100%; }

.nav-dropdown { display: none; }
.nav-dropdown.show { display: block; }

/* --------------------------------------------------------------------------
   The seal — round monogram roundel used as brand mark (name pending)
   -------------------------------------------------------------------------- */
.seal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: radial-gradient(circle at 35% 30%, #2455d6, #142e78 70%);
    border: 1px solid rgba(193, 154, 63, 0.55);
    box-shadow: inset 0 0 0 3px rgba(10, 11, 14, 0.45), inset 0 0 0 4px rgba(193, 154, 63, 0.3), 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #f1e9d7;
    font-family: 'Prata', serif;
    font-size: 1.05rem;
    line-height: 1;
    user-select: none;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.input-luxury {
    background: rgba(31, 34, 41, 0.55);
    border: 1px solid rgba(193, 154, 63, 0.2);
    border-radius: 2px;
    color: #f7f1e3;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-luxury::placeholder { color: #9c7280; }
.input-luxury:focus {
    outline: none;
    border-color: rgba(47, 107, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.35), 0 0 24px rgba(47, 107, 255, 0.12);
}

.input-error {
    border-color: #c05468 !important;
    box-shadow: 0 0 0 1px rgba(192, 84, 104, 0.4) !important;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #8fb3ff;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Date/time picker styling */
input[type="date"], input[type="time"] {
    cursor: pointer;
    position: relative;
    color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.8) sepia(0.3) opacity(0.6);
    position: absolute;
    right: 1rem;
    width: 1.15rem;
    height: 1.15rem;
}
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit { cursor: pointer; }

/* Vehicle selection cards */
.vehicle-card input:checked + div {
    border-color: rgba(47, 107, 255, 0.85) !important;
    background: linear-gradient(160deg, rgba(47, 107, 255, 0.16), rgba(27, 65, 168, 0.06));
    box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.35), 0 0 22px rgba(47, 107, 255, 0.12);
}
.vehicle-card input:checked + div .vehicle-name {
    color: #f7f1e3;
}
.vehicle-card input:focus-visible + div {
    outline: 2px solid #c19a3f;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Google Places Autocomplete dropdown
   -------------------------------------------------------------------------- */
.pac-container {
    background-color: #171a1f;
    border: 1px solid rgba(193, 154, 63, 0.3);
    border-radius: 2px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    font-family: 'Jost', system-ui, sans-serif;
}
.pac-item {
    padding: 0.75rem 1rem;
    color: #d2c9bc;
    border-top: 1px solid rgba(247, 241, 227, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.pac-item:first-child { border-top: none; }
.pac-item:hover, .pac-item-selected {
    background-color: rgba(47, 107, 255, 0.14);
}
.pac-item-query { color: #f7f1e3; font-weight: 500; }
.pac-matched { color: #d9b96a; font-weight: 600; }
.pac-icon { filter: invert(1) opacity(0.5); }
.pac-logo::after { background-image: none; display: none; }

/* --------------------------------------------------------------------------
   Toast notifications
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 2px;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    z-index: 9999;
    animation: toast-in 0.3s ease-out;
    transition: opacity 0.3s ease;
}
.toast-error {
    background: #0d1d4d;
    color: #8fb3ff;
    border: 1px solid #1b41a8;
}
.toast-success {
    background: #14291b;
    color: #a7d4b4;
    border: 1px solid #1e5230;
}
.toast-info {
    background: #1f2229;
    color: #e7dcc4;
    border: 1px solid rgba(193, 154, 63, 0.4);
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

.loading-spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.price-pulse { animation: price-pulse 0.5s ease-out; }
@keyframes price-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-fade-in-up, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
    .price-pulse { animation: none; }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.pb-safe { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }

@media (max-width: 1023px) {
    footer { padding-bottom: 100px !important; }
}
