/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.45;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:root {
  --primary: #143a73;        /* dark blue */
  --primary-dark: #0a2447;   /* deeper navy */
  --primary-light: #2563eb;  /* accent blue */
  --dark: #1f2937;
  --darker: #0f172a;
  --black: #000;
  --gray-bg: #2a3142;
  --accent: #f4b400;         /* gold accent for stars */
  --cta: #f59e0b;            /* amber CTA — pops on navy */
}

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

.stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; }

/* ---------- Main navigation ---------- */
.main-nav {
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav .logo img { height: 68px; width: auto; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 14px;
}
.nav-links a:hover { color: var(--cta); }
.phone-btn {
  background: var(--cta);
  color: #000;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phone-btn::before {
  content: "📞";
  background: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--primary-dark);
  overflow: hidden;
}
.hero img.hero-bg {
  width: 100%;
  height: auto;
  display: block;
}
.hero-cards {
  position: absolute;
  bottom: 30px;
  left: 30px;
  display: flex;
  gap: 12px;
}
.hero-card {
  background: rgba(245, 245, 245, 0.95);
  padding: 14px 18px;
  text-align: center;
  min-width: 150px;
  border-radius: 2px;
}
.hero-card .label {
  font-size: 13px;
  color: #333;
  margin-bottom: 8px;
}
.hero-card .btn {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  border-radius: 2px;
}
.hero-expert {
  position: absolute;
  bottom: 0;
  right: 30px;
  text-align: center;
  color: #fff;
}
.hero-expert img {
  height: 280px;
  width: auto;
  display: block;
}
.hero-expert .name {
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  font-size: 13px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ---------- Welcome / About section ---------- */
.about-section {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - 220px);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-section h2 {
  font-size: 22px;
  margin: 0 0 18px;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.about-section p {
  font-size: 14px;
  color: #333;
  margin: 0 0 20px;
}
.read-more-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 22px;
  font-size: 14px;
  border-radius: 3px;
}
.gallery .gallery-main img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.gallery .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.gallery-thumbs img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}
.gallery-thumbs img.active { outline: 3px solid #fff; outline-offset: -3px; }
.dots {
  text-align: center;
  margin-top: 12px;
}
.dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 3px;
}
.dots span.active { background: var(--primary); }

