/* Humidity Control MNS - Clean Blue/Teal Theme */

:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;
  --secondary: #06b6d4;
  --accent: #67e8f9;
  --text-dark: #164e63;
  --text-body: #334155;
  --text-light: #64748b;
  --bg-light: #f0fdfa;
  --bg-white: #ffffff;
  --border: #a5f3fc;
  --shadow: rgba(8, 145, 178, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-white);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--bg-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-white);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-white);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Article Header */
.article-header {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Main Content */
main {
  padding: 3rem 0;
}

/* Article Content */
.article-content {
  max-width: 700px;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
}

/* Highlight Box */
.highlight-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text-dark);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-3px);
}

.card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.card a:hover {
  text-decoration: underline;
}

/* Section Titles */
.section-title {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* FAQ Accordion */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-light);
  border: none;
  padding: 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--border);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 1.25rem;
  color: var(--text-body);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.product-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Terms/Glossary */
.terms-list {
  max-width: 700px;
}

.term-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.term-item:last-child {
  border-bottom: none;
}

.term-item dt {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.term-item dd {
  color: var(--text-body);
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-list li {
  margin-bottom: 0.75rem;
}

.related-list a {
  color: var(--primary);
  text-decoration: none;
}

.related-list a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Ad Spaces */
.ad-space {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
  border-radius: 8px;
  min-height: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav li:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
  }
}
