/* ArtMayfair Auto Warranty - Carserv-inspired theme */
:root {
  --primary: #e81c2e;
  --primary-dark: #c41524;
  --navy: #0b162a;
  --navy-light: #152238;
  --text: #5a6271;
  --text-dark: #1a1f2e;
  --white: #ffffff;
  --gray-bg: #f4f6f9;
  --border: #e8ecf2;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  padding: 0 15px;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

@media (max-width: 991px) {
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
}

@media (max-width: 767px) {
  .col-6, .col-4, .col-3, .col-md-6 {
    width: 100%;
  }
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--primary);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(11, 22, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo img {
  height: 100px;
  min-height: 100px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: var(--primary);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--gray-bg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.2) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
  padding: 60px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--primary);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray-bg);
}

.section-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-title .eyebrow {
  justify-content: center;
}

.section-title .eyebrow::before {
  display: none;
}

.section-title .eyebrow::after {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--primary);
}

/* About split box */
.about-split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(11, 22, 42, 0.08);
}

.about-badge {
  background: var(--primary);
  color: var(--white);
  padding: 48px 36px;
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
}

.about-badge::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  border: 20px solid transparent;
  border-left-color: var(--primary);
}

.about-text {
  flex: 1;
  padding: 48px 40px;
  min-width: 280px;
}

@media (max-width: 767px) {
  .about-badge {
    flex: 1 1 100%;
  }
  .about-badge::after {
    display: none;
  }
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(11, 22, 42, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(232, 28, 46, 0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(232, 28, 46, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 24px;
}

.service-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

/* Promo banner */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
}

.promo-text {
  flex: 1;
  padding: 60px 48px;
  min-width: 300px;
}

.promo-text h2 {
  color: var(--white);
}

.promo-image {
  flex: 1;
  min-width: 300px;
  min-height: 280px;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.promo-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.promo-list .icon {
  color: var(--white);
  font-size: 22px;
  flex-shrink: 0;
}

/* Project gallery */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card .title-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
}

/* Video CTA section */
.video-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.video-section .bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 42, 0.82);
  z-index: 1;
}

.video-section .content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: 700px;
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 22, 42, 0.08);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card .info {
  padding: 20px 16px;
}

.team-card h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.team-card span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* Stats */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 20px;
  background: var(--gray-bg);
  border-radius: 4px;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1.2;
}

/* Testimonials */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-item {
  display: none;
  padding: 20px;
}

.testimonial-item.active {
  display: block;
}

.testimonial-item .quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-item .stars {
  color: #f5a623;
  margin-bottom: 12px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonial-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.testimonial-nav button.active {
  background: var(--primary);
}

/* Trust icons */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

@media (max-width: 767px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}

/* CTA bar */
.cta-bar {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0;
}

.cta-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-bar h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
}

/* Page banner */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  background: var(--primary);
  transform: rotate(45deg);
  opacity: 0.15;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 8px;
  position: relative;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  position: relative;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Footer */
.footer-top {
  background: var(--navy-light);
  padding: 28px 0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

.footer-top .ft-icon {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 8px;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-about .logo-footer {
  height: 48px;
  margin-bottom: 16px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Forms */
.form-section {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 28, 46, 0.15);
}

.form-control.error {
  border-color: var(--primary);
}

.error-msg {
  color: var(--primary);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.error-msg.show {
  display: block;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  align-self: start;
  justify-self: start;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding-top: 2px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
  text-align: left;
}

.checkbox-group .error-msg {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding-left: 34px;
}

.form-success {
  display: none;
  background: #e8f7ee;
  border: 1px solid #2e9e5a;
  color: #1a6b3c;
  padding: 20px 24px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
}

.form-success.show {
  display: block;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 40px 28px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(232, 28, 46, 0.15);
}

.pricing-card .price {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 28px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Content pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 767px) {
  .content-two-col {
    grid-template-columns: 1fr;
  }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 991px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-step {
  padding: 24px 16px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(11, 22, 42, 0.06);
}

.process-step .num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 4px;
}

.why-item .icon {
  color: var(--primary);
  font-size: 32px;
  flex-shrink: 0;
}