/* ============================================
   CARDINAL BUSINESS FORMS
   Modern Static Site Stylesheet
   ============================================ */

:root {
  --red: #EB0912;
  --red-dark: #9B090F;
  --red-deep: #6B0008;
  --black: #1a1a1a;
  --gray: #555;
  --light-gray: #f5f5f5;
  --white: #fff;
  --font-heading: 'Bree Serif', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --max-width: 1100px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
#header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo img {
  height: 60px;
  width: auto;
}

/* Nav */
#nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

#nav ul li { position: relative; }

#nav ul li a {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 3px;
  display: block;
  transition: background var(--transition);
  white-space: nowrap;
}

#nav ul li a:hover,
#nav ul li a.active {
  background: rgba(0,0,0,0.25);
  color: var(--white);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--red-dark);
  min-width: 220px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-direction: column;
  gap: 0;
}

.has-dropdown:hover .dropdown { display: flex; }

.dropdown li a {
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: rgba(0,0,0,0.2);
  border: none;
  color: var(--white);
  font-size: 24px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
}

/* ============================================
   HERO / SLIDESHOW
   ============================================ */
.hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--white);
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 20px;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 420px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 32px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.slide-prev:hover,
.slide-next:hover { background: rgba(235,9,18,0.8); }

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition);
}

.dot.active { background: var(--white); }

/* ============================================
   LOGO BANNER
   ============================================ */
.logo-banner {
  background: var(--white);
  padding: 30px 24px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #eee;
}

.logo-banner img { max-width: 300px; }

/* ============================================
   VALUE PROPS
   ============================================ */
.value-props {
  padding: 60px 0;
  background: var(--white);
}

.value-props h2 {
  font-family: var(--font-heading);
  color: var(--red);
  font-size: 22px;
  margin-bottom: 24px;
  font-weight: normal;
}

.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-list li {
  padding-left: 24px;
  position: relative;
  font-size: 16px;
  color: var(--gray);
}

.value-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 12px;
  top: 4px;
}

/* ============================================
   TESTIMONIALS PREVIEW
   ============================================ */
.testimonials-preview {
  background: var(--light-gray);
  padding: 60px 0;
  text-align: center;
}

.testimonials-preview h2 {
  font-family: var(--font-heading);
  color: var(--red);
  font-size: 28px;
  margin-bottom: 32px;
  font-weight: normal;
}

.testimonial-rotator {
  position: relative;
  min-height: 120px;
  margin-bottom: 32px;
}

.testimonial {
  display: none;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial.active { display: block; }

.testimonial p {
  font-size: 18px;
  font-style: italic;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.6;
}

.testimonial cite {
  color: var(--gray);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

/* ============================================
   BUTTON
   ============================================ */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  padding: 50px 0;
}

.page-hero h1 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 36px;
  font-weight: normal;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
  padding: 60px 0;
}

.page-content h2 {
  font-family: var(--font-heading);
  color: var(--red);
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 20px;
}

.page-content p {
  color: var(--gray);
  margin-bottom: 16px;
}

/* Content with image */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.content-image img {
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Arrow list */
.arrow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arrow-list li {
  padding-left: 20px;
  position: relative;
  color: var(--gray);
}

.arrow-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 11px;
  top: 5px;
}

/* ============================================
   TESTIMONIALS PAGE
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testimonial-card {
  background: var(--light-gray);
  border-left: 4px solid var(--red);
  padding: 28px;
  border-radius: 0 4px 4px 0;
}

.testimonial-card p {
  font-size: 17px;
  font-style: italic;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.6;
}

.testimonial-card cite {
  color: var(--gray);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.info-block {
  margin-bottom: 28px;
}

.info-block h3 {
  font-family: var(--font-heading);
  color: var(--red);
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 8px;
}

.info-block p { color: var(--gray); margin-bottom: 4px; }

/* ============================================
   VIDEO
   ============================================ */
.video-wrap {
  margin-bottom: 40px;
  text-align: center;
}

.video-wrap iframe {
  max-width: 100%;
  border-radius: 4px;
}

.content-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.content-center h2 {
  font-family: var(--font-heading);
  color: var(--red);
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--red);
  color: var(--white);
  padding: 50px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 16px;
  background: white;
  padding: 6px;
  border-radius: 3px;
}

#footer p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 6px; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.85); font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }
#footer a { color: rgba(255,255,255,0.85); }
#footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 16px 24px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

/* ============================================
   MODAL
   ============================================ */
.modal {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-inner {
  position: relative;
  max-width: 700px;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: 3px solid var(--white);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: background var(--transition);
}

.modal-close:hover { background: var(--red-dark); }

.modal-inner img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  #nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--red-dark);
    z-index: 999;
    padding: 8px 0;
  }

  #nav.open { display: block; }

  #nav ul {
    flex-direction: column;
    gap: 0;
  }

  #nav ul li a {
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px 20px;
    font-size: 16px;
  }

  .dropdown {
    position: static;
    display: none;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    border-radius: 0;
  }

  .has-dropdown.open .dropdown { display: block; }

  .dropdown li a { padding-left: 36px; font-size: 15px; }

  .slideshow { height: 240px; }
  .hero-badge { font-size: 14px; padding: 8px 12px; }

  .content-with-image { grid-template-columns: 1fr; }
  .content-image { order: -1; }
  .content-image img { max-width: 200px; }

  .two-col { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .page-hero h1 { font-size: 26px; }
}