/* ---------- Services / Contact / Map row ---------- */
.services-row {
  background: var(--gray-bg);
  padding: 40px 0;
}
.services-row.contact-page {
  background: #fff;
  min-height: calc(100vh - 220px);
  padding: 60px 0 80px;
}
.contact-page-heading {
  color: var(--primary-dark);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 32px;
  text-align: center;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-page .service-card {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}
.contact-page .map-card {
  flex: 1;
  min-height: 240px;
}
.contact-page .map-card iframe {
  height: 100%;
}
.contact-page .service-card h3 {
  color: var(--primary-dark);
}
.contact-page .contact-table td:first-child {
  color: #6b7280;
}
.contact-page .call-btn {
  background: var(--cta);
  color: #000;
  display: inline-block;
  width: auto;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.service-card {
  background: #3a4256;
  border-radius: 8px;
  padding: 25px;
  color: #fff;
}
.service-card h3 {
  font-size: 16px;
  margin: 0 0 18px;
  color: #fff;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-card ul li {
  padding: 6px 0;
  font-size: 14px;
  position: relative;
  padding-left: 22px;
}
.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  background: var(--primary);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
}
.contact-table {
  width: 100%;
  font-size: 14px;
}
.contact-table td {
  padding: 6px 0;
  vertical-align: top;
}
.contact-table td:first-child {
  width: 90px;
  color: #bbb;
}
.call-btn {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  display: block;
}
.map-card {
  position: relative;
  background: #ddd;
  min-height: 240px;
  border-radius: 8px;
  overflow: hidden;
}
.map-card iframe { display: block; width: 100%; height: 240px; border: 0; }
.map-directions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.map-directions:hover { background: var(--primary-dark); }

/* ---------- Tips & commercial info row ---------- */
.info-row {
  background: var(--darker);
  padding: 40px 0;
  color: #fff;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
}

/* Generic page heading + CTA used by sub-pages (reefer, etc.) */
.page-heading {
  color: #fff;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 32px;
}
.page-cta {
  display: inline-block;
  background: var(--cta);
  color: #000;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  margin-top: 30px;
}
.info-row.reefer-page {
  background: #fff;
  color: var(--primary-dark);
  min-height: calc(100vh - 220px);
  padding: 60px 0 80px;
}
.reefer-page .page-heading { color: var(--primary-dark); }
.reefer-page .info-item    { grid-template-columns: 1fr; }
.reefer-page .info-item h3 { color: var(--primary-dark); }
.reefer-page .info-item p  { color: #555; }
.reefer-page .info-item a  { color: var(--primary); }

/* Leasing page */
.leasing-page .leasing-item { margin-bottom: 30px; }
.leasing-page .leasing-item h2 {
  color: var(--primary-dark);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}
.leasing-page .leasing-item p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 920px;
}
.leasing-page .leasing-item h3 {
  color: var(--primary-dark);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 16px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.spec-block {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 20px;
}
.spec-block h4 {
  color: var(--primary-dark);
  font-size: 13px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.spec-block table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.spec-block td {
  padding: 6px 0;
  vertical-align: top;
}
.spec-block td:first-child {
  color: #6b7280;
  padding-right: 16px;
}
.spec-block td:last-child {
  text-align: right;
  color: var(--primary-dark);
  font-weight: 500;
}

/* Parts page: product-card image slot at top of each spec-block */
.parts-page .spec-block { overflow: hidden; }
.part-image {
  height: 180px;
  background: #e5e7eb;
  margin: -20px -20px 16px;
  overflow: hidden;
}
.part-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
}
.info-item .icon {
  background: #1f2940;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.info-item h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.info-item p { font-size: 13px; color: #ccc; margin: 0 0 12px; }
.info-item a {
  color: var(--primary-light);
  font-size: 13px;
  text-decoration: underline;
  font-weight: bold;
}

/* ---------- Parts promo + testimonials ---------- */
.visualizer-row {
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.wheel-promo {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
}
.wheel-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Service offerings (right side of parts-promo row) */
.services-offering h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--primary-dark);
  text-transform: uppercase;
}
.services-offering .services-intro {
  font-size: 14px;
  color: #555;
  margin: 0 0 20px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.service-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.service-list li:last-child { border-bottom: none; }
.service-list strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.service-list span { color: #555; }
.services-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 3px;
  font-weight: bold;
}

/* Testimonials marquee section */
.testimonials-section {
  background: #f7f7f7;
  padding: 50px 0;
  overflow: hidden;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 30px;
}
.testimonials-section h3 {
  font-size: 22px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 12px;
}
.testimonials-section .rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.testimonials-section .rating-summary .stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 1px;
}
.testimonials-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 10px 20px;
  animation: marquee 80s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
}
.testimonial-card {
  flex: 0 0 320px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
  font-size: 14px;
  color: #333;
}
.testimonial-card .testimonial-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.testimonial-card .testimonial-meta > div {
  flex: 1;
}
.testimonial-card .testimonial-name {
  font-weight: bold;
  color: var(--primary-dark);
}
.testimonial-card .testimonial-date {
  font-size: 12px;
  color: #888;
}
.testimonial-card .testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
}
.testimonial-card p {
  margin: 0;
  line-height: 1.5;
}
.g-icon {
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #4285f4;
  flex-shrink: 0;
}

/* ---------- Benefits section ---------- */
.benefits-section {
  background: var(--primary-dark);
  padding: 60px 0;
  color: #fff;
}
.benefits-section h2 {
  text-align: center;
  font-size: 26px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.benefits-intro {
  text-align: center;
  font-size: 15px;
  color: #cbd5e1;
  margin: 0 auto 40px;
  max-width: 640px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.benefit-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.benefit-card h3 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.benefit-card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Locations served ---------- */
.locations-served {
  background: #fff;
  padding: 50px 0;
  border-top: 1px solid #eee;
}
.locations-served h2 {
  text-align: center;
  color: var(--primary-dark);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 30px;
}
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.locations-group h3 {
  color: var(--primary-dark);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}
.locations-group p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--darker);
  color: #ccc;
  padding: 50px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
}
footer .logo img { height: 75px; width: auto; margin-bottom: 14px; }
footer h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li { padding: 5px 0; }
footer ul li a { color: var(--primary-light); }
footer .learn-more { color: var(--primary-light); text-decoration: underline; font-size: 13px; }
.newsletter input[type="email"] {
  width: 60%;
  padding: 8px;
  border: 1px solid #444;
  background: #fff;
  color: #000;
  margin-right: 6px;
}
.newsletter button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}
.footer-bottom .powered { text-align: center; flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .services-grid, .info-grid, .visualizer-row, .footer-grid, .benefits-grid, .contact-page-grid, .locations-grid {
    grid-template-columns: 1fr;
  }
  .hero-cards {
    position: static;
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }
  .hero-cards .hero-card { width: 100%; }
  .hero-expert { display: none; }

  /* Hamburger nav */
  .hamburger { display: flex; }

  .main-nav .nav-links,
  .main-nav .phone-btn {
    display: none;
    flex-basis: 100%;
  }
  .main-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 4px;
    font-size: 14px;
  }
  .main-nav.open .nav-links li {
    padding: 12px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-nav.open .phone-btn {
    display: inline-flex;
    justify-content: center;
    align-self: stretch;
    margin: 10px 0 6px;
  }

  /* Burger -> X */
  .main-nav.open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .main-nav.open .hamburger span:nth-child(2) { opacity: 0; }
  .main-nav.open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
