/* Amiran Motor — visual refresh layered over app.css (public pages). */

/* subtle film grain for depth */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- floating glass header ---------- */
.site-header { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 10px; height: calc(var(--header-h) + 10px); }
.site-header.scrolled { background: transparent; }
.header-bar {
  height: var(--header-h); border-radius: 20px; padding-inline: 14px 16px !important;
  background: rgb(var(--base-rgb) / 0.55); border: 1px solid rgb(var(--ink-rgb) / 0.07);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
  max-width: calc(var(--container) - 16px);
}
.site-header.scrolled .header-bar { background: rgb(var(--base-rgb) / 0.82); border-color: rgb(var(--ink-rgb) / 0.1); box-shadow: 0 16px 40px -20px rgb(var(--shade-rgb) / 0.8); }
@media (max-width: 1240px) { .header-bar { margin-inline: 10px; max-width: none; width: auto; } }
.nav a { border-radius: 12px; }
.nav a[aria-current="page"] { color: var(--cyan); background: var(--cyan-soft); }
@media (max-width: 1080px) {
  .nav { inset: calc(var(--header-h) + 18px) 10px auto 10px; border-radius: 20px; border: 1px solid var(--border-strong); }
}
html { scroll-padding-top: calc(var(--header-h) + 28px); }

/* ---------- buttons: soft shine ---------- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(-120%); }

/* ---------- hero ---------- */
.hero { padding-top: 56px; }
.hero::before {
  background:
    radial-gradient(45% 55% at 18% 28%, rgb(var(--brand-rgb) / 0.22), transparent 62%),
    radial-gradient(35% 45% at 88% 78%, rgb(var(--accent-rgb) / 0.09), transparent 62%),
    radial-gradient(30% 35% at 60% 10%, rgb(var(--brand-rgb) / 0.08), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(0, -14px, 0) scale(1.04); filter: hue-rotate(-12deg); } }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -0.02em; }
.slot-card, .spec-chip { box-shadow: 0 30px 60px -30px rgb(var(--shade-rgb) / 0.9), inset 0 1px 0 rgb(var(--ink-rgb) / 0.06); }

/* ---------- specialties marquee ---------- */
.marquee { position: relative; overflow: hidden; margin: 56px 0 0; padding: 16px 0; border-block: 1px solid var(--border); background: linear-gradient(90deg, var(--bg), rgb(var(--panel-rgb) / 0.6), var(--bg));
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-2); white-space: nowrap; font-size: 1.02rem; }
.marquee .i { color: var(--cyan); width: 16px; height: 16px; fill: currentColor; }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- section heads ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px; border-radius: 999px; background: var(--cyan-soft); border: 1px solid rgb(var(--brand-rgb) / 0.2); letter-spacing: 0; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 900; letter-spacing: -0.015em; }

/* ---------- spotlight cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--brand-rgb) / 0.13), transparent 45%);
  transition: opacity 0.3s;
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* ---------- bento services ---------- */
.services.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service { border-radius: 22px; padding: 26px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%); }
.service-lg { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 340px; background:
  radial-gradient(90% 70% at 85% 10%, rgb(var(--brand-rgb) / 0.2), transparent 60%),
  linear-gradient(160deg, var(--surface-2), var(--surface) 60%); }
.service-lg .ico { width: 72px; height: 72px; border-radius: 20px; margin-bottom: auto; }
.service-lg .ico .i { width: 36px; height: 36px; }
.service-lg h3 { font-size: 1.6rem; font-weight: 900; }
.service-lg p { font-size: 1.02rem; flex: 0; max-width: 42ch; }
@media (max-width: 1100px) { .services.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-lg { grid-row: auto; min-height: 240px; } }
@media (max-width: 600px) {
  .services.bento { grid-template-columns: minmax(0, 1fr); }
  .service-lg { grid-column: auto; grid-row: auto; min-height: 0; }
  .service-lg .ico { margin-bottom: 8px; }
}

