/* Reset and base styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --max-width: 1200px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 25vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%),
                url('images/dehumidifier-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: var(--header-height);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-shadow: none;
    text-shadow: none;
}

.cta-button:hover {
    background: var(--secondary-color);
    box-shadow: none;
}

/* AdSense Banner */
.ads-banner {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.ads-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.ads-container ins {
    display: block;
    min-height: 100px;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grids */
.content-grid, .benefits-grid, .types-grid, .guide-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.info-card, .benefit-item, .type-card, .guide-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-card:hover, .benefit-item:hover, .type-card:hover, .guide-item:hover {
    transform: translateY(-5px);
}

.benefit-item ul {
    list-style-position: inside;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: var(--light-bg);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-section:first-child {
    max-width: 600px;
}

.footer-section:last-child {
    text-align: left;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 3rem 1rem;
    }

    .hero {
        min-height: 15vh;
        padding: 0.5rem;
    }
    
    .hero-content {
        padding: 0.25rem;
    }

    .ads-container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section:last-child {
        text-align: left;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .mobile-menu-btn, .cta-button {
        display: none;
    }

    body {
        color: #000;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 6rem 2rem 3rem;
    text-align: center;
    margin-top: var(--header-height);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #4b5563;
}

/* Table of Contents */
.table-of-contents {
    background: var(--white);
    padding: 2rem;
    margin: 2rem auto;
    max-width: var(--max-width);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-of-contents h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
}

.table-of-contents .subsection-list {
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.table-of-contents a::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-section h2 {
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.content-section p {
    margin-bottom: 2rem;
}

.content-section .info-card {
    margin-bottom: 2rem;
}

.content-section .info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-section .info-card ul {
    padding-left: 1.5rem;
}

.content-section .info-card li {
    margin-bottom: 1rem;
}

.content-section ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.content-section ul li {
    margin-bottom: 1rem;
    position: relative;
}

.content-section ul li strong {
    display: block;
    margin-left: -1.5rem;
    margin-bottom: 0.5rem;
}

.content-section ul li:not(:has(strong)) {
    margin-left: 1.5rem;
}

/* Active Navigation Link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-header {
        padding: 5rem 1rem 2rem;
    }

    .table-of-contents {
        margin: 1rem;
        padding: 1.5rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }
}

/* Read More Links */
.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.section-footer .cta-button {
    display: inline-block;
}

/* Card Hover Effects */
.info-card:hover .read-more,
.benefit-item:hover .read-more,
.type-card:hover .read-more,
.guide-item:hover .read-more {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .section-footer {
        margin-top: 1.5rem;
    }
}

/* Comparison Table Styles */
.comparison-table {
    margin: 3rem 0;
    overflow-x: auto;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

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

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

@media (max-width: 768px) {
    .comparison-table {
        margin: 1rem 0;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Disclaimer Styles */
.disclaimer {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    padding: 0.5rem;
    border-left: 3px solid var(--primary-color);
    background: #f9fafb;
}

/* Room Size Table Styles */
.room-size-table {
    margin: 2rem 0;
    overflow-x: auto;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-size-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.room-size-table th,
.room-size-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.room-size-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

.room-size-table tr:last-child td {
    border-bottom: none;
}

.room-size-table tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .room-size-table {
        margin: 1rem 0;
    }
    
    .room-size-table th,
    .room-size-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Humidity Table Styles */
.humidity-table {
    margin: 2rem 0;
    overflow-x: auto;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.humidity-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.humidity-table th,
.humidity-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.humidity-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

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

.humidity-table tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .humidity-table {
        margin: 1rem 0;
    }
    
    .humidity-table th,
    .humidity-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Extraction Rate Table Styles */
.extraction-table {
    margin: 2rem 0;
    overflow-x: auto;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.extraction-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.extraction-table th,
.extraction-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.extraction-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

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

.extraction-table tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .extraction-table {
        margin: 1rem 0;
    }
    
    .extraction-table th,
    .extraction-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Hide duplicate page headers when hero is present */
.hero + .page-header {
    display: none;
}

/* Content Block */
.content-block {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.benefit-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-text p {
    margin-bottom: 2rem;
}

.benefit-text .intro {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.benefit-text .personal-experience {
    font-style: italic;
    color: #4b5563;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
}

.benefit-text .conclusion {
    font-weight: 500;
    color: var(--text-color);
}

.benefit-text ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
    list-style: none;
}

.benefit-text ul li {
    margin-bottom: 0.75rem;
    position: relative;
}

.benefit-text ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

@media (max-width: 768px) {
    .content-block {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .benefit-text {
        font-size: 1rem;
    }
    
    .benefit-text .intro {
        font-size: 1.1rem;
    }
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-item {
        padding-bottom: 1rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
}

/* Tank Size Table Styles */
.tank-size-table {
    margin: 2rem 0;
    overflow-x: auto;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tank-size-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.tank-size-table th,
.tank-size-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tank-size-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

.tank-size-table tr:last-child td {
    border-bottom: none;
}

.tank-size-table tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .tank-size-table {
        margin: 1rem 0;
    }
    
    .tank-size-table th,
    .tank-size-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
} 