/*
Theme Name: Amaru Automotive
Description: One-page block theme for amaruautomotive.com
Version: 1.0
Requires at least: 6.5
*/

@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/roboto-kfo5cnqeu92fr1mu53zec9_vu3r1gihoszmkbnka.woff2) format('woff2')}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/roboto-kfo7cnqeu92fr1me7ksn66agldtyluama3yuba.woff2) format('woff2')}
@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/roboto-kfo7cnqeu92fr1me7ksn66agldtyluama3yuba.woff2) format('woff2')}
@font-face{font-family:'Roboto';font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/roboto-kfo7cnqeu92fr1me7ksn66agldtyluama3yuba.woff2) format('woff2')}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/roboto-kfo7cnqeu92fr1me7ksn66agldtyluama3yuba.woff2) format('woff2')}
@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/robotoslab-bngmuxzytxpivibgjjsb6ufn5qu.woff2) format('woff2')}
@font-face{font-family:'Dancing Script';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/dancingscript-700.woff2) format('woff2')}
@font-face{font-family:'PT Sans';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/ptsans-jizyrexuito99u79d0e0x8mi.woff2) format('woff2')}
@font-face{font-family:'PT Sans';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/ptsans-jizarexuito99u79d0kexq.woff2) format('woff2')}
@font-face{font-family:'PT Sans';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/ptsans-jizfrexuito99u79b_mh0o6tlq.woff2) format('woff2')}

