MIF_E31232103/public/css/home.css

849 lines
16 KiB
CSS

:root {
--primary: #6c8cf5;
--primary-hover: #5a79e6;
--secondary: #a8c5ff;
--accent: #f4b183;
--background: #f8fafc;
--surface: #ffffff;
--soft-section: #eef4ff;
--text-primary: #1f2937;
--text-secondary: #6b7280;
--border: #e5e7eb;
--shadow-soft: 0 12px 32px rgba(31, 41, 55, 0.08);
--shadow-card: 0 8px 24px rgba(31, 41, 55, 0.06);
--radius-xl: 22px;
--radius-lg: 16px;
--radius-md: 12px;
--container: 1200px;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body.home-page {
min-width: 1200px;
background: var(--background);
color: var(--text-primary);
font-family: "Poppins", sans-serif;
line-height: 1.65;
}
a {
color: inherit;
text-decoration: none;
}
.container {
width: min(100% - 96px, var(--container));
margin-inline: auto;
}
.section {
padding: 100px 0;
}
.section-soft {
background: var(--soft-section);
}
.section-heading {
max-width: 680px;
margin-bottom: 42px;
}
.section-heading .eyebrow {
margin: 0 0 10px;
color: var(--primary);
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
font-size: 0.8rem;
}
.section-heading h2 {
margin: 0 0 12px;
font-family: "Montserrat", sans-serif;
font-size: 2.1rem;
line-height: 1.25;
}
.section-heading p {
margin: 0;
color: var(--text-secondary);
}
.home-highlight-section {
padding: clamp(112px, 10vw, 146px) 0;
}
.section-container-wide {
width: min(100% - 84px, 1360px);
}
.home-highlight-section .section-heading {
max-width: 820px;
margin-bottom: clamp(44px, 4vw, 62px);
}
.home-highlight-section .section-heading .eyebrow {
margin-bottom: 12px;
font-size: 0.86rem;
letter-spacing: 0.06em;
}
.home-highlight-section .section-heading h2 {
margin-bottom: 16px;
font-size: clamp(2.25rem, 2.8vw, 3rem);
line-height: 1.18;
}
.home-highlight-section .section-heading p {
font-size: clamp(1.01rem, 1.15vw, 1.16rem);
max-width: 720px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 12px;
padding: 12px 22px;
font-weight: 600;
border: 1px solid transparent;
transition: all 0.2s ease;
cursor: pointer;
font-family: "Montserrat", sans-serif;
}
.btn-primary {
background: var(--primary);
color: #fff;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.8);
border-color: rgba(255, 255, 255, 0.9);
color: #23355a;
}
.btn-secondary:hover {
background: #fff;
}
.btn-outline {
border-color: var(--border);
color: var(--text-primary);
background: #fff;
}
.btn-outline:hover {
border-color: var(--primary);
color: var(--primary);
}
.full-width {
width: 100%;
}
.site-header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}
.header-inner {
height: 84px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 10px;
}
.brand-mark {
width: 38px;
height: 38px;
border-radius: 11px;
background: linear-gradient(145deg, var(--primary), #7ba0ff);
color: #fff;
display: grid;
place-items: center;
box-shadow: 0 8px 18px rgba(108, 140, 245, 0.28);
}
.brand-text {
font-family: "Montserrat", sans-serif;
font-weight: 800;
font-size: 1.16rem;
}
.main-nav {
display: flex;
align-items: center;
gap: 28px;
}
.main-nav a {
font-family: "Montserrat", sans-serif;
color: var(--text-primary);
font-weight: 600;
font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.is-active {
color: var(--primary);
}
.header-actions {
display: flex;
align-items: center;
gap: 16px;
}
.auth-link {
color: var(--text-secondary);
font-weight: 500;
}
.auth-link:hover {
color: var(--text-primary);
}
.auth-inline-form {
margin: 0;
}
.auth-link-btn {
border: 0;
background: transparent;
padding: 0;
font-family: "Poppins", sans-serif;
cursor: pointer;
}
.hero {
position: relative;
min-height: 80vh;
display: flex;
align-items: center;
overflow: hidden;
background-image:
linear-gradient(90deg, rgba(238, 244, 255, 0.95) 10%, rgba(238, 244, 255, 0.66) 44%, rgba(238, 244, 255, 0.2) 70%),
url("https://images.unsplash.com/photo-1590362891991-f776e747a588?auto=format&fit=crop&w=2000&q=80");
background-size: cover;
background-position: center;
}
.hero-overlay {
position: absolute;
inset: 0;
background: radial-gradient(circle at 18% 24%, rgba(168, 197, 255, 0.34), transparent 48%);
pointer-events: none;
}
.hero-content-wrap {
position: relative;
z-index: 1;
width: 100%;
}
.hero-content {
max-width: 620px;
padding: 60px 0 130px;
}
.hero-badge {
display: inline-block;
margin: 0 0 16px;
padding: 8px 14px;
border-radius: 999px;
background: rgba(108, 140, 245, 0.14);
color: #3655b8;
font-weight: 600;
font-size: 0.86rem;
}
.hero h1 {
margin: 0;
font-family: "Montserrat", sans-serif;
font-size: 3.2rem;
line-height: 1.2;
letter-spacing: -0.02em;
}
.hero-description {
margin: 20px 0 32px;
max-width: 560px;
color: #4b5563;
font-size: 1.03rem;
}
.hero-cta-group {
display: flex;
align-items: center;
gap: 14px;
}
.trust-list {
margin: 26px 0 0;
padding: 0;
list-style: none;
display: flex;
align-items: center;
gap: 18px;
color: #334155;
font-size: 0.93rem;
}
.trust-list li {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.7);
padding: 8px 12px;
border-radius: 999px;
border: 1px solid rgba(229, 231, 235, 0.8);
}
.trust-list i {
color: var(--primary);
}
.quick-search-section {
margin-top: -70px;
position: relative;
z-index: 2;
}
.quick-search-card {
background: var(--surface);
border: 1px solid #eef2ff;
border-radius: var(--radius-xl);
box-shadow: var(--shadow-soft);
padding: 26px;
display: grid;
grid-template-columns: 1.2fr 1fr 1fr 1fr 0.8fr;
gap: 16px;
align-items: end;
}
.field-group {
display: flex;
flex-direction: column;
gap: 9px;
}
.field-group label {
font-family: "Montserrat", sans-serif;
font-size: 0.82rem;
font-weight: 600;
color: #475569;
}
.field-group input,
.field-group select {
width: 100%;
height: 46px;
padding: 0 14px;
border-radius: 10px;
border: 1px solid var(--border);
font-family: "Poppins", sans-serif;
font-size: 0.94rem;
color: var(--text-primary);
background: #fff;
}
.field-group input:focus,
.field-group select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(108, 140, 245, 0.13);
}
.field-submit {
align-self: stretch;
justify-content: flex-end;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.home-highlight-section .feature-grid {
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
gap: clamp(20px, 2vw, 30px);
}
.feature-card {
background: var(--surface);
border: 1px solid #e7ecf7;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
padding: 24px;
}
.home-highlight-section .feature-card {
padding: clamp(26px, 2.1vw, 34px);
min-height: 248px;
border-radius: 20px;
box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}
.feature-icon {
width: 46px;
height: 46px;
border-radius: 12px;
display: grid;
place-items: center;
background: rgba(108, 140, 245, 0.14);
color: var(--primary);
margin-bottom: 16px;
}
.home-highlight-section .feature-icon {
width: 58px;
height: 58px;
border-radius: 16px;
margin-bottom: 18px;
font-size: 1.22rem;
}
.feature-card h3 {
margin: 0 0 10px;
font-family: "Montserrat", sans-serif;
font-size: 1.05rem;
}
.home-highlight-section .feature-card h3 {
margin-bottom: 12px;
font-size: clamp(1.14rem, 1.2vw, 1.34rem);
line-height: 1.34;
}
.feature-card p {
margin: 0;
color: var(--text-secondary);
font-size: 0.93rem;
}
.home-highlight-section .feature-card p {
font-size: clamp(0.98rem, 0.95vw, 1.06rem);
line-height: 1.72;
}
.vehicle-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.home-highlight-section .vehicle-grid {
grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
gap: clamp(20px, 2vw, 30px);
}
.vehicle-card {
background: #fff;
border-radius: var(--radius-lg);
border: 1px solid #e9edf5;
overflow: hidden;
box-shadow: var(--shadow-card);
}
.home-highlight-section .vehicle-card {
border-radius: 20px;
box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}
.vehicle-image {
width: 100%;
height: 180px;
object-fit: cover;
}
.home-highlight-section .vehicle-image {
height: clamp(214px, 17vw, 252px);
}
.vehicle-body {
padding: 18px;
}
.home-highlight-section .vehicle-body {
padding: clamp(22px, 1.9vw, 28px);
}
.vehicle-body h3 {
margin: 0;
font-size: 1.03rem;
font-family: "Montserrat", sans-serif;
line-height: 1.35;
}
.home-highlight-section .vehicle-body h3 {
font-size: clamp(1.16rem, 1.12vw, 1.34rem);
line-height: 1.32;
}
.vehicle-type {
margin: 8px 0 14px;
color: var(--text-secondary);
font-size: 0.9rem;
}
.home-highlight-section .vehicle-type {
margin: 10px 0 16px;
font-size: 0.98rem;
}
.vehicle-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.vehicle-meta strong {
color: var(--primary);
font-size: 1.03rem;
font-family: "Montserrat", sans-serif;
}
.home-highlight-section .vehicle-meta strong {
font-size: clamp(1.08rem, 1.06vw, 1.22rem);
}
.vehicle-meta strong span {
color: var(--text-secondary);
font-weight: 500;
font-size: 0.82rem;
}
.home-highlight-section .vehicle-meta strong span {
font-size: 0.9rem;
}
.rating {
color: #f59e0b;
font-size: 0.86rem;
font-weight: 600;
}
.home-highlight-section .rating {
font-size: 0.95rem;
}
.home-highlight-section .vehicle-body .btn {
min-height: 48px;
font-size: 0.95rem;
}
.promo-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.home-highlight-section .promo-grid {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: clamp(20px, 2vw, 30px);
}
.promo-card {
background: linear-gradient(145deg, #ffffff, #fff9f3);
border: 1px solid #f7dfcc;
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: var(--shadow-card);
}
.home-highlight-section .promo-card {
padding: clamp(28px, 2vw, 34px);
border-radius: 20px;
min-height: 272px;
box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}
.promo-label {
margin: 0 0 12px;
display: inline-flex;
padding: 5px 10px;
border-radius: 999px;
background: rgba(244, 177, 131, 0.2);
color: #9f5f32;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.promo-card h3 {
margin: 0 0 10px;
font-family: "Montserrat", sans-serif;
font-size: 1.17rem;
}
.home-highlight-section .promo-card h3 {
margin-bottom: 12px;
font-size: clamp(1.24rem, 1.2vw, 1.44rem);
line-height: 1.32;
}
.promo-card p {
margin: 0;
color: var(--text-secondary);
}
.home-highlight-section .promo-card p {
font-size: clamp(0.99rem, 0.9vw, 1.08rem);
line-height: 1.68;
}
.promo-link {
margin-top: 20px;
display: inline-flex;
gap: 8px;
align-items: center;
color: #a35d2e;
font-weight: 600;
}
.home-highlight-section .promo-link {
margin-top: 24px;
font-size: 0.98rem;
}
.testimonial-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.home-highlight-section .testimonial-grid {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: clamp(20px, 2vw, 30px);
}
.testimonial-card {
background: #fff;
border: 1px solid #edf0f6;
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: var(--shadow-card);
}
.home-highlight-section .testimonial-card {
padding: clamp(26px, 2vw, 34px);
border-radius: 20px;
min-height: 278px;
box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}
.testimonial-head {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 14px;
}
.home-highlight-section .testimonial-head {
margin-bottom: 18px;
gap: 16px;
}
.testimonial-head img {
width: 56px;
height: 56px;
border-radius: 50%;
object-fit: cover;
}
.home-highlight-section .testimonial-head img {
width: 68px;
height: 68px;
}
.testimonial-head h3 {
margin: 0;
font-size: 1rem;
font-family: "Montserrat", sans-serif;
}
.home-highlight-section .testimonial-head h3 {
font-size: clamp(1.06rem, 1vw, 1.22rem);
}
.testimonial-head p {
margin: 2px 0 0;
color: var(--text-secondary);
font-size: 0.86rem;
}
.home-highlight-section .testimonial-head p {
margin-top: 4px;
font-size: 0.95rem;
}
.stars {
color: #f59e0b;
font-size: 0.88rem;
margin-bottom: 12px;
}
.home-highlight-section .stars {
font-size: 1.02rem;
margin-bottom: 14px;
}
.testimonial-text {
margin: 0;
color: #4b5563;
font-size: 0.94rem;
}
.home-highlight-section .testimonial-text {
font-size: clamp(0.99rem, 0.95vw, 1.08rem);
line-height: 1.74;
}
@media (min-width: 1500px) {
.section-container-wide {
width: min(100% - 96px, 1460px);
}
.home-highlight-section .feature-grid,
.home-highlight-section .vehicle-grid,
.home-highlight-section .promo-grid,
.home-highlight-section .testimonial-grid {
gap: 32px;
}
}
.site-footer {
background: #e7eefc;
border-top: 1px solid #d9e4fb;
margin-top: 30px;
}
.footer-grid {
padding: 70px 0 36px;
display: grid;
grid-template-columns: 1.5fr 1fr 1fr 1fr;
gap: 28px;
}
.footer-brand p {
margin-top: 14px;
color: #4d5b76;
max-width: 340px;
}
.footer-col h4 {
margin: 0 0 12px;
font-family: "Montserrat", sans-serif;
font-size: 1rem;
}
.footer-col a,
.footer-col p {
display: block;
margin: 0 0 9px;
color: #4d5b76;
font-size: 0.93rem;
}
.footer-col a:hover {
color: var(--primary);
}
.social-links {
display: flex;
gap: 10px;
}
.social-links a {
width: 36px;
height: 36px;
border-radius: 10px;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.85);
border: 1px solid #d4def5;
color: #4e5e7f;
}
.social-links a:hover {
color: #fff;
background: var(--primary);
border-color: var(--primary);
}
.footer-bottom {
border-top: 1px solid #d7e1f8;
padding: 18px 0;
color: #5f6f8d;
font-size: 0.9rem;
}
/* Desktop-first animation accents */
.hero-content,
.quick-search-card,
.feature-card,
.vehicle-card,
.promo-card,
.testimonial-card {
animation: fadeUp 0.7s ease both;
}
.feature-card:nth-child(2),
.vehicle-card:nth-child(2),
.promo-card:nth-child(2),
.testimonial-card:nth-child(2) {
animation-delay: 0.08s;
}
.feature-card:nth-child(3),
.vehicle-card:nth-child(3),
.promo-card:nth-child(3),
.testimonial-card:nth-child(3) {
animation-delay: 0.14s;
}
.feature-card:nth-child(4),
.vehicle-card:nth-child(4) {
animation-delay: 0.2s;
}
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(18px);
}
to {
opacity: 1;
transform: translateY(0);
}
}