/* 1477 Auto Car Care: site styles (v1.1.0). Brand fonts and red/black palette, used with restraint. */
:root {
	--acc-red: var(--wp--preset--color--red, #E10600);
	--acc-red-700: var(--wp--preset--color--red-700, #B80500);
	--acc-red-50: var(--wp--preset--color--red-50, #FFF0EF);
	--acc-ink: var(--wp--preset--color--ink, #181818);
	--acc-ink-2: var(--wp--preset--color--ink-2, #2B2D31);
	--acc-muted: var(--wp--preset--color--muted, #5F6368);
	--acc-line: var(--wp--preset--color--line, #E3E5E8);
	--acc-bg: var(--wp--preset--color--bg, #F5F6F8);
	--acc-wa: var(--wp--preset--color--whatsapp, #128C4A);
	--acc-head: var(--wp--preset--font-family--heading, "Saira Condensed", "Arial Narrow", Arial, sans-serif);
	--acc-wide: 1160px;
	--acc-radius: 8px;
	--acc-focus: #1A5FD0;
	--acc-sec-pad: clamp(3.5rem, 2.25rem + 4.5vw, 6rem);
}

body { background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* From 900 px up the side margins are at least 84 px: the floating WhatsApp button has its own lane
   beside the content and never sits on top of it. */
@media (min-width: 900px) { body { --wp--style--root--padding-left: 84px; --wp--style--root--padding-right: 84px; } }
.acc-main { margin-block-start: 0; }
.acc-main > .wp-block-post-content > * + * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Short pages (404, a short text page): the footer sits at the bottom of the window, not mid-screen. */
.wp-site-blocks { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); }
.wp-site-blocks > .acc-main { flex: 1 0 auto; }
/* In-page links (#servicios, #contacto…) land below the sticky header. */
html { scroll-padding-top: 88px; }
img { max-width: 100%; height: auto; }
.acc-main :is(p, li) { text-wrap: pretty; }

/* Focus is always visible for keyboard users. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--acc-focus); outline-offset: 3px; border-radius: 2px; }
.acc-footer :where(a):focus-visible, .acc-dark :where(a):focus-visible { outline-color: #8AB4F8; }

/* Links in text */
.acc-main p a, .acc-page li a { color: var(--acc-red-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.acc-main p a:hover, .acc-page li a:hover { color: var(--acc-ink); }
a.acc-c-link { white-space: nowrap; }

/* ---------- Buttons (one shape everywhere) ---------- */
.wp-block-buttons { gap: .75rem; }
.wp-block-button .wp-block-button__link,
.acc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	box-sizing: border-box; min-height: 48px; padding: .75rem 1.35rem; border: 1px solid transparent; border-radius: var(--acc-radius);
	font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.acc-btn { background: var(--acc-red); color: #fff; }
.acc-btn:hover, .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover { background: var(--acc-red-700); color: #fff; }
.wp-block-button.is-style-acc-ghost .wp-block-button__link { background: #fff; color: var(--acc-ink); border-color: #C9CCD1; }
.wp-block-button.is-style-acc-ghost .wp-block-button__link:hover { border-color: var(--acc-ink); background: #fff; color: var(--acc-ink); }
.wp-block-button.is-style-acc-white .wp-block-button__link { background: #fff; color: var(--acc-ink); }
.wp-block-button.is-style-acc-white .wp-block-button__link:hover { background: #EDEEF0; }
.wp-block-button.is-style-acc-ink .wp-block-button__link { background: var(--acc-ink); color: #fff; }
.wp-block-button.is-style-acc-ink .wp-block-button__link:hover { background: #000; }
.wp-block-button.is-style-acc-whatsapp .wp-block-button__link { background: var(--acc-wa); color: #fff; }
.wp-block-button.is-style-acc-whatsapp .wp-block-button__link:hover { background: #0E733C; }
.wp-block-button.is-style-acc-whatsapp .wp-block-button__link::before,
.wp-block-button.acc-btn-wa .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask: url("../images/icon-wa.svg") center / contain no-repeat; mask: url("../images/icon-wa.svg") center / contain no-repeat;
}
.wp-block-button.acc-btn-wa .wp-block-button__link::before { background: var(--acc-wa); }

/* ---------- Header ---------- */
/* The header stays at the top while the page scrolls (its template-part wrapper is what sticks). */
.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 30; }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; } }
.acc-header { background: #fff; border-bottom: 1px solid var(--acc-line); padding-inline: var(--wp--style--root--padding-left, 1rem); }
.acc-header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--acc-wide); min-height: 72px; margin-inline: auto; }
.acc-logo { display: block; flex: none; line-height: 0; }
.acc-logo img { height: 56px; width: auto; display: block; }
.acc-hnav { display: flex; align-items: center; gap: 1.75rem; }
.acc-hphone { box-sizing: border-box; display: inline-flex; align-items: center; gap: .5rem; color: var(--acc-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.acc-hphone svg { width: 18px; height: 18px; color: var(--acc-red); flex: none; }
.acc-hlink { color: var(--acc-ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; }
.acc-hphone:hover, .acc-hlink:hover { color: var(--acc-red-700); text-decoration: underline; text-underline-offset: 4px; }
.acc-hnav .acc-btn { min-height: 44px; padding: .6rem 1.1rem; font-size: .95rem; }
@media (max-width: 640px) {
	.acc-header-in { min-height: 60px; gap: .5rem; }
	.acc-logo img { height: 44px; }
	.acc-hnav { gap: .5rem; }
	.acc-hphone { width: 42px; height: 42px; justify-content: center; border: 1px solid #C9CCD1; border-radius: var(--acc-radius); }
	.acc-hphone svg { color: var(--acc-ink); }
	.acc-hphone-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.acc-hlink { font-size: .9rem; padding: .5rem .35rem; }
	.acc-hnav .acc-btn { min-height: 42px; padding: .5rem .85rem; font-size: .9rem; }
}

/* ---------- Sections ---------- */
.acc-sec { padding-block: var(--acc-sec-pad); }
.acc-band { background: var(--acc-bg); }
.acc-dark { background: #141516; color: #E8EAED; }
.acc-dark h2 { color: #fff; }
.acc-sec h2 { margin: 0; }

/* Heading on the left, content on the right (services, how we work). */
.acc-split { display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.acc-split > * { margin: 0 !important; }
.acc-split-head > * + * { margin-top: 1rem; }
.acc-split-head p { color: var(--acc-muted); font-size: 1.0625rem; max-width: 24rem; }
@media (min-width: 900px) { .acc-split-head { position: sticky; top: 104px; } }
@media (max-width: 899px) { .acc-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero ---------- */
.acc-hero { padding-block: clamp(2.25rem, 1rem + 4vw, 4.5rem) clamp(3rem, 1.75rem + 4.5vw, 5.5rem); }
.acc-hero-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.25rem clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.acc-hero-grid > * { margin: 0 !important; }
.acc-hero-title { margin: 0; color: var(--acc-ink); line-height: .98; text-wrap: balance; }
.acc-hero-lead { margin: 1.25rem 0 0 !important; max-width: 31rem; color: var(--acc-ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.acc-hero-ctas { margin-top: 2rem !important; }
.acc-hero-call { margin: 1.1rem 0 0 !important; color: var(--acc-muted); font-size: .975rem; }
.acc-hero-call a.acc-c-link { color: var(--acc-ink); font-weight: 600; }
.acc-hero-photo { margin: 0 !important; }
.acc-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 42% 55%; border-radius: var(--acc-radius); }
@media (max-width: 899px) {
	.acc-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.acc-hero-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
	.acc-hero-ctas { flex-direction: column; align-items: stretch; }
	.acc-hero-ctas .wp-block-button, .acc-hero-ctas .wp-block-button__link { width: 100%; }
}

/* ---------- Services ---------- */
.acc-svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.acc-svc-list li { padding: 1.15rem 0 1.3rem; border-top: 1px solid #D9DCE0; color: var(--acc-muted); font-size: .975rem; line-height: 1.5; margin: 0; }
.acc-svc-list li strong { display: block; margin-bottom: .2rem; color: var(--acc-ink); font-size: 1.0625rem; font-weight: 600; }
@media (max-width: 600px) {
	.acc-svc-list { grid-template-columns: minmax(0, 1fr); }
	.acc-svc-list li { padding: .95rem 0 1.05rem; }
}

/* ---------- How we work ---------- */
.acc-how { list-style: none; margin: 0; padding: 0; }
.acc-how li { margin: 0; padding: 1.35rem 0; border-top: 1px solid #34363A; font-size: clamp(1.125rem, 1.02rem + .45vw, 1.375rem); line-height: 1.5; color: #F1F3F4; }
.acc-how li:last-child { border-bottom: 1px solid #34363A; }
.acc-como-fotos { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: clamp(2rem, 4vw, 3rem) !important; }
.acc-como-fotos > * { margin: 0 !important; }
.acc-como-foto img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--acc-radius); }
@media (max-width: 599px) { .acc-como-fotos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- David ---------- */
.acc-about { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.acc-about > * { margin: 0 !important; }
.acc-about-photo { margin: 0 !important; }
.acc-about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 40%; border-radius: var(--acc-radius); }
.acc-about-text > * { margin-block: 0; }
.acc-about-lead { margin-top: 1rem !important; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--acc-ink-2); max-width: 34rem; }
.acc-about-text .acc-quote { margin: 1.75rem 0 0; padding: .15rem 0 .15rem 1.25rem; border: 0; border-left: 3px solid var(--acc-red); background: none; font-style: normal; max-width: 36rem; }
.acc-about-text .acc-quote p { margin: 0; font-size: 1.125rem; line-height: 1.55; color: var(--acc-ink); }
.acc-about-text .acc-quote cite { display: block; margin-top: .6rem; font-size: .9rem; font-style: normal; color: var(--acc-muted); }
.acc-label { margin-top: 2rem !important; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; color: var(--acc-ink); }
.acc-creds { margin: .6rem 0 0 !important; padding-left: 1.1rem; display: grid; gap: .3rem; color: var(--acc-ink-2); font-size: .975rem; }
.acc-creds li { margin: 0; padding-left: .15rem; }
.acc-creds li::marker { color: var(--acc-red); }
.acc-rating { margin-top: 1.75rem !important; padding-top: 1.25rem; border-top: 1px solid var(--acc-line); color: var(--acc-ink-2); }
.acc-rating strong { color: var(--acc-ink); }
.acc-rating a { white-space: nowrap; }
@media (max-width: 899px) {
	.acc-about { grid-template-columns: minmax(0, 1fr); }
	.acc-about-photo img { aspect-ratio: 3 / 2; }
}

/* ---------- Visit ---------- */
.acc-visit-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.75rem); margin-top: 2.25rem !important; }
.acc-visit-grid > * { margin: 0 !important; }
.acc-visit-item { padding-top: 1.1rem; border-top: 2px solid var(--acc-ink); }
.acc-visit-item > * { margin-block: 0; }
.acc-visit-item > * + * { margin-top: .6rem; }
.acc-visit-item h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--acc-ink); }
.acc-visit-item p { color: var(--acc-ink-2); font-size: .975rem; }
.acc-visit-item p a { color: var(--acc-ink); font-weight: 500; text-decoration: underline; text-decoration-color: #B9BDC3; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.acc-visit-item p a:hover { color: var(--acc-red-700); text-decoration-color: currentColor; }
.acc-hours-row { display: block; }
.acc-hours-row + .acc-hours-row { margin-top: .5rem; }
.acc-hours-day { display: block; color: var(--acc-ink); font-weight: 500; }
@media (max-width: 1000px) { .acc-visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .acc-visit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Booking page (/cita) ---------- */
.acc-cita { padding-block: clamp(2.25rem, 1.25rem + 3vw, 3.75rem) var(--acc-sec-pad); }
.acc-cita-head > * { margin-block: 0; max-width: 40rem; }
.acc-cita-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1; }
.acc-cita-head p { margin-top: .9rem; color: var(--acc-ink-2); font-size: 1.0625rem; }
.acc-cita-head .acc-cita-call { margin-top: .5rem; color: var(--acc-muted); font-size: .975rem; }
.acc-cita-head .acc-cita-call a.acc-c-link { color: var(--acc-ink); font-weight: 600; }
/* The plugin's widget, matched to the site (looks only; the form works the same). */
.acc-book { margin-top: 2rem; }
.acc-book .ab-card { border-radius: var(--acc-radius); box-shadow: none; border-color: #DCDFE3; }
.acc-book .ab-cal-head h3 { font-weight: 700; }
.acc-book .ab-dow { color: var(--acc-muted); } /* weekday labels at 4.5:1 or better */
.acc-book .ab-input, .acc-book .ab-seg, .acc-book .ab-seldate, .acc-book .ab-err, .acc-book .ab-for { border-radius: var(--acc-radius); }
.acc-book .ab-day { border-radius: 6px; }
.acc-book .ab-btn { border-radius: var(--acc-radius); font-weight: 600; }
.acc-book .ab-ok h3 { text-transform: none; }
.acc-cita-placeholder { margin-top: 2rem; max-width: 40rem; padding: 1.5rem; background: #fff; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); }
.acc-cita-placeholder p { margin: 0 0 1rem; }

/* ---------- Text pages (Privacidad, 404) ---------- */
.acc-page { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(3.5rem, 2rem + 4vw, 5.5rem); }
.acc-page-title { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1; margin-bottom: 1.5rem; }
.acc-page .wp-block-post-content > h2 { margin-block: 2.4rem .5rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.acc-page .wp-block-post-content > :is(p, ul, ol) { margin-block: .75rem 0; color: var(--acc-ink-2); }
.acc-page .wp-block-post-content > ul { padding-left: 1.25rem; }
.acc-page .wp-block-post-content li + li { margin-top: .4rem; }
.acc-404 > p { color: var(--acc-ink-2); font-size: 1.0625rem; }
.acc-404 .wp-block-buttons { margin-top: 1.75rem; }
/* Owner's draft notes (administrators only; visitors never get them). */
.acc-flag-note { padding: .75rem 1rem; border-radius: var(--acc-radius); background: #FEF3E0; color: #7A4500; font-size: .9rem; }
.acc-flag { display: inline-block; font-size: .75rem; font-weight: 700; color: #A15C00; background: #FEF3E0; border-radius: 6px; padding: 0 .4rem; vertical-align: middle; font-family: var(--wp--preset--font-family--body); font-style: normal; }

/* ---------- Footer ---------- */
.acc-footer { background: #111214; color: #A8ADB3; font-size: .9rem; line-height: 1.6; padding-block: 3rem 2rem; }
.acc-footer p { margin: 0; }
.acc-footer a { color: #fff; text-decoration: none; }
.acc-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acc-footer-top { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem 3rem; }
.acc-footer-top > * { margin: 0 !important; }
.acc-footer-top > .acc-footer-nav { margin-top: -.4rem !important; }
.acc-footer-brand { display: flex !important; flex-wrap: wrap; align-items: flex-start; gap: 1rem 2.5rem; }
.acc-footer-brand > * { margin: 0 !important; }
.acc-footer-logo { display: block; width: 88px; height: auto; }
.acc-footer-nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; font-weight: 500; }
.acc-footer-nav a { padding-block: .4rem; }
.acc-footer-legal { margin-top: 2.5rem !important; padding-top: 1.25rem; border-top: 1px solid #27292D; font-size: .8125rem; color: #8B9096; }
.acc-footer-legal > * + * { margin-top: .4rem !important; }
.acc-footer-copy a { color: #C9CDD2; text-decoration: underline; text-underline-offset: 2px; }
.acc-footer-copy a:hover { color: #fff; }
/* On phones the floating WhatsApp button (bottom right) clears the last footer line. */
@media (max-width: 899px) { .acc-footer { padding-bottom: calc(2rem + 64px); } }

/* A phone number goes to the next line whole (never "939-" / "338-1269"). */
.acc-nw { white-space: nowrap; }

/* ---------- Floating WhatsApp ---------- */
.acc-wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--acc-wa); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); transition: opacity .2s, visibility .2s, transform .2s; }
.acc-wa-float svg { width: 28px; height: 28px; }
.acc-wa-float:hover { background: #0E733C; }
.acc-wa-float.is-away { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
/* 900 px and up: centred in the side margin, beside the content column. */
@media (min-width: 900px) { .acc-wa-float { right: max(12px, calc((100vw - min(var(--acc-wide), 100vw - 168px)) / 4 - 26px)); bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
	.acc-wa-float, .wp-block-button .wp-block-button__link, .acc-btn { transition: none; }
}
