/*
Theme Name: PDFMaster Theme
Theme URI: https://pdfmaster.example.com
Author: PDFMaster
Author URI: https://pdfmaster.example.com
Description: Minimal Elementor-ready theme powering the PDFMaster web application.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: pdfmaster-theme
*/

/* Root typography and layout adjustments for Elementor canvases */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    color: #1f2933;
    background-color: #f7f9fc;
}

/* ===== HEADER NAVIGATION ===== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Account for WordPress admin bar */
body.admin-bar .site-header {
    top: 32px; /* Desktop admin bar height */
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* Mobile admin bar height */
    }
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: #1f2937;
}

.site-header__branding .logo-icon {
    width: 24px;
    height: 24px;
    color: #2563eb;
}

.site-header__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-header__nav .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header__nav .nav-link:hover {
    color: #2563eb;
}

/* Mobile header */
@media (max-width: 768px) {
    .site-header__nav {
        display: none; /* Hide navigation on mobile - can add hamburger menu later */
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: 5rem;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #2563eb;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-email {
    font-size: 0.9375rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: #2563eb;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-legal-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #2563eb;
}

.footer-separator {
    color: #d1d5db;
}

@media (max-width: 640px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }
}

.site-main {
    min-height: 60vh;
}
