/* Kolos Garage Club — taller en Mijas Costa. Mobile-first, no framework. */
:root {
	--ink: #141414;
	--ink-2: #1f1f1f;
	--ink-3: #2b2b2b;
	--paper: #f6f4ef;
	--white: #fff;
	--line: #e3dfd6;
	--muted: #6b6760;
	--muted-dark: #a9a59c;
	--red: #d0021b;
	--red-hi: #e2001a;
	--red-lo: #a50016;
	--gold: #f5b400;
	--radius: 6px;
	--shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
	--display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
	--body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--header-h: 64px;
	--gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); }
h2 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.icon { flex: none; vertical-align: -.15em; }
:focus-visible { outline: 3px solid var(--red-hi); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .55em 1.2em; border: 2px solid transparent; border-radius: var(--radius);
	font: 700 1.05rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { border-color: rgb(255 255 255 / .55); color: #fff; background: rgb(0 0 0 / .2); }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .1); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 54px; padding: .7em 1.5em; font-size: 1.2rem; }
.btn-sm { min-height: 40px; padding: .4em .9em; font-size: .98rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font: 700 1.05rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }
.link-back { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--muted); }
.link-back:hover { color: var(--red); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(20 20 20 / .96); color: #fff; backdrop-filter: blur(8px); border-bottom: 1px solid rgb(255 255 255 / .08); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-star { color: var(--red-hi); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { font: 600 .72rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; font: 700 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: #ddd; border-radius: var(--radius); }
.main-nav a:hover, .main-nav a.is-active { color: #fff; background: rgb(255 255 255 / .08); }
.main-nav a.is-active { box-shadow: inset 0 -2px 0 var(--red-hi); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { font: 700 .95rem/1 var(--display); letter-spacing: .08em; color: #ccc; text-decoration: none; padding: 10px 8px; }
.lang:hover { color: #fff; }
.hide-sm { display: none; }
@media (min-width: 960px) {
	.main-nav { display: block; }
	.header-actions { margin-left: 8px; }
	.hide-sm { display: inline; }
	.show-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(10 10 10 / .92) 0%, rgb(10 10 10 / .72) 48%, rgb(10 10 10 / .25) 100%), linear-gradient(0deg, rgb(10 10 10 / .85), transparent 40%); }
.hero-inner { padding-top: clamp(56px, 12vw, 140px); padding-bottom: 40px; }
.hero h1 { max-width: 14ch; margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--red-hi); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .95rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #ddd; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 32px; height: 3px; background: var(--red-hi); }
.hero-lead { max-width: 36em; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e6e3dc; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-rating { display: inline-flex; align-items: center; gap: 8px; color: #eee; text-decoration: none; font-size: .98rem; }
.hero-rating:hover b { text-decoration: underline; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
/* 4,3★: last star is a star-shaped mask over a 30% gold / 70% grey gradient */
.star-partial { display: inline-block; width: 16px; background: linear-gradient(90deg, var(--gold) 0 30%, #666 30% 100%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center/16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center/16px 16px no-repeat; height: 16px; }
.star-partial .icon { visibility: hidden; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgb(255 255 255 / .14); font-size: .95rem; color: #ddd; }
.trust li { display: flex; align-items: flex-start; gap: 8px; }
.trust .icon { color: var(--red-hi); margin-top: .25em; }
@media (min-width: 900px) {
	.hero { min-height: min(88vh, 780px); display: flex; flex-direction: column; justify-content: flex-end; }
	.trust { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-paper { background: var(--paper); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head-row > div { max-width: 700px; }
.section-head-row h2, .section-head h2:last-child { margin-bottom: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .95rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ''; width: 24px; height: 3px; background: currentColor; }
.section-dark .kicker, .page-head .kicker { color: #ff5a68; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.section-dark .section-lead { color: var(--muted-dark); }

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; }
.service { position: relative; padding: 28px 24px; background: var(--paper); border-radius: var(--radius); border-top: 4px solid var(--ink); }
.service p { color: #3d3a35; }
.service ul { display: grid; gap: 6px; font-size: .97rem; }
.service li { display: flex; gap: 8px; }
.service li .icon { color: var(--red); margin-top: .3em; }
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; }
.service-feature { background: var(--ink); color: #fff; border-top-color: var(--red-hi); }
.service-feature p { color: #d6d2ca; }
.service-feature .service-icon { background: var(--red); }
.service-feature li .icon { color: var(--red-hi); }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Work gallery ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-grid li { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--ink-3); }
.work-grid li.work-big { grid-column: span 2; aspect-ratio: 2 / 1.2; }
.work-grid a { display: block; height: 100%; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s; }
.work-grid a:hover img { transform: scale(1.05); filter: brightness(1.08); }
.work-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; opacity: 0; transition: opacity .2s; }
.work-grid a:hover .work-zoom, .work-grid a:focus-visible .work-zoom { opacity: 1; }
@media (min-width: 900px) {
	.work-grid { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 10px; }
	.work-grid li:nth-last-child(-n+2) { grid-column: span 2; aspect-ratio: 2 / 1; }
	.work-grid li.work-big { grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- Taller ---------- */
.shop { display: grid; gap: 40px; align-items: center; }
.shop-text p { color: #3d3a35; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.stats div { border-left: 3px solid var(--red); padding-left: 12px; }
.stats dt { font: 800 clamp(2rem, 5vw, 2.8rem)/1 var(--display); }
.stats dd { margin: 4px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.3; }
.shop-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-photos li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.shop-photos li:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.shop-photos a, .shop-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-photos img { transition: transform .4s; }
.shop-photos a:hover img { transform: scale(1.04); }
@media (min-width: 900px) { .shop { grid-template-columns: 5fr 6fr; gap: 64px; } }

/* ---------- Vehicles ---------- */
.vrail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
.vrail > * { scroll-snap-align: start; }
.vgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 14px 32px rgb(0 0 0 / .14); }
.vcard-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.vcard-img { position: relative; aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.vcard-price { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: var(--red); color: #fff; font: 800 1.2rem/1 var(--display); border-radius: 4px; }
.vcard-body { padding: 16px 18px 18px; }
.vcard-body h3 { font-size: 1.35rem; margin-bottom: .25em; }
.vcard-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; }
.contact-list { display: grid; gap: 20px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list > li > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--paper); color: var(--red); }
.contact-list span { display: block; font: 700 .85rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a:not(.link-arrow) { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-list a:not(.link-arrow):hover { color: var(--red); }
.contact-list p { margin: 0; }
.contact-list .link-arrow { margin-top: 4px; font-size: .95rem; }
.map { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-form { align-self: start; border-top: 4px solid var(--red); }
.contact-form h3 { font-size: 1.8rem; }
@media (min-width: 900px) {
	.contact { grid-template-columns: 1fr 1fr; gap: 56px; }
	.contact-form { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; }
}

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.form input, .form textarea { width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem; color: inherit; background: #fff; border: 1.5px solid #cfc9bd; border-radius: var(--radius); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(208 2 27 / .18); }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { justify-self: start; }
.form-note { margin: 0; padding: 10px 12px; background: #eef7ee; border-left: 3px solid #2e7d32; font-size: .95rem; }

/* ---------- Page heads ---------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.page-head .section-lead { color: var(--muted-dark); }
.page-head-tight { padding: 18px 0; background: var(--paper); color: var(--ink); }
.not-found { min-height: 50vh; }

/* ---------- Ficha ---------- */
.ficha-section { padding-top: 24px; }
.ficha { display: grid; gap: 32px; }
.ficha > * { min-width: 0; }
.ficha-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--ink); scrollbar-width: none; }
.ficha-main::-webkit-scrollbar { display: none; }
.ficha-main a { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.ficha-main img { width: 100%; height: 100%; object-fit: contain; }
.ficha-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
.ficha-thumbs a { display: block; width: 76px; height: 56px; border-radius: 4px; overflow: hidden; opacity: .6; border: 2px solid transparent; transition: opacity .15s; }
.ficha-thumbs a:hover, .ficha-thumbs a.is-active { opacity: 1; border-color: var(--red); }
.ficha-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ficha-info h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.ficha-price { font: 800 2.4rem/1 var(--display); color: var(--red); margin-bottom: 20px; }
.ficha-price small { font-size: 1.1rem; color: var(--muted); }
.ficha-desc { white-space: pre-line; color: #3d3a35; }
.ficha-cta { margin: 24px 0 32px; border-top: 4px solid var(--red); }
.ficha-cta h2 { font-size: 1.7rem; }
.ficha-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.small { font-size: .88rem; color: var(--muted); margin: 0; }
.h-small { font-size: 1.4rem; margin: 28px 0 12px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.specs div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.equipment { display: grid; gap: 6px; }
.equipment li { display: flex; gap: 8px; }
.equipment .icon { color: var(--red); margin-top: .3em; }
@media (min-width: 1000px) {
	.ficha { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
	.ficha-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
	.specs { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcbc3; padding: 56px 0 40px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
.brand-footer { color: #fff; margin-bottom: 14px; }
.footer-tagline { color: var(--muted-dark); max-width: 30em; }
.partner { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #cfcbc3; font-size: .9rem; }
.partner img { background: #fff; border-radius: 4px; padding: 2px; }
.footer-h { font-size: 1.05rem; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.footer-list { display: grid; gap: 8px; }
.footer-list a { display: inline-flex; gap: 8px; align-items: flex-start; text-decoration: none; }
.footer-list a:hover { color: #fff; }
.footer-list .icon { margin-top: .25em; color: var(--red-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); color: #8f8b83; font-size: .88rem; }
.footer-bottom a { color: #cfcbc3; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1.3fr 1fr .8fr; } .site-footer { padding-bottom: 40px; } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 8 8 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / .22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; translate: 0 -50%; }
.lb-next { right: 10px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font: 600 .95rem/1 var(--body); color: #bbb; }
