* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  --navy: #0b2239;
  --navy-dark: #081a2c;
  --white: #ffffff;
  --blue-accent: #1f6feb;
  --gray: #f4f6f8;
  --blue-dark: #0b2239;
}

html {
  overflow-x: hidden;
}

body {
  background: var(--gray);
  color: var(--navy);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -0.02em; }

.hero h1 { line-height: 1.1; }
.page-hero h1 { line-height: 1.15; }

/* header */
/*  top navigation  */

.navbar {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 1000;

  /* subtle shadow */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 70px;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;

  padding: 10px 18px;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}




/* hero */
.hero {
  min-height: 85vh;
  background-image:
    linear-gradient(
      rgba(11, 34, 57, 0.75),
      rgba(11, 34, 57, 0.75)
    ),
    url("../images/tireimage.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: white;
}
.hero h1 {
  font-size: 3rem;
  max-width: 600px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 30px;
}
/*  services preview home page */

.services-preview {
  padding: 80px 20px;
  background: var(--white);
  text-align: center;
}

.services-preview h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--blue-dark);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--gray);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  text-align: left;
}

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

.service-card h3 {
  font-size: 1.3rem;
  margin: 20px;
  color: var(--blue-dark);
}

.service-card p {
  margin: 0 20px 25px;
  color: #444;
  line-height: 1.5;
}
.service-link {
  text-decoration: none;
  color: inherit;
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.cta {
  background: var(--blue-accent);
  color: var(--white);
  padding: 15px 34px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  width: fit-content;
}

/* footer */

.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col p {
  opacity: 0.9;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-col a {
  display: block;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-logo {
  height: 60px;
  margin-bottom: 15px;
}

.footer-bottom {
  background: #061827;
  text-align: center;
  padding: 15px 20px;
  font-size: 0.9rem;
  opacity: 0.85;
}
/* Services Page */

.page-hero {
  background-image:
    linear-gradient(
      rgba(11, 34, 57, 0.75),
      rgba(11, 34, 57, 0.75)
    ),
    url("../images/tireimage.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--white);
  padding: 70px 20px;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.9;
  max-width: 700px;
  line-height: 1.6;
}

.services-page {
  background: var(--gray);
}

.services-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.service-row-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.service-row-content {
  padding: 30px 30px 34px;
}

.service-row-content h2 {
  font-size: 1.8rem;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.service-row-content p {
  color: #334;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-row-content ul {
  padding-left: 18px;
  margin-bottom: 18px;
  color: #334;
}

.service-row-content li {
  margin: 8px 0;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue-accent);
  color: var(--blue-accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

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

.services-cta {
  margin-top: 50px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.services-cta-inner {
  padding: 40px 30px;
}

.services-cta-inner h2 {
  font-size: 1.9rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.services-cta-inner p {
  color: #334;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 800px;
}

.services-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row-media img {
    height: 260px;
  }
}

/*  about page  */

.about-page {
  background: var(--gray);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px;
}

/* Intro section */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--navy-dark);
  margin-bottom: 15px;
}

.about-text p {
  line-height: 1.7;
  color: #334;
  margin-bottom: 12px;
}

.about-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Values */
.about-values h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--navy-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background: var(--white);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.value-card h3 {
  margin-bottom: 10px;
  color: var(--navy-dark);
}

/* CTA */
.about-cta {
  margin-top: 70px;
  background: var(--white);
  padding: 50px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.about-cta-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
}

/*  contact page */

.contact-page {
  background: var(--gray);
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 20px;
}

.contact-info h2{
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--navy-dark);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  color: #334;
}

.contact-line img {
  width: 80px;
  height: 80px;
  display: block;
  flex-shrink: 0;
}
.contact-line a {
  color: var(--blue-accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-line a:hover {
  text-decoration: underline;
}
.contact-location-image img {
  width: 90px;
  height: auto;
  display: block;
}
/* Map */
.contact-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
  margin-top: 20px;
}
.nav-links a.active {
  background: var(--white);
  color: var(--navy-dark);
  font-weight: 800;
  text-decoration: none;
}
.nav-links a {
  border: 1px solid rgba(255,255,255,0.18);
}
.nav-links a:hover {
  border-color: rgba(255,255,255,0.35);
}

/* Mobile */
@media (max-width: 900px) {
  .contact-container { padding: 50px 20px; }
  .contact-location-image img { width: 140px; height: auto; }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 20px;
  }
}

@media (max-width: 520px) {
  .nav-container {
    gap: 10px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .logo {
    height: 58px;
  }
}