
/* CASEY'S DISCOUNT AUTO
   Website Design Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #c82026;
  --red-dark: #a5161b;
  --dark: #18191b;
  --black: #101113;
  --white: #ffffff;
  --light: #f4f4f4;
  --gray: #62646a;
  --border: #e5e5e5;
}

/* GENERAL */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 20px;
}

h3 {
  font-size: 28px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

.preview-banner {
  background: #ececec;
  color: #555;
  text-align: center;
  font-size: 11px;
  padding: 5px 15px;
  letter-spacing: 1px;
}

/* TOP BAR */

.top-bar {
  background: var(--black);
  color: #d1d1d1;
  font-size: 12px;
  padding: 10px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* HEADER */

.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 30px;
  position: relative;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
}

.logo-main {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 42px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -1px;
}

.logo-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.header-button {
  background: var(--red);
  color: var(--white);
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  transition: background .2s;
}

.header-button:hover {
  background: var(--red-dark);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 28px;
  color: var(--dark);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  min-height: 52px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

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

.btn-outline {
  border: 1px solid rgba(255,255,255,.7);
  color: var(--white);
}

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

.btn-light {
  background: var(--white);
  color: var(--dark);
}

/* HERO */

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  background-image:
    linear-gradient(
      90deg,
      rgba(10,11,13,.96) 0%,
      rgba(10,11,13,.78) 40%,
      rgba(10,11,13,.15) 100%
    ),
    url('hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 90px 0;
}

.hero-content {
  position: relative;
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}

.hero .eyebrow {
  color: #ff6267;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1px;
  max-width: 850px;
  margin-bottom: 25px;
}

.hero h1 span {
  color: #ff555b;
}

.hero p {
  max-width: 530px;
  font-size: 17px;
  color: #dedede;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* TRUST BAR */

.trust-bar {
  background: var(--red);
  color: var(--white);
  padding: 32px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  text-align: center;
  padding: 8px 15px;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(255,255,255,.3);
}

.trust-item h3 {
  font-size: 38px;
  margin-bottom: 5px;
}

.trust-item p {
  font-size: 13px;
}

/* SERVICES */

.services-section {
  padding: 90px 0;
  background: var(--light);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

.section-heading p {
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #dedede;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 12px;
}

.service-content p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.service-content a {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

.section-action {
  text-align: center;
  margin-top: 40px;
}

/* ABOUT */

.about-section {
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  background: #dedede;
}

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

.about-content .btn {
  margin-top: 10px;
}

/* REVIEWS */

.reviews-section {
  background: var(--light);
  padding: 80px 0;
}

.reviews-section .section-heading {
  margin-bottom: 0;
}

.reviews-section .btn {
  margin-top: 28px;
}

/* CONTACT BANNER */

.contact-banner {
  background: var(--red);
  color: var(--white);
  padding: 55px 0;
}

.contact-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-banner h2 {
  margin-bottom: 10px;
}

.contact-banner p {
  color: #ffe4e4;
}

.contact-banner .btn {
  flex-shrink: 0;
}

/* INTERIOR PAGES */

.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 75px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(45px, 6vw, 72px);
  margin-bottom: 15px;
}

.page-hero p {
  color: #d1d1d1;
}

.page-section {
  padding: 80px 0;
}

/* FOOTER */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 65px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 45px;
}

.footer .logo {
  margin-bottom: 22px;
}

.footer .logo-sub {
  color: #ff6267;
}

.footer h3 {
  font-size: 25px;
  margin-bottom: 20px;
}

.footer p {
  font-size: 14px;
  color: #bdbdbd;
}

.footer-grid > div > a:not(.logo) {
  display: block;
  color: #bdbdbd;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-grid > div > a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  color: #999;
  font-size: 12px;
  padding: 20px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #e49b31;
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 1050px) {

  .nav-links {
    gap: 18px;
  }

  .header-button {
    display: none;
  }

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

  .about-grid {
    gap: 35px;
  }

}

/* MOBILE */

@media (max-width: 768px) {

  .container {
    width: 90%;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-content span:last-child {
    display: none;
  }

  .navigation {
    min-height: 78px;
  }

  .logo-main {
    font-size: 36px;
  }

  .logo-sub {
    font-size: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -5.55%;
    width: 111.1%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 5%;
    box-shadow: 0 8px 15px rgba(0,0,0,.1);
  }

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

  .nav-links a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    min-height: 570px;
    padding: 65px 0;
    background-position: 65% center;
    background-image:
      linear-gradient(
        90deg,
        rgba(10,11,13,.92),
        rgba(10,11,13,.55)
      ),
      url('hero.jpg');
  }

  .hero h1 {
    font-size: clamp(43px, 10vw, 62px);
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
  }

  .trust-item {
    padding: 5px 8px;
  }

  .trust-item h3 {
    font-size: 28px;
  }

  .trust-item p {
    font-size: 11px;
  }

  .services-section,
  .about-section,
  .reviews-section,
  .page-section {
    padding: 55px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-card img {
    height: 230px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image img {
    height: 300px;
  }

  .contact-banner-content {
    flex-direction: column;
    text-align: center;
  }

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

  .footer {
    padding-top: 45px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .btn:hover,
  .service-card:hover {
    transform: none;
  }
}