/* ---------- values / steps polish ---------- */
.values { border-radius: 24px; background: rgb(var(--ink-rgb) / 0.06); }
.value { background: rgb(var(--panel-rgb) / 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.step { border-radius: 22px; padding: 30px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); }
.step .num { font-size: 3.6rem; }
.pcard { border-radius: 20px; }
.faq details { border-radius: 16px; }
.cta-panel { border-radius: 28px; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 0; margin-top: 24px; background: linear-gradient(180deg, transparent, rgb(var(--base-rgb) / 0.9)); }
.site-footer .container.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand p { margin: 14px 0 18px; max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.footer-col a { color: var(--text-2); width: fit-content; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: block !important; margin-top: 40px; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .site-footer .container.footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
body.has-mobile-cta .site-footer { padding-bottom: 0; }
@media (max-width: 720px) { body.has-mobile-cta .footer-bottom { padding-bottom: 104px; } }

/* ---------- my bookings / tracking ---------- */
.page-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.track-list { display: grid; gap: 14px; }
.track-card { --tone: var(--cyan); position: relative; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--border); overflow: hidden; }
.track-card::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone); }
.track-card[data-tone="amber"] { --tone: var(--amber); }
.track-card[data-tone="green"] { --tone: var(--green); }
.track-card[data-tone="blue"] { --tone: var(--blue); }
.track-card[data-tone="done"] { --tone: var(--violet); }
.track-card[data-tone="red"] { --tone: var(--red); }
.track-card[data-tone="muted"] { --tone: var(--muted); }
.track-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.track-head .date-box { width: 64px; text-align: center; padding: 8px 0; border-radius: 14px; background: var(--surface-3); line-height: 1.3; }
.track-head .date-box b { display: block; font-size: 1.4rem; }
.track-head .date-box small { font-size: 0.72rem; color: var(--muted); }
.track-title h3 { font-size: 1.02rem; margin: 0 0 4px; }
.track-title .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.84rem; color: var(--muted); }
.track-title .meta span { display: inline-flex; align-items: center; gap: 6px; }
.track-title .meta .i { width: 15px; height: 15px; }
@media (max-width: 560px) { .track-head { grid-template-columns: auto minmax(0, 1fr); } .track-head .badge { grid-column: 1 / -1; justify-self: start; } }

.track-flow { list-style: none; padding: 0; margin: 18px 0 4px; display: flex; }
.track-flow li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 0.74rem; color: var(--muted); text-align: center; }
.track-flow li:not(:last-child)::after { content: ""; position: absolute; top: 6px; inset-inline-start: calc(50% + 10px); inset-inline-end: calc(-50% + 10px); height: 2px; background: var(--surface-3); }
.track-flow li.done:not(:last-child)::after { background: var(--green); }
.tf-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface-3); position: relative; z-index: 1; }
.track-flow li.done .tf-dot { background: var(--green); border-color: var(--green); }
.track-flow li.current .tf-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px rgb(var(--brand-rgb) / 0.18); animation: tfPulse 2s infinite; }
.track-flow li.current { color: var(--text); font-weight: 700; }
.track-flow li.done { color: var(--text-2); }
@keyframes tfPulse { 50% { box-shadow: 0 0 0 9px rgb(var(--brand-rgb) / 0.06); } }
@media (max-width: 480px) { .tf-label { font-size: 0.66rem; } }

.track-notes { display: grid; gap: 10px; margin-top: 16px; }
.track-notes div { padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.track-notes span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--cyan); font-weight: 700; }
.track-notes .i { width: 15px; height: 15px; }
.track-notes p { margin: 4px 0 0; color: var(--text-2); white-space: pre-line; font-size: 0.92rem; }
.track-items { margin-top: 12px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.track-items summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-2); font-size: 0.9rem; min-height: 48px; }
.track-items summary::-webkit-details-marker { display: none; }
.track-items summary span { display: inline-flex; align-items: center; gap: 8px; }
.track-items summary .i { width: 16px; height: 16px; color: var(--muted); transition: transform 0.25s var(--ease); }
.track-items[open] summary .i:last-child { transform: rotate(180deg); }
.track-items ul { list-style: none; margin: 0; padding: 6px 14px 10px; }
.track-items li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 0.9rem; }
.track-items li + li { border-top: 1px dashed var(--border); }
.ti-check { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.ti-check .i { width: 13px; height: 13px; stroke-width: 2.6; }
.track-items li.is-done .ti-check { background: var(--green-soft); color: var(--green); }
.track-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.track-form .field { margin: 0; }
.track-form .btn { min-height: 52px; }
@media (max-width: 640px) { .track-form { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero::before { animation: none; }
}

/* ---------- hero visual: logo over the gauge, info cards in a row beneath ---------- */
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 0; }
.hero-visual .gauge { top: 50%; left: 50%; transform: translate(-50%, -58%); width: min(470px, 108%); }
.hero-visual .emblem { position: relative; z-index: 1; }
.hero-badges { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: stretch; }
.hero-badges .slot-card, .hero-badges .spec-chip { position: static; inset: auto; width: auto; }
.hero-badges .slot-card { min-width: 230px; }
@media (max-width: 960px) {
  .hero-visual .gauge { width: min(360px, 100%); }
  .hero-badges .slot-card { min-width: 0; flex: 1 1 200px; }
}
@media (max-width: 960px) {
  .hero-visual { order: 0; }
  .hero-visual .emblem { width: min(230px, 62%); }
  .hero-badges .spec-chip { display: none; }
}
@media (max-width: 440px) {
  .hide-xs { display: none; }
  .header-cta { width: 44px; padding: 0; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
}
