/*
Theme Name: AVR WordPress Pro Theme
Theme URI: https://www.a1truckpermits.com
Author: OpenAI
Author URI: https://openai.com
Description: Professional WordPress theme for American Vehicle Registration Services in Fresno, California.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: avr-pro
*/

:root {
  --avr-red: #c91f1f;
  --avr-red-dark: #a31616;
  --avr-red-soft: #fdf1f1;
  --avr-text: #111827;
  --avr-muted: #4b5563;
  --avr-border: #e5e7eb;
  --avr-bg: #ffffff;
  --avr-bg-soft: #f8fafc;
  --avr-dark: #0f172a;
  --avr-radius: 22px;
  --avr-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--avr-text);
  background: var(--avr-bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.section { padding: 72px 0; }
.section-soft { background: var(--avr-bg-soft); }
.section-dark { background: var(--avr-dark); color: #fff; }
.kicker {
  color: var(--avr-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.section-title {
  margin: 10px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}
.section-text { color: var(--avr-muted); max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,31,31,.08);
}
.header-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-eyebrow {
  font-size: 12px;
  color: var(--avr-red);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand-title { font-weight: 800; font-size: 20px; }
.main-nav ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.main-nav a { font-weight: 600; color: #374151; }
.main-nav a:hover { color: var(--avr-red); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 15px 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid transparent;
  transition: .2s ease;
}
.btn-primary {
  background: var(--avr-red);
  color: #fff;
  box-shadow: 0 16px 28px rgba(201,31,31,.25);
}
.btn-primary:hover { background: var(--avr-red-dark); }
.btn-secondary {
  background: #fff;
  color: var(--avr-text);
  border-color: var(--avr-border);
}
.btn-secondary:hover { border-color: var(--avr-red); color: var(--avr-red); }

.hero {
  position: relative;
  min-height: 720px;
  color: #fff;
  display: flex;
  align-items: center;
  background: #eee url('./assets/hero-banner.jpg') center center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.78) 0%, rgba(15,23,42,.52) 38%, rgba(15,23,42,.18) 70%, rgba(15,23,42,.08) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 88px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.hero-copy { max-width: 620px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px;
}
.hero-badge {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
}
.hero p {
  max-width: 580px;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  margin: 18px 0 0;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.quick-link {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  font-weight: 700;
}
.hero-card {
  justify-self: end;
  max-width: 370px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--avr-shadow);
}
.hero-card h3 { margin: 0 0 12px; font-size: 24px; }
.hero-card p { margin: 0; font-size: 16px; color: rgba(255,255,255,.88); }
.hero-card ul { margin: 18px 0 0; padding-left: 18px; }
.hero-card li { margin-bottom: 10px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--avr-border);
  border-radius: var(--avr-radius);
  padding: 26px;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.card h3, .service-card h3, .contact-card h3 { margin-top: 0; }
.card p { color: var(--avr-muted); }

.about-grid,
.contact-grid,
.signup-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.about-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--avr-shadow);
  min-height: 100%;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.info-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.info-mini {
  background: #fff;
  border: 1px solid var(--avr-border);
  border-radius: 20px;
  padding: 18px;
}
.info-mini p { margin: 8px 0 0; color: var(--avr-muted); font-size: 14px; }

.services-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--avr-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 26px rgba(15,23,42,.05);
}
.service-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.service-list li {
  padding: 13px 14px;
  border-radius: 16px;
  background: #f8fafc;
  font-weight: 600;
  border: 1px solid #eef2f7;
}
.cta-band {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--avr-red-dark), var(--avr-red));
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.8fr .9fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 34px rgba(201,31,31,.22);
}
.cta-band p { color: rgba(255,255,255,.88); margin-bottom: 0; }

.signup-panel,
.contact-card,
.map-card {
  background: #fff;
  border: 1px solid var(--avr-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--avr-shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-full { grid-column: 1 / -1; }
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
}
input, select, textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  padding: 14px 16px;
  font: inherit;
  color: var(--avr-text);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--avr-red);
  box-shadow: 0 0 0 3px rgba(201,31,31,.12);
}
.form-note { color: #cbd5e1; }
.section-dark .section-text, .section-dark .form-note { color: #cbd5e1; }

.contact-grid { align-items: stretch; }
.contact-stack { display: grid; gap: 22px; }
.map-embed {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 20px;
}
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.keyword-chip {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.site-footer {
  background: var(--avr-dark);
  color: #cbd5e1;
  padding: 46px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 26px;
}
.footer-title { color: #fff; font-size: 20px; font-weight: 800; }
.footer-grid a:hover { color: #fff; }

@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid,
  .about-grid,
  .contact-grid,
  .signup-grid,
  .cta-band { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; max-width: 100%; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .header-wrap { min-height: 72px; }
  .quick-links,
  .services-grid,
  .service-list,
  .info-mini-grid,
  .footer-grid,
  .form-grid { grid-template-columns: 1fr; }
  .hero {
    min-height: 680px;
    background-position: center right 32%;
  }
  .hero-inner { padding: 64px 0; }
  .section { padding: 58px 0; }
}
