/* =============================================================
   QuietAirNest — pages.css
   Page-hero · Legal · About · Contact
   Styles used by 2+ non-index pages but not site-wide enough
   for components.css
   ============================================================= */

/* ===================================================
   SHARED PAGE HERO
   Used by: contact, privacy-policy, disclosure, terms
   =================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.page-hero-subtitle {
  color: #bdbdbd;
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 auto;
}

/* Decorative background blobs */
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--accent);
}
.shape-1 { width: 420px; height: 420px; top: -140px; right: -120px; }
.shape-2 { width: 260px; height: 260px; bottom: -100px; left: -120px; }

/* ===================================================
   SHARED CARD
   Used by: contact, privacy-policy, disclosure, terms
   =================================================== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ===================================================
   LEGAL PAGES
   Used by: privacy-policy, disclosure, terms
   =================================================== */
.legal-section    { padding: 60px 0 80px; }
.legal-container  { max-width: 920px; margin: 0 auto; }
.legal-section .card { padding: 28px; }

/* terms.html uses .legal-content instead of .card */
.legal-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px 30px;
}

/* Typography inside legal cards */
.legal-section h2,
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  margin-top: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.legal-section h2:first-of-type,
.legal-content h2:first-child { margin-top: 0; }

.legal-content h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
  margin-top: 34px;
}

.legal-section h3,
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: 8px;
}
.legal-section p,
.legal-content p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.98rem;
}
.legal-section ul,
.legal-section ol,
.legal-content ul,
.legal-content ol {
  padding-left: 18px;
  margin: 10px 0 16px;
}
.legal-section li,
.legal-content li {
  color: var(--text-light);
  margin: 8px 0;
  line-height: 1.75;
}

/* Callout / highlight boxes */
.notice,
.disclosure-highlight,
.note-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}
.notice p,
.disclosure-highlight p { color: var(--text); font-size: 1rem; }
.note-box { color: var(--text); }

