/* ============================================
   SellBooksABQ.com — Custom Styles
   Color Palette: Deep green (#1a5632), cream (#faf8f2),
   charcoal (#1c1c1c), gold accent (#c9a227), warm gray (#6b7280)
   Fonts: Inter (body), Playfair Display (headings)
   ============================================ */

/* --- Base Resets & Typography --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1c1c1c;
  background: #faf8f2;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1c1c1c;
}

a { color: #1a5632; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #c9a227; }

img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* --- Glass Navigation --- */
.glass-nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.glass-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.glass-nav .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a5632;
  letter-spacing: -0.02em;
}
.glass-nav .logo span { color: #c9a227; }
.glass-nav .logo img { height: 36px; width: auto; display: inline-block; vertical-align: middle; margin-right: 6px; }

.glass-nav .nav-links { display: flex; align-items: center; gap: 2rem; }
.glass-nav .nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.glass-nav .nav-links a:hover { color: #1a5632; }

.nav-cta {
  background: #1a5632;
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-cta:hover { background: #143f26; color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 28px; height: 28px; stroke: #1c1c1c; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1c1c1c;
  border-bottom: 1px solid #f3f4f6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-menu a:hover { background: #f9fafb; color: #1a5632; }

@media (max-width: 768px) {
  .glass-nav .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #1a5632 0%, #0f3d22 60%, #0a2b18 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #c9a227;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: #b89220; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,162,39,0.3); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a5632;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-green:hover { background: #143f26; color: #fff; transform: translateY(-1px); }

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid #e8e5de;
  padding: 2rem;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #d4d0c8;
}
.card-icon {
  width: 48px;
  height: 48px;
  background: #f0ebe0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #1a5632;
}

/* --- Step Cards (How It Works) --- */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #1a5632;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* --- Trust Bar --- */
.trust-bar {
  background: #fff;
  border-top: 1px solid #e8e5de;
  border-bottom: 1px solid #e8e5de;
  padding: 2.5rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.trust-grid .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a5632;
}
.trust-grid .stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.7;
}
.section-header .accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: #c9a227;
  margin: 1rem auto 0;
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid #e8e5de;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c1c1c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
}
.faq-question:hover { color: #1a5632; }
.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  stroke: #6b7280;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}
.faq-answer p {
  color: #4b5563;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* --- Content Pages --- */
.page-hero {
  background: linear-gradient(135deg, #1a5632 0%, #0f3d22 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.content-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.content-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}
.content-body p {
  color: #374151;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.content-body ul, .content-body ol {
  color: #374151;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.content-body li { margin-bottom: 0.5rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #1a5632 0%, #0f3d22 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* --- Footer --- */
.site-footer {
  background: #1c1c1c;
  color: #9ca3af;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo img { height: 28px; width: auto; display: inline-block; vertical-align: middle; margin-right: 6px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; color: #9ca3af; }
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9a227;
  margin-bottom: 1.25rem;
}
.site-footer a { color: #d1d5db; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a5632;
  padding: 0.85rem 1.5rem;
  z-index: 90;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 60px; }
}

/* --- Blog Cards --- */
.blog-card {
  background: #fff;
  border: 1px solid #e8e5de;
  overflow: hidden;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.blog-card-body { padding: 1.5rem; }
.blog-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a5632;
  font-weight: 600;
}
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #1c1c1c;
  line-height: 1.3;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.4rem; }

/* --- Form --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1c1c1c;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #1a5632;
  box-shadow: 0 0 0 3px rgba(26,86,50,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* --- Utility --- */
.text-green { color: #1a5632; }
.text-gold { color: #c9a227; }
.text-muted { color: #6b7280; }
.bg-cream { background: #faf8f2; }
.bg-white { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
