/* =============================================
   WarrantyAccess.com — Global Stylesheet
   Colors: Navy #1e3a5f | White #ffffff | Green #28a745
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1e3a5f;
  --navy-dark: #142947;
  --navy-light: #2a4f80;
  --green:  #28a745;
  --green-dark: #1e7e34;
  --white:  #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --red: #dc3545;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--gray-600); }
a  { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy); }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  background: rgba(30,58,95,0.08);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

/* ── Navigation ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
}
.logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); text-decoration: none; }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); text-decoration: none; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--gray-800); }
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--gray-400); margin-top: 4px; }
.required { color: var(--red); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a3d6b 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") repeat;
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p   { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
}

/* ── Shield Logo SVG ── */
.shield-icon { display: inline-block; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }

/* ── Coverage Grid ── */
.coverage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.coverage-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.coverage-icon.covered   { background: #d4edda; color: var(--green); }
.coverage-icon.uncovered { background: #f8d7da; color: var(--red); }

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--navy-light); }
.faq-q .icon { font-size: 1.3rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-a p { padding-bottom: 20px; }
.faq-a.open { max-height: 300px; }

/* ── Alert / Banner ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.alert-info    { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }
.alert-warning { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; }

/* ── Popup / Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: scale(0.9);
  transition: transform 0.3s;
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal h2 { font-size: 1.6rem; margin-bottom: 12px; }
.modal p  { margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--gray-400);
}
.stars { font-size: 2.5rem; margin-bottom: 16px; }
.review-buttons { display: flex; flex-direction: column; gap: 12px; }
.review-link {
  display: block;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  color: var(--gray-800);
  transition: all 0.2s;
  text-decoration: none;
}
.review-link:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; background: var(--gray-50); }
.review-link.amazon { border-color: #ff9900; }
.review-link.amazon:hover { background: #fff8ec; color: #b36b00; }
.review-link.newegg { border-color: #ff6600; }
.review-link.newegg:hover { background: #fff4ec; color: #b34900; }
.review-link.walmart { border-color: #0071ce; }
.review-link.walmart:hover { background: #f0f7ff; color: #005ba1; }
.review-link.ebay { border-color: #e53238; }
.review-link.ebay:hover { background: #fff0f0; color: #a8262b; }

/* ── Footer ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
footer ul li a:hover { color: var(--white); text-decoration: none; }
.footer-brand { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* ── Success State ── */
.success-box {
  text-align: center;
  padding: 48px 32px;
}
.success-icon {
  width: 72px; height: 72px;
  background: #d4edda;
  color: var(--green);
  border-radius: 50%;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

/* ── Lookup result ── */
.lookup-result {
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 28px;
  background: #f0fdf4;
  display: none;
}
.lookup-result.show { display: block; }
.lookup-field { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #c3e6cb; }
.lookup-field:last-child { border-bottom: none; }
.lookup-label { font-weight: 600; color: var(--gray-800); }
.lookup-value { color: var(--gray-600); }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; }
td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-50); }

/* ── Utility ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--gray-600); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .card { padding: 24px; }
}
