/*
Theme Name: Carmona's Collision v1
Theme URI: https://www.carmonascollision.com/
Author: Rolando Cornejo
Description: One-page website with a photo and video gallery for Carmona's Collision Repair in Fullerton, CA. Every menu and service link points to the matching page on carmonascollision.com. Built-in technical SEO, local SEO, AEO and GEO: structured data, Open Graph, geo tags, FAQ markup, llms.txt and AI-crawler friendly robots rules.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carmonascollision
*/

/* Tokens ------------------------------------------------------------------
   Black and red come from the shop's business card. The greys come from the
   painted block wall of the building; the red cap on panels is its roofline. */
:root {
	--black: #000;
	--ink: #16191d;
	--mute: #58616b;
	--booth: #f3f5f6;
	--wall: #dfe3e7;
	--line: #c3c9cf;
	--white: #fff;
	--red: #c8102e;
	--red-deep: #a30c24;
	--wide: 118%;
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wrap: 76rem;
	--gap: clamp(1.25rem, 4vw, 2.5rem);
	--sec: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--booth);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.hero :focus-visible, .util :focus-visible, .creds :focus-visible, .site-foot :focus-visible, .gal-dark :focus-visible, .page-head :focus-visible { outline-color: var(--white); }

h1, h2, .brand-name {
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.375rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.75rem); line-height: 1.05; }
h3 { font-size: 1.1875rem; font-weight: 700; font-stretch: 112%; line-height: 1.25; }
p { max-width: 62ch; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--white); color: var(--black); padding: .75rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* The roofline: a red cap, as on the building. */
.roofline { border-top: .5rem solid var(--red); }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 2.875rem; padding: .6rem 1.25rem;
	font: 700 1rem/1.2 var(--font); font-stretch: 108%;
	text-decoration: none; border: 2px solid transparent; border-radius: 2px;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 3.5rem; padding-inline: 1.6rem; font-size: 1.0625rem; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--red); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.link-row { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.25rem; font-weight: 700; }

