/* index.html */

: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);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

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;
}

/* Layout & Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.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;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.btn-outline-invert {
  border: 2px solid var(--primary-color);
  color: var(--light-text);
  background-color: var(--primary-color);
}

.btn-outline-invert:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn:focus, .btn-primary:focus, .btn-outline:focus, .btn-outline-invert:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* 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 */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.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 img {
  height: 40px;
}

#header.scrolled .logo-text {
  font-size: 1.3rem;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

#nav-menu {
  display: flex;
  gap: 35px;
}

#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;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-bg);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  padding: 20px;
  color: var(--light-text);
  width: fit-content;
}

.hero-content .btn {
  margin-top: 10px;
}

.hero-heading {
  font-size: 3.3rem;
  font-weight: 700;
  margin: 10px auto 20px;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
  width: fit-content;
}

.hero-subheading {
  font-size: 1.5rem;
  margin-top: 340px;
  margin-bottom: 30px;
  font-weight: 300;
  display: block;
}

/* 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;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 5px;
  box-shadow: var(--box-shadow);
}

.about-text {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: block; /* Make sure it's block for the entire card to be clickable */
  color: var(--text-color); /* Keep text color consistent */
  text-decoration: none; /* Remove underlines */
  cursor: pointer; /* Show pointer cursor on hover */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background-color: #f9f9f9; /* Slight background change on hover */
}

.service-card:hover .service-title {
  color: var(--secondary-color); /* Change title color on hover */
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-description {
  font-size: 0.9rem;
  color: #666;
}

/* Contact Section */
.contact {
  background-color: var(--light-bg);
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  flex-direction: column;
}

.contact-heading {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.contact-text {
  margin-bottom: 30px;
  text-align: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  text-align: center;
}

.contact-icon {
  display: inline-block;
  font-size: 1.2rem;
  margin-right: 10px;
  color: var(--secondary-color);
}

.contact-detail {
  font-size: 1rem;
  text-align: center;
}

.contact-info {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-items-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* 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;
  white-space: nowrap;
}

.footer-text {
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Social Media */
.social-icons {
  display: flex;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--secondary-color);
}

/* Footer Links */
.footer-links {
  margin-top: 0;
}

.footer-heading {
  font-size: 1.2rem;
  color: #fff;
  margin: 10px 0 25px;
  position: relative;
  padding-bottom: 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;
  }
  
  .hero-heading {
    font-size: 3rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .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;
  }
  
  #nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  #nav-menu li {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-heading {
    font-size: 2.5rem;
  }
  
  .hero-subheading {
    font-size: 1.2rem;
  }
  
  .contact-container,
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-heading {
    font-size: 2rem;
  }
  
  .featured-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-heading {
    font-size: 2rem;
  }
}

/* Unify select styling to match contact.php on every page */
select.form-input,
.form-group select {
  width: 100%;
  padding: 12px;
  padding-right: 40px;               /* room for the custom arrow */
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  background-color: #fff;

  /* kill native appearance across browsers */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* same chevron as contact.css */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='%230F2C59' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;

  transition: var(--transition);
}

select.form-input:focus,
.form-group select:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 164, 94, .15); /* optional, matches focus glow */
}

/* Inquiry-style chip tints for role select pills */
.role-admin-bg{
  background: rgba(200,164,94,.12) !important;
  border-color: rgba(200,164,94,.35) !important;
  color:#8a6a2f !important;
}
.role-vc-bg{
  background: rgba(15,44,89,.08) !important;
  border-color: rgba(15,44,89,.25) !important;
  color:#0F2C59 !important;
}
.role-mop-bg{
  background: rgba(108,117,125,.12) !important;
  border-color: rgba(108,117,125,.25) !important;
  color:#495057 !important;
}

