/* =========================================================
   AirIntegratedCompass.com — main.css
   ========================================================= */

:root {
  --bg:             #fafaf8;
  --bg-alt:         #f0f7f7;
  --card:           #ffffff;
  --primary:        #0e7c7b;
  --primary-hover:  #0a5f5e;
  --primary-light:  #e0f2f1;
  --text-primary:   #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted:     #718096;
  --border:         #e2e8f0;
  --badge-gold:     #b7791f;
  --badge-gold-bg:  #fffbeb;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Source Sans 3', Arial, sans-serif;
  --radius:         6px;
  --shadow:         0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover:   0 6px 20px rgba(0,0,0,0.10);
  --max-width:      1100px;
  --max-width-text: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ── Layout containers ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section wrappers ── */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-white {
  background: var(--card);
}

/* ── Compliance Ribbon ── */
.compliance-ribbon {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f7fafc;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  text-align: center;
}

/* ── Header ── */
.site-header {
  background: var(--bg);
  padding: 3rem 1.5rem 2.5rem;
}

.site-header .inner {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.site-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.site-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.site-header .subheading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.header-rule {
  width: 80px;
  height: 2px;
  background: var(--primary);
  border: none;
  margin: 1.5rem 0;
}

.jump-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
}

.jump-link:hover {
  text-decoration: underline;
}

/* ── Typography ── */
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Drop cap */
.editorial-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary);
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
}

/* ── Quick Answer Block ── */
.quick-answer {
  border-left: 4px solid var(--primary);
  background: rgba(224, 242, 241, 0.4);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.quick-answer-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.quick-answer p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.quick-answer p strong {
  color: var(--text-primary);
}

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

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

/* ── Product Cards ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem;
  height: 180px;
  text-decoration: none;
}

.product-image-wrap img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
}

.product-card .card-body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.badge-gold {
  background: var(--badge-gold-bg);
  color: var(--badge-gold);
}

.badge-teal {
  background: var(--primary-light);
  color: var(--primary);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.product-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.spec-list {
  margin-bottom: 1rem;
}

.spec-list li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child {
  border-bottom: none;
}

.pros-cons-label {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}

.pros-list li,
.cons-list li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.15rem 0;
}

.pros-list li {
  color: #2f855a;
}

.cons-list li {
  color: #c05621;
}

.card-cta {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  width: 100%;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}

.affiliate-note {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Comparison Table ── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--card);
}

.comparison-table thead tr {
  background: var(--bg-alt);
}

.comparison-table th {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-align: left;
  white-space: nowrap;
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--bg-alt);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--card);
}

.comparison-table td {
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.cell-winner {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 600;
}

/* ── FAQ Accordion ── */
.faq-list {
  margin-top: 1.5rem;
}

details {
  border-bottom: 1px solid var(--border);
}

details:first-of-type {
  border-top: 1px solid var(--border);
}

details summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '▾';
  color: var(--primary);
  font-size: 1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-bottom: 1.2rem;
  margin: 0;
}

/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

footer .inner {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.footer-sitename {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.footer-disclosure {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Utility ── */
.section-intro {
  max-width: var(--max-width-text);
  margin-bottom: 0.5rem;
}

.editorial-body p {
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .compliance-ribbon {
    font-size: 0.68rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
  }

  .site-header {
    padding: 2rem 1.25rem 1.75rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  details summary {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .site-header h1 {
    font-size: 1.9rem;
  }
}

/* Official site links in product cards */
.official-link {
  margin: 0.25rem 0 0.75rem;
}
.official-link a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.official-link a:hover {
  color: var(--primary);
}
