/*
Theme Name: Auto Dealer Guard
Theme URI: https://www.autodealerguard.com
Author: Auto Dealer Guard
Description: A lightweight, responsive WordPress theme for Auto Dealer Guard, focused on dealership fraud prevention, transaction verification, and dealer protection.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: auto-dealer-guard
*/

:root {
  --adg-blue: #0b56b3;
  --adg-blue-dark: #06346f;
  --adg-navy: #071523;
  --adg-black: #0c1015;
  --adg-slate: #5f6b78;
  --adg-silver: #dbe2ea;
  --adg-white: #ffffff;
  --adg-light: #f4f7fb;
  --adg-border: #dce3eb;
  --adg-success: #16794c;
  --adg-danger: #a32828;
  --shadow-sm: 0 8px 24px rgba(5, 18, 32, .08);
  --shadow-lg: 0 24px 60px rgba(5, 18, 32, .16);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--adg-navy);
  background: var(--adg-white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--adg-blue); text-decoration: none; }
a:hover { color: var(--adg-blue-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--light { background: var(--adg-light); }
.section--dark { background: linear-gradient(135deg, var(--adg-black), var(--adg-navy)); color: var(--adg-white); }
.eyebrow { color: var(--adg-blue); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.section-title { margin: 10px 0 16px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; }
.section-intro { max-width: 760px; color: var(--adg-slate); font-size: 1.08rem; }
.section--dark .section-intro { color: #c7d1dc; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(7,21,35,.08); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; min-width: 210px; }
.custom-logo-link img { width: 185px; max-height: 72px; object-fit: contain; object-position: left center; }
.site-title { margin: 0; font-weight: 900; letter-spacing: -.03em; }
.site-title a { color: var(--adg-navy); }
.main-navigation ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--adg-navy); font-weight: 700; font-size: .95rem; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--adg-blue); }
.nav-cta > a { display: inline-flex; padding: 12px 18px; background: var(--adg-blue); color: white !important; border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: var(--adg-navy); color: white; border-radius: 10px; padding: 10px 13px; cursor: pointer; }

.hero { overflow: hidden; position: relative; padding: 74px 0 86px; background: radial-gradient(circle at 78% 35%, rgba(11,86,179,.16), transparent 34%), linear-gradient(145deg, #ffffff 0%, #f5f8fc 62%, #eef3f9 100%); }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -38%; width: 620px; height: 620px; border: 1px solid rgba(11,86,179,.15); border-radius: 50%; box-shadow: 0 0 0 55px rgba(11,86,179,.04), 0 0 0 110px rgba(11,86,179,.025); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.hero h1 { margin: 12px 0 22px; font-size: clamp(3rem, 7vw, 5.65rem); line-height: .96; letter-spacing: -.055em; }
.hero h1 span { color: var(--adg-blue); }
.hero-copy { max-width: 690px; font-size: 1.18rem; color: #425264; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; cursor: pointer; transition: .2s ease; }
.button--primary { background: var(--adg-blue); color: white; box-shadow: 0 12px 28px rgba(11,86,179,.24); }
.button--primary:hover { transform: translateY(-2px); background: var(--adg-blue-dark); color: white; }
.button--secondary { color: var(--adg-navy); border-color: var(--adg-border); background: white; }
.button--secondary:hover { border-color: var(--adg-blue); color: var(--adg-blue); }
.hero-logo-card { position: relative; padding: 20px; border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-lg); border: 1px solid rgba(7,21,35,.08); }
.hero-logo-card img { display: block; width: 100%; }
.trust-strip { border-top: 1px solid var(--adg-border); border-bottom: 1px solid var(--adg-border); background: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px; text-align: center; font-weight: 800; border-right: 1px solid var(--adg-border); }
.trust-item:last-child { border-right: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.card { padding: 30px; background: white; border: 1px solid var(--adg-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card h3 { margin: 16px 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--adg-slate); }
.icon-box { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: #eaf2fc; color: var(--adg-blue); font-size: 1.35rem; font-weight: 900; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 42px; counter-reset: steps; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: white; border: 1px solid var(--adg-border); }
.step::before { counter-increment: steps; content: counter(steps); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--adg-blue); color: white; font-weight: 900; margin-bottom: 18px; }
.step h3 { margin: 0 0 7px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .94rem; color: var(--adg-slate); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; }
.feature-list li { position: relative; padding: 12px 0 12px 34px; font-weight: 700; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--adg-blue); font-weight: 900; }
.guard-visual { min-height: 440px; display: grid; place-items: center; border-radius: 28px; background: radial-gradient(circle, rgba(11,86,179,.20), transparent 60%), linear-gradient(145deg, #0c1724, #02070d); overflow: hidden; box-shadow: var(--shadow-lg); }
.guard-visual img { width: 90%; max-height: 480px; object-fit: contain; }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 44px; background: linear-gradient(135deg, var(--adg-blue-dark), var(--adg-blue)); color: white; border-radius: 26px; box-shadow: var(--shadow-lg); }
.cta-panel h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.cta-panel p { margin: 0; color: #d8e7fa; }
.cta-panel .button { background: white; color: var(--adg-blue-dark); }

.page-hero { padding: 76px 0 58px; background: linear-gradient(135deg, var(--adg-black), var(--adg-navy)); color: white; }
.page-hero h1 { margin: 8px 0 10px; font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.page-hero p { max-width: 760px; color: #c7d3df; font-size: 1.08rem; }
.page-content { padding: 70px 0; }
.prose { max-width: 860px; }
.prose h2, .prose h3 { line-height: 1.2; }
.prose h2 { margin-top: 42px; font-size: 2rem; }

.form-wrap { max-width: 900px; margin: 0 auto; padding: 36px; border: 1px solid var(--adg-border); border-radius: 24px; box-shadow: var(--shadow-sm); background: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #cbd5df; border-radius: 10px; padding: 13px 14px; background: white; color: var(--adg-navy); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(11,86,179,.14); border-color: var(--adg-blue); }
.form-field textarea { min-height: 145px; resize: vertical; }
.form-note { color: var(--adg-slate); font-size: .9rem; }
.notice { margin-bottom: 24px; padding: 14px 18px; border-radius: 10px; font-weight: 700; }
.notice--success { color: var(--adg-success); background: #e8f6ef; border: 1px solid #b9e3cc; }
.notice--error { color: var(--adg-danger); background: #faecec; border: 1px solid #efc6c6; }

.site-footer { background: #060d15; color: #c5d0da; padding: 62px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-logo { width: 220px; background: white; border-radius: 14px; padding: 8px; }
.site-footer h3 { color: white; margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: #c5d0da; }
.site-footer a:hover { color: white; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #8e9ba8; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation { position: absolute; top: 86px; left: 0; right: 0; display: none; padding: 20px; background: white; border-bottom: 1px solid var(--adg-border); box-shadow: var(--shadow-sm); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .main-navigation a { display: block; padding: 10px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-logo-card { max-width: 620px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--adg-border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 62px 0; }
  .hero { padding: 52px 0 64px; }
  .hero h1 { font-size: 3.1rem; }
  .card-grid, .steps, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--adg-border); }
  .cta-panel { grid-template-columns: 1fr; padding: 30px; }
  .form-wrap { padding: 24px; }
  .footer-bottom { flex-direction: column; }
}
