/* ==========================================================================
   MK MOTORS Driving School & RTO Consultancy - Main Stylesheet
   Built with Bootstrap 5.3 + Custom CSS3 Design Tokens
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --primary-navy: #0f172a;
  --primary-blue: #1e3a8a;
  --accent-blue: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --amber-gold: #f59e0b;
  --amber-light: #fffbeb;
  --emerald-green: #10b981;
  --emerald-light: #ecfdf5;
  
  --dark-slate: #1e293b;
  --body-text: #334155;
  --muted-text: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  
  --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Base & Typography Settings
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bg-navy {
  background-color: var(--primary-navy) !important;
}

.text-navy {
  color: var(--primary-navy) !important;
}

.text-blue {
  color: var(--accent-blue) !important;
}

.text-amber {
  color: var(--amber-gold) !important;
}

.bg-amber {
  background-color: var(--amber-gold) !important;
}

.bg-blue-light {
  background-color: var(--accent-light) !important;
}

.fw-extrabold {
  font-weight: 800 !important;
}

/* Section Title Styling */
.section-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--accent-light);
  border-radius: 50rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2.75rem;
  }
}

/* --------------------------------------------------------------------------
   3. Top Bar & Navigation Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--primary-navy);
  color: #94a3b8;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
}

.top-bar a:hover {
  color: var(--amber-gold);
}

/* Navbar */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.85rem 0;
}

.navbar-custom.scrolled {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-navy) !important;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
  color: var(--white);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 0.6rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-slate) !important;
  padding: 0.5rem 0.85rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background-color: var(--accent-blue);
  transition: var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.btn-brand {
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition-fast);
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-gold), #d97706);
  color: var(--primary-navy) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--transition-fast);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
  color: var(--primary-navy) !important;
}

.btn-outline-navy {
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.88) 100%),
              url('../images/hero.png') center/cover no-repeat;
  padding: 5rem 0 6rem 0;
  color: var(--white);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-right: 0.5rem;
  margin-bottom: 0.75rem;
}

.hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: var(--primary-navy);
}

.hero-card h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--primary-navy);
}

/* Form Controls */
.form-control-custom, .form-select-custom {
  background-color: var(--bg-light);
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--dark-slate);
  transition: var(--transition-fast);
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background-color: var(--white);
  outline: none;
}

/* --------------------------------------------------------------------------
   5. Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.stats-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  text-align: center;
  transition: var(--transition-fast);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.stats-icon {
  width: 52px;
  height: 52px;
  background-color: var(--accent-light);
  color: var(--accent-blue);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.stats-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stats-label {
  font-size: 0.9rem;
  color: var(--muted-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. About Us Section
   -------------------------------------------------------------------------- */
.about-section {
  padding: 5rem 0;
}

.about-img-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-experience-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary-navy);
  color: var(--white);
  padding: 1.25rem 1.75rem;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
  text-align: center;
}

.about-experience-badge .years {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-gold);
  line-height: 1;
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: var(--dark-slate);
}

.feature-check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--emerald-green);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   7. Driving Courses Section
   -------------------------------------------------------------------------- */
.courses-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.course-card {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-blue);
}

.course-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-navy);
  color: var(--amber-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.course-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img {
  transform: scale(1.05);
}

.course-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
}

.course-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #cbd5e1;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.course-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  font-size: 0.875rem;
}

.course-list li {
  margin-bottom: 0.4rem;
  color: var(--body-text);
}

.course-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   8. RTO Services Consultancy Section
   -------------------------------------------------------------------------- */
.rto-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.rto-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: var(--transition-fast);
  position: relative;
}

.rto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: var(--accent-blue);
}

.rto-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-light), #dbeafe);
  color: var(--accent-blue);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.rto-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
}

.rto-desc {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   9. RTO Document Checklist & Guide (Tabbed Interface)
   -------------------------------------------------------------------------- */
.checklist-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.nav-tabs-custom {
  border-bottom: 2px solid #e2e8f0;
  gap: 0.5rem;
}

.nav-tabs-custom .nav-link {
  border: none;
  background: transparent;
  color: var(--muted-text) !important;
  font-weight: 700;
  padding: 0.75rem 1.25rem !important;
  border-radius: 10px;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--accent-blue) !important;
  background: var(--accent-light);
}

.nav-tabs-custom .nav-link.active {
  color: var(--white) !important;
  background-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.nav-tabs-custom .nav-link::after {
  display: none;
}

.doc-card {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
}

.doc-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   10. Process Flowchart (4 Steps)
   -------------------------------------------------------------------------- */
.process-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-navy), #1e293b);
  color: var(--white);
}

.process-step {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--amber-gold), #d97706);
  color: var(--primary-navy);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.process-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process-text {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   11. Transparent Fee Structure / Coverage Matrix
   -------------------------------------------------------------------------- */
.fee-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.fee-table-container {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.table-custom {
  margin-bottom: 0;
}

.table-custom th {
  background-color: var(--primary-navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border: none;
  font-size: 0.95rem;
}

.table-custom td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  font-size: 0.925rem;
  border-color: #f1f5f9;
}

.table-custom tbody tr:hover {
  background-color: var(--accent-light);
}

/* --------------------------------------------------------------------------
   12. Testimonials & FAQ Section
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.testimonial-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  color: var(--body-text);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.accordion-custom .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 1.05rem;
  background-color: var(--bg-light);
  padding: 1.1rem 1.35rem;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--accent-light);
  color: var(--accent-blue);
}

.accordion-custom .accordion-body {
  font-size: 0.95rem;
  color: var(--body-text);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. Contact & Branch Info
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.contact-info-card {
  background: var(--primary-navy);
  color: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber-gold);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #090d16;
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
