/* Palm Motors theme styles */
:root {
	--pm-navy: #002c5f;
	--pm-ink: #0c1116;
	--pm-muted: #5b656e;
	--pm-faint: #8a929a;
	--pm-line: #e2e5e8;
	--pm-line-strong: #cdd2d7;
	--pm-alt: #f5f6f7;
	--pm-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--pm-display: "Archivo", sans-serif;
	--pm-gutter: clamp(20px, 5vw, 56px);
	--pm-ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--pm-font); color: var(--pm-ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--pm-navy); }
a:hover { color: var(--pm-ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--pm-ink); }
.pm-wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pm-gutter); }
#models, #services, #contact { scroll-margin-top: 68px; }

/* Brand lockup */
.pm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.pm-brand img { height: 26px; width: auto; display: block; flex: 0 0 auto; }
.pm-brand__div { display: block; width: 1px; height: 22px; background: var(--pm-line-strong); flex: 0 0 auto; }
.pm-brand__name { font-weight: 600; font-size: .95rem; letter-spacing: .01em; color: var(--pm-muted); white-space: nowrap; }

/* Buttons */
.pm-btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--pm-font); font-weight: 600; font-size: .86rem; letter-spacing: .01em; line-height: 1.2; padding: .72em 1.5em; border: 1.5px solid var(--pm-navy); border-radius: 6px; background: var(--pm-navy); color: #fff; text-decoration: none; cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.pm-btn:hover { background: var(--pm-ink); border-color: var(--pm-ink); color: #fff; }
.pm-btn[disabled] { opacity: .6; cursor: progress; }
.pm-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .65); padding: .9em 1.9em; }
.pm-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--pm-ink); }
.pm-btn--outline { background: none; border-color: var(--pm-line-strong); color: var(--pm-ink); padding: .82em 1.6em; }
.pm-btn--submit { margin-top: 4px; font-size: .9rem; padding: .95em 1.7em; }