/* Utility bar ------------------------------------------------------------ */
.util { background: var(--black); color: #d5dade; font-size: .875rem; }
.util-in { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.util p { max-width: none; }
.util a { text-decoration: none; }
.util a:hover { color: var(--white); text-decoration: underline; }
.util-links { display: flex; gap: 1.5rem; }
.util-status { display: flex; align-items: center; gap: .5rem; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: #8a939b; flex: none; }
.dot.is-open { background: #3ecf6e; }
.dot.is-closed { background: var(--red); }

/* Header ----------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.brand:hover { color: inherit; }
.brand-name { font-size: 1.625rem; color: var(--red); text-transform: uppercase; letter-spacing: 0; }
.brand-sub { font-size: .8125rem; font-weight: 600; font-stretch: 112%; letter-spacing: .14em; margin-top: .2rem; }
.brand-logo { max-height: 3.25rem; width: auto; }

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-list { display: flex; gap: .25rem; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 1.5rem .7rem; font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-item > a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--red); }
.sub {
	position: absolute; left: 0; top: 100%; min-width: 17rem; padding: .5rem 0;
	background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red);
	box-shadow: 0 18px 30px -18px rgb(0 0 0 / .35);
	visibility: hidden; opacity: 0; transition: opacity .12s;
}
.nav-item:hover > .sub, .nav-item:focus-within > .sub { visibility: visible; opacity: 1; }
.sub a { display: block; padding: .5rem 1rem; font-size: .9375rem; text-decoration: none; }
.sub a:hover { background: var(--booth); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.phone { display: flex; flex-direction: column; font-weight: 800; font-stretch: 112%; font-size: 1.125rem; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.phone-label { font-size: .75rem; font-weight: 500; font-stretch: 100%; color: var(--mute); }
.menu-btn { display: none; }

/* Hero ------------------------------------------------------------------- */
.hero { background: var(--black); color: var(--white); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem) 0; }
.hero-copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
.h1-who { display: block; font-size: 1rem; font-weight: 600; font-stretch: 105%; letter-spacing: 0; line-height: 1.4; color: #c9ced3; margin-bottom: 1.25rem; }
.hero-lede { margin-top: 1.5rem; font-size: 1.1875rem; line-height: 1.55; color: #e4e7ea; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: .9375rem; color: #b4bbc2; }
.hero-photo { align-self: end; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Visit bar -------------------------------------------------------------- */
.visit-bar { background: var(--wall); padding-block: 1.75rem; }
.visit-in { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 1.5rem 2.5rem; align-items: start; }
.visit-in p { display: flex; flex-direction: column; max-width: 20rem; }
.visit-in strong { font-stretch: 112%; font-weight: 750; }
.visit-in span { color: var(--mute); font-size: .9375rem; }
.visit-links { gap: .25rem; font-weight: 700; }

/* Split layout ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-head { position: sticky; top: 7rem; }
.split-head p { margin-top: 1.25rem; }
.split-head .btn { margin-top: .5rem; }

/* Steps: a real sequence, so it is numbered. */
.step-list { counter-reset: step; border-top: 2px solid var(--ink); }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.step-list li::before { content: counter(step); grid-row: span 2; font-size: 3rem; font-weight: 800; font-stretch: var(--wide); line-height: .9; color: var(--red); }
.step-list p { color: var(--mute); margin-top: .25rem; }

/* Services: laid out like the lines of a repair order. */
.services { background: var(--wall); }
.sheet { background: var(--white); padding: clamp(1.5rem, 5vw, 4rem); box-shadow: 0 40px 60px -50px rgb(0 0 0 / .5); }
.sheet-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 1.5rem 3rem; align-items: end; padding-bottom: 2.5rem; }
.sheet-head p { color: var(--mute); }
.sheet-rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: .75rem 3rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.01em; }
.row h3 a { text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat; padding-bottom: .15em; }
.row-sub { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.row-sub a { display: block; padding: .3rem .75rem; font-size: .9375rem; font-weight: 600; text-decoration: none; background: var(--booth); border: 1px solid var(--line); border-radius: 2px; }
.row-sub a:hover { border-color: var(--red); background: var(--white); }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding-top: 2rem; }
.sheet-foot p { font-weight: 600; }

/* Credentials ------------------------------------------------------------ */
.creds { background: var(--black); color: var(--white); }
.creds .split-head p { color: #d5dade; }
.creds a:hover { color: var(--white); text-decoration-thickness: .14em; }
.cred-list { border-top: 2px solid var(--white); }
.cred-list div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: .25rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid #3a4047; }
.cred-list dt { font-weight: 800; font-stretch: 118%; font-size: 1.1875rem; line-height: 1.25; }
.cred-list dd { color: #c9ced3; }
.cred-list dd:empty { display: none; }

/* See the shop ----------------------------------------------------------- */
.look-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.look-head p { font-weight: 700; }
.look-grid { display: grid; grid-template-columns: 2.93fr 1fr; gap: 1rem; align-items: start; }
.look-video { grid-row: span 2; }
.look-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--black); }
.look-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { font-size: .9375rem; color: var(--mute); padding-top: .5rem; }

/* Reviews and financing -------------------------------------------------- */
.proof { background: var(--wall); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.proof h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.proof p { margin-top: 1rem; }

/* FAQ -------------------------------------------------------------------- */
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.25rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: .7rem; height: .7rem; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s; margin-right: .35rem; }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list summary:hover h3 { color: var(--red); }
.faq-list p { padding-bottom: 1.5rem; color: var(--mute); }

/* Visit ------------------------------------------------------------------ */
.visit { background: var(--wall); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--white); border-top: .5rem solid var(--red); }
.visit-card { padding: clamp(1.5rem, 4vw, 3rem); }
.visit-card address { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 600; }
.hours { margin-top: 1.5rem; width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 800; font-stretch: 112%; padding-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-top: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.areas { margin-top: 1.5rem; color: var(--mute); }
.visit-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.75rem 1rem; }
.map { min-height: 26rem; background: var(--wall); }
.map iframe { width: 100%; height: 100%; min-height: 26rem; border: 0; }

/* Footer ----------------------------------------------------------------- */
.site-foot { background: var(--black); color: #c9ced3; padding-top: var(--sec); font-size: .9375rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem 2rem; }
.brand-foot { color: var(--white); }
.foot-tag { margin-top: 1rem; color: var(--white); font-weight: 600; }
.site-foot address { margin-top: 1.25rem; line-height: 1.7; }
.foot-hours { margin-top: 1rem; }
.foot-hours span { color: var(--white); }
.foot-col h2 { font-size: 1rem; font-stretch: 112%; letter-spacing: 0; color: var(--white); margin-bottom: .75rem; }
.foot-col li { padding-block: .25rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 3.5rem; padding-block: 1.5rem; border-top: 1px solid #3a4047; }
.foot-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Mobile action dock ----------------------------------------------------- */
.dock { display: none; }

/* Gallery page ----------------------------------------------------------- */
.page-head { background: var(--black); color: var(--white); padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-head h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.crumbs { font-size: .9375rem; color: #b4bbc2; margin-bottom: 1.5rem; }
.gal h2 { margin-bottom: 1.75rem; }
.gal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.gal-item { grid-column: span 2; }
.gal-lead { grid-column: span 4; grid-row: span 2; }
.gal-item:nth-child(n+4) { grid-column: span 3; }
.gal-grid a { display: block; overflow: hidden; background: var(--wall); cursor: zoom-in; }
.gal-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.gal-grid a:hover img { transform: scale(1.03); }
.gal-dark { background: var(--black); color: var(--white); }
.gal-dark figcaption { color: #c9ced3; }
.gal-dark figcaption strong { display: block; color: var(--white); }
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.vid-grid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.gal-cta { background: var(--wall); }
.gal-cta p { margin-top: 1rem; }
.credit { font-size: .875rem; color: var(--mute); margin-top: 2rem; }
.entry > * + * { margin-top: 1.25rem; }

.lightbox { border: 0; padding: 0; background: var(--black); color: var(--white); width: min(96vw, 1100px); max-height: 96vh; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--black); }
.lightbox figcaption { color: #d5dade; padding: .75rem 1rem 0; }
.lb-nav { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem 1rem; }
.lightbox button { font: 700 .9375rem var(--font); color: var(--white); background: none; border: 2px solid #5c646c; padding: .5rem 1rem; cursor: pointer; border-radius: 2px; }
.lightbox button:hover { border-color: var(--white); }
.lb-close { position: absolute; top: .75rem; right: .75rem; background: var(--black) !important; z-index: 2; }

/* Narrow screens --------------------------------------------------------- */
@media (max-width: 80rem) {
	.menu-btn {
		display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
		font: 700 1rem var(--font); color: var(--ink); background: none; border: 2px solid var(--ink);
		min-height: 2.875rem; padding: .4rem .9rem; border-radius: 2px; cursor: pointer;
	}
	.menu-btn-bars, .menu-btn-bars::before { display: block; width: 1.1rem; height: 2px; background: currentColor; }
	.menu-btn-bars { position: relative; top: -3px; }
	.menu-btn-bars::before { content: ""; position: absolute; top: 6px; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem); overflow: auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: .5rem solid var(--red); padding: 0 var(--gap) 6rem; }
	.nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-item { border-bottom: 1px solid var(--line); padding-block: .5rem; }
	.nav-item > a { padding: .6rem 0; font-size: 1.125rem; font-weight: 800; font-stretch: 112%; }
	.sub { position: static; visibility: visible; opacity: 1; border: 0; box-shadow: none; padding: 0 0 .5rem; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
	.sub a { padding: .45rem 0; color: var(--mute); }
	.nav-cta { flex-direction: column; align-items: stretch; padding-top: 1.25rem; }
	.util-links span, .util-links a:first-child { display: none; }
}
@media (max-width: 56rem) {
	.hero-in, .split, .sheet-head, .row, .proof-grid, .visit-grid, .visit-in { grid-template-columns: 1fr; }
	.hero-in { padding-top: 2.5rem; }
	.hero-copy { padding-bottom: 2.5rem; }
	.hero-photo { margin-inline: calc(-1 * var(--gap)); }
	.split-head { position: static; }
	.cred-list div { grid-template-columns: 1fr; }
	.look-grid { grid-template-columns: 1fr 1fr; }
	.look-video { grid-column: span 2; grid-row: auto; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-brand { grid-column: span 2; }
	.gal-grid { grid-template-columns: 1fr 1fr; }
	.gal-item, .gal-item:nth-child(n+4) { grid-column: span 1; }
	.gal-lead { grid-column: span 2; grid-row: auto; }
	.vid-grid { grid-template-columns: 1fr; }
	.btn-lg { flex: 1 1 100%; }
	body { padding-bottom: 3.75rem; }
	.dock { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--black); padding-bottom: env(safe-area-inset-bottom, 0); border-top: 1px solid #3a4047; }
	.dock a { display: flex; align-items: center; justify-content: center; min-height: 3.75rem; color: var(--white); font-weight: 700; font-stretch: 108%; text-decoration: none; border-left: 1px solid #3a4047; }
	.dock a:first-child { border-left: 0; }
	.dock-call { background: var(--red); }
}
@media (max-width: 30rem) {
	.util-status { font-size: .8125rem; }
	.sub { grid-template-columns: 1fr; }
	.step-list li { grid-template-columns: 3rem 1fr; }
	.step-list li::before { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.util, .site-head, .dock, .map, video, .hero-cta { display: none !important; }
	body { background: #fff; }
	.hero, .creds, .site-foot { background: #fff; color: #000; }
}
