/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #06b6d4;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --max-width: 900px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BASE ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===== HEADER ===== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo:hover {
    color: var(--primary);
}

/* ===== NAVIGATION ===== */
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

.contact-button {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.contact-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.back-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.mobile-menu-toggle:hover {
    border-color: var(--primary);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-badge-wrap {
    margin-bottom: 16px;
}

.update-badge {
    display: inline-block;
    background: rgba(240, 253, 244, 0.95);
    border: 1px solid #86efac;
    color: #166534;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.requirement-note {
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 0;
    opacity: 0.85;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 60px 0;
}

.section {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 17px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-content p,
.page-content li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 16px;
}

.page-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--primary);
}

.effective-date {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.intro-text {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

/* ===== STEP SECTIONS ===== */
.step {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== CODE / TEMPLATE BLOCKS ===== */
.template-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: pre-wrap;
}

code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.9em;
}

/* ===== LISTS ===== */
ul,
ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

li strong {
    color: var(--text-primary);
}

/* ===== CALLOUT BOXES ===== */
.callout {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 6px;
}

.callout p {
    margin: 0;
    color: #92400e;
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 6px;
}

.success-box p,
.success-box ul {
    margin: 8px 0;
    color: #065f46;
}

.success-box li {
    color: #065f46;
}

.error-box {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 6px;
}

.error-box p,
.error-box ul {
    margin: 8px 0;
    color: #991b1b;
}

.error-box li {
    color: #991b1b;
}

/* ===== RESOURCE / TOOL LINKS ===== */
.resources-section {
    margin: 48px 0;
}

.resources-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.resources-section > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 17px;
}

.resource-link {
    display: block;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 16px 0;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    position: relative;
}

.resource-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.resource-link h3 {
    margin: 0 0 8px 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-link p {
    margin: 0;
    font-size: 15px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: #10b981;
    color: white;
}

.badge-paid {
    background: #f59e0b;
    color: white;
}

/* ===== CONTACT PAGE ===== */
.contact-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.contact-card p {
    margin-bottom: 8px;
}

.email-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.email-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.response-note {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    margin-top: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    margin: 0 12px;
    font-size: 14px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner p {
    flex: 1;
    min-width: 200px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
}

.cookie-btn-reject {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    background: var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

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

    .nav-links .nav-link,
    .nav-links .contact-button {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .contact-button {
        font-size: 13px;
        padding: 6px 14px;
    }

    .update-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 14px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 32px 24px;
    }

    .section h1 {
        font-size: 28px;
    }

    .section h2 {
        font-size: 28px;
    }

    .template-block {
        font-size: 12px;
        padding: 16px;
    }

    .resource-link h3 {
        font-size: 18px;
    }

    .badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .contact-card {
        padding: 24px;
    }

    main {
        padding: 32px 0;
    }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===== WORDPRESS ADMIN BAR ADJUSTMENT ===== */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
