/* Global Styles */
:root {
  --primary-color: #0F2C59;
  --secondary-color: #C8A45E;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #0F1C2E;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 100px 0;
}

.section-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

/* Header and Navigation */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0;
  transition: all 0.3s ease;
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  margin-right: 15px;
  transition: all 0.3s ease;
}

#header.scrolled .logo img {
  height: 40px;
}

.logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#header.scrolled .logo-text {
  font-size: 1.3rem;
}

nav {
  display: flex;
  align-items: center;
}

#nav-menu {
  display: flex;
  gap: 35px;
}

#nav-menu li {
  margin: 0;
}

#nav-menu a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 0;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

#nav-menu a:hover {
  color: var(--secondary-color);
}

#nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Featured Cars Section */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.car-card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.car-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.car-card:hover .card-image img {
  transform: scale(1.05);
}

.card-details {
  padding: 25px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.card-description {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #666;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  font-size: 1.1em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
  border-color: #007bff;
  outline: none;
}

.form-textarea {
  height: 150px;
  resize: vertical;
}

/* Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 70px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.footer-brand {
  margin-right: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 14px;
}

.footer-logo .social-icons {
  display: flex;
  gap: 10px;
  margin-right: 8px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.footer-logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  align-self: center;
  margin-left: 2px;
  position: relative;
  top: 2px;
}

.footer-text {
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-icons {
  display: flex;
}

.footer-links {
  margin-top: 0;
}

.footer-heading {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  margin-top: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--secondary-color);
  padding-left: 5px;
}

.copyright {
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .section-padding {
    padding: 80px 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  #nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  #nav-menu li {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-heading {
    font-size: 2rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

