:root {
  --color-red: #e53935;
  --color-red-dark: #c62828;
  --color-blue: #004a8f;
  --color-blue-dark: #003766;
  --color-dark: #222222;
  --color-light: #f7f7f9;
  --color-border: #e1e4ea;
  --max-width: 1120px;
  --radius: 4px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Global reset-ish */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  border: none;
  background: var(--color-red);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-red-dark);
}

/* Section titles */

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 2rem;
  text-align: center;
  color: var(--color-dark);
}

/* Header */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo img {
  height: 54px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.primary-nav a {
  color: #555555;
  font-weight: 600;
}

.primary-nav .phone {
  background: var(--color-red);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.12em;
}

.primary-nav .phone:hover {
  background: var(--color-red-dark);
}

/* Hero */

.hero {
  color: #ffffff;
  background: #111111;
  background-image: linear-gradient(
      120deg,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.35)
    ),
    url("../assets/imgi_62_CarDealership.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-inner {
  min-height: 430px;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 520px;
  padding: 70px 0 90px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 3.3vw + 1rem, 3.4rem);
  line-height: 1.15;
}

.hero-callout {
  display: inline-flex;
  align-items: center;
  background: var(--color-blue);
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.hero-callout strong {
  margin-left: 0.4rem;
}

/* Intro */

.intro {
  padding: 3rem 0 1.5rem;
}

.intro-inner {
  max-width: 920px;
}

.intro p {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

/* Services + Quote */

.services-quote {
  padding: 3rem 0 4rem;
}

.services-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.services-quote-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
}

.services-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: flex-start;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-icon {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-red);
}

.service-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.service-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #555555;
}

.quote-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.7rem 1.4rem;
}

.quote-form-embed {
  min-height: 600px;
}

.quote-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #777777;
}

/* Applications */

.applications {
  padding: 4rem 0 1rem;
}

.application-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  justify-items: center;
}

.application-item {
  text-align: center;
}

.application-item h3 {
  margin: 0;
  font-size: 0.9rem;
}

.application-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fafafa;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
  color: var(--color-red);
}

/* Trusted By */

.trusted-by {
  padding: 3.5rem 0 1rem;
}

.trusted-logos {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 3rem;
  align-items: center;
  justify-items: center;
}

.trusted-logos img {
  max-height: 60px;
  width: auto;
  filter: grayscale(15%);
}

/* Customer Projects */

.customer-projects {
  padding: 3.5rem 0 4rem;
}

.projects-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card img {
  width: 100%;
  height: auto;
}

.project-caption {
  padding: 0.6rem 0.8rem 0.9rem;
  font-size: 0.85rem;
  text-align: center;
  color: #555555;
}

.project-card:focus-within,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.project-pagination {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #999999;
}

.project-pagination button {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #555555;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.project-pagination button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.project-pagination .is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.project-pagination button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.lightbox.is-visible {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(1100px, 90vw);
  width: 100%;
}

.lightbox-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 0.65rem;
  color: #f1f1f1;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  border: none;
  background: #ffffff;
  color: #111111;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 140ms ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.lightbox-prev {
  left: -1.5rem;
}

.lightbox-next {
  right: -1.5rem;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }
}

.lightbox button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

/* Bottom CTA */

.cta-bottom {
  padding: 2.5rem 0 3rem;
  text-align: center;
}

/* Footer */

.site-footer {
  background: #222222;
  color: #cccccc;
  padding: 1.5rem 0 1.2rem;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #444444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
}

.footer-social a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Back to top button */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top:hover {
  background: #333333;
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .services-quote-grid {
    grid-template-columns: 1fr;
  }

  .application-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .primary-nav {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .hero-inner {
    min-height: 360px;
  }

  .hero-text {
    padding: 48px 0 64px;
  }

  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
