/*
Theme Name: AMF Motors
Theme URI: https://amfmotors.com/
Author: AMF Motors
Description: Vehicle-first used auto parts inventory theme for AMF Motors.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: amf-motors
*/

:root {
  --amf-black: #03070d;
  --amf-charcoal: #0b121c;
  --amf-navy: #071b3c;
  --amf-blue: #0877ff;
  --amf-blue-bright: #21a2ff;
  --amf-silver: #c9d1db;
  --amf-silver-dark: #7d8998;
  --amf-white: #f7f9fc;
  --amf-muted: #6d7785;
  --amf-border: #dfe5eb;
  --amf-radius: 10px;
  --amf-shadow: 0 16px 40px rgba(3, 15, 32, .14);
  --amf-width: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #101722;
  background: var(--amf-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.amf-container { width: min(calc(100% - 40px), var(--amf-width)); margin-inline: auto; }
.amf-section { padding: 72px 0; }
.amf-section--dark { color: white; background: var(--amf-charcoal); }
.amf-section-title {
  margin: 0 0 28px;
  color: var(--amf-black);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: uppercase;
}
.amf-kicker { color: var(--amf-blue); font-size: .82rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.amf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--amf-blue);
  border-radius: 6px;
  background: var(--amf-blue);
  color: white;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.amf-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8,119,255,.28); }
.amf-button--outline { background: transparent; }
.amf-button--light { border-color: white; background: white; color: var(--amf-navy); }
.amf-button--compact { min-height: 42px; padding: 9px 15px; font-size: .78rem; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(33,162,255,.55); background: rgba(3,7,13,.96); color: white; backdrop-filter: blur(12px); }
.site-header__inner { display: flex; min-height: 76px; align-items: center; gap: 32px; }
.site-branding { margin-right: auto; }
.custom-logo { width: auto; max-height: 54px; }
.site-branding__logo-link { display: block; line-height: 0; }
.site-title { font-size: 1.55rem; font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; }
.site-title span { color: var(--amf-blue-bright); }
.primary-menu, .primary-menu ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: white; font-size: .88rem; font-weight: 800; text-transform: uppercase; }
.primary-menu a:hover { color: var(--amf-blue-bright); }
.menu-toggle { display: none; border: 0; background: transparent; color: white; font-size: 1.7rem; }
.header-actions { display: flex; gap: 8px; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 570px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 70% 45%, rgba(8,119,255,.28), transparent 34%),
    linear-gradient(100deg, rgba(3,7,13,.99) 0%, rgba(5,18,40,.96) 52%, rgba(3,7,13,.9) 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; background: repeating-linear-gradient(135deg, transparent 0 42px, rgba(255,255,255,.035) 43px 44px); }
