/* ============================================================
   Kenneth Dugger Training, L.L.C. - Main Stylesheet
   Color Palette: Deep Red (#A31718), Black, White, Light Gray
   ============================================================ */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #A31718; text-decoration: none; transition: color 0.2s; }
a:hover { color: #C00000; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.text-center { text-align: center; }
.text-red { color: #A31718; }
.bg-dark { background: #1a1a1a; color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-light { background: #f4f4f4; }
.bg-red { background: #A31718; color: #fff; }
.bg-red h1, .bg-red h2, .bg-red h3 { color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  border: 2px solid transparent;
}

.btn-red {
  background: #A31718;
  color: #fff;
  border-color: #A31718;
}
.btn-red:hover {
  background: #C00000;
  border-color: #C00000;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #A31718;
  border-color: #A31718;
}
.btn-outline:hover {
  background: #A31718;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #A31718;
  border-color: #fff;
}
.btn-white:hover {
  background: transparent;
  color: #fff;
}

/* ---------- Navigation ---------- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .brand-top {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.nav-logo-text .brand-bottom {
  font-size: 0.7rem;
  font-weight: 400;
  color: #A31718;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav ul li a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: #ddd;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
  background: #A31718;
}

.nav-cta {
  background: #A31718 !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.nav-cta:hover { background: #C00000 !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 1rem 1.5rem;
}

.nav-mobile a {
  display: block;
  padding: 0.65rem 0;
  color: #ddd;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #333;
}

.nav-mobile a:hover,
.nav-mobile a.active { color: #A31718; }

.nav-mobile.open { display: flex; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #1a1a1a;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/classroom-ai.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.hero-text h1 span { color: #A31718; }

.hero-text p {
  color: #ccc;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-text .btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image img {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(163,23,24,0.4));
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .overline {
  display: inline-block;
  color: #A31718;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
  color: #555;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: #A31718;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-top: 4px solid #A31718;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(163,23,24,0.15);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 { margin-bottom: 0.75rem; color: #1a1a1a; }
.service-card p { color: #555; font-size: 0.95rem; }

/* ---------- Stats Banner ---------- */
.stats-banner {
  background: #A31718;
  color: #fff;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  display: block;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: #A31718;
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-style: italic;
  color: #444;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-meta { border-top: 2px solid #f0f0f0; padding-top: 1rem; }
.testimonial-meta strong { display: block; color: #1a1a1a; }
.testimonial-meta span { font-size: 0.85rem; color: #A31718; }

/* ---------- Logos / Certifications Strip ---------- */
.logos-strip {
  background: #f4f4f4;
  padding: 2.5rem 0;
  overflow: hidden;
}

.logos-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.logos-track img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}

.logos-track img:hover { filter: grayscale(0%); }

/* ---------- Video Section ---------- */
.video-section {
  background: #1a1a1a;
  padding: 5rem 0;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(163,23,24,0.4);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ---------- Bio / About Sections ---------- */
.bio-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #e8e8e8;
}

.bio-block:last-child { border-bottom: none; }

.bio-photo {
  position: relative;
}

.bio-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.bio-photo::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80%;
  height: 80%;
  border: 4px solid #A31718;
  border-radius: 8px;
  z-index: -1;
}

.bio-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.25rem; }
.bio-title { color: #A31718; font-weight: 600; margin-bottom: 1.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Product/Course Cards ---------- */
.course-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(163,23,24,0.15);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.course-card-body h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.course-card-body p { color: #555; font-size: 0.9rem; flex: 1; }

/* ---------- Vision / Mission ---------- */
.vm-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.vm-card .vm-icon {
  width: 60px;
  height: 60px;
  background: #A31718;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ---------- CTA Block ---------- */
.cta-block {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0000 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/team-circle.jpg') center/cover no-repeat;
  opacity: 0.08;
}

.cta-block .container { position: relative; }
.cta-block h2 { color: #fff; margin-bottom: 1rem; }
.cta-block p { color: #ccc; max-width: 600px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-block .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }

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

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  background: #A31718;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item .ci-text strong { display: block; color: #1a1a1a; margin-bottom: 0.2rem; }
.contact-item .ci-text a { color: #555; }
.contact-item .ci-text a:hover { color: #A31718; }

form .form-group { margin-bottom: 1.25rem; }
form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #333;
}
form input, form textarea, form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: #A31718;
}
form textarea { resize: vertical; min-height: 140px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0000 100%);
  color: #fff;
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/classroom-teaching.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: #ccc; max-width: 650px; margin: 0 auto; font-size: 1.1rem; }
.page-hero .breadcrumb { font-size: 0.85rem; color: #999; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #A31718; }

/* ---------- Footer ---------- */
footer {
  background: #111;
  color: #ccc;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: #aaa; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #A31718;
  display: inline-block;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #aaa; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #A31718; }

.footer-col .footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-col .footer-contact-item span:first-child { color: #A31718; }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom a { color: #A31718; }

/* ---------- Accordion (for course details) ---------- */
.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  transition: background 0.2s;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover { background: #fdf0f0; }
.accordion-header .acc-icon { color: #A31718; font-size: 1.3rem; transition: transform 0.3s; }
.accordion-header.open .acc-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #fafafa;
}

.accordion-body.open { max-height: 1000px; }
.accordion-body-inner { padding: 1.25rem 1.5rem; color: #555; font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-text .btn-group { justify-content: center; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .bio-block { grid-template-columns: 1fr; }
  .bio-photo { max-width: 280px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; }
}
