/* ==========================================================================
   Planet Automobiles — public theme (dealer layout, accent colour from admin)
   --accent / --accent-dark are printed in <head> from Settings → Theme colour.
   ========================================================================== */

:root {
	--accent: #C7081B;
	--accent-dark: #A30716;
	--dark: #2F2F2F;
	--dark-2: #3D3D3D;
	--ink: #2D2D2D;
	--text: #555;
	--grey: #F2F2F2;
	--line: #E2E2E2;
	--muted: #8A8A8A;
	--gold: #FBBF24;
	--olive: #556B2F;
	--whatsapp: #25D366;
	--radius: 4px;
}

html { scroll-behavior: smooth; }
body {
	font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--text);
	background: #fff;
}
h1, h2, h3, h4 { color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.script { font-family: 'Yellowtail', cursive; color: var(--accent); font-size: 1.3em; line-height: 1; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius); font-weight: 600; }
.btn-accent, .btn-orange {
	--bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark);
	--bs-btn-active-color: #fff; --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark);
	--bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent);
}
.btn-whatsapp {
	--bs-btn-color: #fff; --bs-btn-bg: var(--whatsapp); --bs-btn-border-color: var(--whatsapp);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1EB257; --bs-btn-hover-border-color: #1EB257;
}

/* ---------- Top bar ---------- */
.top-bar {
	background: #232323;
	color: #BDBDBD;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.top-bar__left, .top-bar__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top-bar a, .top-bar span { color: #BDBDBD; display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: #fff; }
.top-bar svg { width: 13px; height: 13px; fill: currentColor; }
.top-bar__social svg { width: 15px; height: 15px; }

/* ---------- Main header ---------- */
.main-header {
	background: rgba(35, 35, 35, .96);
	position: sticky;
	top: 0;
	z-index: 1030;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.main-header__inner { display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; min-height: 96px; }
.logo { display: flex; flex-direction: column; justify-content: center; color: #fff; line-height: 1; padding: 6px 0; }
.logo:hover { color: #fff; }
.logo__script { font-family: 'Yellowtail', cursive; font-size: 44px; line-height: .9; }
.logo__sub { font-size: 11px; letter-spacing: .55em; padding-left: 14px; margin-top: 4px; font-weight: 600; }
.logo__img { height: 84px; width: auto; max-width: 260px; object-fit: contain; }

.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.main-nav__item { position: relative; display: flex; }
.main-nav__item > a {
	display: flex; align-items: center;
	color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase;
	padding: 0 16px; transition: background .15s ease;
}
.main-nav__item > a:hover, .main-nav__item:hover > a { background: rgba(255, 255, 255, .08); color: #fff; }
.main-nav__item.active > a { background: var(--accent); color: #fff; }
.main-nav__item > .dropdown-toggle::after { margin-left: 6px; border-top-color: rgba(255,255,255,.7); }
.main-nav .dropdown-menu {
	border-radius: 0; border: 0; border-top: 3px solid var(--accent);
	margin: 0; padding: 6px 0; min-width: 240px; background: #2B2B2B;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.main-nav .dropdown-item { color: #DDD; font-size: 13px; font-weight: 600; padding: 9px 18px; }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item.active { background: var(--accent); color: #fff; }

.nav-toggle {
	display: none; align-self: center; background: none; border: 1px solid rgba(255,255,255,.3);
	border-radius: var(--radius); padding: 9px 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

@media (min-width: 992px) {
	.main-nav.collapse { display: flex !important; }
	.main-nav .has-children:hover > .dropdown-menu { display: block; top: 100%; left: 0; }
}
@media (max-width: 991.98px) {
	.nav-toggle { display: block; }
	.main-header__inner { min-height: 70px; }
	.logo__img { height: 60px; }
	.main-nav { width: 100%; }
	.main-nav__list { flex-direction: column; padding-bottom: 12px; }
	.main-nav__item { flex-direction: column; }
	.main-nav__item > a { padding: 12px 6px; border-top: 1px solid rgba(255,255,255,.08); }
	.main-nav .dropdown-menu { position: static; box-shadow: none; border-top: 0; background: #262626; }
	.main-nav .dropdown-menu.show { display: block; }
}

/* ---------- Page title band ---------- */
.page-title {
	background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), #3a3a3a;
	color: #fff;
	padding: 34px 0 30px;
	border-bottom: 4px solid var(--accent);
}
.page-title__heading { color: #fff; font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; margin: 0 0 6px; text-transform: uppercase; }
.page-title__crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 13px; }
.page-title__crumbs li { color: #CCC; }
.page-title__crumbs li + li::before { content: '/'; margin-right: 6px; color: #777; }
.page-title__crumbs a { color: #fff; }
.page-title__crumbs a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; background: #111; }
.hero .carousel-item { height: clamp(380px, 62vh, 640px); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.05) 100%); }
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; }
.hero__title {
	color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
	font-size: clamp(30px, 5.2vw, 62px); line-height: 1.05; max-width: 720px; margin-bottom: 14px;
	text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.hero__text { font-size: clamp(15px, 1.6vw, 19px); max-width: 560px; margin-bottom: 24px; color: #EEE; }
.hero--plain { background: linear-gradient(120deg, #1d1d1d, #3b3b3b); padding: 90px 0; }
.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; background-color: #fff; }
.hero .carousel-indicators .active { background-color: var(--accent); }

/* ---------- Promo bar ---------- */
.promo-bar { background: var(--grey); border-bottom: 1px solid var(--line); box-shadow: inset 0 -6px 10px -8px rgba(0,0,0,.15); }
.promo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 12px; flex-wrap: wrap; }
.promo-bar__text { margin: 0; font-size: clamp(18px, 2.3vw, 27px); color: var(--ink); letter-spacing: -.02em; font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.section-title {
	font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; text-transform: uppercase;
	color: var(--accent); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap;
}
.section-title span { color: var(--ink); font-weight: 400; }
.section-title--sm { font-size: 20px; }

/* Feature boxes (fleet categories) */
.feature-box { display: block; color: var(--text); }
.feature-box__img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--grey); }
.feature-box__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feature-box:hover img { transform: scale(1.05); }
.feature-box__title { color: var(--accent); font-size: 20px; font-weight: 800; text-transform: uppercase; margin: 18px 0 8px; }
.feature-box:hover .feature-box__title { color: var(--accent-dark); }
.feature-box p { color: var(--text); margin: 0; }

/* Icon features */
.icon-features { background: linear-gradient(#EFEFEF, #E6E6E6); padding: 64px 0; }
.icon-features__icon { width: 64px; height: 64px; fill: #333; margin-bottom: 14px; }
.icon-features__title { font-size: 24px; font-weight: 600; color: #333; margin-bottom: 8px; }

/* Welcome + search */
.welcome-text { line-height: 1.8; }
.search-box { background: #E9E9E9; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-box .form-select { border-radius: var(--radius); font-size: 14px; border-color: #CFCFCF; }
.search-box__actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
aside .search-box { grid-template-columns: 1fr; }
@media (max-width: 575.98px) { .search-box { grid-template-columns: 1fr; } }

/* Recent vehicles */
.recent { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.recent__intro p { margin-bottom: 14px; }
.recent__arrows button {
	width: 32px; height: 32px; border: 0; background: #CFCFCF; color: #fff; font-size: 22px; line-height: 1;
	margin-right: 4px; border-radius: 2px;
}
.recent__arrows button:hover { background: var(--accent); }
.recent__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.recent__item {
	flex: 0 0 200px; scroll-snap-align: start; background: #EEE; text-align: center; color: var(--ink);
	padding-bottom: 12px; display: flex; flex-direction: column;
}
.recent__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.recent__item strong { font-size: 14px; padding: 0 8px; }
.recent__item span { font-size: 13px; color: var(--muted); }
.recent__item em { font-style: normal; font-weight: 700; color: var(--accent); font-size: 14px; }
.recent__item:hover { color: var(--ink); background: #E4E4E4; }
@media (max-width: 767.98px) { .recent { grid-template-columns: 1fr; } }

/* Fleet sections + vehicle cards */
.fleet-section + .fleet-section { margin-top: 48px; }
.fleet-section__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 22px; }
.fleet-section__head a { font-weight: 700; font-size: 13px; text-transform: uppercase; }

.v-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.v-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .v-grid, .v-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .v-grid, .v-grid--3 { grid-template-columns: minmax(0, 1fr); } }

.v-card {
	min-width: 0;
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
	color: inherit; transition: box-shadow .2s ease, transform .2s ease;
}
.v-card:hover { color: inherit; box-shadow: 0 10px 26px rgba(0,0,0,.14); transform: translateY(-3px); }
.v-card--featured { border: 2px solid var(--accent); }
.v-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--grey); overflow: hidden; }
.v-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.v-card:hover .v-card__media img { transform: scale(1.04); }
.v-card__no {
	position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.7); color: #fff;
	font-weight: 800; font-size: 15px; padding: 2px 10px; border-radius: 2px;
}
.v-card__ribbon {
	position: absolute; top: 14px; left: -34px; transform: rotate(-45deg);
	background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase;
	padding: 3px 40px; letter-spacing: .06em; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.v-card__body { padding: 14px 16px; flex: 1 1 auto; }
.v-card__name { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.v-card__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .pill-units {
	display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 11px;
	border-radius: 999px; border: 1px solid transparent; line-height: 1.5;
}
.chip--light  { background: #fff; color: var(--ink); border-color: #CCC; }
.chip--dark   { background: #1F2937; color: #fff; }
.chip--olive  { background: var(--olive); color: #fff; }
.chip--accent { background: var(--accent); color: #fff; }
.pill-units { background: var(--grey); color: var(--ink); border-color: var(--line); }
.v-card__strip { display: flex; justify-content: space-between; gap: 10px; background: var(--dark); padding: 9px 16px; }
.v-card__segment { color: #AAA; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.v-card--featured .v-card__segment, .v-card__segment.is-featured { color: var(--gold); }
.v-card__model { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-align: right; }

/* Info columns */
.info-cols h3 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px; }
.info-cols svg { width: 70px; height: 70px; fill: #333; margin-bottom: 12px; }
.info-cols__hours { font-size: 14px; color: #666; }

/* Stats */
.stats {
	position: relative; padding: 70px 0; color: #fff; background: #333 center / cover no-repeat fixed;
}
.stats::before { content: ''; position: absolute; inset: 0; background: rgba(20, 20, 20, .72); }
.stats .container { position: relative; }
.stats__num { display: block; font-size: clamp(36px, 5vw, 54px); font-weight: 400; line-height: 1.1; }
.stats__label { display: block; font-weight: 600; margin-top: 6px; }
@media (hover: none) { .stats { background-attachment: scroll; } }

/* CTA */
.cta-bar { background: var(--accent); color: #fff; }
.cta-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 30px; flex-wrap: wrap; padding: 26px 12px; }
.cta-bar__title { color: #fff; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 26px); margin: 0; }
.cta-bar__sub { margin: 0; color: rgba(255,255,255,.9); }
.cta-bar__contact { display: flex; flex-direction: column; align-items: flex-end; }
.cta-bar__phone { color: #fff; font-size: 26px; font-weight: 800; }
.cta-bar__phone:hover { color: #fff; text-decoration: underline; }
.cta-bar__loc { color: rgba(255,255,255,.85); font-size: 14px; }
@media (max-width: 767.98px) { .cta-bar__contact { align-items: flex-start; } }

/* Listing */
.listing-head { display: flex; justify-content: space-between; align-items: center; background: var(--grey); padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }
.empty-box { background: var(--grey); padding: 30px; text-align: center; }

/* Detail */
.gallery__main { position: relative; aspect-ratio: 4 / 3; background: var(--grey); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__note { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 4px 10px; }
.gallery__credit { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.gallery__credit a { color: var(--muted); text-decoration: underline; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumb { padding: 0; border: 3px solid transparent; background: none; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.active { border-color: var(--accent); }
.detail-card { background: var(--grey); border-top: 4px solid var(--accent); padding: 22px; }
.detail-card--featured { background: #FFF9EE; }
.detail-card__name { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.detail-table { --bs-table-bg: transparent; font-size: 14px; }
.detail-table th { color: var(--muted); font-weight: 600; width: 40%; }
.detail-table td { font-weight: 700; color: var(--ink); }
.v-card__strip--detail { margin-top: 0; }
.detail-desc { line-height: 1.8; }

/* Enquiry + contact */
.enquiry-box { background: var(--grey); padding: 22px; }
.enquiry-form .form-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.enquiry-form .form-control, .enquiry-form .form-select { border-radius: var(--radius); }
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(0,0,0,.08); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.info-card { background: var(--dark); color: #DDD; padding: 24px; border-top: 4px solid var(--accent); }
.info-card p { margin-bottom: 14px; }
.info-card__title { color: #fff; font-size: 20px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; }
.info-card__label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.info-card__value { color: #fff; font-weight: 700; font-size: 17px; }
.info-card__value--sm { font-size: 14px; font-weight: 600; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

.error-code { font-size: 110px; font-weight: 800; color: var(--accent); line-height: 1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #DDD; padding-top: 54px; font-size: 14px; }
.site-footer__logo { height: 96px; width: auto; max-width: 100%; object-fit: contain; margin: -8px 0 12px; display: block; }
.site-footer__title { color: #fff; font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 16px; }
.site-footer a { color: #BBB; }
.site-footer a:hover { color: #fff; }
.site-footer__links { list-style: none; padding: 0; columns: 2; }
.site-footer__links li { margin-bottom: 6px; }
.site-footer__contact { list-style: none; padding: 0; }
.site-footer__contact li { display: grid; grid-template-columns: 90px 1fr; margin-bottom: 8px; }
.site-footer__contact strong { color: #fff; }
.site-footer__bottom { background: var(--dark); margin-top: 40px; padding: 22px 0; color: #BBB; font-size: 13px; }
.site-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 0; margin: 0; }

.whatsapp-float {
	position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
	background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px rgba(0,0,0,.25); z-index: 1030;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }

@media print {
	.top-bar, .main-header, .whatsapp-float, .enquiry-box, .search-box { display: none !important; }
}

/* ---------- Services ---------- */
.service-card { background: #fff; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s ease; }
.service-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.service-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 24px; border-top: 4px solid var(--accent); flex: 1 1 auto; }
.service-card__icon { width: 52px; height: 52px; fill: var(--accent); margin-bottom: 12px; }
.service-card__title { font-size: 20px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.service-card__summary { font-weight: 600; color: var(--ink); }
.service-card__text { margin: 0; font-size: 14px; }

/* ---------- Social icons ---------- */
.site-footer__social, .info-card__social { display: flex; gap: 8px; margin: 4px 0 16px; flex-wrap: wrap; }
.social-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	background: rgba(255,255,255,.08); border-radius: 4px; color: #ddd; transition: background .15s ease, color .15s ease;
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover { background: var(--accent); color: #fff; }

/* keyboard users: open dropdowns on focus too */
@media (min-width: 992px) {
	.main-nav .has-children:focus-within > .dropdown-menu { display: block; top: 100%; left: 0; }
}