/* Headlight loader */
html.pm-is-loading { overflow: hidden; }
.pm-loader { position: fixed; inset: 0; z-index: 1000; background: #05080c; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: pm-loader-failsafe .01s linear 6s forwards; }
.no-js .pm-loader { display: none; }
.pm-loader__flash { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 46%, rgba(214, 236, 255, .5), rgba(214, 236, 255, 0) 70%); opacity: 0; pointer-events: none; }
.pm-loader__bars { position: relative; display: flex; justify-content: center; gap: 18px; }
.pm-loader__bar { display: block; width: min(240px, 34vw); height: 4px; border-radius: 4px; background: #eaf6ff; box-shadow: 0 0 12px 2px rgba(160, 210, 255, .8), 0 0 36px 6px rgba(120, 180, 255, .35); transform: scaleX(0); }
.pm-loader__bar--l { transform-origin: right center; }
.pm-loader__bar--r { transform-origin: left center; }
.pm-loader__dots { display: flex; gap: 10px; margin-top: 16px; }
.pm-loader__dot { width: 22px; height: 3px; border-radius: 3px; background: #cfe6ff; box-shadow: 0 0 8px rgba(160, 210, 255, .8); opacity: 0; }
.pm-loader__brand { display: flex; align-items: center; gap: 12px; margin-top: 40px; opacity: 0; }
.pm-loader__brand img { height: 22px; width: auto; display: block; filter: brightness(0) invert(1); }
.pm-loader__brand .pm-brand__div { height: 20px; background: rgba(255, 255, 255, .35); }
.pm-loader__brand .pm-brand__name { font-size: 15px; color: #fff; letter-spacing: .02em; }
@keyframes pm-loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* Header */
.pm-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--pm-line); }
.admin-bar .pm-header { top: 32px; }
.pm-header__in { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.pm-header__cta { flex: 0 0 auto; white-space: nowrap; }
.pm-cta-short { display: none; }

/* Hero */
.pm-hero { position: relative; min-height: clamp(440px, 42vw, 720px); display: flex; align-items: center; background: var(--pm-ink); overflow: hidden; }
.pm-hero__img { position: absolute; inset: 0; background-color: #0e1722; background-image: var(--hero-img); background-size: cover; background-position: center; }
.pm-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 16, .66) 0%, rgba(6, 10, 16, .34) 38%, rgba(6, 10, 16, 0) 70%), linear-gradient(0deg, rgba(6, 10, 16, .34), rgba(6, 10, 16, 0) 42%); }
.pm-hero__in { position: relative; z-index: 2; width: 100%; }
.pm-hero__title { font-family: var(--pm-display); font-weight: 800; color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.02em; max-width: 14ch; margin: 0; }
.pm-hero__lede { color: rgba(255, 255, 255, .82); max-width: 46ch; margin: 22px 0 0; font-size: 1.04rem; }
.pm-hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* Section heading */
.pm-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 3.5vw, 44px); }
.pm-h2 { font-family: var(--pm-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; margin: 0; color: var(--pm-ink); }
.pm-head p { color: var(--pm-ink); margin: 16px 0 0; font-size: 1.05rem; }

/* Models */
.pm-models { background: var(--pm-alt); padding-block: clamp(44px, 5.5vw, 76px); }
.pm-models__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); }
.pm-card { background: #fff; border: 1px solid var(--pm-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.pm-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -32px rgba(12, 17, 22, .4); border-color: var(--pm-line-strong); }
.pm-card__img { aspect-ratio: 16 / 10; background: #fff; padding: 10px 22px; display: flex; align-items: center; justify-content: center; }
.pm-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pm-card__body { padding: 6px 26px 28px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--pm-line); }
.pm-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.pm-card__type { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pm-navy); font-weight: 700; margin: 0; }
.pm-card__name { font-family: var(--pm-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; text-transform: uppercase; margin: 0; }
.pm-card__desc { color: var(--pm-muted); font-size: .95rem; margin: 8px 0 0; min-height: 2.8em; }
.pm-card__price { margin-top: auto; padding-top: 20px; }
.pm-card__price p { font-size: .82rem; color: var(--pm-faint); margin: 0; }
.pm-card__price b { display: block; font-family: var(--pm-display); font-weight: 700; color: var(--pm-ink); font-size: 1.32rem; letter-spacing: -.01em; margin-top: 2px; }
.pm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border: 1px solid #d6dbe0; border-radius: 999px; font-size: .7rem; font-weight: 600; color: var(--pm-ink); line-height: 1; }
.pm-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-chip--petrol svg { color: #002c5f; }
.pm-chip--diesel svg { color: #b26a00; }
.pm-chip--hybrid svg { color: #1f7a4d; }
.pm-chip--ev svg { color: #0a7ea8; }
.pm-dots { display: none; justify-content: center; gap: 8px; margin-top: 18px; }
.pm-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--pm-line-strong); cursor: pointer; transition: width .25s ease, background .25s ease; }
.pm-dots button.is-active { width: 22px; background: var(--pm-navy); }

/* Services */
.pm-services { position: relative; overflow: hidden; background: #bcd3e6; min-height: clamp(560px, 56vw, 760px); display: flex; flex-direction: column; }
.pm-services__img { position: absolute; inset: 0; background: #bcd3e6 var(--svc-img) center / cover no-repeat; }
.pm-services__head { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 4.5vw, 64px) var(--pm-gutter) 0; text-align: center; }
.pm-services__head p { margin: 12px 0 0; font-size: 1.05rem; color: var(--pm-ink); }
.pm-services__spacer { flex: 1; min-height: clamp(260px, 26vw, 360px); }
.pm-services__wrap { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 2.6vw, 32px) clamp(16px, 2.6vw, 32px); }
.pm-rail { border-radius: 14px; background: rgba(7, 22, 40, .58); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pm-rail { background: rgba(7, 22, 40, .86); } }
.pm-rail__item { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.pm-rail__item + .pm-rail__item { border-left: 1px solid rgba(255, 255, 255, .16); }
.pm-rail__item h3 { font-family: var(--pm-display); font-size: 1.06rem; letter-spacing: .01em; font-weight: 700; margin: 0; color: #fff; }
.pm-rail__item p { color: rgba(255, 255, 255, .86); font-size: .88rem; line-height: 1.55; margin: 0; text-wrap: pretty; }

/* Enquiry form */
.pm-contact { padding-block: clamp(44px, 5.5vw, 76px); }
.pm-form-card { max-width: 640px; margin: 0 auto; border: 1px solid var(--pm-line); background: #fff; padding: clamp(26px, 3vw, 40px); }
.pm-form { display: flex; flex-direction: column; gap: 18px; }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pm-field { display: flex; flex-direction: column; gap: 7px; }
.pm-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pm-faint); font-weight: 700; }
.pm-label small { font-size: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; }
.pm-input { width: 100%; font-family: var(--pm-font); font-size: .95rem; padding: .75em .9em; border: 1px solid var(--pm-line-strong); border-radius: 0; background: #fff; color: var(--pm-ink); outline: none; }
.pm-input:focus { border-color: var(--pm-navy); }
textarea.pm-input { resize: vertical; }
.pm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--pm-muted); }
.pm-consent input { margin: 3px 0 0; accent-color: var(--pm-navy); flex: 0 0 auto; }
.pm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-form__error { margin: 0; color: #b3261e; font-size: .85rem; }
.pm-thanks { min-height: 420px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.pm-thanks__icon { width: 56px; height: 56px; border-radius: 999px; background: var(--pm-navy); color: #fff; display: grid; place-items: center; }
.pm-thanks__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-thanks__title { font-family: var(--pm-display); font-weight: 700; font-size: 1.5rem; margin: 6px 0 0; }
.pm-thanks p { color: var(--pm-muted); font-size: 1rem; margin: 0; max-width: 38ch; }
.pm-thanks .pm-btn { margin-top: 12px; }
.pm-thanks .pm-btn:hover { background: var(--pm-ink); border-color: var(--pm-ink); color: #fff; }

/* Footer */
.pm-footer { border-top: 1px solid var(--pm-line); padding-block: clamp(44px, 5vw, 64px) 30px; background: #fff; }
.pm-footer .pm-brand { margin-bottom: 34px; }
.pm-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.pm-branch { display: flex; flex-direction: column; gap: 20px; }
.pm-footer__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pm-faint); font-weight: 700; margin: 0 0 8px; }
.pm-footer p { color: var(--pm-muted); font-size: .92rem; line-height: 1.7; margin: 0; }
.pm-footer p b { color: var(--pm-ink); font-weight: 600; }
.pm-footer p a { color: var(--pm-muted); text-decoration: none; }
.pm-footer p a:hover { color: var(--pm-navy); }
.pm-badge { display: inline-flex; align-items: center; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: #eef2f6; color: var(--pm-navy); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.pm-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--pm-line); color: var(--pm-faint); font-size: .8rem; }
.pm-footer__base a { color: var(--pm-faint); }

/* Generic page fallback */
.pm-page { padding-block: clamp(44px, 5.5vw, 76px); max-width: 820px; }
.pm-page__content { margin-top: 24px; }

/* Scroll reveal (JS adds .is-in) */
.js [data-reveal] { transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
.js .pm-card[data-reveal] { transition: opacity .7s ease, transform .5s ease, box-shadow .3s ease, border-color .3s ease; }

/* <= 960px: services rail moves below the photo */
@media (max-width: 960px) {
	.pm-services { min-height: 0; background: #071628; }
	.pm-services__img { position: relative; inset: auto; height: clamp(300px, 58vw, 540px); }
	.pm-services__head { position: absolute; top: 0; left: 0; right: 0; }
	.pm-services__spacer { display: none; }
	.pm-services__wrap { padding: 0; max-width: none; }
	.pm-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 0; border: 0; background: #071628; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 8px clamp(8px, 3vw, 32px) 16px; }
	.pm-rail__item:nth-child(3) { border-left: 0; }
	.pm-rail__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 782px) {
	.admin-bar .pm-header { top: 46px; }
}

@media (max-width: 760px) {
	.pm-footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* <= 620px: mobile */
@media (max-width: 620px) {
	/* Hero: text sits in the dark sky, full car shown below */
	.pm-hero { min-height: calc(62vw + 250px); align-items: flex-start; }
	.pm-hero__img { background-size: auto calc((250px + 4vw) * 3.5); background-position: 50% 0; }
	.pm-hero__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 88vw; background: var(--hero-img) 32% 100% / auto 100% no-repeat; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
	.pm-hero__shade { background: linear-gradient(180deg, rgba(6, 10, 16, .72) 0%, rgba(6, 10, 16, .55) 52%, rgba(6, 10, 16, 0) 66%); }
	.pm-hero__in { padding-top: 32px; }
	.pm-hero__title { font-size: 2.2rem; }
	.pm-hero__lede { font-size: .92rem; margin-top: 14px; }
	.pm-hero__actions { margin-top: 20px; }

	/* Models: swipe carousel with dots */
	.pm-models__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--pm-gutter)); padding: 4px var(--pm-gutter) 18px; scroll-padding-inline: var(--pm-gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.pm-models__grid::-webkit-scrollbar { display: none; }
	.pm-card { flex: 0 0 84%; scroll-snap-align: start; }
	.pm-dots { display: flex; }

	/* Services */
	.pm-services__img { height: max(360px, 96vw); }
	.pm-services__head { padding: 28px 20px 0; }
	.pm-services__head .pm-h2 { font-size: 1.8rem; }
	.pm-services__head p { font-size: .95rem; margin-top: 8px; }
	.pm-rail { grid-template-columns: 1fr; padding: 0 0 8px; }
	.pm-rail__item, .pm-rail__item + .pm-rail__item { border-left: 0; }
	.pm-rail__item:nth-child(n+2) { border-top: 1px solid rgba(255, 255, 255, .16); }

	/* Form */
	.pm-row { grid-template-columns: 1fr; }
}

/* <= 480px: compact header */
@media (max-width: 480px) {
	.pm-header__in { padding-inline: 12px; }
	.pm-header .pm-brand { gap: 7px; }
	.pm-header .pm-brand img { height: 16px; }
	.pm-header .pm-brand__div { height: 16px; }
	.pm-header .pm-brand__name { font-size: .76rem; }
	.pm-header__cta { padding: .62em 1em; font-size: .8rem; }
	.pm-cta-full { display: none; }
	.pm-cta-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pm-loader { display: none; }
	.js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
	.pm-card, .pm-card:hover { transition: none; transform: none; }
}

.wpcf7-not-valid-tip {
	font-size: .7rem !important;
}

.wpcf7-submit {
	width: 100% !important;
}