/* ============================================================
   UserQuote.com — Main Stylesheet
   Modern, mobile-first redesign
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #E8380D;
  --brand-dark:   #B82B08;
  --brand-light:  #fff1ee;
  --dark:         #18160F;
  --dark-2:       #2a2720;
  --mid:          #5a5650;
  --soft:         #f6f4f0;
  --white:        #ffffff;
  --border:       rgba(0,0,0,0.09);
  --border-strong:rgba(0,0,0,0.18);
  --save-bg:      #e8f7ee;
  --save-txt:     #1a7a40;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 18px rgba(0,0,0,0.10);
  --ff-head:      'Syne', sans-serif;
  --ff-body:      'DM Sans', sans-serif;
  --max-w:        1080px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--soft);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--ff-body); }

/* ── UTILITY ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── TOP BAR ──────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: var(--brand); }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; gap: 1rem; }
.topbar-links a { color: #aaa; }

/* ── SITE HEADER / NAV ────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.5px;
  color: var(--brand);
}
.logo span { color: var(--dark); }
.logo em { font-style: normal; font-size: 14px; color: var(--mid); font-weight: 400; margin-left: 1px; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--mid); transition: color .15s; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
}
.main-nav a.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .2s;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--dark-2);
  padding: 4rem 1.25rem 3.5rem;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(232,56,13,0.18);
  color: #ff8c72;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(232,56,13,0.3);
}
.hero-title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 52px;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.hero-title .accent { color: var(--brand); }
.hero-sub {
  color: #a8a49e;
  font-size: 16px;
  max-width: 440px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

/* search bar */
.search-bar {
  display: flex;
  max-width: 500px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(232,56,13,0.25);
  margin-bottom: 2rem;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--ff-body);
  color: var(--dark);
  outline: none;
}
.search-bar button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
}
.search-bar button:hover { background: var(--brand-dark); }

/* stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-n { font-family: var(--ff-head); font-size: 24px; font-weight: 700; color: #fff; }
.stat-l { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

/* ── CATEGORIES ───────────────────────────────────── */
.cats-section { padding: 1.5rem 0 0.75rem; }
.cats-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  transition: all .15s;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── DEALS SECTION ────────────────────────────────── */
.deals-section { padding: 2rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.section-title { font-family: var(--ff-head); font-weight: 700; font-size: 22px; }
.see-all { font-size: 13px; color: var(--brand); font-weight: 500; }
.see-all:hover { text-decoration: underline; }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.deal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  position: relative;
  color: var(--dark);
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deal-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 20px;
  z-index: 1;
}
.deal-img {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  background: var(--soft);
}
.deal-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.deal-tag {
  font-size: 10px;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  align-self: flex-start;
}
.deal-store { font-size: 11px; color: var(--mid); }
.deal-name { font-size: 13px; font-weight: 500; line-height: 1.4; flex: 1; }
.deal-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.deal-pricing { display: flex; flex-direction: column; }
.deal-price { font-family: var(--ff-head); font-size: 20px; font-weight: 700; color: var(--brand); line-height: 1; }
.deal-orig { font-size: 11.5px; color: #aaa; text-decoration: line-through; }
.deal-save { font-size: 11px; font-weight: 600; background: var(--save-bg); color: var(--save-txt); padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.deal-hidden { display: none !important; }

/* ── CTA BAND ─────────────────────────────────────── */
.cta-band { background: var(--dark); padding: 2.5rem 1.25rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-title { font-family: var(--ff-head); font-size: 22px; font-weight: 700; color: #fff; }
.cta-sub { color: #888; font-size: 14px; margin-top: 4px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--brand-dark); }

/* ── TOOLS ────────────────────────────────────────── */
.tools-section { padding: 2.5rem 0 3rem; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow .15s, transform .15s;
  color: var(--dark);
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tool-name { font-family: var(--ff-head); font-size: 15px; font-weight: 700; }
.tool-desc { font-size: 12.5px; color: var(--mid); margin-top: 4px; line-height: 1.5; }

/* ── SITE FOOTER ──────────────────────────────────── */
.site-footer { background: var(--dark-2); color: #aaa; padding: 3rem 1.25rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 0.75rem; max-width: 260px; }
.footer-logo { font-family: var(--ff-head); font-size: 20px; font-weight: 800; color: var(--brand); }
.footer-logo span { color: #fff; }
.footer-logo em { font-style: normal; font-size: 13px; color: #666; }
.footer-col h4 { font-family: var(--ff-head); font-size: 14px; color: #fff; margin-bottom: 0.75rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: #888; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { padding: 1rem 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  color: #555;
}

/* ── PAGE: SUBMIT DEAL ────────────────────────────── */
.page-hero {
  background: var(--dark-2);
  padding: 2.5rem 1.25rem;
  color: #fff;
}
.page-hero h1 { font-family: var(--ff-head); font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.page-hero p { color: #aaa; margin-top: 6px; font-size: 15px; }
.form-section { padding: 2.5rem 0 3rem; }
.deal-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 640px;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--ff-body);
  color: var(--dark);
  background: #fafafa;
  outline: none;
  transition: border-color .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--brand); background: var(--white); }
.form-row textarea { min-height: 100px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background .15s;
}
.form-submit:hover { background: var(--brand-dark); }
.form-note { font-size: 12px; color: var(--mid); margin-top: 0.75rem; }

/* ── PAGE: SEARCH ─────────────────────────────────── */
.search-results-header { padding: 1.5rem 0 0.5rem; }
.search-results-header h2 { font-family: var(--ff-head); font-size: 20px; font-weight: 700; }
.search-results-header p { font-size: 13px; color: var(--mid); margin-top: 3px; }
.no-results { padding: 3rem 0; text-align: center; color: var(--mid); font-size: 15px; }

/* ── PAGE: ABOUT ──────────────────────────────────── */
.about-section { padding: 3rem 0; max-width: 680px; }
.about-section h2 { font-family: var(--ff-head); font-size: 20px; font-weight: 700; margin-top: 2rem; margin-bottom: 0.5rem; }
.about-section p { font-size: 15px; line-height: 1.75; color: var(--mid); margin-bottom: 1rem; }

/* ── ALERTS ───────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 1rem; }
.alert-success { background: #e6f8ee; color: #1a7a40; border: 1px solid #aee3c0; }
.alert-error   { background: var(--brand-light); color: #b82b08; border: 1px solid #f5b3a3; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 38px; letter-spacing: -0.5px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; gap: 1rem; z-index: 99; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero-title { font-size: 30px; letter-spacing: -0.25px; line-height: 1.12; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .topbar-links { display: none; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}