Files
mc_cars_gmbh_infraestructure/frontend/styles.css
T

1240 lines
36 KiB
CSS

:root {
--bg: #0b0c10;
--bg-elev: #14161c;
--bg-card: #181b23;
--line: #262a36;
--text: #f2efe8;
--muted: #9aa1ad;
--accent: #c48a42; /* burnished copper */
--accent-strong: #e0a55b;
--danger: #e05050;
--ok: #4fd1a3;
--radius: 14px;
--shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
--maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 {
font-family: "Playfair Display", "Inter", serif;
font-weight: 600;
letter-spacing: -0.01em;
margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 4.3vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; }
.eyebrow {
text-transform: uppercase;
letter-spacing: 0.22em;
font-size: 0.72rem;
color: var(--accent-strong);
font-weight: 600;
margin: 0 0 0.6rem;
}
.shell {
width: min(var(--maxw), 92vw);
margin: 0 auto;
}
section { padding: 5rem 0; }
/* ---------------- Header ---------------- */
.site-header {
position: sticky;
top: 0;
z-index: 40;
background: rgba(11, 12, 16, 0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255,255,255,0.05);
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header:focus-within {
background: rgba(11, 12, 16, 0.95);
border-color: rgba(255,255,255,0.1);
}
.site-header .shell {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1.2rem 0;
}
.logo {
display: flex;
align-items: center;
gap: 0.8rem;
color: var(--text);
font-family: "Playfair Display", serif;
font-weight: 600;
font-size: 1.3rem;
letter-spacing: -0.01em;
transition: opacity 0.2s;
outline-offset: 6px;
border-radius: 4px;
}
.logo:hover { opacity: 0.85; }
.logo-icon {
width: 2.3rem;
height: 2.3rem;
border-radius: 10px;
object-fit: cover;
box-shadow: 0 4px 12px rgba(196, 138, 66, 0.35);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.logo:hover .logo-icon {
transform: scale(1.04);
box-shadow: 0 6px 16px rgba(196, 138, 66, 0.55);
}
.logo-mark {
display: grid;
place-items: center;
width: 2.3rem;
height: 2.3rem;
border-radius: 10px;
background: linear-gradient(135deg, var(--accent) 0%, #8a5a22 100%);
color: #0b0c10;
font-weight: 700;
font-family: "Inter", sans-serif;
font-size: 0.9rem;
box-shadow: 0 4px 12px rgba(196, 138, 66, 0.4);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.logo:hover .logo-mark {
transform: scale(1.05) rotate(2deg);
box-shadow: 0 6px 16px rgba(196, 138, 66, 0.6);
}
.main-nav {
display: flex;
gap: 1.3rem;
align-items: center;
}
.main-nav a {
color: var(--muted);
font-size: 0.95rem;
font-weight: 500;
transition: color 0.2s ease, text-shadow 0.2s ease;
padding: 0.3rem 0.5rem;
border-radius: 6px;
}
.main-nav a:hover {
color: var(--text);
text-shadow: 0 0 12px rgba(255,255,255,0.2);
}
.main-nav a:focus-visible {
outline: 2px solid var(--accent);
color: var(--text);
}
.main-nav .btn {
margin-left: 0.8rem;
color: #0b0c10; /* Override .main-nav a color for contrast */
}
.main-nav .btn:hover {
color: #0b0c10;
}
.lang-toggle {
background: rgba(255,255,255,0.02);
color: var(--text);
border: 1px solid var(--line);
border-radius: 999px;
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.08em;
transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lang-toggle:hover {
border-color: var(--accent);
background: rgba(196, 138, 66, 0.1);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(196, 138, 66, 0.2);
}
.lang-toggle:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.menu-toggle {
display: none;
background: transparent;
border: 1px solid var(--line);
color: var(--text);
border-radius: 8px;
padding: 0.4rem 0.75rem;
cursor: pointer;
}
/* ---------------- Buttons ---------------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
border: none;
cursor: pointer;
background: var(--accent);
color: #0b0c10;
padding: 0.8rem 1.2rem;
border-radius: 10px;
font-weight: 600;
font-size: 0.95rem;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
font-family: inherit;
text-decoration: none;
}
.btn:hover {
background: var(--accent-strong);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(196, 138, 66, 0.3);
color: #0b0c10;
}
.btn:active {
transform: translateY(0);
}
.btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.btn.ghost {
background: transparent;
color: var(--text);
border: 1px solid var(--line);
box-shadow: none;
}
.btn.ghost:hover {
border-color: var(--accent);
color: var(--text);
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
background: rgba(255,255,255,0.02);
}
.btn.small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #f06060; box-shadow: 0 4px 12px rgba(224, 80, 80, 0.3); }
/* ---------------- Hero ---------------- */
.hero {
position: relative;
padding: 8rem 0 6rem;
overflow: hidden;
animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero::before {
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(11,12,16,0.6) 0%, rgba(11,12,16,0.95) 100%),
var(--hero-bg, url('images/ferrari-main-car.png')) center / cover no-repeat;
z-index: -1;
}
.hero .shell { max-width: 760px; }
.hero h1 { margin-bottom: 1rem; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 55ch; }
.hero-cta {
display: flex;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2.2rem;
}
.hero-stats {
display: flex;
gap: 3rem;
margin-top: 3.5rem;
flex-wrap: wrap;
}
.hero-stats div {
min-width: 8rem;
border-left: 2px solid rgba(196, 138, 66, 0.4);
padding-left: 1.2rem;
transition: border-color 0.3s ease;
}
.hero-stats div:hover {
border-color: var(--accent);
}
.hero-stats strong {
display: block;
font-size: 1.8rem;
font-family: "Playfair Display", serif;
color: var(--accent-strong);
text-shadow: 0 4px 12px rgba(196, 138, 66, 0.3);
margin-bottom: 0.2rem;
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
/* ---------------- Section head ---------------- */
.section-head {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 1.5rem;
margin-bottom: 3rem;
flex-wrap: wrap;
animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.section-head > div { max-width: 60ch; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-head p.sub { color: var(--muted); margin: 0; font-size: 1.05rem; line-height: 1.6; }
/* ---------------- Filters ---------------- */
.filters {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.2rem;
margin-bottom: 2.5rem;
padding: 1.5rem;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.filters label { display: grid; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--text); transition: color 0.2s; }
.filters label:focus-within { color: var(--accent-strong); }
select, input, textarea {
width: 100%;
padding: 0.7rem 0.85rem;
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: 10px;
color: var(--text);
font: inherit;
transition: border-color 0.15s;
}
input[type="date"] {
color-scheme: dark;
text-transform: uppercase;
letter-spacing: 0.05em;
font-size: 0.9rem;
cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
opacity: 0.5;
transition: opacity 0.2s;
cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
opacity: 1;
}
select:focus, input:focus, textarea:focus {
outline: none;
border-color: var(--accent);
}
/* ---------------- Vehicle grid ---------------- */
.vehicle-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.8rem;
}
.vehicle-card {
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.vehicle-card:hover {
transform: translateY(-6px);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
border-color: var(--accent);
}
.vehicle-photo {
position: relative;
aspect-ratio: 16 / 10;
background: #0e1015 center / cover no-repeat;
overflow: hidden;
transition: transform 0.4s ease;
}
.vehicle-card:hover .vehicle-photo {
transform: scale(1.02);
}
.vehicle-photo .badge {
position: absolute;
top: 0.8rem;
left: 0.8rem;
background: rgba(11,12,16,0.85);
backdrop-filter: blur(8px);
color: var(--accent-strong);
padding: 0.35rem 0.65rem;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.15em;
text-transform: uppercase;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.vehicle-body {
padding: 1.4rem;
display: flex;
flex-direction: column;
gap: 0.8rem;
flex: 1;
position: relative;
z-index: 2; /* overlap photo scale */
background: var(--bg-card);
}
.vehicle-body h3 { margin: 0; }
.vehicle-body .model-brand { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.spec-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.35rem;
padding: 0.6rem 0;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
font-size: 0.82rem;
}
.spec-row div { text-align: center; }
.spec-row strong { display: block; color: var(--text); font-size: 0.95rem; }
.spec-row span { color: var(--muted); font-size: 0.72rem; }
.vehicle-footer {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.6rem;
margin-top: auto;
}
.vehicle-price {
font-family: "Playfair Display", serif;
font-size: 1.35rem;
color: var(--accent-strong);
}
.vehicle-price span { font-size: 0.8rem; color: var(--muted); font-family: inherit; }
/* ---------------- Why section ---------------- */
.why-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.5rem;
}
.why-card {
padding: 2.5rem 1.8rem;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
display: flex;
flex-direction: column;
}
.why-card:hover {
transform: translateY(-8px);
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
border-color: var(--accent);
}
.why-card .icon {
width: 3.5rem;
height: 3.5rem;
border-radius: 12px;
background: rgba(196, 138, 66, 0.12);
color: var(--accent-strong);
display: grid;
place-items: center;
font-size: 1.6rem;
margin-bottom: 1.2rem;
transition: transform 0.3s reverse, background-color 0.3s ease;
}
.why-card:hover .icon {
transform: scale(1.1) rotate(5deg);
background: rgba(196, 138, 66, 0.2);
}
.why-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.why-card p { color: var(--muted); margin: 0; line-height: 1.6; }
/* ---------------- Reviews ---------------- */
.reviews-strip {
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 3rem 2rem;
min-height: 220px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
box-shadow: inset 0 0 100px rgba(0,0,0,0.1);
transition: opacity 0.3s ease;
}
.review-quote {
font-family: "Playfair Display", serif;
font-size: clamp(1.4rem, 2.5vw, 2rem);
line-height: 1.4;
margin: 0;
font-style: italic;
color: var(--text);
position: relative;
max-width: 60ch;
}
.review-quote::before {
content: "“";
position: absolute;
top: -1.5rem;
left: -2rem;
font-size: 4rem;
color: var(--accent);
opacity: 0.15;
font-family: serif;
}
.review-author {
margin-top: 1.5rem;
color: var(--muted);
font-size: 0.95rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.review-dots {
display: flex;
gap: 0.6rem;
justify-content: center;
margin-top: 1.5rem;
}
.review-dots button {
width: 10px; height: 10px; border-radius: 50%;
border: none; background: var(--line); cursor: pointer;
transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, width 0.3s ease;
outline-offset: 4px;
}
.review-dots button:hover {
background: rgba(196, 138, 66, 0.5);
transform: scale(1.2);
}
.review-dots button:focus-visible {
outline: 2px solid var(--accent);
}
.review-dots button.active {
background: var(--accent);
width: 32px;
border-radius: 6px;
transform: scale(1);
}
/* ---------------- Booking ---------------- */
.booking-form {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem 1.2rem;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 2.5rem;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
transition: box-shadow 0.3s ease;
}
.booking-form:focus-within {
box-shadow: 0 20px 48px rgba(196, 138, 66, 0.1);
}
.booking-form .full { grid-column: 1 / -1; }
.booking-form label { display: grid; gap: 0.5rem; font-size: 0.88rem; color: var(--text); font-weight: 500; transition: color 0.2s; }
.booking-form label:focus-within { color: var(--accent-strong); }
.bpf-panel select, .bpf-panel input, .bpf-panel textarea {
width: 100%;
padding: 0.85rem 1rem;
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: 8px;
color: var(--text);
font: inherit;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.bpf-panel select:focus, .bpf-panel input:focus, .bpf-panel textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(196, 138, 66, 0.2);
background: var(--bg-card);
}
.form-feedback {
margin-top: 1rem;
min-height: 1.2rem;
color: var(--ok);
}
.form-feedback.error { color: var(--danger); }
/* ---------------- Booking BPF Wizard ---------------- */
.bpf-header { text-align: center; margin-bottom: 2.5rem; }
.bpf-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.bpf-header .sub { color: var(--muted); font-size: 1rem; max-width: 50ch; margin: 0 auto; }
.bpf-steps {
display: flex; align-items: center; justify-content: center;
gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.bpf-step {
display: inline-flex; align-items: center; gap: 0.5rem;
background: rgba(255,255,255,0.03); border: 1px solid var(--line);
border-radius: 999px; padding: 0.6rem 1.2rem;
color: var(--muted); font-size: 0.88rem; font-weight: 500;
cursor: default; font-family: inherit; transition: all 0.3s ease;
}
.bpf-step.active {
background: var(--accent); color: #0b0c10; border-color: var(--accent);
font-weight: 600;
}
.bpf-step.done { border-color: var(--ok); color: var(--ok); }
.bpf-step-num {
display: inline-grid; place-items: center;
width: 1.5rem; height: 1.5rem; border-radius: 50%;
background: rgba(255,255,255,0.1); font-size: 0.75rem; font-weight: 700;
}
.bpf-step.active .bpf-step-num { background: rgba(0,0,0,0.2); color: #0b0c10; }
.bpf-step-arrow { color: var(--muted); font-size: 1.2rem; }
.bpf-layout {
display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start;
}
.bpf-main { min-width: 0; }
.bpf-panel {
background: var(--bg-card); border: 1px solid var(--line);
border-radius: var(--radius); padding: 2rem;
animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.bpf-panel-title { font-size: 1.1rem; font-family: "Inter", sans-serif; margin-bottom: 1.5rem; font-weight: 600; }
.bpf-field { margin-bottom: 1.2rem; }
.bpf-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.bpf-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bpf-weekend-def {
font-size: 0.8rem; color: var(--accent-strong); margin: 0.5rem 0 1.5rem;
padding: 0.5rem 0.8rem; background: rgba(196, 138, 66, 0.08);
border-radius: 8px; border-left: 3px solid var(--accent);
}
/* Duration presets */
.bpf-duration-presets {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.4rem;
}
.bpf-preset {
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 0.4rem; padding: 1rem 0.8rem;
background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
color: var(--text); font-family: inherit; font-size: 0.88rem; font-weight: 500;
cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpf-preset:hover { border-color: var(--accent); background: rgba(196, 138, 66, 0.06); }
.bpf-preset.active {
background: rgba(180, 50, 50, 0.15); border-color: var(--danger);
color: var(--text); box-shadow: 0 0 0 1px var(--danger);
}
.bpf-preset-icon { font-size: 1.3rem; }
.bpf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
/* Upload boxes */
.bpf-upload-box {
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 0.4rem; padding: 2rem;
border: 1px dashed var(--line); border-radius: 10px;
cursor: pointer; position: relative; transition: border-color 0.2s ease, background 0.2s ease;
min-height: 120px;
}
.bpf-upload-box:hover { border-color: var(--accent); background: rgba(196,138,66,0.04); }
.bpf-upload-icon { font-size: 1.5rem; }
.bpf-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bpf-file-name { font-size: 0.82rem; color: var(--ok); margin-top: 0.3rem; min-height: 1.2rem; }
.bpf-notice {
display: flex; align-items: flex-start; gap: 0.8rem;
padding: 1rem; background: var(--bg-elev);
border: 1px solid var(--line); border-radius: 10px; margin: 1.5rem 0;
}
.bpf-notice span { font-size: 1.2rem; flex-shrink: 0; }
.bpf-notice p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
/* Sidebar */
.bpf-sidebar {
background: var(--bg-card); border: 1px solid var(--line);
border-radius: var(--radius); padding: 1.8rem;
position: sticky; top: 6rem;
}
.bpf-sidebar-placeholder { color: var(--muted); text-align: center; font-size: 0.9rem; }
.bpf-sidebar-content h4 { font-family: "Inter", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.bpf-sidebar-content .bpf-price-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; }
.bpf-sidebar-content .bpf-price-row.total { font-weight: 700; font-size: 1.1rem; color: var(--accent-strong); border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.5rem; }
.bpf-sidebar-content .bpf-price-row .muted { color: var(--muted); }
.bpf-sidebar-content .bpf-car-preview { width: 100%; aspect-ratio: 16/10; border-radius: 10px; background: var(--bg-elev) center/cover no-repeat; margin-top: 1.2rem; }
.bpf-sidebar-content .bpf-car-name { font-weight: 700; margin-top: 0.6rem; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.bpf-sidebar-content .bpf-car-specs { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 900px) {
.bpf-layout { grid-template-columns: 1fr; }
.bpf-sidebar { position: static; }
.bpf-field-row { grid-template-columns: 1fr; }
}
/* ---------------- Footer ---------------- */
.site-footer {
border-top: 1px solid var(--line);
background: var(--bg-elev);
padding: 4rem 0 3rem;
margin-top: 4rem;
}
.footer-grid {
display: grid;
grid-template-columns: 2.5fr 1fr 1fr 1fr;
gap: 3rem;
margin-bottom: 3rem;
}
.footer-grid h4 {
font-family: "Inter", sans-serif;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.15em;
color: var(--text);
margin-bottom: 1.2rem;
font-weight: 600;
}
.footer-grid a {
display: inline-block;
color: var(--muted);
margin-bottom: 0.6rem;
font-size: 0.95rem;
transition: color 0.2s ease, transform 0.2s ease;
}
.footer-grid a:hover {
color: var(--accent);
transform: translateX(4px);
}
.footer-grid a:focus-visible {
outline: 2px solid var(--accent);
border-radius: 4px;
}
.footer-grid > div > a {
display: block;
}
.footer-bottom {
border-top: 1px solid var(--line);
padding-top: 1.8rem;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--muted);
font-size: 0.85rem;
flex-wrap: wrap;
gap: 1rem;
}
/* ----------------Toast Notification --------------- */
.toast {
position: fixed;
bottom: 2rem;
left: 50%;
transform: translateX(-50%) translateY(200px);
background: var(--accent);
color: var(--bg-base);
padding: 1rem 2rem;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
font-size: 0.95rem;
text-align: center;
max-width: 90%;
z-index: 9999;
transition: transform 0.3s ease;
pointer-events: none;
}
.toast.show {
transform: translateX(-50%) translateY(0);
pointer-events: auto;
}
/* ---------------- Dialog ---------------- */
dialog {
width: min(700px, 92vw);
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--bg-card);
color: var(--text);
padding: 0;
box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,0.6); }
.dialog-head {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.2rem;
border-bottom: 1px solid var(--line);
}
.dialog-body { padding: 1.2rem; }
.dialog-body img {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
border-radius: 10px;
margin-bottom: 1.5rem;
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
transition: transform 0.3s ease;
}
.dialog-body img:hover {
transform: scale(1.02);
}
.dialog-close {
background: transparent;
color: var(--muted);
border: 1px solid var(--line);
border-radius: 8px;
cursor: pointer;
width: 2rem; height: 2rem;
display: grid; place-items: center;
font-size: 1.2rem;
}
/* ---------------- Admin Animations ---------------- */
@keyframes slideUpFade {
0% { opacity: 0; transform: translateY(12px); }
100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
0% { opacity: 0; transform: scale(0.97); }
100% { opacity: 1; transform: scale(1); }
}
/* Apply staggered animation to panels and login sections */
.admin-login, .tab-panel {
animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* ---------------- Admin ---------------- */
.admin-page {
max-width: 1100px;
margin: 2rem auto;
padding: 0 1rem;
}
.admin-login {
max-width: 420px;
margin: 5rem auto;
padding: 2.5rem 2rem;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-login:hover {
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.admin-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.2rem 0;
margin-bottom: 2rem;
border-bottom: 1px solid var(--line);
}
.admin-bar h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.admin-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.8rem;
}
.panel {
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1.8rem;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.panel:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
border-color: var(--accent);
}
.panel h2 { font-size: 1.15rem; font-family: "Inter", sans-serif; margin-bottom: 1.2rem; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.admin-table th, table.admin-table td {
text-align: left;
padding: 0.75rem 0.6rem;
border-bottom: 1px solid var(--line);
transition: background-color 0.2s ease;
}
table.admin-table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 0.5rem; }
table.admin-table tbody tr { transition: transform 0.2s ease, background-color 0.2s ease; }
table.admin-table tbody tr:hover {
background: rgba(255,255,255,0.03);
transform: translateX(4px);
}
.link-lead { text-decoration: none; cursor: pointer; }
.link-lead:hover code { color: var(--accent-strong); text-decoration: underline; }
.admin-form { display: grid; gap: 1rem; }
.admin-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.admin-form label:focus-within { color: var(--accent-strong); }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.admin-photo-preview {
width: 100%;
aspect-ratio: 16 / 9;
background: var(--bg-elev) center / cover no-repeat;
border: 1px dashed var(--line);
border-radius: 10px;
margin-bottom: 0.5rem;
transition: border-color 0.3s ease, filter 0.3s ease;
}
.admin-photo-preview:hover {
filter: brightness(1.1);
}
/* ---------------- Forms / Toggle Switch ---------------- */
.toggle-switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
flex-shrink: 0;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: var(--line);
transition: background-color 0.3s ease;
border-radius: 24px;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: var(--text);
transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
border-radius: 50%;
}
input:checked + .toggle-slider {
background-color: var(--accent);
}
input:focus + .toggle-slider {
box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--accent);
}
input:checked + .toggle-slider:before {
transform: translateX(20px);
background-color: #111;
}
/* Admin tabs */
.admin-tabs {
display: flex; gap: 0.4rem;
margin-bottom: 1.5rem;
border-bottom: 2px solid var(--line);
padding-bottom: 0px;
flex-wrap: wrap;
}
.admin-tabs .tab {
background: transparent; border: none; color: var(--muted);
padding: 0.8rem 1.4rem;
border-radius: 12px 12px 0 0;
font-family: "Inter", sans-serif; font-weight: 500; cursor: pointer;
display: inline-flex; align-items: center; gap: 0.5rem;
border-bottom: 3px solid transparent;
transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
margin-bottom: -2px; /* Overlap border */
}
.admin-tabs .tab:hover {
color: var(--text);
background: rgba(255,255,255,0.03);
}
.admin-tabs .tab.active {
color: var(--accent-strong);
border-bottom-color: var(--accent);
background: rgba(196, 138, 66, 0.05);
}
.tab-badge {
background: var(--line); color: var(--text);
font-size: 0.75rem; padding: 0.15rem 0.6rem;
border-radius: 999px; min-width: 1.5rem; text-align: center;
transition: background-color 0.3s ease, color 0.3s ease;
}
.admin-tabs .tab.active .tab-badge { background: var(--accent); color: #111; font-weight: 600; }
.sub-tabs {
display: inline-flex; gap: 0.3rem;
background: rgba(255,255,255,0.03);
border: 1px solid var(--line);
border-radius: 999px;
padding: 0.25rem;
}
.sub-tab {
background: transparent; border: none; color: var(--muted);
padding: 0.4rem 1.1rem; border-radius: 999px; cursor: pointer;
font-size: 0.85rem; font-family: "Inter", sans-serif;
transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.sub-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.sub-tab.active { background: var(--accent); color: #111; font-weight: 600; transform: scale(1.02); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
/* Pills */
.pill {
display: inline-block; padding: 0.2rem 0.6rem;
border-radius: 999px; font-size: 0.72rem; text-transform: uppercase;
letter-spacing: 0.06em; font-weight: 600;
transition: filter 0.2s ease, transform 0.2s ease;
}
.pill:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pill-new { background: rgba(200, 150, 80, 0.15); color: #e4b676; border: 1px solid rgba(200, 150, 80, 0.3); }
.pill-qualified { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border: 1px solid rgba(90, 180, 120, 0.3); }
.pill-disqualified { background: rgba(180, 90, 90, 0.15); color: #d48a8a; border: 1px solid rgba(180, 90, 90, 0.3); }
.pill-active { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border: 1px solid rgba(90, 180, 120, 0.3); }
.pill-inactive { background: rgba(160, 160, 160, 0.12); color: var(--muted); border: 1px solid transparent; }
.muted { color: var(--muted); }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn.danger { background: #7a2b2b; color: #fff; }
.btn.danger:hover { background: #8f3535; }
/* Dialog */
dialog#leadDialog,
dialog#customerDialog {
border: 1px solid var(--line); border-radius: var(--radius);
background: var(--bg-card); color: var(--text);
padding: 0; max-width: 640px; width: 94%;
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
transition: opacity 0.3s ease, transform 0.3s ease;
}
dialog#leadDialog[open],
dialog#customerDialog[open] {
animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
dialog#leadDialog::backdrop,
dialog#customerDialog::backdrop {
background: rgba(0,0,0,0.7);
backdrop-filter: blur(4px);
animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
.dialog-head {
display: flex; justify-content: space-between; align-items: center;
padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--line);
background: rgba(255,255,255,0.02);
}
.dialog-close {
background: transparent; border: none; color: var(--muted);
font-size: 1.6rem; cursor: pointer; line-height: 1;
width: 2rem; height: 2rem;
display: grid; place-items: center; border-radius: 8px;
transition: background-color 0.2s ease, color 0.2s ease;
}
.dialog-close:hover {
background: rgba(255,255,255,0.1);
color: var(--text);
}
.dialog-body { padding: 1.6rem; }
dl.kv { display: grid; grid-template-columns: 140px 1fr; gap: 0.6rem 1rem; margin: 0; font-size: 0.9rem; }
dl.kv dt { color: var(--muted); font-weight: 500; }
dl.kv dd { margin: 0; color: var(--text); }
/* Dialog tabs */
.dialog-tabs {
display: flex; gap: 0.2rem;
padding: 0 1.6rem;
border-bottom: 1px solid var(--line);
background: rgba(255,255,255,0.01);
overflow-x: auto;
}
.dialog-tabs button {
background: transparent; border: none;
color: var(--muted); padding: 0.7rem 1rem;
font-size: 0.85rem; font-family: "Inter", sans-serif;
cursor: pointer; border-bottom: 2px solid transparent;
transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
white-space: nowrap;
}
.dialog-tabs button:hover {
color: var(--text); background: rgba(255,255,255,0.03);
}
.dialog-tabs button.active {
color: var(--accent-strong); border-bottom-color: var(--accent);
background: rgba(196, 138, 66, 0.05);
}
/* Dialog footer */
.dialog-footer {
padding: 1rem 1.6rem;
border-top: 1px solid var(--line);
background: rgba(255,255,255,0.01);
}
/* Pricing card */
.pricing-card {
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: 12px;
padding: 1.2rem 1.4rem;
}
.price-row {
display: flex; justify-content: space-between; align-items: center;
padding: 0.5rem 0; font-size: 0.92rem;
}
.price-row.total {
font-weight: 700; font-size: 1.15rem; color: var(--accent-strong);
border-top: 2px solid var(--accent);
padding-top: 0.8rem; margin-top: 0.4rem;
}
.price-row.divider {
border-top: 1px solid var(--line);
padding-top: 0.6rem; margin-top: 0.2rem;
}
.price-row.muted { color: var(--muted); font-size: 0.85rem; }
/* Document items */
.doc-item {
display: flex; justify-content: space-between; align-items: center;
padding: 0.8rem 1rem;
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: 10px;
margin-bottom: 0.6rem;
transition: border-color 0.2s ease;
}
.doc-item:hover {
border-color: var(--accent);
}
.doc-info {
display: flex; align-items: center; gap: 0.8rem; min-width: 0;
}
.doc-icon {
font-size: 1.4rem; flex-shrink: 0;
}
.doc-info strong {
display: block; font-size: 0.9rem; word-break: break-all;
}
.doc-info .muted {
font-size: 0.8rem; margin-top: 0.15rem;
}
/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
.filters, .booking-form, .admin-grid, .why-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr 1fr; }
.section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
.main-nav { display: none; position: absolute; right: 1rem; top: 100%; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius); }
.main-nav.open { display: flex; }
.menu-toggle { display: inline-flex; }
.footer-grid { grid-template-columns: 1fr; }
.admin-form .row2, .admin-form .row3 { grid-template-columns: 1fr; }
dl.kv { grid-template-columns: 100px 1fr; }
.dialog-tabs { padding: 0 0.8rem; }
.dialog-tabs button { padding: 0.6rem 0.7rem; font-size: 0.8rem; }
.dialog-body { padding: 1rem; }
.dialog-head { padding: 1rem 1.2rem; }
.dialog-footer { padding: 0.8rem 1.2rem; }
}
/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
.filters, .booking-form, .admin-grid, .why-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr 1fr; }
.section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
.main-nav { display: none; position: absolute; right: 1rem; top: 100%; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius); }
.main-nav.open { display: flex; }
.menu-toggle { display: inline-flex; }
.footer-grid { grid-template-columns: 1fr; }
.admin-form .row2, .admin-form .row3 { grid-template-columns: 1fr; }
}