/* 
 * Bancroft School of Motoring - Main Stylesheet
 * Modern, responsive design for a premium driving school website
 */

/* === VARIABLES === */
:root {
  --primary: #b40606;
  --primary-dark: #8c0505;
  --secondary: #333333;
  --light: #f7f7f7;
  --grey: #e8e8e8;
  --dark: #222222;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
}

/* === RESET & BASE STYLES === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px = 1rem */
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--secondary);
  background-color: var(--light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* === UTILITY CLASSES === */
.container {
  max-width: var(--container-width);
  padding: 0 2rem;
  margin: 0 auto;
}

.section {
  padding: 8rem 0;
}

.section-title {
  font-size: 3.6rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: var(--border-radius);
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--primary);
}

.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

/* === NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled {
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 6rem;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 5rem;
}

.logo-text {
  margin-left: 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--secondary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: var(--secondary);
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/d1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
  animation: fadeInUp 1.5s ease;
}

.hero-title {
  font-size: 5.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 2.2rem;
  margin-bottom: 4rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* === ABOUT SECTION === */
.about {
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.about-text p {
  margin-bottom: 2rem;
}

.about-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* === SERVICES SECTION === */
.services {
  background-color: var(--grey);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 7rem;
  height: 7rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 3rem;
}

.service-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.service-description {
  color: #666;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
  position: relative;
}

.testimonial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
  padding-left: 2rem;
}

.testimonial-text::before {
  content: "\201C";  /* Using unicode for opening double quote */
  font-size: 7rem;
  position: absolute;
  top: -3rem;
  left: -1rem;
  color: var(--primary);
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-rating {
  color: #ffbb00;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.5rem;
  background-color: var(--grey);
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-avatar i {
  font-size: 2.5rem;
  color: white;
}

.testimonial-info h4 {
  font-weight: 600;
}

.testimonial-info p {
  color: #777;
  font-size: 1.4rem;
}

/* === FAQ SECTION === */
.faq {
  background-color: var(--grey);
}

.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.faq-question:hover {
  background-color: var(--light);
}

.faq-icon {
  font-size: 2rem;
  transition: var(--transition);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 2rem 2rem 2rem;
}

.faq-item.active .faq-answer {
  padding: 2rem 2rem 2rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* === CONTACT SECTION === */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  min-width: 3rem;
}

.contact-details h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 30rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === FOOTER === */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 6rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 6rem;
  margin-bottom: 2rem;
}

.footer-about p {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  color: white;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 2px;
  background-color: var(--primary);
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-contact-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  opacity: 0.7;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 1024px) {
  html {
    font-size: 57.5%;
  }
  
  .hero-title {
    font-size: 4.8rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .hamburger {
    display: block;
    z-index: 10;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    background-color: white;
    gap: 3rem;
    padding-top: 10rem;
    transition: 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 3.6rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .nav-links {
    width: 80%;
  }
}

/* Security measures to prevent copying */
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
} 