/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a1a2b;
  --navy-soft: #1a2a3a;
  --red: #c8102e;
  --light-bg: rgba(240, 244, 251, 0.5);
  --card-bg: #f5f8fc;
  --card-border: #e3e9f2;
  --muted-blue: #8aa0be;
  --muted-grey: #b7c3d4;
  --muted-grey-2: #9fb0c4;
  --accent-blue: #2f80ed;
  --icon-gradient: linear-gradient(135deg, #4a90e2 0%, #1c4fc4 100%);

  /* Dark-mode-only tokens */
  --bg: #000000;
  --text-primary: #f2f5f9;
  --surface: #12161d;
  --surface-border: rgba(255, 255, 255, 0.08);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* Emoji icons pulled from the same Noto Color Emoji set Figma renders with,
   so they match the design exactly instead of the viewer's OS emoji font. */
.emoji {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  display: inline-block;
}

/* ===== Page container (fluid, mobile-first) ===== */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 60px) clamp(16px, 5.5vw, 80px) clamp(28px, 6vw, 90px);
}

/* ===== Hero image ===== */
.hero {
  position: relative;
}

.hero-image-frame {
  width: 100%;
  aspect-ratio: 1280 / 830;
  border-radius: clamp(12px, 1.6vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== Same family / new look banner ===== */
.family-banner {
  margin-top: clamp(18px, 3vw, 28px);
  background: linear-gradient(90deg, #1c5fc4 0%, #0a1a2b 100%);
  color: #ffffff;
  font-weight: bold;
  font-style: italic;
  font-size: clamp(12px, 1.8vw, 18px);
  letter-spacing: 0.02em;
  text-align: center;
  padding: clamp(12px, 1.8vw, 16px) clamp(16px, 3vw, 28px);
  border-radius: clamp(6px, 0.8vw, 10px);
}

.family-banner-sep {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0.4em;
}

.family-banner-accent {
  color: #7fb4ff;
}

/* ===== Address / phone / hours info bar ===== */
.info-bar {
  margin-top: clamp(12px, 2vw, 18px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: clamp(6px, 0.8vw, 10px);
  padding: clamp(20px, 3.2vw, 32px) clamp(16px, 3vw, 40px) clamp(14px, 2.2vw, 20px);
}

.info-bar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.info-bar-item {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  text-decoration: none;
  color: inherit;
}

.info-bar-item:hover .info-bar-text,
.info-bar-item:focus-visible .info-bar-text {
  text-decoration: underline;
}

.info-bar-icon {
  flex-shrink: 0;
  width: clamp(32px, 3.2vw, 42px);
  height: clamp(32px, 3.2vw, 42px);
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-bar-icon svg {
  width: 52%;
  height: 52%;
  color: #ffffff;
}

.info-bar-text {
  color: #ffffff;
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.info-bar-text strong {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: bold;
}

.info-bar-phone {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: bold;
}

.info-bar-hours-row {
  margin-top: clamp(16px, 2.4vw, 24px);
  padding-top: clamp(12px, 1.8vw, 16px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35em 0.6em;
  text-align: center;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.03em;
  color: #ffffff;
}

.info-bar-clock {
  width: clamp(14px, 1.6vw, 18px);
  height: clamp(14px, 1.6vw, 18px);
  color: var(--accent-blue);
  display: inline-flex;
}

.info-bar-clock svg {
  width: 100%;
  height: 100%;
}

.info-bar-hours-label,
.info-bar-pipe {
  color: var(--accent-blue);
  font-weight: bold;
}

/* ===== Under new management badge ===== */
.badge-new-mgmt {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: var(--red);
  color: #ffffff;
  font-weight: bold;
  font-size: clamp(9px, 2.4vw, 16px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  padding: clamp(6px, 1vw, 10px) clamp(12px, 2.4vw, 30px);
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

/* ===== Hero heading block ===== */
.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.6vw, 17px);
  margin-top: clamp(36px, 6vw, 90px);
}

.badge-trailer-repair {
  background: var(--red);
  color: #ffffff;
  font-weight: bold;
  font-size: clamp(12px, 1.6vw, 18px);
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
  padding: clamp(5px, 0.8vw, 6px) clamp(18px, 3vw, 34.189px);
  border-radius: 999px;
}

.now-open {
  font-weight: bold;
  font-size: clamp(30px, 6.5vw, 60px);
  color: var(--text-primary);
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-align: center;
}

.hero-subtitle {
  max-width: 706px;
  font-size: clamp(14px, 2.2vw, 24px);
  color: var(--muted-blue);
  text-align: center;
  line-height: 1.4;
}

/* ===== Services section ===== */
.services-section {
  margin-top: clamp(48px, 7vw, 94px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: clamp(14px, 1.6vw, 24px);
  padding: clamp(28px, 4.5vw, 56px) clamp(16px, 3vw, 40px) clamp(36px, 4.5vw, 56px);
}

.services-heading {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: 4px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.services-heading-main {
  font-weight: bold;
  font-style: italic;
  font-size: clamp(22px, 5.2vw, 62px);
  color: var(--text-primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.services-heading-sub {
  font-weight: bold;
  font-size: clamp(14px, 1.8vw, 19px);
  color: var(--accent-blue);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: left;
}

/* Desktop shows the two-line version (with the manual break); mobile
   shows the single-line version. Toggled by the max-width: 700px query. */
.services-heading-sub--mobile {
  display: none;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: clamp(14px, 1.6vw, 24px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-image {
  width: 100%;
  aspect-ratio: 394 / 288;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-image--icon {
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-image--icon .emoji {
  width: clamp(48px, 7vw, 72px);
  height: clamp(48px, 7vw, 72px);
}

.service-card-caption {
  background: var(--navy);
  padding: clamp(14px, 1.6vw, 18px) clamp(12px, 1.6vw, 16px);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 8px);
}

.service-card-title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.service-card-text {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--muted-blue);
  line-height: 1.35;
  text-transform: uppercase;
}

/* ===== Icon cards row ===== */
.icon-cards {
  --icon-cards-gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(32px, 4.5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: clamp(14px, 1.6vw, 19.568px);
  padding: clamp(24px, 3.5vw, 40px) clamp(16px, 2.4vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--icon-cards-gap);
}

.icon-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 18px);
  text-align: left;
  position: relative;
}

.icon-card + .icon-card::before {
  content: "";
  position: absolute;
  left: calc(-0.5 * var(--icon-cards-gap));
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.icon-card-icon {
  flex-shrink: 0;
  width: clamp(30px, 3.2vw, 42px);
  height: clamp(30px, 3.2vw, 42px);
  color: var(--accent-blue);
}

.icon-card-icon svg {
  width: 100%;
  height: 100%;
}

.icon-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.icon-card-strong {
  font-weight: bold;
  font-size: clamp(15px, 1.8vw, 20px);
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.25;
  font-style: italic;
  text-transform: uppercase;
}

.icon-card-light {
  font-weight: bold;
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--accent-blue);
  letter-spacing: 0.01em;
  font-style: italic;
  text-transform: uppercase;
}

/* ===== Tagline ===== */
.tagline {
  margin-top: clamp(32px, 4.5vw, 56px);
  text-align: center;
  font-size: clamp(15px, 2.4vw, 30px);
  color: var(--text-primary);
  line-height: 1.5;
}

.stars-line {
  margin-top: clamp(8px, 1.4vw, 14px);
  text-align: center;
  font-size: clamp(14px, 1.9vw, 24.576px);
  letter-spacing: 0.07em;
  color: var(--muted-grey);
  line-height: 1.5;
}

/* ===== Contact section ===== */
.contact-box {
  margin-top: clamp(36px, 5vw, 70px);
  background: var(--navy);
  border-radius: clamp(14px, 1.6vw, 24px);
  padding: clamp(28px, 4.5vw, 48px) clamp(18px, 3vw, 40px);
}

.contact-heading {
  text-align: center;
  font-size: clamp(16px, 2.4vw, 26px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-blue);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(14px, 3vw, 40px) clamp(24px, 4vw, 60px);
  text-align: center;
}

/* Above this width the design keeps Call / Add / Hours on a single row */
@media (min-width: 860px) {
  .contact-info {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 32px);
  }
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
}

.contact-label {
  font-size: clamp(16px, 1.8vw, 30px);
  color: var(--muted-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-value {
  font-size: clamp(13px, 1.3vw, 18px);
  color: #ffffff;
  white-space: normal;
}

a.contact-value {
  text-decoration: none;
}

a.contact-value:hover,
a.contact-value:focus-visible {
  text-decoration: underline;
}

.contact-hours {
  white-space: nowrap;
}

.hours-clock {
  font-size: clamp(13px, 1.5vw, 24px);
  color: #ffffff;
}

.hours-day {
  font-size: clamp(16px, 1.8vw, 30px);
  font-weight: bold;
  color: var(--muted-blue);
}

.hours-sep {
  font-size: clamp(13px, 1.5vw, 24px);
}

.hours-time {
  font-size: clamp(13px, 1.3vw, 18px);
  color: #ffffff;
}

.hours-pipe {
  font-size: clamp(13px, 1.5vw, 24px);
  font-weight: bold;
  color: var(--muted-blue);
}

/* ===== Quality / why-us section ===== */
.quality-section {
  margin-top: clamp(36px, 5vw, 70px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: clamp(14px, 1.6vw, 24px);
  padding: clamp(28px, 4.5vw, 48px) clamp(18px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 3vw, 40px);
}

.quality-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: clamp(6px, 1vw, 10px);
  position: relative;
}

.quality-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
}

.quality-item + .quality-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(12px, 1.75vw, 20px));
  top: 6%;
  bottom: 6%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.quality-icon {
  position: relative;
  flex-shrink: 0;
  width: clamp(34px, 3.6vw, 44px);
  height: clamp(34px, 3.6vw, 44px);
  color: var(--accent-blue);
}

.quality-icon svg {
  width: 100%;
  height: 100%;
}

.quality-icon-badge {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 45%;
  height: 45%;
  background: var(--surface);
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.quality-icon-badge svg {
  width: 80%;
  height: 80%;
}

.quality-title {
  font-weight: bold;
  color: #ffffff;
  font-size: clamp(14px, 1.7vw, 18px);
  letter-spacing: 0.04em;
}

.quality-text {
  color: var(--muted-blue);
  font-size: clamp(12px, 1.4vw, 15px);
  line-height: 1.4;
}

/* ===== Footer ===== */
.copyright {
  margin-top: clamp(12px, 2vw, 20px);
  text-align: center;
  font-size: clamp(11px, 1.3vw, 18px);
  color: var(--muted-blue);
}

/* ===== Small-screen tweaks ===== */
@media (max-width: 480px) {
  .contact-hours {
    white-space: normal;
  }

  .badge-new-mgmt {
    white-space: normal;
    max-width: 90%;
    text-align: center;
  }

  .services-heading-sub {
    font-size: clamp(10px, 3.2vw, 14px);
    white-space: nowrap;
  }
}

/* Cards stack to a single column below this width — swap the vertical
   dividers for horizontal ones between the stacked rows. */
@media (max-width: 700px) {
  .icon-card + .icon-card::before,
  .quality-item + .quality-item::before {
    display: none;
  }

  .icon-card + .icon-card,
  .quality-item + .quality-item {
    padding-top: clamp(16px, 4vw, 24px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Keep the heading stacked and centered on mobile — only the desktop
     layout splits it into a left title / right subtitle row. */
  .services-heading {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .services-heading-main,
  .services-heading-sub {
    text-align: center;
  }

  .services-heading-sub--desktop {
    display: none;
  }

  .services-heading-sub--mobile {
    display: block;
  }
}

/* Mobile and tablet: left-align the icon-card content. Desktop keeps
   the base centered alignment. */
@media (max-width: 1024px) {
  .icon-card {
    justify-content: flex-start;
  }
}