/* ---------- base ---------- */
:root {
	--green: #61CE70;
	--navy: #272B65;
	--sky: #6EC1E4;
	--slab: "Roboto Slab", serif;
	--ptsans: "PT Sans", sans-serif;
	--roboto: Roboto, sans-serif;
}
*, ::after, ::before { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: #c36; text-decoration: none; }
a:hover { color: #336; }
img { height: auto; max-width: 100%; border-style: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin-block: .5rem 1rem; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
p { margin-block: 0 .9rem; }
.wp-block-columns { margin: 0; gap: 0; flex-wrap: nowrap; }
.wp-block-image { margin: 0; }
.wp-block-group > .wp-block-columns, .wp-block-cover__inner-container > * { margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar { padding: 10px; }
.topbar .wp-block-column { padding: 10px; }
.topbar .wp-block-columns { max-width: 1120px; margin-inline: auto; }
.topbar .wp-block-button__link { white-space: normal; text-align: center; }
.topbar .wp-block-button__link {
	background: var(--green); color: #fff; border-radius: 3px; padding: 12px 24px;
	font: 500 15px/1 var(--roboto); box-shadow: 0 0 10px rgba(0,0,0,.5);
}

/* ---------- hero ---------- */
.wp-block-cover.hero { min-height: 0; padding: 24px 0 248px; align-items: flex-start; overflow: hidden; }
.hero::after {
	content: ""; position: absolute; z-index: 1; bottom: -1px; left: 50%; width: calc(200% + 1.3px); height: 470px;
	transform: translateX(-50%) rotateY(180deg);
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'><path fill='%23fff' d='M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V1C1000,19.4,873.3,97.8,500,97z'/></svg>") 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}
.hero .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; padding-inline: 10px; }
.hero .wp-block-image { margin-bottom: 20px; }

.panel { background: #00000085; border-radius: 20px; max-width: 1120px; }
.panel > .wp-block-column { flex-basis: 33.333% !important; }
.panel__visit { background: #0000000f; border-radius: 20px 0 0 0; padding: 17.5px 2% 2%; color: #fff; font-family: var(--ptsans); }
.panel__visit h1, .panel__visit h4 { color: #fff; font-family: inherit; letter-spacing: -.1px; }
.panel__visit .book-link a { color: #00ff00; }
.panel__map { background: #ececec; padding: 10px; }
.panel__map iframe { display: block; width: 100%; height: 300px; border: 0; }
.panel__hours { background: #0000000f; border-radius: 0 20px 0 0; color: #fff; padding: 10px; font-family: var(--roboto); }
.panel__hours h3 { color: #00ff00; font-size: 1.75rem; text-align: center; }

/* hours table */
.hours { margin: 0; }
.hours table { width: 100%; font-size: 1rem; margin: 0; border-collapse: collapse; }
.hours td { border: 0; padding: 0; line-height: 1.5; background: none !important; }
.hours td + td { text-align: right; }

.contact-strip { position: relative; margin-top: -22px; background: var(--navy); border-radius: 0 0 20px 20px; padding-top: 15px; color: #fff; max-width: 1120px; }
.contact-strip .wp-block-column { padding: 10px; }
.contact-strip p { margin: 0 0 .9rem; line-height: .1em; font-family: var(--roboto); letter-spacing: 1px; }
.contact-strip .wp-block-column:first-child p { letter-spacing: 0; }
.contact-strip .wp-block-column:nth-child(2) p:last-child { margin-bottom: 0; }
.contact-strip a { color: #fff; }

/* ---------- services ---------- */
.services { margin-top: -200px; padding: 22px 0 118px; position: relative; z-index: 3; }
.services .wp-block-column { padding: 0 20px; flex-basis: 33.333% !important; }
.card { background: #fff; border: 1px solid #d8d8d8; border-radius: 5px; box-shadow: 0 0 30px rgba(0,0,0,.1); padding: 60px 20px; text-align: center; transition: box-shadow .3s; }
.services .wp-block-columns { align-items: flex-start; }
.services .wp-block-column:first-child .card { padding-inline: 30px; }
.services .wp-block-column:first-child .card h3, .services .wp-block-column:first-child .card p { text-shadow: 0 0 0 rgba(0,0,0,.3); }
.card:hover { box-shadow: 0 0 35px rgba(0,0,0,.36); }
.card__icon { display: block; width: 50px; height: 50px; margin: 0 auto 33px; color: #000; }
.card h3 { font: 400 1.75rem/1.2 var(--slab); color: #000; margin: 0 0 25px; overflow-wrap: normal; }
.card p { font-family: var(--ptsans); color: #a0a0a0; font-size: 1rem; margin: 0; }

/* ---------- testimonials ---------- */
.testimonials-section { padding: 0 20px 179px; }
.testimonials-section > h3 { font: 400 43px/1.2 var(--slab); text-transform: capitalize; color: #000; text-align: center; }
.testimonials .wp-block-post-template {
	display: flex; list-style: none; margin: 0; padding: 0; max-height: 400px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.testimonials .wp-block-post-template::-webkit-scrollbar { display: none; }
.testimonials .wp-block-post-template > li { flex: 0 0 100%; scroll-snap-align: start; padding: 30px; overflow-y: auto; text-align: center; margin: 0; }
.testimonials .t-body { position: relative; margin: 0 56px 5px; font-size: 1.3em; font-style: italic; text-align: center; }
.testimonials .wp-block-post-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 15px; }
.testimonials .wp-block-post-content p { margin: 0; }
.testimonials .t-body::before, .testimonials .t-body::after {
	content: ""; position: absolute; width: 36px; height: 36px; background: #cdcdcd;
	-webkit-mask: var(--q) center / contain no-repeat; mask: var(--q) center / contain no-repeat;
	--q: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z'/></svg>");
}
.testimonials .t-body::before { left: -56px; top: 0; }
.testimonials .t-body::after { right: -56px; bottom: 0; transform: rotate(180deg); }
.testimonials .testimonial-name { font: 700 1.6rem/1.3 "Dancing Script", cursive; width: fit-content; margin: 0 56px 0 auto; transform: rotate(-5deg); transform-origin: right center; }
.testimonials .readmore { display: flex; align-items: center; width: fit-content; height: 32px; margin: 8px auto 0; padding: 0 12px; box-sizing: border-box; border: 1px solid #747775; border-radius: 8px; font: 500 14px/1 var(--roboto, sans-serif); font-style: normal; letter-spacing: .1px; color: #1f1f1f; text-decoration: none; transition: background .15s; }
.testimonials .readmore:hover, .testimonials .readmore:focus-visible { background: #1f1f1f14; }
.testimonials .t-timer { position: absolute; right: 3px; top: 3px; width: 24px; height: 24px; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.testimonials .t-timer .trk { stroke: #e0e0e0; }
.testimonials .t-timer .arc { stroke: #81d4fa; stroke-dasharray: 62.83; animation: t-fill 10s linear infinite; }
.testimonials:hover .arc, .testimonials:has(:focus-visible) .arc { animation-play-state: paused; }
@keyframes t-fill { from { stroke-dashoffset: 62.83; } to { stroke-dashoffset: 0; } }

/* ---------- quote form ---------- */
.quote { background: #ddd; padding: 50px 20px 61px; }
.quote > h2 { font: 600 2rem/1.2 var(--roboto); color: #000; }
.quote .wpcf7 { max-width: 1120px; margin-inline: auto; }
.wpcf7 label { display: inline-block; line-height: 1; vertical-align: middle; }
input[type=text], input[type=email], select, textarea {
	width: 100%; border: 1px solid #666; border-radius: 3px; padding: .5rem 1rem; font: inherit; font-size: 1rem; line-height: 1.5; margin: 0;
	background: #fff; color: #333; transition: all .3s;
}
input:focus, select:focus, textarea:focus { border-color: #333; }
textarea { resize: vertical; overflow: auto; }
input[type=submit] {
	background: transparent; border: 1px solid #c36; border-radius: 3px; color: #c36; font: inherit; font-size: 1rem; padding: .5rem 1rem; cursor: pointer; transition: all .3s;
}
input[type=submit]:hover, input[type=submit]:focus { background: #c36; color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #000; padding: 0; }
.site-footer .wp-block-columns { max-width: 1120px; margin-inline: auto; }
.site-footer .wp-block-column { padding: 10px 10px 22px; align-self: flex-start !important; }
.site-footer .wp-block-column:last-child { padding-right: 0; padding-left: 13px; }
.site-footer .wp-block-column { flex-basis: 33.333% !important; }
.site-footer .wp-block-column:first-child { padding-inline: 0; align-self: center !important; }
.social { display: flex; align-items: center; margin: 0; }
.social a { flex: 1; display: flex; justify-content: center; }
.social__icon { width: 50px; height: 50px; color: var(--sky); display: block; }
.bbb { background: #fff; text-align: center; }
.bbb img { display: inline-block; vertical-align: top; }

@media (max-width: 1024px) {
	/* readable spacing; the original's .1em line-height made wrapped lines overlap */
	.contact-strip p, .contact-strip .wp-block-column:nth-child(2) p:last-child { line-height: 1.3; margin: 0; }
	.contact-strip .wp-block-column { padding: 8px 10px; }
	.wp-block-cover.hero { padding: 25px 0 267px; }
	.hero .wp-block-image { margin-bottom: 19px; }
	.panel__visit { padding-top: 15.5px; }
	.services { padding: 17px 0 93px; }
	.testimonials-section { padding-bottom: 145px; }
}

@media (max-width: 767px) {
	.wp-block-cover.hero { padding: 85px 0 200px; }
	.hero .wp-block-image { margin-bottom: 19px; }
	.hero .wp-block-cover__inner-container { padding-inline: 30px; }
	.testimonials-section { padding: 0 5px 0; }
	.testimonials .wp-block-post-template { max-height: 480px; }
	.testimonials .testimonial-name { margin-right: 0; }
	.testimonials .wp-block-post-title { margin-bottom: 5px; }
	.testimonials .t-body { margin: 0; font-size: 1.1em; padding: 48px 0 47px; }
	.testimonials .t-body::before { left: 0; }
	.testimonials .t-body::after { right: 0; }
	.services { padding: 22px 20px 28px; }
	.contact-strip { padding-bottom: 8px; }
	.quote { padding-inline: 10px; }
	.social { flex-direction: column; gap: 20px; }
	.site-footer { padding-top: 11px; }
	.site-footer .wp-block-column, .site-footer .wp-block-column:last-child { padding: 10px; }
	.site-footer .wp-block-column:first-child { padding-bottom: 33px; }
	.services .wp-block-column { padding-block: 20px; }
	.services .wp-block-columns { gap: 0; }
	.panel__visit { padding: 10px 15px 10px; }
	.panel__hours { padding-bottom: 36px; } /* the contact strip overlaps the last 22px */
	.wp-block-columns.is-not-stacked-on-mobile { flex-wrap: wrap !important; }
	.wp-block-columns > .wp-block-column, .panel > .wp-block-column, .services .wp-block-column { flex-basis: 100% !important; }
}
