/* Responsive Styles */
/* Mobile Navigation */
@media (max-width: 992px) {
.header .nav {
position: absolute;
top: var(--header-height);
left: 0;
width: 100%;
background-color: var(--white-color);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
transform: translateY(-100%);
transition: transform var(--transition-speed) ease-in-out;
padding: 20px 0;
opacity: 0;
pointer-events: none;
}
.header .nav.active {
transform: translateY(0);
opacity: 1;
pointer-events: auto;
}
.header .nav ul {
flex-direction: column;
gap: 15px;
}
.header .nav ul li .nav-link {
font-size: 1.1rem;
display: block;
}
.header .nav ul li .btn {
margin-left: 0;
}
.menu-toggle {
display: block;
}
.menu-toggle i {
transition: transform var(--transition-speed);
}
.menu-toggle.active i {
transform: rotate(90deg);
}
}
@media (max-width: 768px) {
h1 {
font-size: 2.8rem;
}
h2 {
font-size: 2rem;
}
.hero {
height: 80vh;
/* Adjust hero height for smaller screens */
}
.hero p {
font-size: 1.2rem;
}
.search-form {
flex-direction: column;
gap: 15px;
padding: 25px;
}
.search-form .form-group {
min-width: unset;
/* Remove min-width restriction */
width: 100%;
}
.btn-search {
margin-top: 10px;
}
.section {
padding: 60px 0;
}
.section-description {
margin-bottom: 30px;
font-size: 1rem;
}
.car-list, .grid-3, .grid-4 {
grid-template-columns: 1fr;
/* Single column layout for most grids */
}
.footer .grid-4 {
grid-template-columns: 1fr;
text-align: center;
}
.footer-col {
margin-bottom: 30px;
}
.footer-col:last-child {
margin-bottom: 0;
}
.footer h3 {
justify-content: center;
}
.social-links {
margin-top: 20px;
}
}
@media (max-width: 480px) {
h1 {
font-size: 2.2rem;
}
h2 {
font-size: 1.8rem;
}
h3 {
font-size: 1.4rem;
}
.hero p {
font-size: 1rem;
}
.logo {
font-size: 1.5rem;
}
.logo i {
font-size: 1.8rem;
}
.notification-container {
top: calc(var(--header-height) + 5px);
right: 10px;
max-width: calc(100% - 20px);
}
/* Make skip link more visible on small screens when focused */
.skip-link:focus {
left: 10px;
top: 10px;
}
}