/* 
  CHILL Driving School Website Styles
  A clean, modern design with a focus on UX and readability
*/

:root {
  /* Color scheme - Calming blues and greens */
  --primary-color: #3498db;          /* Blue - primary brand color */
  --secondary-color: #2ecc71;        /* Green - secondary brand color */
  --accent-color: #16a085;           /* Teal - accent color */
  --dark-color: #2c3e50;             /* Dark blue - for text and dark areas */
  --light-color: #ecf0f1;            /* Light grey - for backgrounds */
  --white-color: #ffffff;            /* White - for backgrounds and text */
  --grey-color: #95a5a6;             /* Grey - for subtle elements */
  --light-blue: #d6eaf8;             /* Light blue - for highlights */
  --light-green: #d5f5e3;            /* Light green - for highlights */
}

/* Global Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  padding-top: 76px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.btn {
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

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

.btn-secondary:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.section-title {
  position: relative;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--dark-color);
}

.section-subtitle {
  color: var(--grey-color);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(236, 240, 241, 0.9), rgba(236, 240, 241, 0.9)), url('https://source.unsplash.com/random/1600x900/?driving') no-repeat center center;
  background-size: cover;
  height: 80vh;
  min-height: 500px;
  position: relative;
}

.hero-text {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-image {
  padding: 2rem;
}

.hero-icon {
  font-size: 15rem;
  color: var(--primary-color);
}

/* Feature Boxes */
.feature-box {
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--white-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

/* Services Section */
.service-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  text-align: center;
}

.service-features {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.service-features li {
  margin-bottom: 0.5rem;
}

/* Instructors Section */
.instructor-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.instructor-icon {
  font-size: 8rem;
  color: var(--primary-color);
}

.instructor-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.instructor-certifications {
  margin-top: 1rem;
}

.instructor-certifications .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
}

/* Testimonials Section */
.testimonial-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text:before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  left: -20px;
  top: -20px;
  color: var(--light-blue);
  opacity: 0.5;
}

.testimonial-author h4 {
  font-weight: 600;
}

/* Why Choose Us Section */
.why-choose-item {
  margin-bottom: 2rem;
}

.why-choose-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Call to Action Section */
.cta-section {
  background-color: var(--light-blue);
  border-radius: 10px;
  margin: 2rem 0;
}

/* Footer Styles */
.footer {
  background-color: var(--dark-color);
}

.footer h4 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--light-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-color);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding-left: 0;
  color: var(--light-color);
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact li i {
  margin-top: 5px;
  color: var(--primary-color);
}

/* Contact Page Styles */
.page-header {
  background-color: var(--light-blue);
  padding: 6rem 0 4rem;
  margin-bottom: 3rem;
}

.contact-info-card {
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--white-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

.contact-form-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.business-hours-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hours-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-color);
}

.hours-list li:last-child {
  border-bottom: none;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.map-placeholder {
  height: 100%;
  background-color: var(--light-color);
  border-radius: 10px;
}

.map-icon {
  font-size: 4rem;
  color: var(--primary-color);
}

/* Accordion Styles */
.accordion-item {
  border: none;
  border-radius: 0 !important;
  margin-bottom: 10px;
}

.accordion-button {
  border-radius: 5px !important;
  background-color: var(--light-color);
  color: var(--dark-color);
  font-weight: 600;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
    padding: 6rem 0;
  }
  
  .hero-image {
    margin-top: 3rem;
  }
  
  .instructor-card, .service-card, .testimonial-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-nav .nav-link:after {
    display: none;
  }
  
  .feature-box, .contact-info-card {
    margin-bottom: 2rem;
  }
}
