/* ============================================
   Card Pearl - Stylesheet
   Mobile-first, clean, almost-white background
   ============================================ */

:root {
    --primary: #0a4d68;
    --primary-light: #0c6980;
    --primary-dark: #03314e;
    --accent: #078735;
    --accent-light: #0aa352;
    --text: #1a1a1a;
    --text-light: #444;
    --text-muted: #666;
    --bg: #fafafa;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --border: #e0e0e0;
    --border-light: #eee;
    --success: #2e7d32;
    --warning: #f57c00;
    --error: #c62828;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --max-width: 820px;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: #fff;
}

/* Main content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* Download button */
.download-btn-wrapper {
    text-align: center;
    margin: 16px 0;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(7,135,53,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(7,135,53,0.45);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn-secondary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    margin: 8px 4px;
}

.download-btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    padding: 36px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 24px;
}

.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
}

/* Content sections */
.content-section {
    margin-bottom: 28px;
}

.content-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border-light);
    line-height: 1.3;
}

.content-section h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 18px 0 8px;
}

.content-section p {
    margin-bottom: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin: 0 0 16px 20px;
}

.content-section li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.7;
}

.content-section strong {
    color: var(--text);
    font-weight: 600;
}

/* Hero image */
.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    margin: 16px auto;
    display: block;
    box-shadow: var(--shadow-lg);
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Steps */
.steps-list {
    counter-reset: step;
    list-style: none;
    margin: 20px 0;
}

.steps-list li {
    counter-increment: step;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 16px 16px 56px;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: var(--bg-white);
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: var(--font);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question .icon {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 20px 16px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.info-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

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

.info-table tr:hover {
    background: var(--bg-light);
}

/* Callout box */
.callout {
    background: #e8f5e9;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
}

.callout p {
    margin: 0;
    color: var(--text);
}

.callout strong {
    color: var(--accent);
}

/* Contact form */
.contact-form {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    margin-bottom: 16px;
    background: var(--bg);
    transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

.contact-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font);
}

.contact-form button:hover {
    background: var(--primary-dark);
}

.contact-info {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.contact-info p {
    margin-bottom: 8px;
    color: var(--text-light);
}

.contact-info strong {
    color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Conclusion box */
.conclusion {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
}

.conclusion h2 {
    border-bottom: none;
    padding-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #d0e3e8;
    padding: 32px 16px 16px;
    margin-top: 40px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.footer-links a {
    color: #b0d0d8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
    font-size: 0.85rem;
    color: #80a8b3;
    text-align: center;
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Responsive */
@media (min-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero h1 {
        font-size: 2.1rem;
    }

    .main-nav a {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 28px 20px 48px;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .page-hero {
        padding: 48px 30px;
    }
}

/* Print */
@media print {
    .site-header,
    .site-footer,
    .download-btn {
        display: none;
    }
}
