/* ========================================
   CheapTents.com — Shared Stylesheet
   ======================================== */

/* --- Google Fonts loaded in HTML <head> --- */
/* Fraunces (serif headlines) + DM Sans (sans body) */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #3b2f2f;
  background-color: #faf6f1;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #2e6b4f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover {
  color: #c95d2e;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  color: #2a2118;
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.1rem;
}

ul, ol {
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* --- Layout --- */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header --- */
.site-header {
  background: #1e3a2b;
  color: #faf6f1;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #faf6f1;
  text-decoration: none;
}

.site-logo span {
  color: #e8854a;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #faf6f1;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: #d4cfc8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #e8854a;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e3a2b;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.25rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 1rem;
    display: block;
    padding: 0.35rem 0;
  }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1e3a2b 0%, #2e6b4f 100%);
  color: #faf6f1;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}

.hero h1 {
  color: #faf6f1;
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #c9d6cf;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.hero .updated {
  font-size: 0.82rem;
  color: #9bb3a7;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
}

/* --- Affiliate Disclosure Banner --- */
.disclosure-banner {
  background: #eee8de;
  border-left: 4px solid #d4a45a;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #6b5c4a;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

.disclosure-banner a {
  color: #6b5c4a;
  font-weight: 600;
}

/* --- Quick Picks Section --- */
.quick-picks {
  margin: 2rem 0;
}

.quick-pick-card {
  background: #fff;
  border: 1px solid #e4ddd3;
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.quick-pick-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.quick-pick-badge {
  background: #2e6b4f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}

.quick-pick-badge--orange {
  background: #c95d2e;
}

.quick-pick-info {
  flex: 1;
  min-width: 200px;
}

.quick-pick-info h3 {
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
}

.quick-pick-info .verdict {
  font-size: 0.9rem;
  color: #6b5c4a;
  margin: 0;
}

.quick-pick-price {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2e6b4f;
  white-space: nowrap;
}

.quick-pick-cta {
  flex-shrink: 0;
}

/* --- CTA Button --- */
.btn-cta {
  display: inline-block;
  background: #c95d2e;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(201,93,46,0.25);
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: #b44e23;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,93,46,0.35);
}

.btn-cta .prime-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.btn-cta--small {
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
}

/* --- Comparison Table --- */
.comparison-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.comparison-table thead {
  background: #1e3a2b;
  color: #faf6f1;
}

.comparison-table th {
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #ede8e0;
  vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: #fdf9f4;
}

.comparison-table .tent-name {
  font-weight: 700;
  color: #2a2118;
  white-space: nowrap;
}

.comparison-table .best-for {
  font-size: 0.78rem;
  color: #6b5c4a;
  font-style: italic;
}

/* --- Product Review Card --- */
.product-review {
  background: #fff;
  border: 1px solid #e4ddd3;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin: 2.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.product-review-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.product-review-header .badge {
  background: #2e6b4f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
}

.product-review-header .badge--orange {
  background: #c95d2e;
}

.product-review h2 {
  margin-top: 0;
  font-size: 1.55rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: #6b5c4a;
}

.product-meta dt {
  font-weight: 700;
  color: #3b2f2f;
  display: inline;
}

.product-meta dd {
  display: inline;
  margin: 0;
}

.product-meta .meta-item {
  display: flex;
  gap: 0.3rem;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: #f7f3ed;
  border-radius: 8px;
}

.spec-item {
  font-size: 0.88rem;
}

.spec-item .spec-label {
  font-weight: 700;
  color: #6b5c4a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-item .spec-value {
  color: #2a2118;
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

@media (max-width: 550px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros h4,
.cons h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.pros h4 {
  color: #2e6b4f;
}

.cons h4 {
  color: #b44e23;
}

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li,
.cons li {
  padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
  font-size: 0.92rem;
}

.pros li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2e6b4f;
  font-weight: 700;
}

.cons li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: #b44e23;
  font-weight: 700;
}

.product-review .cta-block {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ede8e0;
}

.cta-block .price-note {
  font-size: 0.8rem;
  color: #9b8e7e;
  margin-top: 0.4rem;
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  border-top: 2px solid #e4ddd3;
  margin: 3rem 0;
}

/* --- FAQ Accordion --- */
.faq-section {
  margin: 2.5rem 0;
}

.faq-section details {
  border: 1px solid #e4ddd3;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  background: #fff;
  overflow: hidden;
}

.faq-section summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: #2a2118;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  font-size: 1.3rem;
  color: #9b8e7e;
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-section details[open] summary::after {
  content: "\2212";
}

.faq-section .faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.94rem;
  color: #5a4e42;
}

/* --- Subpage Content --- */
.page-content {
  padding: 2.5rem 0 3rem;
}

.page-content h1 {
  margin-bottom: 0.5rem;
}

.page-content .page-meta {
  font-size: 0.85rem;
  color: #9b8e7e;
  margin-bottom: 2rem;
}

/* --- Internal Link Cards --- */
.related-links {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: #f0ebe3;
  border-radius: 10px;
}

.related-links h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-links li {
  margin-bottom: 0.4rem;
}

.related-links a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: #1e3a2b;
  color: #9bb3a7;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #c9d6cf;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #e8854a;
}

.footer-disclosure {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  line-height: 1.6;
  color: #7a9688;
}

.footer-disclosure p {
  margin-bottom: 0.5rem;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center {
  text-align: center;
}

/* --- Subpage Product Card (lighter version) --- */
.product-card-mini {
  background: #fff;
  border: 1px solid #e4ddd3;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.product-card-mini h3 {
  margin-top: 0;
}

.product-card-mini .pros-cons {
  margin: 0.75rem 0;
}

/* --- Buying Guide specific --- */
.tip-box {
  background: #e8f4ed;
  border-left: 4px solid #2e6b4f;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.tip-box strong {
  color: #2e6b4f;
}

/* --- About page --- */
.value-list {
  list-style: none;
  padding: 0;
}

.value-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

.value-list li::before {
  content: "\25B6";
  position: absolute;
  left: 0;
  color: #2e6b4f;
  font-size: 0.75rem;
  top: 0.65rem;
}

/* --- Legal Pages --- */
.legal-content {
  padding: 2.5rem 0 3rem;
}

.legal-content h1 {
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.legal-content p,
.legal-content ul {
  font-size: 0.94rem;
  color: #5a4e42;
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .btn-cta, .nav-toggle {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
