/* FixMitra theme 1.8 — premium layer: colour themes, depth, richer sections, motion.
   Sits on top of real.css. Every colour comes from the theme variables below. */

/* ---------- Colour themes ---------- */
:root, [data-fm-theme="classic"] { --ac: #f2600f; --ac2: #ff9a3c; --ac-deep: #04457a; --ac-deep2: #0b5c9e; }
[data-fm-theme="ocean"]    { --ac: #0a84d6; --ac2: #38bdf8; --ac-deep: #0b3b66; --ac-deep2: #0f5a96; }
[data-fm-theme="emerald"]  { --ac: #059669; --ac2: #34d399; --ac-deep: #064e3b; --ac-deep2: #0b7356; }
[data-fm-theme="royal"]    { --ac: #6d3fd9; --ac2: #a78bfa; --ac-deep: #2a1463; --ac-deep2: #432096; }
[data-fm-theme="crimson"]  { --ac: #e0244d; --ac2: #fb7185; --ac-deep: #4f0a1d; --ac-deep2: #7a1230; }
[data-fm-theme="graphite"] { --ac: #1f2937; --ac2: #64748b; --ac-deep: #0b1018; --ac-deep2: #1e293b; }
:root {
	--ac-soft: color-mix(in srgb, var(--ac) 9%, #fff);
	--ac-soft2: color-mix(in srgb, var(--ac) 16%, #fff);
	--ac-line: color-mix(in srgb, var(--ac) 28%, #fff);
	--ac-glow: color-mix(in srgb, var(--ac) 32%, transparent);
	--fm-orange: var(--ac);
	--fm-orange-2: var(--ac2);
	--fm-grad: var(--ac);
	--fm-navy: var(--ac-deep);
	--fm-navy-2: var(--ac-deep2);
	--fm-navy-deep: var(--ac-deep);
	--fm-navy-tint: var(--ac-soft);
	--fx-ease: cubic-bezier(.2, .8, .2, 1);
	--fx-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
	--fx-shadow-md: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 28px -6px rgba(16, 24, 40, .12);
	--fx-shadow-lg: 0 24px 60px -18px color-mix(in srgb, var(--ac-deep) 45%, transparent);
}
.fx-theme-anim, .fx-theme-anim * { transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important; }

body { background: #fff; }
::selection { background: var(--ac-soft2); color: var(--fm-ink); }
a { color: var(--ac-deep2); }
.fm-link { color: var(--ac); }

/* ---------- Type ---------- */
h1, h2 { letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
.fm-hero-title { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.04em; }
.fm-hero-title .fm-grad { color: var(--ac); }

/* Section labels: small tinted pill */
.fm-eyebrow { display: inline-flex !important; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ac-soft); color: var(--ac) !important; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: none; margin-bottom: 14px; }
.fm-eyebrow .fm-ic { color: var(--ac); }
.fm-eyebrow-light { background: rgba(255, 255, 255, .12); color: #fff !important; }
.fm-hero .fm-eyebrow, .fm-pagehead .fm-eyebrow { background: #fff; box-shadow: var(--fx-shadow-sm); color: var(--fm-ink) !important; }
.fm-hero .fm-eyebrow .fm-ic, .fm-pagehead .fm-eyebrow .fm-ic { color: var(--ac); }

/* ---------- Buttons ---------- */
.fm-btn { border-radius: 12px; font-weight: 650; position: relative; overflow: hidden; transition: transform .2s var(--fx-ease), box-shadow .25s ease, background .2s ease, color .2s, border-color .2s; }
.fm-btn-primary { background: var(--ac); color: #fff; box-shadow: none; }
.fm-btn-primary:hover { background: var(--ac-deep2); color: #fff; transform: none; box-shadow: none; }
.fm-btn-ghost { box-shadow: var(--fx-shadow-sm); }
.fm-btn-ghost:hover { border-color: var(--ac); color: var(--ac); transform: translateY(-1px); }
.fm-btn-navy { background: var(--ac-deep); }

/* ---------- Header ---------- */
.fm-topbar { background: var(--ac-deep); }
.fm-header { background: #fff; }
.fm-nav a { position: relative; transition: color .2s; }
.fm-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ac); transform: scaleX(0); transition: transform .3s var(--fx-ease); }
.fm-nav a:hover { background: transparent; color: var(--fm-ink); }
.fm-nav a:hover::after, .fm-nav a.is-active::after { transform: scaleX(1); }
.fm-nav a.is-active { box-shadow: none; color: var(--fm-ink); }

/* ---------- Hero ---------- */
.fm-hero-bg { background: #f4f5f7; }
.fm-hero-bg::before { display: none; }
.fm-hero.fm-hero-bg { padding: 64px 0 104px; }
.fm-hero-act { border-radius: 14px; box-shadow: var(--fx-shadow-sm); background: rgba(255, 255, 255, .9); }
.fm-hero-act.is-main { background: var(--ac-deep); border-color: var(--ac-deep); box-shadow: none; }
.fm-hero-act.is-main .fm-hero-act-ic { background: var(--ac); color: #fff; }
.fm-hero-act-ic { background: var(--ac-soft); color: var(--ac); }
.fm-hero-act:hover { border-color: var(--ac-line); }

.fm-stage { border-radius: 20px; background: var(--ac-deep); box-shadow: none; }
.fm-stage::before { display: none; }
.fm-stage-ring { display: block; border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.fm-stage img { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .35)); translate: var(--px, 0) var(--py, 0); transition: translate .5s var(--fx-ease), transform .6s var(--fx-ease); }
.fm-anim .fm-stage .fm-stage-b { animation: fxBob 6s ease-in-out infinite; }
.fm-anim .fm-stage .fm-stage-c { animation: fxBob 7s ease-in-out -2s infinite; }
@keyframes fxBob { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 10px; } }

/* ---------- Cards ---------- */
.fm-service, .fm-model, .fm-prod, .fm-brand, .fm-brand-tile, .fm-repcat, .fm-repair-list a, .fm-steps li, .fm-card, .fm-faq details, .fm-trust-grid div {
	border-color: #e7e9ee; box-shadow: var(--fx-shadow-sm);
}
@media (hover: hover) {
	.fm-service:hover, .fm-model:hover, .fm-prod:hover, .fm-brand:hover, .fm-brand-tile:hover, .fm-repcat:hover, .fm-repair-list a:hover {
		transform: translateY(-4px); box-shadow: var(--fx-shadow-md); border-color: var(--ac-line);
	}
	.fm-prod:hover img { transform: scale(1.04); }
}
.fm-prod img { transition: transform .5s var(--fx-ease); }
.fm-service { border-radius: 18px; padding: 30px; }
.fm-service-ic, .fm-service-repair .fm-service-ic, .fm-service-sell .fm-service-ic { background: var(--ac-soft); color: var(--ac); border-radius: 14px; width: 50px; height: 50px; transition: transform .3s var(--fx-ease), background .3s; }
.fm-service:hover .fm-service-ic { transform: rotate(-6deg) scale(1.06); background: var(--ac); color: #fff; }
.fm-service .fm-link .fm-ic { transition: transform .25s var(--fx-ease); }
.fm-trust-grid div { border-radius: 14px; }
.fm-trust-grid .fm-ic { color: var(--ac); }
.fm-model-img { background: #f4f5f7; }
.fm-upto b { color: var(--fm-ok); }
.fm-repair-ic { background: var(--ac-soft); color: var(--ac); }
.fm-repair-list a > .fm-ic:last-child { transition: transform .25s var(--fx-ease), color .2s; }
.fm-repair-list a:hover > .fm-ic:last-child { transform: translateX(4px); color: var(--ac); }
.fm-faq details[open] { border-color: var(--ac-line); box-shadow: var(--fx-shadow-md); }
.fm-faq summary::after { color: var(--ac); }
.fm-seg button.is-on { color: var(--ac-deep); }
.fm-progress i, .fm-st-n { background: var(--ac); }

/* Section backgrounds */
.fm-section-tint { background: #f4f5f7; }
.fm-repair-band { background: #fff; border-top: 1px solid #eceef1; }

/* ---------- Stats band ---------- */
.fx-stats { position: relative; color: #fff; background: var(--ac-deep); padding: 56px 0; }
.fx-stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fx-stat { padding: 4px 8px; border-left: 1px solid rgba(255, 255, 255, .16); padding-left: 22px; }
.fx-stat:first-child { border-left: 0; padding-left: 0; }
.fx-stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.fx-stat span:not(.fx-count) { display: block; color: rgba(255, 255, 255, .78); font-size: .95rem; line-height: 1.45; max-width: 24ch; }

/* ---------- Why FixMitra bento ---------- */
.fx-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.fx-tile { position: relative; background: #fff; border: 1px solid #e7e9ee; border-radius: 20px; padding: 26px; box-shadow: var(--fx-shadow-sm); transition: transform .3s var(--fx-ease), box-shadow .3s; overflow: hidden; }
.fx-tile h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.fx-tile p { margin: 0; color: var(--fm-muted); line-height: 1.55; }
.fx-tile-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--ac-soft); color: var(--ac); }
.fx-tile-hero { grid-row: span 2; color: #fff; border: 0; background: var(--ac-deep); display: flex; flex-direction: column; padding: 34px; }
.fx-tile-hero h3 { color: #fff; font-size: 1.55rem; letter-spacing: -.02em; margin-top: 22px; }
.fx-tile-hero p { color: rgba(255, 255, 255, .8); font-size: 1.02rem; max-width: 46ch; }
.fx-tile-hero .fx-tile-ic { background: rgba(255, 255, 255, .14); color: #fff; width: 54px; height: 54px; }
.fx-btn-light { margin-top: auto; align-self: flex-start; background: #fff; color: var(--ac-deep); margin-top: 26px; }
.fx-btn-light:hover { color: var(--ac); transform: translateY(-1px); }
@media (hover: hover) { .fx-tile:not(.fx-tile-hero):hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-md); } }

/* ---------- Brand marquee ---------- */
.fx-marquee { overflow: hidden; padding: 6px 0 10px; }
.fm-brandstrip.fx-marquee-track { display: flex; gap: 14px; width: max-content; animation: fxMarquee 40s linear infinite; }
.fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
.fx-marquee-track .fm-brand-tile { width: 170px; flex: none; }
@keyframes fxMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Steps as a timeline ---------- */
.fm-steps { position: relative; }
.fm-step-n { background: var(--ac); width: 34px; height: 34px; font-size: .95rem; box-shadow: 0 0 0 6px var(--ac-soft); }
@media (min-width: 701px) {
	.fm-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 43px; border-top: 2px dashed var(--ac-line); z-index: 0; }
	.fm-steps li { z-index: 1; }
}

/* ---------- Closing band + footer ---------- */
.fm-cta-band { background: var(--ac-deep); }
.fm-cta-band .fm-btn-primary { background: #fff; color: var(--ac-deep); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.fm-cta-band .fm-btn-primary:hover { background: #fff; color: var(--ac); }
.fm-footer { background: #0c0f14; }
.fm-footer a:hover { color: var(--ac2); }
.fm-pagehead { background: #f4f5f7; }

/* ---------- Motion ---------- */
.fm-anim .fm-rv { opacity: 0; transition: opacity .7s ease, transform .7s var(--fx-ease); transition-delay: var(--rv-d, 0ms); }
.fm-anim .fm-rv-up { transform: translateY(22px); }
.fm-anim .fm-rv-side { transform: translateX(-18px); }
.fm-anim .fm-rv-zoom { transform: translateY(14px) scale(.97); }
.fm-anim .fm-rv.is-in { opacity: 1; transform: none; }
.fm-anim .fm-hero-copy > * { animation: fxUp .8s var(--fx-ease) both; }
.fm-anim .fm-hero-copy > *:nth-child(2) { animation-delay: .08s; }
.fm-anim .fm-hero-copy > *:nth-child(3) { animation-delay: .16s; }
.fm-anim .fm-hero-copy > *:nth-child(n+4) { animation-delay: .24s; }
.fm-anim .fm-hero-actions > * { animation: fxUp .7s var(--fx-ease) both; }
.fm-anim .fm-hero-actions > *:nth-child(1) { animation-delay: .3s; }
.fm-anim .fm-hero-actions > *:nth-child(2) { animation-delay: .38s; }
.fm-anim .fm-hero-actions > *:nth-child(3) { animation-delay: .46s; }
.fm-anim .fm-hero-art, .fm-anim .fm-pagehead .fm-stage { animation: fxIn 1s var(--fx-ease) .15s both; }
@keyframes fxUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fxIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.fm-anim .fm-rv, .fm-anim .fm-hero-copy > *, .fm-anim .fm-hero-actions > *, .fm-anim .fm-hero-art, .fm-anim .fm-pagehead .fm-stage, .fm-anim .fm-stage img { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
	.fm-brandstrip.fx-marquee-track { animation: none; flex-wrap: wrap; width: auto; }
	.fx-marquee-track > [aria-hidden="true"] { display: none; }
	
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
	.fx-stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
	.fx-stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.fx-bento { grid-template-columns: 1fr 1fr; }
	.fx-tile-hero { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
	.fm-hero.fm-hero-bg { padding: 36px 0 80px; }
	.fx-stats { position: relative; color: #fff; background: var(--ac-deep); padding: 56px 0; }
	.fx-stat { padding-left: 14px; }
	.fx-stat strong { font-size: 1.9rem; }
	.fx-stat span:not(.fx-count) { font-size: .86rem; }
	.fx-bento { grid-template-columns: 1fr; gap: 12px; }
	.fx-tile { padding: 22px; border-radius: 16px; }
	.fx-tile-hero { padding: 26px; }
	.fx-tile-hero h3 { font-size: 1.3rem; }
	.fx-marquee-track .fm-brand-tile { width: 130px; height: 72px; }
	.fm-service { padding: 22px; }
	.fm-hero .fm-eyebrow, .fm-pagehead .fm-eyebrow { font-size: .74rem; padding: 4px 10px; }
}

/* ---------- No gradients anywhere: flat, solid surfaces (overrides the plugin's styles) ---------- */
.fm-pagehead-dark { background: var(--ac-deep); }
.fm-hero-placeholder { background: var(--ac-deep); }
.fm-apphead { background: #f4f5f7; }
.fm-quote { background: #fff; }
.fm-prod-img, .fm-gallery-main { background: #f4f5f7; }
.fm-offer-navy { background: var(--ac-deep); }
.fm-offer-orange { background: var(--ac); }
.fm-offer-charcoal { background: #16191f; }
.fm-offer-green { background: #0f7a46; }
.fm-offer.has-img .fm-offer-copy { background: rgba(10, 14, 20, .72); }
.fm-hero-glow { display: none; }

/* ---------- Home: model search in the hero (goes to the Sell page) ---------- */
.fx-search { display: flex; align-items: center; gap: 8px; max-width: 540px; margin: 22px 0 6px; padding: 6px; background: #fff; border: 1px solid #dfe2e7; border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.fx-search:focus-within { border-color: var(--ac); box-shadow: 0 0 0 4px var(--ac-soft2); }
.fx-search .fm-ic { margin-left: 10px; color: var(--fm-muted); flex: none; }
.fx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 10px 4px; color: var(--fm-ink); }
.fx-search .fm-btn { min-height: 44px; padding: 8px 18px; }
.fx-search-hint { font-size: .85rem; color: var(--fm-muted); margin: 0 0 6px; }
.fx-search-hint a { color: var(--fm-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ac-line); text-underline-offset: 3px; margin: 0 2px; }
.fx-search-hint a:hover { color: var(--ac); }
@media (max-width: 640px) { .fx-search .fm-btn { padding: 8px 12px; } .fx-search input { font-size: 16px; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
