style: enhance main website UI, focus states, animations, spacing and hover effects

This commit is contained in:
Lago
2026-04-18 00:03:41 +02:00
parent 1820f7d766
commit ac8f1a8d9b
+268 -91
View File
@@ -63,9 +63,15 @@ section { padding: 5rem 0; }
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 40; z-index: 40;
background: rgba(11, 12, 16, 0.85); background: rgba(11, 12, 16, 0.7);
backdrop-filter: blur(10px); backdrop-filter: blur(12px);
border-bottom: 1px solid var(--line); -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 { .site-header .shell {
@@ -73,30 +79,41 @@ section { padding: 5rem 0; }
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 1rem; gap: 1rem;
padding: 0.9rem 0; padding: 1.2rem 0;
} }
.logo { .logo {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.65rem; gap: 0.8rem;
color: var(--text); color: var(--text);
font-family: "Playfair Display", serif; font-family: "Playfair Display", serif;
font-weight: 600; font-weight: 600;
font-size: 1.2rem; font-size: 1.3rem;
letter-spacing: -0.01em;
transition: opacity 0.2s;
outline-offset: 6px;
border-radius: 4px;
} }
.logo:hover { opacity: 0.85; }
.logo-mark { .logo-mark {
display: grid; display: grid;
place-items: center; place-items: center;
width: 2.1rem; width: 2.3rem;
height: 2.1rem; height: 2.3rem;
border-radius: 8px; border-radius: 10px;
background: linear-gradient(135deg, var(--accent) 0%, #8a5a22 100%); background: linear-gradient(135deg, var(--accent) 0%, #8a5a22 100%);
color: #0b0c10; color: #0b0c10;
font-weight: 700; font-weight: 700;
font-family: "Inter", sans-serif; font-family: "Inter", sans-serif;
font-size: 0.85rem; 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 { .main-nav {
@@ -107,28 +124,47 @@ section { padding: 5rem 0; }
.main-nav a { .main-nav a {
color: var(--muted); color: var(--muted);
font-size: 0.93rem; font-size: 0.95rem;
font-weight: 500; font-weight: 500;
transition: color 0.2s; 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); } .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.6rem; } .main-nav .btn { margin-left: 0.8rem; }
.lang-toggle { .lang-toggle {
background: transparent; background: rgba(255,255,255,0.02);
color: var(--text); color: var(--text);
border: 1px solid var(--line); border: 1px solid var(--line);
border-radius: 999px; border-radius: 999px;
padding: 0.4rem 0.85rem; padding: 0.5rem 1rem;
cursor: pointer; cursor: pointer;
font-size: 0.82rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
letter-spacing: 0.08em; 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); } .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 { .menu-toggle {
display: none; display: none;
@@ -154,28 +190,48 @@ section { padding: 5rem 0; }
border-radius: 10px; border-radius: 10px;
font-weight: 600; font-weight: 600;
font-size: 0.95rem; font-size: 0.95rem;
transition: transform 0.15s ease, background 0.15s ease; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
font-family: inherit; font-family: inherit;
text-decoration: none;
} }
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); color: #0b0c10; } .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 { .btn.ghost {
background: transparent; background: transparent;
color: var(--text); color: var(--text);
border: 1px solid var(--line); 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.ghost:hover { border-color: var(--accent); color: var(--text); }
.btn.small { padding: 0.55rem 0.9rem; font-size: 0.85rem; } .btn.small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.btn.danger { background: var(--danger); color: #fff; } .btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #f06060; } .btn.danger:hover { background: #f06060; box-shadow: 0 4px 12px rgba(224, 80, 80, 0.3); }
/* ---------------- Hero ---------------- */ /* ---------------- Hero ---------------- */
.hero { .hero {
position: relative; position: relative;
padding: 6rem 0 5rem; padding: 8rem 0 6rem;
overflow: hidden; overflow: hidden;
animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
} }
.hero::before { .hero::before {
@@ -194,49 +250,67 @@ section { padding: 5rem 0; }
.hero-cta { .hero-cta {
display: flex; display: flex;
gap: 0.8rem; gap: 1rem;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 1.8rem; margin-top: 2.2rem;
} }
.hero-stats { .hero-stats {
display: flex; display: flex;
gap: 2rem; gap: 3rem;
margin-top: 2.5rem; margin-top: 3.5rem;
flex-wrap: wrap; flex-wrap: wrap;
} }
.hero-stats div { min-width: 8rem; } .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 { .hero-stats strong {
display: block; display: block;
font-size: 1.5rem; font-size: 1.8rem;
font-family: "Playfair Display", serif; font-family: "Playfair Display", serif;
color: var(--accent-strong); 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.85rem; } .hero-stats span { color: var(--muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
/* ---------------- Section head ---------------- */ /* ---------------- Section head ---------------- */
.section-head { .section-head {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-end; align-items: flex-end;
gap: 1rem; gap: 1.5rem;
margin-bottom: 2rem; margin-bottom: 3rem;
flex-wrap: wrap; flex-wrap: wrap;
animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
} }
.section-head > div { max-width: 55ch; } .section-head > div { max-width: 60ch; }
.section-head p.sub { color: var(--muted); margin: 0; } .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 ---------------- */
.filters { .filters {
display: grid; display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.8rem; gap: 1.2rem;
margin-bottom: 1.5rem; 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.35rem; font-size: 0.82rem; color: var(--muted); } .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 { select, input, textarea {
width: 100%; width: 100%;
@@ -257,8 +331,8 @@ select:focus, input:focus, textarea:focus {
/* ---------------- Vehicle grid ---------------- */ /* ---------------- Vehicle grid ---------------- */
.vehicle-grid { .vehicle-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.2rem; gap: 1.8rem;
} }
.vehicle-card { .vehicle-card {
@@ -268,11 +342,12 @@ select:focus, input:focus, textarea:focus {
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
transition: transform 0.2s, border-color 0.2s; 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 { .vehicle-card:hover {
transform: translateY(-3px); transform: translateY(-6px);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
border-color: var(--accent); border-color: var(--accent);
} }
@@ -281,28 +356,37 @@ select:focus, input:focus, textarea:focus {
aspect-ratio: 16 / 10; aspect-ratio: 16 / 10;
background: #0e1015 center / cover no-repeat; background: #0e1015 center / cover no-repeat;
overflow: hidden; overflow: hidden;
transition: transform 0.4s ease;
}
.vehicle-card:hover .vehicle-photo {
transform: scale(1.02);
} }
.vehicle-photo .badge { .vehicle-photo .badge {
position: absolute; position: absolute;
top: 0.7rem; top: 0.8rem;
left: 0.7rem; left: 0.8rem;
background: rgba(11,12,16,0.75); background: rgba(11,12,16,0.85);
backdrop-filter: blur(5px); backdrop-filter: blur(8px);
color: var(--accent-strong); color: var(--accent-strong);
padding: 0.25rem 0.55rem; padding: 0.35rem 0.65rem;
border-radius: 999px; border-radius: 999px;
font-size: 0.7rem; font-size: 0.72rem;
letter-spacing: 0.12em; font-weight: 600;
letter-spacing: 0.15em;
text-transform: uppercase; text-transform: uppercase;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
} }
.vehicle-body { .vehicle-body {
padding: 1rem 1.1rem 1.1rem; padding: 1.4rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.6rem; gap: 0.8rem;
flex: 1; flex: 1;
position: relative;
z-index: 2; /* overlap photo scale */
background: var(--bg-card);
} }
.vehicle-body h3 { margin: 0; } .vehicle-body h3 { margin: 0; }
@@ -341,77 +425,154 @@ select:focus, input:focus, textarea:focus {
.why-grid { .why-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem; gap: 1.5rem;
} }
.why-card { .why-card {
padding: 1.8rem 1.4rem; padding: 2.5rem 1.8rem;
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--line); border: 1px solid var(--line);
border-radius: var(--radius); 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 { .why-card .icon {
width: 2.8rem; width: 3.5rem;
height: 2.8rem; height: 3.5rem;
border-radius: 10px; border-radius: 12px;
background: rgba(196, 138, 66, 0.15); background: rgba(196, 138, 66, 0.12);
color: var(--accent-strong); color: var(--accent-strong);
display: grid; display: grid;
place-items: center; place-items: center;
font-size: 1.3rem; font-size: 1.6rem;
margin-bottom: 0.9rem; 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 p { color: var(--muted); margin: 0.3rem 0 0; } .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 ---------------- */
.reviews-strip { .reviews-strip {
background: var(--bg-elev); background: var(--bg-card);
border: 1px solid var(--line); border: 1px solid var(--line);
border-radius: var(--radius); border-radius: var(--radius);
padding: 2rem; padding: 3rem 2rem;
min-height: 180px; 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 { .review-quote {
font-family: "Playfair Display", serif; font-family: "Playfair Display", serif;
font-size: 1.25rem; font-size: clamp(1.4rem, 2.5vw, 2rem);
line-height: 1.5; line-height: 1.4;
margin: 0; margin: 0;
font-style: italic; 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: 0.8rem; color: var(--muted); font-size: 0.88rem; } .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 { .review-dots {
display: flex; display: flex;
gap: 0.4rem; gap: 0.6rem;
justify-content: center; justify-content: center;
margin-top: 1rem; margin-top: 1.5rem;
} }
.review-dots button { .review-dots button {
width: 9px; height: 9px; border-radius: 50%; width: 10px; height: 10px; border-radius: 50%;
border: none; background: var(--line); cursor: pointer; border: none; background: var(--line); cursor: pointer;
transition: background 0.2s, width 0.2s; 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);
} }
.review-dots button.active { background: var(--accent); width: 24px; border-radius: 5px; }
/* ---------------- Booking ---------------- */ /* ---------------- Booking ---------------- */
.booking-form { .booking-form {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 0.9rem; gap: 1.5rem 1.2rem;
background: var(--bg-elev); background: var(--bg-card);
border: 1px solid var(--line); border: 1px solid var(--line);
border-radius: var(--radius); border-radius: var(--radius);
padding: 1.8rem; 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 .full { grid-column: 1 / -1; }
.booking-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--muted); } .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); }
select, input, 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;
}
select:focus, input:focus, 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 { .form-feedback {
margin-top: 1rem; margin-top: 1rem;
@@ -424,42 +585,53 @@ select:focus, input:focus, textarea:focus {
.site-footer { .site-footer {
border-top: 1px solid var(--line); border-top: 1px solid var(--line);
background: var(--bg-elev); background: var(--bg-elev);
padding: 3rem 0 2rem; padding: 4rem 0 3rem;
margin-top: 3rem; margin-top: 4rem;
} }
.footer-grid { .footer-grid {
display: grid; display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-columns: 2.5fr 1fr 1fr 1fr;
gap: 2rem; gap: 3rem;
margin-bottom: 2rem; margin-bottom: 3rem;
} }
.footer-grid h4 { .footer-grid h4 {
font-family: "Inter", sans-serif; font-family: "Inter", sans-serif;
font-size: 0.8rem; font-size: 0.85rem;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.15em; letter-spacing: 0.15em;
color: var(--muted); color: var(--text);
margin-bottom: 0.7rem; margin-bottom: 1.2rem;
font-weight: 600;
} }
.footer-grid a { .footer-grid a {
display: block; display: inline-block;
color: var(--text); color: var(--muted);
margin-bottom: 0.4rem; margin-bottom: 0.6rem;
font-size: 0.92rem; 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-bottom { .footer-bottom {
border-top: 1px solid var(--line); border-top: 1px solid var(--line);
padding-top: 1.2rem; padding-top: 1.8rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
color: var(--muted); color: var(--muted);
font-size: 0.82rem; font-size: 0.85rem;
flex-wrap: wrap; flex-wrap: wrap;
gap: 0.6rem; gap: 1rem;
} }
/* ---------------- Dialog ---------------- */ /* ---------------- Dialog ---------------- */
@@ -489,7 +661,12 @@ dialog::backdrop { background: rgba(0,0,0,0.6); }
aspect-ratio: 16 / 9; aspect-ratio: 16 / 9;
object-fit: cover; object-fit: cover;
border-radius: 10px; border-radius: 10px;
margin-bottom: 1rem; 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 { .dialog-close {