/* ============================================================
   Ironline Auto Repair — landing page styles
   ============================================================ */

:root {
  /* palette */
  --ink:        #12151a;
  --ink-2:      #1b2029;
  --ink-3:      #272e3a;
  --slate:      #5a6473;
  --slate-2:    #8b95a4;
  --paper:      #ffffff;
  --paper-2:    #f5f6f8;
  --line:       #e3e6eb;
  --line-dark:  rgba(255, 255, 255, .12);

  --accent:     #f5a524;
  --accent-2:   #e08c00;
  --accent-ink: #2a1c00;

  /* type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Inter", system-ui, sans-serif;

  /* layout */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(18, 21, 26, .06), 0 4px 12px rgba(18, 21, 26, .05);
  --shadow-md: 0 12px 32px rgba(18, 21, 26, .10);
  --shadow-lg: 0 24px 60px rgba(18, 21, 26, .18);

  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.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: 12px; top: -60px; z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- headings ---------- */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); color: var(--ink); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.09rem; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .7rem;
}
.eyebrow--dark { color: var(--accent-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600; font-size: .97rem;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(245, 165, 36, .35);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-2px); }
.btn--lg { padding: .9em 1.9em; font-size: 1.03rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 600; color: var(--accent-2); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.link-arrow:hover { color: var(--ink); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--ink);
  color: var(--slate-2);
  font-size: .85rem;
  border-bottom: 1px solid var(--line-dark);
}
.topbar__inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 42px; flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45em; }
.topbar__phone {
  margin-left: auto; color: #fff; font-weight: 600; text-decoration: none;
}
.topbar__phone:hover { color: var(--accent); }
#topbar-status.is-open { color: #6ee7a8; }
#topbar-status.is-closed { color: #f19a9a; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.5rem; letter-spacing: .01em; text-transform: uppercase;
  margin-right: auto;
}
.logo__mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); border-radius: 9px; color: var(--accent-ink);
  flex: none;
}
.logo__mark svg { width: 22px; height: 22px; fill: currentColor; }
.logo__text span { color: var(--accent-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 9px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: .96rem;
  color: var(--slate);
  transition: color .15s, background-color .15s;
}
.nav > a:hover { color: var(--ink); background: var(--paper-2); }
.nav > a.is-active { color: var(--ink); font-weight: 600; }
.nav__cta { margin-left: 10px; color: var(--accent-ink) !important; }
.nav__cta:hover { background: var(--accent-2) !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 90px 0 76px;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 12, 16, .93) 0%, rgba(10, 12, 16, .82) 42%, rgba(10, 12, 16, .35) 100%),
    linear-gradient(to top, rgba(10, 12, 16, .8), transparent 45%);
}
.hero__inner { position: relative; max-width: 700px; }
.hero__title {
  font-size: clamp(2.8rem, 1.6rem + 5.4vw, 5.2rem);
  margin-bottom: .28em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead {
  font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem);
  color: rgba(255, 255, 255, .84);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__trust li {
  font-size: .93rem; color: rgba(255, 255, 255, .7);
  display: flex; align-items: baseline; gap: .5em;
}
.hero__trust strong {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: #fff; letter-spacing: .01em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--muted { background: var(--paper-2); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .75); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--accent); }

.section__head { max-width: 660px; margin-bottom: 52px; }
.section__sub { font-size: 1.08rem; color: var(--slate); margin: 0; }
.section--dark .section__sub { color: rgba(255, 255, 255, .68); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.card--service {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--service::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.card--service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d6dae1;
}
.card--service:hover::after { transform: scaleX(1); }
.card--service h3 { margin-bottom: .45em; }
.card--service p { color: var(--slate); font-size: .97rem; margin-bottom: .7em; }

.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 13px;
  background: linear-gradient(140deg, #fff3dc, #ffe3ad);
  color: var(--accent-2);
}
.card__icon svg { width: 27px; height: 27px; fill: currentColor; }

.card__price {
  margin: 0; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .87rem !important; font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: .01em;
}

.services__note {
  margin: 40px 0 0; text-align: center;
  color: var(--slate); font-size: 1rem;
}
.services__note a { color: var(--accent-2); font-weight: 600; }

/* ---------- why us ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.why__media { position: relative; }
.why__media img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.why__badge {
  position: absolute; right: -16px; bottom: 28px;
  background: var(--accent); color: var(--accent-ink);
  padding: 18px 22px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .32);
}
.why__badge strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.why__badge span { font-size: .82rem; font-weight: 600; line-height: 1.25; }

.why__body > p { color: rgba(255, 255, 255, .72); font-size: 1.05rem; max-width: 54ch; }

.feature-list { display: grid; gap: 22px; margin-top: 34px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list__tick {
  flex: none; width: 30px; height: 30px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245, 165, 36, .16);
  color: var(--accent);
}
.feature-list__tick svg { width: 19px; height: 19px; fill: currentColor; }
.feature-list h3 { margin-bottom: .2em; font-size: 1.03rem; }
.feature-list p { margin: 0; color: rgba(255, 255, 255, .62); font-size: .95rem; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  margin-top: clamp(56px, 7vw, 84px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--ink-2);
  padding: 30px 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem);
  line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 8px; font-size: .89rem; color: rgba(255, 255, 255, .6); }

/* ---------- testimonials ---------- */
.card--quote { display: flex; flex-direction: column; }
.stars { color: var(--accent); letter-spacing: .12em; font-size: 1.05rem; margin-bottom: 14px; }
.card--quote blockquote {
  margin: 0 0 24px; flex: 1;
  font-size: 1.01rem; color: var(--ink-2); line-height: 1.68;
}
.card--quote figcaption {
  display: flex; align-items: center; gap: 13px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.card--quote figcaption img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none;
}
.card--quote figcaption span { font-size: .87rem; color: var(--slate); line-height: 1.45; }
.card--quote figcaption strong { display: block; color: var(--ink); font-size: .97rem; }

/* ---------- hours + map ---------- */
.info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.hours {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.hours th, .hours td {
  text-align: left; padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; color: var(--slate); }
.hours td { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours__closed { color: var(--slate-2) !important; font-weight: 500 !important; }
.hours tr.is-today { background: #fff8ea; }
.hours tr.is-today th { color: var(--ink); font-weight: 700; }
.hours tr.is-today th::after {
  content: "Today"; display: inline-block; margin-left: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
}

.info__blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.info__block h3 { margin-bottom: .4em; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.info__block p { margin-bottom: .6em; }
.info__block a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info__block a:hover { color: var(--accent-2); }
.info__small { font-size: .88rem; color: var(--slate); }

.info__map {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: #e8eaee;
}
.info__map iframe { width: 100%; height: 480px; border: 0; }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact__intro > p { color: rgba(255, 255, 255, .72); font-size: 1.05rem; max-width: 46ch; }
.contact__points { display: grid; gap: 14px; margin-top: 30px; }
.contact__points li {
  padding-left: 18px; border-left: 2px solid var(--accent);
  font-size: .96rem; color: rgba(255, 255, 255, .7);
}
.contact__points strong { color: #fff; display: block; font-size: .95rem; }

.form { padding: clamp(24px, 3vw, 36px); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: .85rem; font-weight: 600; color: var(--ink);
  letter-spacing: .01em;
}
.field label span { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfbfc; font-size: .97rem;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #a8b0bc; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 165, 36, .16);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: #d9534f; background: #fff7f7;
}
.field__error {
  margin: 6px 0 0; font-size: .82rem; color: #c9302c; min-height: 0;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__fineprint {
  margin: 12px 0 0; text-align: center;
  font-size: .8rem; color: var(--slate-2);
}
.form__status {
  margin: 16px 0 0; padding: 0;
  font-size: .95rem; font-weight: 600; text-align: center;
}
.form__status.is-success {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: #eaf8ef; color: #1d7a43; border: 1px solid #b7e4c8;
}
.form__status.is-error {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fdeeee; color: #b02a26; border: 1px solid #f3c5c3;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0c0f13; color: rgba(255, 255, 255, .55); padding: 64px 0 0; font-size: .94rem; }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer h3 {
  color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.1em;
}
.footer a { color: rgba(255, 255, 255, .62); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.logo--footer { color: #fff; margin-bottom: 16px; }
.footer__brand p { max-width: 40ch; margin: 0; }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer__nav h3 { margin-bottom: .3em; }
.footer__contact p { margin-bottom: 1em; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__credit a { text-decoration: underline; }

/* ---------- mobile call button ---------- */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: none; align-items: center; gap: .5em;
  padding: 13px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, .8, .3, 1), transform .6s cubic-bezier(.22, .8, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .why, .info, .contact { grid-template-columns: 1fr; }
  .why__media { max-width: 560px; }
  .why__media img { aspect-ratio: 4 / 3.2; }
  .why__badge { right: 20px; }
  .info__map iframe { height: 360px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }

  .topbar__item--hours { display: none; }
  .topbar__inner { font-size: .8rem; gap: 16px; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 42px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 20px;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--header-h) - 42px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav > a { padding: 13px 12px; font-size: 1.02rem; border-radius: 8px; }
  .nav__cta { margin: 10px 0 0; justify-content: center; padding: 14px !important; }

  .hero { min-height: 0; padding: 72px 0 64px; }
  .hero__bg { object-position: 62% center; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__trust { gap: 12px 26px; }

  .section { padding: 60px 0; }
  .section__head { margin-bottom: 36px; }

  .why__badge {
    position: static; margin-top: -34px; margin-left: 20px;
    width: fit-content; position: relative; z-index: 2;
  }

  .call-fab { display: inline-flex; }
  .footer { padding-bottom: 76px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .hours th, .hours td { padding: 11px 14px; font-size: .9rem; }
  .hours tr.is-today th::after { display: none; }
  .why__badge strong { font-size: 2.1rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .topbar, .header, .call-fab, .hero__actions, .form, .info__map { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section--dark { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