/* ===================================================
   ABOUT PAGE
   =================================================== */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.about-hero p {
  max-width: 740px;
  margin: auto;
  color: #cfcfcf;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-section {
  background: var(--bg-white);
  padding: 70px 0;
}
.about-section h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 50px;
  margin-bottom: 16px;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  letter-spacing: -0.2px;
}
.about-section h2:first-child { margin-top: 0; }
.about-section p {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.9;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.value-card {
  background: var(--bg);
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.value-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: -0.2px;
}
.value-card p { margin: 0; color: var(--text-light); }

.about-disclosure {
  background: var(--accent-light);
  padding: 28px;
  border-radius: 14px;
  margin-top: 30px;
  border-left: 5px solid var(--accent);
  color: #2b2b2b;
  line-height: 1.9;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.section { padding: 60px 0 70px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.contact-form-wrap { padding: 28px; }
.contact-form-wrap h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.contact-form-wrap p {
  color: var(--text-light);
  margin-bottom: 22px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group                 { display: flex; flex-direction: column; gap: 7px; }
.form-group label           { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,153,0,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.privacy-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.55;
}

.contact-info         { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card    { padding: 22px; }
.contact-info-card:hover { border-color: var(--accent); }
.contact-info-icon    { font-size: 1.8rem; margin-bottom: 10px; }
.contact-info-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}
.contact-info-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  padding: 8px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* Contact FAQ */
.faq-section   { padding: 0 0 80px; }
.section-header { text-align: center; margin-bottom: 34px; }
.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.4px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.faq-item         { padding: 22px; }
.faq-item h3      { font-size: 1rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.faq-item p       { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* ===================================================
   INDEX PAGE (homepage)
   =================================================== */

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 70px 0 55px;
  position: relative;
  overflow: hidden;
}
.hero-content  { position: relative; z-index: 2; max-width: 760px; }
.hero-title    { font-size: 2.8rem; font-weight: 900; color: #fff; line-height: 1.12; margin-bottom: 14px; }
.hero-subtitle { font-size: 1.05rem; color: #b8b8b8; margin-bottom: 22px; line-height: 1.75; }
.hero-cta      { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero shapes — scoped to .hero to avoid overriding .page-hero shapes */
.hero .hero-shapes .shape { opacity: 0.06; }
.hero .shape-1 { width: 520px; height: 520px; top: -180px; right: -140px; }
.hero .shape-2 { width: 320px; height: 320px; bottom: -110px; right: 220px; }
.hero .shape-3 { width: 220px; height: 220px; bottom: 40px; left: -90px; }

/* ── Trust bar ─────────────────────────────────────── */
.trust-bar {
  background: var(--bg-white);
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: left;
}
.trust-icon {
  font-size: 1.7rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.trust-item strong { font-size: .95rem; }
.trust-item p      { font-size: .82rem; color: var(--text-light); }

/* ── Products section ──────────────────────────────── */
.products-section { padding: 64px 0 72px; }

/* section-header/title differ from the contact FAQ values — scoped to avoid conflicts */
.products-section .section-header { margin-bottom: 26px; }
.products-section .section-title  { font-size: 2.05rem; margin-bottom: 10px; }
.section-subtitle { font-size: 1.02rem; color: var(--text-light); max-width: 720px; margin: 0 auto; }

/* ── Filter bar ────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 18px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 22px;
  border: 2px solid var(--border);
  background: var(--bg-white);
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  color: var(--text);
  min-height: 42px;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary);
}

.resultsline {
  text-align: center;
  color: var(--text-light);
  font-size: .92rem;
  margin-bottom: 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

/* ── Product card ──────────────────────────────────── */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
  animation: fadeInUp .5s ease forwards;
  opacity: 0;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.p-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-image-wrap {
  position: relative;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 250px;
  overflow: hidden;
}
.product-image-wrap img {
  max-height: 220px;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }

.product-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-rating  { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stars           { display: flex; gap: 1px; }
.star            { color: var(--star); font-size: 1rem; }
.rating-score    { font-size: .92rem; font-weight: 900; }
.rating-count    { font-size: .84rem; color: var(--text-light); }

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.product-price           { font-size: 1.6rem; font-weight: 900; color: var(--primary); letter-spacing: -.3px; }
.product-price .currency { font-size: .95rem; vertical-align: super; }

.mini-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  background: var(--accent-light);
  color: #8a4e00;
  border: 1px solid rgba(255,153,0,.25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.product-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  font-size: .98rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  margin-top: auto;
}
.product-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 15px rgba(255,153,0,.35);
}

/* ── Card entry animation ──────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(1)  { animation-delay: .05s; }
.product-card:nth-child(2)  { animation-delay: .10s; }
.product-card:nth-child(3)  { animation-delay: .15s; }
.product-card:nth-child(4)  { animation-delay: .20s; }
.product-card:nth-child(5)  { animation-delay: .25s; }
.product-card:nth-child(6)  { animation-delay: .30s; }
.product-card:nth-child(7)  { animation-delay: .35s; }
.product-card:nth-child(8)  { animation-delay: .40s; }
.product-card:nth-child(9)  { animation-delay: .45s; }
.product-card:nth-child(10) { animation-delay: .50s; }

/* ===== RESPONSIVE — pages ===== */
@media (max-width: 1024px) {
  .contact-grid    { grid-template-columns: 1fr; gap: 18px; }
  .faq-grid        { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero-title { font-size: 1.9rem; }
  .page-hero       { padding: 54px 0 42px; }
  .about-hero h1   { font-size: 2rem; }
  .values          { grid-template-columns: 1fr; }
  .card            { padding: 22px; }
  .legal-content   { padding: 26px 18px; }
  /* index */
  .hero                            { padding: 54px 0 44px; }
  .hero-title                      { font-size: 2.15rem; }
  .products-section .section-title { font-size: 1.6rem; }
  .products-grid                   { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .trust-item                      { flex-direction: column; text-align: center; gap: 8px; }
}
@media (max-width: 480px) {
  .hero-title             { font-size: 1.85rem; }
  .logo-badge             { width: 42px; height: 42px; }
  .logo-title             { font-size: 1.1rem; }
  .product-image-wrap     { min-height: 210px; padding: 16px; }
  .product-image-wrap img { max-height: 180px; }
}





/* ===================================================
   INDEX PAGE SAFETY FIXES
   Small fixes to ensure homepage styles always win
   =================================================== */

.products-section .section-header {
  text-align: center;
}

.hero .hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
}

.product-image-wrap {
  text-decoration: none;
}

.product-body > a {
  text-decoration: none;
}

.product-title:hover {
  color: var(--accent-hover);
}

.product-cta {
  text-decoration: none;
}

.product-card[style*="display: none"] {
  animation: none !important;
}










/* ================================
   INDEX V2 IMPROVEMENTS
   ================================ */

.why-trust-home {
  padding: 28px 0 10px;
  background: var(--bg);
}

.why-trust-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.why-trust-box h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.why-trust-box p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.98rem;
}

.quick-picks {
  padding: 26px 0 10px;
}

.quick-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-pick-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-align: left;
  transition: var(--transition);
}

.quick-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.quick-pick-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: #8a4e00;
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-pick-card h3 {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.quick-pick-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.94rem;
}

.homepage-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.homepage-faq {
  padding: 10px 0 80px;
}

.product-title:hover {
  color: var(--accent-hover);
}

.product-image-wrap,
.product-body > a,
.product-cta {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .quick-picks-grid {
    grid-template-columns: 1fr;
  }
}