/* =============================================
   BestNoiseCancelingHeadphones.com
   Main Stylesheet
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap');

/* --- CSS Variables --- */
:root {
  --navy: #0d1b4b;
  --navy-dark: #091236;
  --navy-light: #1a2f6e;
  --orange: #ff6b35;
  --orange-hover: #ff8552;
  --bg: #f8f9ff;
  --bg-card: #ffffff;
  --bg-tag: #eef0fa;
  --border: #e0e4f0;
  --border-tag: #c5cce8;
  --text-primary: #0d1b4b;
  --text-secondary: #555;
  --text-muted: #888;
  --text-faint: #bbb;
  --stars: #f7a94f;
  --green-bg: #e6f9f1;
  --green-text: #0a5c38;
  --red-bg: #ffeaea;
  --red-text: #b00000;
  --blue-bg: #e8eeff;
  --amber-bg: #fff3e0;
  --amber-text: #c45000;
  --gray-bg: #f1f0eb;
  --gray-text: #444;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(13,27,75,0.08);
  --shadow-md: 0 4px 12px rgba(13,27,75,0.1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrap {
  padding: 32px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Navigation --- */
.nav {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-brand {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand svg {
  width: 20px;
  height: 20px;
}

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

.nav-link {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  padding: 56px 20px 48px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.62);
  margin: 0 auto 24px;
  line-height: 1.7;
  max-width: 500px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, transform 0.1s;
}

.hero-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* --- Section Labels --- */
.section-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}

.section-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.badge-top    { background: var(--amber-bg); color: var(--amber-text); }
.badge-sale   { background: var(--red-bg); color: var(--red-text); }
.badge-val    { background: var(--green-bg); color: var(--green-text); }
.badge-work   { background: var(--blue-bg); color: var(--navy); }
.badge-choice { background: var(--gray-bg); color: var(--gray-text); }

/* --- Stars --- */
.stars {
  color: var(--stars);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* --- Category Tags --- */
.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 10px;
}

.tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 0.5px solid var(--border-tag);
  color: var(--navy);
  background: var(--bg-tag);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* --- Buttons --- */
.btn-orange {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, transform 0.1s;
  padding: 10px 20px;
}

.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-orange-full {
  width: 100%;
  padding: 11px 0;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-top: auto;
  transition: background 0.15s, transform 0.1s;
}

.btn-orange-full:hover {
  background: var(--orange-hover);
}

.btn-outline {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* --- Featured Product Card --- */
.featured-card {
  background: var(--bg-card);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: start;
}

.product-img-lg {
  background: #f0f2fa;
  border-radius: var(--radius-md);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-lg .placeholder-icon {
  font-size: 72px;
  color: #8890bb;
}

.product-brand {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-reviews {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.product-price .list-price {
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.product-verdict {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin: 6px 0 14px;
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.product-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

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

.product-img-sm {
  background: #f0f2fa;
  border-radius: var(--radius-md);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  color: #8890bb;
}

.product-img-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-name-sm {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 4px;
}

.product-price-sm {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.product-verdict-sm {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.55;
  margin: 4px 0 10px;
}

/* --- View All Bar --- */
.view-all-bar {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.view-all-bar span {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Category Browse --- */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.browse-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.browse-card:hover {
  border-color: var(--navy);
  background: #f0f3ff;
}

.browse-icon {
  font-size: 22px;
  color: var(--navy);
  flex-shrink: 0;
}

.browse-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

/* --- Checklist --- */
.checklist-box {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin-top: 14px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-icon {
  color: var(--navy);
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.check-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.check-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.5;
}

/* --- FAQ --- */
.faq-list {
  margin-bottom: 28px;
}

.faq-item {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.faq-chevron {
  font-size: 18px;
  color: var(--navy);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-chevron.open {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 0.5px solid var(--border);
  padding-top: 12px;
}

.faq-answer.open {
  display: block;
}

/* --- Affiliate Disclosure --- */
.disclosure {
  background: #fff8f0;
  border: 0.5px solid #ffd4b8;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--amber-text);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  padding: 48px 20px 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.footer-brand-col {
  text-align: center;
}

.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  text-align: center;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-link {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 7px;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #fff;
}

.footer-disclosure {
  max-width: 1100px;
  margin: 0 auto 16px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.footer-disclosure-inner {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.footer-copyright {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding-top: 14px;
}

.footer-copyright p {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .featured-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: 1fr 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .browse-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
