/*
Theme Name: Subaru George
Theme URI: https://subarugeorge.co.za/
Author: Subaru George
Description: A responsive one-page WordPress theme for Subaru George, including service information, engine repairs, used vehicles, location and booking enquiries.
Version: 5.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: subaru-george
*/

:root {
  --blue: #0063b5;
  --blue-deep: #002b55;
  --ink: #0b1726;
  --muted: #586676;
  --line: #dce4eb;
  --soft: #f3f7fa;
  --white: #fff;
  --page: min(1180px, calc(100% - 42px));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.shell { width: var(--page); margin-inline: auto; }
.topline { background: var(--blue-deep); color: #dcecff; font-size: .82rem; letter-spacing: .02em; }
.topline .shell { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topline__contact { display: flex; gap: 26px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,43,85,.1); backdrop-filter: blur(14px); }
.site-header .shell { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: grid; justify-items: end; gap: 2px; }
.brand__logo { display: block; width: 207px; height: auto; }
.brand__local { color: var(--blue); font-size: .62rem; font-weight: 900; letter-spacing: .42em; line-height: 1; }
.custom-logo-link { display: block; }
.custom-logo { display: block; width: 207px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 700; }
.nav a:not(.button):hover { color: var(--blue); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 3px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--blue { background: var(--blue); color: var(--white); }
.button--blue:hover { background: #004f91; }
.button--white { background: var(--white); color: var(--blue-deep); }
.button--outline { color: var(--white); border-color: rgba(255,255,255,.65); background: transparent; }

.hero { min-height: 670px; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--blue-deep); color: var(--white); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.76) contrast(1.03); opacity: .78; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(0,26,55,.97) 0%, rgba(0,35,73,.84) 46%, rgba(0,39,78,.26) 78%, rgba(0,39,78,.16) 100%); }
.hero .shell { position: relative; z-index: 3; padding-block: 92px; }
.hero__content { max-width: 720px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .82rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.hero .eyebrow { color: #88cbff; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 23px; font-size: clamp(3.2rem, 6.2vw, 5.9rem); line-height: .98; letter-spacing: -.055em; }
.hero__lead { max-width: 650px; margin-bottom: 35px; color: #e4eff8; font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust { background: var(--blue); color: var(--white); }
.trust .shell { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 118px; align-items: stretch; }
.trust__item { height: 118px; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.22); }
.trust__item:last-child { border-right: 1px solid rgba(255,255,255,.22); }
.trust__item strong { font-size: 1.05rem; }
.trust__item span { color: #d8edff; font-size: .92rem; }

section.section { padding: 104px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--blue-deep); color: var(--white); }
.section-heading { max-width: 770px; margin-bottom: 50px; }
h2 { margin-bottom: 18px; font-size: clamp(2.3rem, 4vw, 4.15rem); line-height: 1.05; letter-spacing: -.045em; }
.lead { color: var(--muted); font-size: 1.14rem; }
.section--dark .lead { color: #c7d9e8; }

.services { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-height: 245px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: transform .22s ease, box-shadow .22s ease; }
.service:hover { z-index: 1; transform: translateY(-6px); box-shadow: 0 22px 52px rgba(0,42,84,.13); }
.service__number { margin-bottom: 48px; color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.service h3 { margin-bottom: 10px; font-size: 1.28rem; }
.service p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }

.engine { display: grid; grid-template-columns: 1.07fr .93fr; gap: 74px; align-items: center; }
.engine__panel { padding: 44px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.engine__panel h3 { margin-bottom: 22px; font-size: 1.35rem; }
.engine__panel ul { margin: 0; padding: 0; list-style: none; }
.engine__panel li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); color: #dfeaf3; }
.engine__panel li::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; margin-top: .55em; background: #5db8ff; transform: rotate(45deg); }

.section--guards { background: #eaf2f8; }
.guards { display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: center; }
.guards__content h2 { max-width: 560px; }
.model-list { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.model-pill { padding: 9px 14px; border: 1px solid #b9d2e5; background: var(--white); color: var(--blue-deep); font-size: .86rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.guard-details { margin: 0 0 32px; padding: 0; list-style: none; border-top: 1px solid #bfd2e1; }
.guard-details li { padding: 13px 0; display: flex; gap: 12px; border-bottom: 1px solid #bfd2e1; color: var(--muted); }
.guard-details li::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; margin-top: .55em; background: var(--blue); transform: rotate(45deg); }
.guards__media { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.guard-video { margin: 0; overflow: hidden; border: 1px solid #bfd2e1; background: var(--blue-deep); box-shadow: 0 18px 44px rgba(0,35,73,.15); }
.guard-video video, .guard-video iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; background: #07172a; object-fit: cover; }
.guard-video figcaption { min-height: 82px; padding: 16px 18px; display: grid; align-content: center; background: var(--white); }
.guard-video figcaption strong, .guard-video figcaption span { display: block; }
.guard-video figcaption span { color: var(--muted); font-size: .86rem; }
.guard-video figcaption a { color: var(--blue); font-weight: 800; }

.vehicles { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; padding: 48px 54px; border-left: 6px solid var(--blue); background: var(--white); box-shadow: 0 12px 40px rgba(0,35,73,.08); }
.vehicles h2 { margin-bottom: 10px; font-size: clamp(2rem, 3.4vw, 3.25rem); }
.vehicles p { margin-bottom: 0; color: var(--muted); }

.reviews-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 42px; }
.reviews-intro h2 { margin-bottom: 0; }
.google-rating { padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--blue-deep); color: var(--white); }
.rating__score { font-size: 3.8rem; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.rating__stars, .review-card__stars { color: #fbbc04; font-size: 1.08rem; letter-spacing: .12em; }
.rating__label { margin-top: 4px; color: #d8edff; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.review-card { min-height: 260px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 36px rgba(0,35,73,.06); }
.review-card blockquote { margin: 24px 0 28px; font-size: 1.08rem; line-height: 1.65; }
.review-card__person { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.review-card__person strong, .review-card__person span { display: block; }
.review-card__person span { color: var(--muted); font-size: .88rem; }
.reviews-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reviews-note { margin: 0 0 0 8px; color: var(--muted); font-size: .86rem; }

.location { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: stretch; }
.location__content { display: flex; flex-direction: column; justify-content: center; }
.location__details { margin: 30px 0; border-top: 1px solid var(--line); }
.location__fact { padding: 18px 0; display: grid; gap: 2px; border-bottom: 1px solid var(--line); }
.location__fact strong { font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; }
.location__fact span, .location__fact a { color: var(--muted); }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--soft { background: #e5f1fa; color: var(--blue-deep); border-color: #c8dced; }
.map-card { min-height: 480px; overflow: hidden; border: 1px solid var(--line); background: #dce4eb; box-shadow: 0 18px 48px rgba(0,35,73,.10); }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }

.booking { display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: start; }
.contact-card { margin-top: 34px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 7px; color: var(--muted); }
.contact-card strong { color: var(--ink); }
.form { padding: 38px; background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; box-shadow: 0 15px 48px rgba(0,35,73,.07); }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
input, select, textarea { width: 100%; border: 1px solid #cad5df; border-radius: 2px; background: #fbfdfe; color: var(--ink); padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,99,181,.12); }
textarea { min-height: 108px; resize: vertical; }
.form .button { border: 0; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-left: 4px solid var(--blue); background: #e5f1fa; color: var(--blue-deep); }
.form__status--error { border-left-color: #a12222; background: #fff0f0; color: #7b1515; }
.form__trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.content-page { min-height: 55vh; padding: 88px 0; }
.content-page__inner { max-width: 820px; }

footer { padding: 34px 0; background: #07172a; color: #b8cad9; font-size: .88rem; }
footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer__links { display: flex; align-items: center; gap: 22px; }
.footer__links a { color: var(--white); font-weight: 700; }
.footer__links a:hover { color: #88cbff; }

@media (max-width: 1020px) {
  .nav { gap: 18px; }
  .nav a:not(.button) { display: none; }
  .hero { min-height: 610px; }
  .trust .shell { grid-auto-rows: 132px; }
  .trust__item { height: 132px; padding-inline: 24px; }
  .services { grid-template-columns: repeat(2,1fr); }
  .engine, .booking, .location, .reviews-intro, .guards { grid-template-columns: 1fr; gap: 44px; }
  .vehicles { grid-template-columns: 1fr; }
  .map-card, .map-card iframe { min-height: 420px; }
}

@media (max-width: 620px) {
  :root { --page: min(100% - 28px, 1180px); }
  .topline .shell { min-height: 34px; justify-content: center; }
  .topline__contact span:last-child, .topline .shell > span { display: none; }
  .site-header .shell { min-height: 70px; }
  .brand__logo, .custom-logo { width: 174px; }
  .brand__local { font-size: .56rem; }
  .nav .button { min-height: 42px; padding-inline: 14px; font-size: .78rem; }
  .hero { min-height: 650px; }
  .hero__image { object-position: 48% 22%; }
  .hero::before { background: linear-gradient(90deg, rgba(0,26,55,.95), rgba(0,35,73,.7)); }
  h1 { font-size: 3.15rem; }
  section.section { padding: 76px 0; }
  .trust .shell, .services, .reviews-grid { grid-template-columns: 1fr; }
  .trust .shell { grid-auto-rows: 108px; }
  .trust__item { height: 108px; padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
  .service { min-height: 210px; padding: 28px; }
  .service__number { margin-bottom: 28px; }
  .engine__panel, .form, .vehicles { padding: 26px; }
  .guards__media { width: 100%; max-width: 420px; margin-inline: auto; grid-template-columns: 1fr; gap: 18px; }
  .guard-video figcaption { min-height: 78px; padding: 13px; }
  .map-card, .map-card iframe { min-height: 360px; }
  .form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .form__status { grid-column: auto; }
  .google-rating { padding: 24px; }
  .rating__score { font-size: 3.2rem; }
  .reviews-note { width: 100%; margin: 4px 0 0; }
  footer .shell { align-items: flex-start; flex-direction: column; gap: 12px; }
}
