Files
mc_cars_gmbh_infraestructure/frontend/styles.css
T

645 lines
17 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.85);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--line);
}
.site-header .shell {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.9rem 0;
}
.logo {
display: flex;
align-items: center;
gap: 0.65rem;
color: var(--text);
font-family: "Playfair Display", serif;
font-weight: 600;
font-size: 1.2rem;
}
.logo-mark {
display: grid;
place-items: center;
width: 2.1rem;
height: 2.1rem;
border-radius: 8px;
background: linear-gradient(135deg, var(--accent) 0%, #8a5a22 100%);
color: #0b0c10;
font-weight: 700;
font-family: "Inter", sans-serif;
font-size: 0.85rem;
}
.main-nav {
display: flex;
gap: 1.3rem;
align-items: center;
}
.main-nav a {
color: var(--muted);
font-size: 0.93rem;
font-weight: 500;
transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }
.main-nav .btn { margin-left: 0.6rem; }
.lang-toggle {
background: transparent;
color: var(--text);
border: 1px solid var(--line);
border-radius: 999px;
padding: 0.4rem 0.85rem;
cursor: pointer;
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.08em;
}
.lang-toggle:hover { border-color: var(--accent); }
.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.15s ease, background 0.15s ease;
font-family: inherit;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); color: #0b0c10; }
.btn.ghost {
background: transparent;
color: var(--text);
border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--text); }
.btn.small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #f06060; }
/* ---------------- Hero ---------------- */
.hero {
position: relative;
padding: 6rem 0 5rem;
overflow: hidden;
}
.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%),
url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1900&q=80') 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: 0.8rem;
flex-wrap: wrap;
margin-top: 1.8rem;
}
.hero-stats {
display: flex;
gap: 2rem;
margin-top: 2.5rem;
flex-wrap: wrap;
}
.hero-stats div { min-width: 8rem; }
.hero-stats strong {
display: block;
font-size: 1.5rem;
font-family: "Playfair Display", serif;
color: var(--accent-strong);
}
.hero-stats span { color: var(--muted); font-size: 0.85rem; }
/* ---------------- Section head ---------------- */
.section-head {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.section-head > div { max-width: 55ch; }
.section-head p.sub { color: var(--muted); margin: 0; }
/* ---------------- Filters ---------------- */
.filters {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.8rem;
margin-bottom: 1.5rem;
}
.filters label { display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--muted); }
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;
}
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(280px, 1fr));
gap: 1.2rem;
}
.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.2s, border-color 0.2s;
}
.vehicle-card:hover {
transform: translateY(-3px);
border-color: var(--accent);
}
.vehicle-photo {
position: relative;
aspect-ratio: 16 / 10;
background: #0e1015 center / cover no-repeat;
overflow: hidden;
}
.vehicle-photo .badge {
position: absolute;
top: 0.7rem;
left: 0.7rem;
background: rgba(11,12,16,0.75);
backdrop-filter: blur(5px);
color: var(--accent-strong);
padding: 0.25rem 0.55rem;
border-radius: 999px;
font-size: 0.7rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.vehicle-body {
padding: 1rem 1.1rem 1.1rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
flex: 1;
}
.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: 1rem;
}
.why-card {
padding: 1.8rem 1.4rem;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.why-card .icon {
width: 2.8rem;
height: 2.8rem;
border-radius: 10px;
background: rgba(196, 138, 66, 0.15);
color: var(--accent-strong);
display: grid;
place-items: center;
font-size: 1.3rem;
margin-bottom: 0.9rem;
}
.why-card p { color: var(--muted); margin: 0.3rem 0 0; }
/* ---------------- Reviews ---------------- */
.reviews-strip {
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 2rem;
min-height: 180px;
}
.review-quote {
font-family: "Playfair Display", serif;
font-size: 1.25rem;
line-height: 1.5;
margin: 0;
font-style: italic;
}
.review-author { margin-top: 0.8rem; color: var(--muted); font-size: 0.88rem; }
.review-dots {
display: flex;
gap: 0.4rem;
justify-content: center;
margin-top: 1rem;
}
.review-dots button {
width: 9px; height: 9px; border-radius: 50%;
border: none; background: var(--line); cursor: pointer;
transition: background 0.2s, width 0.2s;
}
.review-dots button.active { background: var(--accent); width: 24px; border-radius: 5px; }
/* ---------------- Booking ---------------- */
.booking-form {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.9rem;
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1.8rem;
}
.booking-form .full { grid-column: 1 / -1; }
.booking-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--muted); }
.form-feedback {
margin-top: 1rem;
min-height: 1.2rem;
color: var(--ok);
}
.form-feedback.error { color: var(--danger); }
/* ---------------- Footer ---------------- */
.site-footer {
border-top: 1px solid var(--line);
background: var(--bg-elev);
padding: 3rem 0 2rem;
margin-top: 3rem;
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 2rem;
margin-bottom: 2rem;
}
.footer-grid h4 {
font-family: "Inter", sans-serif;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.15em;
color: var(--muted);
margin-bottom: 0.7rem;
}
.footer-grid a {
display: block;
color: var(--text);
margin-bottom: 0.4rem;
font-size: 0.92rem;
}
.footer-bottom {
border-top: 1px solid var(--line);
padding-top: 1.2rem;
display: flex;
justify-content: space-between;
color: var(--muted);
font-size: 0.82rem;
flex-wrap: wrap;
gap: 0.6rem;
}
/* ---------------- 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: 1rem;
}
.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 ---------------- */
.admin-page {
max-width: 1100px;
margin: 2rem auto;
padding: 0 1rem;
}
.admin-login {
max-width: 420px;
margin: 5rem auto;
padding: 2rem;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.admin-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--line);
}
.admin-bar h1 { margin: 0; font-size: 1.4rem; }
.admin-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}
.panel {
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1.4rem;
}
.panel h2 { font-size: 1.1rem; font-family: "Inter", sans-serif; margin-bottom: 1rem; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.admin-table th, table.admin-table td {
text-align: left;
padding: 0.55rem 0.5rem;
border-bottom: 1px solid var(--line);
}
table.admin-table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
table.admin-table tr:hover { background: rgba(255,255,255,0.02); }
.admin-form { display: grid; gap: 0.7rem; }
.admin-form label { display: grid; gap: 0.25rem; font-size: 0.82rem; color: var(--muted); }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.7rem; }
.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;
}
/* Admin tabs */
.admin-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.2rem; flex-wrap: wrap; }
.admin-tabs .tab {
background: transparent; border: none; color: var(--muted);
padding: 0.6rem 1rem; border-radius: 10px 10px 0 0;
font-family: "Inter", sans-serif; font-weight: 500; cursor: pointer;
display: inline-flex; align-items: center; gap: 0.4rem;
border-bottom: 2px solid transparent;
}
.admin-tabs .tab:hover { color: var(--fg); }
.admin-tabs .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-badge {
background: var(--bg-elev); color: var(--fg);
font-size: 0.7rem; padding: 0.1rem 0.5rem;
border-radius: 999px; min-width: 1.3rem; text-align: center;
}
.admin-tabs .tab.active .tab-badge { background: var(--accent); color: #111; }
.sub-tabs { display: inline-flex; gap: 0.3rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem; }
.sub-tab {
background: transparent; border: none; color: var(--muted);
padding: 0.35rem 0.9rem; border-radius: 999px; cursor: pointer;
font-size: 0.82rem; font-family: "Inter", sans-serif;
}
.sub-tab.active { background: var(--accent); color: #111; font-weight: 600; }
/* Pills */
.pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line); }
.pill-new { background: rgba(200, 150, 80, 0.15); color: #e4b676; border-color: rgba(200, 150, 80, 0.4); }
.pill-qualified { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border-color: rgba(90, 180, 120, 0.4); }
.pill-disqualified { background: rgba(180, 90, 90, 0.15); color: #d48a8a; border-color: rgba(180, 90, 90, 0.4); }
.pill-active { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border-color: rgba(90, 180, 120, 0.4); }
.pill-inactive { background: rgba(160, 160, 160, 0.12); color: var(--muted); }
.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 {
border: 1px solid var(--line); border-radius: var(--radius);
background: var(--bg-card); color: var(--fg);
padding: 0; max-width: 560px; width: 92%;
}
dialog#leadDialog::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-close {
background: transparent; border: none; color: var(--muted);
font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.dialog-body { padding: 1.2rem; }
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 0.4rem 1rem; margin: 0; font-size: 0.88rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
/* ---------------- 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; }
}