.hero__inner { display: grid; grid-template-columns: .9fr 1.25fr; align-items: center; gap: 48px; min-height: 570px; padding: 64px 0 98px; }
.hero__content { position: relative; z-index: 2; }
.hero h1 { margin: 10px 0 16px; max-width: 660px; font-size: clamp(3.4rem, 6vw, 6.6rem); font-style: italic; font-weight: 950; letter-spacing: -.055em; line-height: .88; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--amf-blue-bright); text-shadow: 0 0 30px rgba(33,162,255,.4); }
.hero p { margin: 0 0 28px; max-width: 640px; color: #e5eaf0; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art img { width: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.hero__art--parts-logo { display: flex; align-items: center; justify-content: center; }

.parts-logo { position: relative; display: inline-block; line-height: 0; }
.parts-logo--header { width: 190px; max-width: 32vw; }
.parts-logo--hero { width: min(100%, 820px); }
.parts-logo__base { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }

.vehicle-search { position: relative; z-index: 5; margin-top: -58px; }
.vehicle-search__panel { display: grid; grid-template-columns: 1.1fr 2.9fr; gap: 30px; align-items: center; padding: 28px 32px; border: 1px solid #303b48; border-radius: var(--amf-radius); background: linear-gradient(135deg, #121b26, #070d15); color: white; box-shadow: var(--amf-shadow); }
.vehicle-search__title { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); font-style: italic; font-weight: 900; text-transform: uppercase; }
.vehicle-search__fields { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 14px; }
.amf-field label { display: block; margin-bottom: 6px; color: #dfe6ef; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.amf-field input, .amf-field select, .amf-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cbd3dd; border-radius: 6px; background: white; color: #16202c; }

.inventory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.inventory-card { position: relative; overflow: hidden; border: 1px solid var(--amf-border); border-radius: var(--amf-radius); background: white; box-shadow: 0 7px 20px rgba(10,27,48,.08); transition: transform .2s ease, box-shadow .2s ease; }
.inventory-card:hover { transform: translateY(-5px); box-shadow: var(--amf-shadow); }
.inventory-card__image { aspect-ratio: 4 / 2.65; overflow: hidden; background: #dce2e8; }
.inventory-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.inventory-card:hover .inventory-card__image img { transform: scale(1.035); }
.inventory-card__badge { position: absolute; top: 14px; left: 14px; padding: 7px 11px; border-radius: 5px; background: var(--amf-blue); color: white; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.inventory-card__body { padding: 18px; }
.inventory-card h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; }
.inventory-card__meta { margin: 0 0 16px; color: var(--amf-muted); font-size: .9rem; }
.inventory-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inventory-card__actions .amf-button { min-height: 42px; padding: 9px; font-size: .73rem; }
.empty-state { grid-column: 1 / -1; padding: 54px; border: 1px dashed #b9c4d0; border-radius: var(--amf-radius); text-align: center; background: white; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 190px; padding: 28px; overflow: hidden; border: 1px solid rgba(164,190,220,.25); border-radius: var(--amf-radius); background: linear-gradient(145deg, #111b28, #050a11); color: white; }
.category-card::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 180px; height: 180px; border: 24px solid rgba(8,119,255,.16); border-radius: 50%; }
.category-card h3 { position: relative; z-index: 1; margin: 38px 0 8px; font-size: 1.45rem; font-weight: 900; text-transform: uppercase; }
.category-card p { position: relative; z-index: 1; margin: 0; color: #aeb9c8; }
.category-card:hover { border-color: var(--amf-blue); }

.trust-strip { background: #050a11; color: white; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 18px; align-items: center; padding: 30px; border-right: 1px solid rgba(33,162,255,.38); }
.trust-item:last-child { border-right: 0; }
.trust-item__icon { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border: 2px solid var(--amf-blue); border-radius: 50%; color: var(--amf-blue-bright); font-size: 1.4rem; font-weight: 900; }
.trust-item h3 { margin: 0 0 4px; font-size: 1rem; text-transform: uppercase; }
.trust-item p { margin: 0; color: #aeb9c8; font-size: .88rem; }

.archive-hero { padding: 72px 0 52px; background: linear-gradient(135deg, #03070d, #0a234d); color: white; }
.archive-hero h1 { margin: 8px 0 12px; font-size: clamp(2.8rem, 6vw, 5.5rem); font-style: italic; line-height: .95; text-transform: uppercase; }
.archive-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.archive-filters input, .archive-filters select { min-height: 48px; min-width: 190px; padding: 10px 13px; border: 1px solid var(--amf-border); border-radius: 6px; background: white; }
.detail-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.detail-gallery { overflow: hidden; border-radius: var(--amf-radius); background: #dfe5eb; }
.detail-gallery img { width: 100%; }
.detail-panel { padding: 30px; border: 1px solid var(--amf-border); border-radius: var(--amf-radius); background: white; box-shadow: var(--amf-shadow); }
.detail-panel h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; text-transform: uppercase; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border-top: 1px solid var(--amf-border); }
.spec-list div { padding: 12px 0; border-bottom: 1px solid var(--amf-border); }
.spec-list strong { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amf-muted); }
.content-card { padding: 28px; border: 1px solid var(--amf-border); border-radius: var(--amf-radius); background: white; }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.request-form .full { grid-column: 1 / -1; }
.notice { padding: 14px 18px; margin-bottom: 22px; border-left: 4px solid var(--amf-blue); background: #e9f3ff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { padding: 38px; border: 1px solid var(--amf-border); border-radius: var(--amf-radius); background: white; box-shadow: var(--amf-shadow); }
.contact-card__icon { display: grid; width: 66px; height: 66px; margin-bottom: 24px; place-items: center; border: 2px solid var(--amf-blue); border-radius: 50%; color: var(--amf-blue); font-size: 1.75rem; font-weight: 900; }
.contact-card h2 { margin: 8px 0 12px; font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.15; }
.contact-card p { margin-bottom: 24px; color: var(--amf-muted); }
.contact-card--hours { grid-column: 1 / -1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .amf-button--outline { color: var(--amf-blue); }
.hours-list { margin: 22px 0 0; }
.hours-list div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--amf-border); }
.hours-list dt { font-weight: 900; }
.hours-list dd { margin: 0; color: var(--amf-muted); }

.site-footer { padding: 52px 0 24px; background: #03070d; color: white; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.site-footer h3 { margin-top: 0; color: var(--amf-blue-bright); text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; color: #b5c0cd; }
.site-footer__bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid #28313d; color: #8693a2; font-size: .85rem; }

@media (max-width: 1050px) {
  .inventory-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 760px; margin-inline: auto; }
  .vehicle-search__panel { grid-template-columns: 1fr; }
  .vehicle-search__fields { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .primary-menu { display: none; position: absolute; inset: 76px 0 auto; padding: 22px; background: #03070d; }
  .primary-menu.is-open { display: block; }
  .primary-menu ul { display: grid; gap: 16px; }
  .menu-toggle { display: block; }
  .header-actions .amf-button--outline { display: none; }
}

@media (max-width: 680px) {
  .amf-container { width: min(calc(100% - 24px), var(--amf-width)); }
  .amf-section { padding: 50px 0; }
  .site-header__inner { min-height: 66px; }
  .hero__inner { min-height: auto; padding: 48px 0 88px; }
  .hero h1 { font-size: 3.4rem; }
  .vehicle-search__fields, .inventory-grid, .category-grid, .trust-strip__grid, .detail-layout, .site-footer__grid, .request-form, .contact-grid { grid-template-columns: 1fr; }
  .vehicle-search__panel { padding: 22px 18px; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(33,162,255,.3); }
  .inventory-card__actions { grid-template-columns: 1fr; }
  .request-form .full { grid-column: auto; }
}
