diff --git a/frontend/styles.css b/frontend/styles.css index 5ce9ad0..a245d2f 100644 --- a/frontend/styles.css +++ b/frontend/styles.css @@ -63,9 +63,15 @@ section { padding: 5rem 0; } position: sticky; top: 0; z-index: 40; - background: rgba(11, 12, 16, 0.85); - backdrop-filter: blur(10px); - border-bottom: 1px solid var(--line); + 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 { @@ -73,30 +79,41 @@ section { padding: 5rem 0; } align-items: center; justify-content: space-between; gap: 1rem; - padding: 0.9rem 0; + padding: 1.2rem 0; } .logo { display: flex; align-items: center; - gap: 0.65rem; + gap: 0.8rem; color: var(--text); font-family: "Playfair Display", serif; 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 { display: grid; place-items: center; - width: 2.1rem; - height: 2.1rem; - border-radius: 8px; + 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.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 { @@ -107,28 +124,47 @@ section { padding: 5rem 0; } .main-nav a { color: var(--muted); - font-size: 0.93rem; + font-size: 0.95rem; 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 { - background: transparent; + background: rgba(255,255,255,0.02); color: var(--text); border: 1px solid var(--line); border-radius: 999px; - padding: 0.4rem 0.85rem; + padding: 0.5rem 1rem; cursor: pointer; - font-size: 0.82rem; + 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); } +.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; @@ -154,28 +190,48 @@ section { padding: 5rem 0; } border-radius: 10px; font-weight: 600; 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; + 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 { 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.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; } +.btn.danger:hover { background: #f06060; box-shadow: 0 4px 12px rgba(224, 80, 80, 0.3); } /* ---------------- Hero ---------------- */ .hero { position: relative; - padding: 6rem 0 5rem; + padding: 8rem 0 6rem; overflow: hidden; + animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; } .hero::before { @@ -194,49 +250,67 @@ section { padding: 5rem 0; } .hero-cta { display: flex; - gap: 0.8rem; + gap: 1rem; flex-wrap: wrap; - margin-top: 1.8rem; + margin-top: 2.2rem; } .hero-stats { display: flex; - gap: 2rem; - margin-top: 2.5rem; + gap: 3rem; + margin-top: 3.5rem; 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 { display: block; - font-size: 1.5rem; + 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.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 { display: flex; justify-content: space-between; align-items: flex-end; - gap: 1rem; - margin-bottom: 2rem; + 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: 55ch; } -.section-head p.sub { color: var(--muted); margin: 0; } +.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: 0.8rem; - margin-bottom: 1.5rem; + 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.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 { width: 100%; @@ -257,8 +331,8 @@ select:focus, input:focus, textarea:focus { /* ---------------- Vehicle grid ---------------- */ .vehicle-grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); - gap: 1.2rem; + grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); + gap: 1.8rem; } .vehicle-card { @@ -268,11 +342,12 @@ select:focus, input:focus, textarea:focus { overflow: hidden; display: flex; 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 { - transform: translateY(-3px); + transform: translateY(-6px); + box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4); border-color: var(--accent); } @@ -281,28 +356,37 @@ select:focus, input:focus, textarea:focus { 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.7rem; - left: 0.7rem; - background: rgba(11,12,16,0.75); - backdrop-filter: blur(5px); + top: 0.8rem; + left: 0.8rem; + background: rgba(11,12,16,0.85); + backdrop-filter: blur(8px); color: var(--accent-strong); - padding: 0.25rem 0.55rem; + padding: 0.35rem 0.65rem; border-radius: 999px; - font-size: 0.7rem; - letter-spacing: 0.12em; + 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: 1rem 1.1rem 1.1rem; + padding: 1.4rem; display: flex; flex-direction: column; - gap: 0.6rem; + gap: 0.8rem; flex: 1; + position: relative; + z-index: 2; /* overlap photo scale */ + background: var(--bg-card); } .vehicle-body h3 { margin: 0; } @@ -341,77 +425,154 @@ select:focus, input:focus, textarea:focus { .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: 1rem; + gap: 1.5rem; } .why-card { - padding: 1.8rem 1.4rem; + 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: 2.8rem; - height: 2.8rem; - border-radius: 10px; - background: rgba(196, 138, 66, 0.15); + 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.3rem; - margin-bottom: 0.9rem; + 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 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-strip { - background: var(--bg-elev); + background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); - padding: 2rem; - min-height: 180px; + 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: 1.25rem; - line-height: 1.5; + 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: 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 { display: flex; - gap: 0.4rem; + gap: 0.6rem; justify-content: center; - margin-top: 1rem; + margin-top: 1.5rem; } .review-dots button { - width: 9px; height: 9px; border-radius: 50%; + width: 10px; height: 10px; border-radius: 50%; 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-form { display: grid; grid-template-columns: repeat(2, 1fr); - gap: 0.9rem; - background: var(--bg-elev); + gap: 1.5rem 1.2rem; + background: var(--bg-card); border: 1px solid var(--line); 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 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 { margin-top: 1rem; @@ -424,42 +585,53 @@ select:focus, input:focus, textarea:focus { .site-footer { border-top: 1px solid var(--line); background: var(--bg-elev); - padding: 3rem 0 2rem; - margin-top: 3rem; + padding: 4rem 0 3rem; + margin-top: 4rem; } .footer-grid { display: grid; - grid-template-columns: 2fr 1fr 1fr 1fr; - gap: 2rem; - margin-bottom: 2rem; + grid-template-columns: 2.5fr 1fr 1fr 1fr; + gap: 3rem; + margin-bottom: 3rem; } .footer-grid h4 { font-family: "Inter", sans-serif; - font-size: 0.8rem; + font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; - color: var(--muted); - margin-bottom: 0.7rem; + color: var(--text); + margin-bottom: 1.2rem; + font-weight: 600; } .footer-grid a { - display: block; - color: var(--text); - margin-bottom: 0.4rem; - font-size: 0.92rem; + 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-bottom { border-top: 1px solid var(--line); - padding-top: 1.2rem; + padding-top: 1.8rem; display: flex; justify-content: space-between; + align-items: center; color: var(--muted); - font-size: 0.82rem; + font-size: 0.85rem; flex-wrap: wrap; - gap: 0.6rem; + gap: 1rem; } /* ---------------- Dialog ---------------- */ @@ -489,7 +661,12 @@ dialog::backdrop { background: rgba(0,0,0,0.6); } aspect-ratio: 16 / 9; object-fit: cover; 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 {