/*
Theme Name: OhNoMyCar
Theme URI: https://ohnomycar.com
Author: OhNoMyCar Team
Author URI: https://ohnomycar.com
Description: A clean, credible consumer advocacy theme for auto insurance claims help. Built for people who've been in accidents, had cars totaled or stolen, or been denied warranty claims.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ohnomycar
*/

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1a2a4a;
  --navy-light: #243757;
  --navy-dark: #0f1a2e;
  --red: #c0392b;
  --red-hover: #a93226;
  --red-light: #fef0ee;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #f0f2f5;
  --mid-gray: #e2e5ea;
  --text-dark: #1a2a4a;
  --text-body: #4a5568;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e5ea;
  --border-light: #f0f2f5;
  --green: #27ae60;
  --green-light: #e8f5e9;
  --amber: #e67e22;
  --amber-light: #fef3e7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --content-width: 800px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }
.section-gray { background: var(--off-white); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.5px;
}

.logo-text {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}

.main-nav a:hover { color: white; background: rgba(255,255,255,0.08); }
.main-nav a.active { color: white; background: rgba(255,255,255,0.12); }

.nav-cta {
  background: var(--red) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}

.nav-cta:hover { background: var(--red-hover) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ===== ALERT BANNER ===== */
.alert-banner {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
}

.alert-banner a { color: white; text-decoration: underline; }

/* ===== HERO ===== */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: white;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 700px;
  margin: 0 auto 16px;
  color: var(--navy);
  line-height: 1.2;
}

.hero p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-hover); color: white; }

.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-light); color: white; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); background: var(--off-white); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.2s;
}

.card:hover { box-shadow: var(--shadow-md); border-color: #ccd; }

.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== SITUATION CARDS (Homepage) ===== */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.situation-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}

.situation-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.situation-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.situation-card h3 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 8px;
}

.situation-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* ===== FEATURE CARDS ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.feature-card .card-label { margin-bottom: 6px; }
.feature-card .card-title { font-size: 15px; margin-bottom: 6px; }

/* ===== EMAIL CAPTURE ===== */
.email-capture {
  background: var(--amber-light);
  border: 1px solid #f5c98a;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.email-capture-icon { font-size: 28px; flex-shrink: 0; }

.email-capture-content { flex: 1; }
.email-capture-content h4 { font-size: 15px; margin-bottom: 2px; }
.email-capture-content p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--off-white);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-check {
  color: var(--green);
  font-weight: 700;
}

/* ===== WARNING/TIP BOXES ===== */
.warning-box {
  background: #fff3e0;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.warning-box strong { color: #e65100; }

.tip-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.tip-box strong { color: #2e7d32; }

.danger-box {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.danger-box strong { color: var(--red); }

/* ===== STEP SECTIONS ===== */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.step-header h2 { margin-bottom: 0; font-size: 1.5rem; }
.step-header h3 { margin-bottom: 0; }

/* ===== CONTENT PAGES ===== */
.page-hero {
  background: var(--navy);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: #94a3b8;
  font-size: 16px;
  margin: 0;
}

.page-content {
  padding: 48px 0;
}

.page-content h2 {
  color: var(--red);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.page-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.page-content ul, .page-content ol {
  margin: 0 0 16px 20px;
}

.page-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* ===== CHECKLIST ===== */
.checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-size: 16px;
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.25s;
}

.product-card:hover { box-shadow: var(--shadow-lg); }

.product-card.featured {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  position: relative;
}

.product-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 12px 0;
}

.product-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-light);
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}

.product-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-card-image {
  height: 180px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card-content { padding: 20px; }

.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-content h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
}

.blog-card-content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* ===== SIDEBAR ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 12px;
}

.sidebar-cta {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-cta h4 { color: white; font-size: 16px; margin-bottom: 8px; }
.sidebar-cta p { color: #94a3b8; font-size: 13px; margin-bottom: 16px; }

/* ===== TABLE ===== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.styled-table th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.styled-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.styled-table tr:nth-child(even) { background: var(--off-white); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; }

.footer-col h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-disclaimer {
  font-size: 12px;
  color: #64748b;
  max-width: 640px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: #64748b;
  font-size: 13px;
}

.footer-social a:hover { color: white; }

/* ===== ABOUT PAGE ===== */
.about-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--red);
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.6;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,42,74,0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 16px;
    gap: 4px;
  }
  .main-nav.open a { padding: 12px 16px; }
  .hero h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .situation-grid { grid-template-columns: 1fr; }
  .email-capture { flex-direction: column; text-align: center; }
  .section { padding: 40px 0; }
  .page-hero h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}
