/* =========================================================
   Shivam Automovers - global stylesheet
   ========================================================= */

:root {
  --orange: #e2741b;
  --orange-dark: #c2600f;
  --sand: #b19777;
  --ink: #111111;
  --ink-soft: #334155;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-alt: #f2f3f5;
  --white: #ffffff;
  --container: 1110px;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(17, 17, 17, .08);
  --header-h: 82px;
  --overlay-gradient: linear-gradient(170deg, #000000 0%, #E2741B 100%);
  --overlay-opacity: .52;

  /* Inline icon shapes, applied as CSS masks so they take the current accent colour. */
  --icon-phone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.15.38 2.35.58 3.6.58a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.58 3.6a1 1 0 0 1-.25 1z'/></svg>") no-repeat center / contain;
  --icon-mail: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/></svg>") no-repeat center / contain;
  --icon-pin: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 14.5 9 2.5 2.5 0 0 1 12 11.5z'/></svg>") no-repeat center / contain;
  --icon-star: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/></svg>") no-repeat center / contain;
  --icon-arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13h11.2l-3.6 3.6L13 18l6-6-6-6-1.4 1.4L15.2 11H4z'/></svg>") no-repeat center / contain;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn--ghost:hover { background: var(--orange); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--orange); color: #fff; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #d7d7d7; font-size: .82rem; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 42px; flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #d7d7d7; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--orange); }

/* Icons are CSS masks so they inherit the accent colour. */
.ic { width: 14px; height: 14px; background: var(--orange); display: inline-block; }
.ic-phone { -webkit-mask: var(--icon-phone); mask: var(--icon-phone); }
.ic-mail { -webkit-mask: var(--icon-mail); mask: var(--icon-mail); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 10px rgba(0, 0, 0, .07);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h); position: relative;
}
.brand img { width: 190px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); font-size: .92rem; font-weight: 500; padding: 6px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--orange); transition: width .25s;
}
.nav a:hover::after, .nav a.is-current::after { width: 100%; }
.nav a:hover, .nav a.is-current { color: var(--orange); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- hero slider ---------- */
.hero { position: relative; height: clamp(360px, 62vh, 620px); overflow: hidden; background: var(--ink); }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .40); }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: #fff;
}
.hero__content h1 { color: #fff; max-width: 820px; text-transform: uppercase; }
.hero__kicker {
  font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 600;
  color: #f1f1f1; margin: 0 0 .3em; text-transform: none;
}
.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.hero__nav:hover { background: var(--orange); }
.hero__nav--prev { left: 18px; }
.hero__nav--next { right: 18px; }
.hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; }
.hero__dots button.is-active { background: var(--orange); }

/* ---------- inner page banner ---------- */
.page-banner {
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  position: relative; display: flex; align-items: center; min-height: 373px;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--overlay-gradient); opacity: var(--overlay-opacity);
}
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; margin: 0; text-transform: uppercase; }
.page-banner .divider-line { margin: 18px 0 0; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section__head h2 { text-transform: uppercase; }
.section__head p { color: var(--muted); }

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- short accent rule under a section subtitle ---------- */
.divider-line { width: 56px; height: 3px; background: var(--orange); margin: 18px auto 0; border: 0; }

/* ---------- borderless feature columns split by vertical rules ---------- */
.feature-row { display: grid; gap: 0; }
.feature-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-row > * { padding: 10px 28px; text-align: center; border-right: 1px solid #d9d9d9; }
.feature-row > *:last-child { border-right: 0; }
.feature-row__icon { width: 30px; height: 30px; margin: 0 auto 14px; background: var(--orange); -webkit-mask: var(--icon-star); mask: var(--icon-star); }
.feature-row h3 { font-size: 1rem; letter-spacing: .3px; margin-bottom: .4em; }
.feature-row p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- logo carousel ---------- */
.carousel { display: flex; align-items: center; gap: 10px; }
.carousel__viewport { overflow: hidden; flex: 1; }
.carousel__track { display: flex; gap: 24px; transition: transform .45s ease; }
.carousel__item {
  flex: 0 0 calc((100% - 4 * 24px) / 5);
  background: #fff; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; min-height: 140px;
}
.carousel__item img { max-height: 108px; width: auto; object-fit: contain; }
.carousel__nav {
  background: none; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--ink); padding: 8px 10px;
}
.carousel__nav:hover { color: var(--orange); }

/* ---------- branches ---------- */
.branch-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.arrow-list { list-style: none; margin: 0 0 26px; padding: 0; columns: 1; }
.arrow-list li { position: relative; padding-left: 30px; margin-bottom: 8px; color: var(--ink-soft); }
.arrow-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 15px; background: var(--orange);
  -webkit-mask: var(--icon-arrow); mask: var(--icon-arrow);
}

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { text-transform: uppercase; font-size: 1.05rem; letter-spacing: .3px; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- alternating image / text rows ---------- */
.media-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px; align-items: center; }
.media-row + .media-row { margin-top: 56px; }
.media-row--flip .media-row__media { order: 2; }
.media-row__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media-row h2 { text-transform: uppercase; }
.media-row__body p { text-align: justify; }

/* ---------- image tiles ---------- */
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s, opacity .3s; }
.tile:hover img { transform: scale(1.06); opacity: .85; }

/* ---------- client logos ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.logo-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 110px; display: flex; align-items: center; justify-content: center; padding: 14px;
}
.logo-grid img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); transition: filter .25s; }
.logo-grid figure:hover img { filter: none; }

/* ---------- branch pills ---------- */
.branches { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.branches span {
  background: #fff; border: 1px solid var(--line); border-radius: 40px;
  padding: 9px 22px; font-weight: 500; color: var(--ink); font-size: .92rem;
}

/* ---------- call to action strip ---------- */
.cta { background: var(--orange); color: #fff; text-align: center; padding: 54px 0; }
.cta h2 { color: #fff; margin-bottom: 18px; text-transform: uppercase; }

/* ---------- service pages ---------- */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--orange);
}
.service-list strong { color: var(--ink); }

/* ---------- full-width photo bands with a text panel ---------- */
.bg-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 0; min-height: 441px;
  display: flex; align-items: center;
}
.bg-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--overlay-gradient); opacity: var(--overlay-opacity);
}
.bg-section .container { position: relative; }
.bg-section__panel {
  background: rgba(255, 255, 255, .94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
  max-width: 560px;
}
.bg-section--right .bg-section__panel { margin-left: auto; }
.bg-section__panel h3 { color: var(--orange); text-transform: uppercase; font-size: 1.3rem; }
.bg-section__panel p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }

/* Phone strip and bordered detail boxes on the contact page. */
.contact-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 16px 20px; margin: 22px 0;
}
.contact-bar a { color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.contact-bar a:hover { color: var(--orange); }

.contact-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-box {
  border: 1px solid var(--orange); border-radius: 2px;
  padding: 26px 20px; text-align: center;
}
.contact-box__icon { width: 42px; height: 42px; margin: 0 auto 16px; background: var(--orange); }
.contact-box h3 { font-size: .95rem; letter-spacing: .5px; margin-bottom: 14px; }
.contact-box p { margin: 0; color: var(--ink-soft); font-size: .95rem; word-break: break-word; }

.map-embed { height: 100%; }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b9b9; padding-top: 58px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 42px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; margin-bottom: 16px; }
.footer-logo { background: #fff; border-radius: var(--radius); padding: 8px 10px; }
.footer-tag { color: var(--sand); margin: 14px 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #b9b9b9; }
.footer-links a:hover { color: var(--orange); }
.footer-address { color: #b9b9b9; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 18px 0; text-align: center; font-size: .85rem; color: #8d8d8d; }

/* ---------- scroll to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 42px; height: 42px; border: 0; border-radius: var(--radius);
  background: var(--orange); cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.to-top::before {
  content: ""; display: block; width: 12px; height: 12px; margin: 4px auto 0;
  border-top: 3px solid #fff; border-left: 3px solid #fff; transform: rotate(45deg);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: var(--shadow);
    padding: 10px 20px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 12px 0; }
  .nav__cta { margin-top: 14px; text-align: center; }
}

@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr; gap: 26px; }
  .media-row--flip .media-row__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; text-align: center; }
  .section { padding: 52px 0; }
  .bg-section { padding: 48px 0; }
  .bg-section__panel { max-width: none; padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .carousel__item { flex: 0 0 calc((100% - 2 * 24px) / 3); }
  .feature-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row > * { padding: 18px 20px; }
  .branch-layout { gap: 34px; }
}

/* ---------- phone ---------- */
@media (max-width: 600px) {
  .carousel__item { flex: 0 0 calc((100% - 24px) / 2); min-height: 112px; }
  .carousel__item img { max-height: 84px; }
  .carousel__nav { padding: 8px 4px; min-width: 32px; }

  /* Stacked columns need a horizontal rule, not a vertical one. */
  .feature-row--3 { grid-template-columns: 1fr; }
  .feature-row > * { border-right: 0; border-bottom: 1px solid #d9d9d9; padding: 22px 0; }
  .feature-row > *:last-child { border-bottom: 0; }

  .branch-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-boxes { grid-template-columns: 1fr; gap: 16px; }
  .contact-bar a { font-size: 1.1rem; }

  .page-banner { min-height: 230px; }
  .hero { height: clamp(320px, 70vh, 460px); }

  /* Comfortable tap targets (44px minimum). */
  .nav a { padding: 14px 0; }
  .btn { padding: 14px 24px; }
  .topbar__contact { gap: 0; flex-direction: column; }
  .topbar a, .footer-links a { min-height: 44px; align-items: center; display: flex; }
  .nav-toggle { padding: 10px; min-width: 44px; min-height: 44px; align-items: center; }
  .hero__dots { gap: 6px; }
  .hero__dots button { width: 12px; height: 12px; border: 10px solid transparent; background-clip: padding-box; }
  .carousel__nav { min-height: 44px; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .section__head { margin-bottom: 30px; }
}
