/* ===================================================================
   PZM THEME — Unified Design System (2026 Refresh)
   Applied to all subpages: services, areas, blog, terms, etc.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

/* ===== CSS VARIABLES ===== */
:root {
    /* New design colors */
    --primary: #00c896;
    --primary-dark: #00a87a;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --dark: #0f172a;
    --dark-light: #1e293b;

    /* Legacy variable names (for compatibility with services.css, contact.css, blog.css, etc.) */
    --primary-color: #00c896;
    --secondary-color: #0f172a;
    --accent-color: #0ea5e9;
    --success-color: #22C55E;
    --warning-color: #FFAB00;
    --error-color: #FF5630;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg-light: #f1f5f9;
    --bg-white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

    /* Radius */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Grays */
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;

    /* Layout */
    --max-width: 1280px;

    /* Override old header/nav heights — new navbar is not fixed in the same way */
    --header-height: 0px;
    --nav-height: 0px;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f7ff;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important; /* Override old padding for fixed header */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--dark);
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 24px;
}
.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
}
.logo-pzm { color: var(--dark); }
.logo-store {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0;
    text-transform: none;
    display: inline;
    margin-top: 0;
}
.logo-tagline {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: -2px;
}
.logo-group { display: flex; flex-direction: column; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links > a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
    position: relative;
}
.nav-links > a:hover { color: var(--dark); }
.nav-links > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-links > a:hover::after,
.nav-links > a.active::after { width: 100%; }
.nav-links > a.active { color: var(--dark); font-weight: 600; }

/* Nav dropdown (Services) */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}
.nav-dropdown-trigger:hover { color: var(--dark); }
.nav-dropdown-trigger::after {
    content: '▾';
    font-size: 0.7em;
    transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}
.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    overflow: hidden;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
    border-bottom: 1px solid var(--gray-100);
}
.nav-dropdown-content a:last-child { border-bottom: none; }
.nav-dropdown-content a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 24px;
}

/* Nav actions (CTA buttons) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-login {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.2s;
}
.btn-login:hover { background: var(--gray-100); }
.btn-signup {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    transition: 0.2s;
}
.btn-signup:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}
.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== SUBPAGE CONTENT AREA ===== */
.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
}

/* Service detail pages */
section.service-details {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
section.service-details:hover {
    transform: none;
}
section.service-details h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.5px;
}
section.service-details h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--primary));
    border-radius: 4px;
    margin: 12px auto 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}
.service-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}
.service-description {
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.service-description h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}
.service-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 24px;
    margin-bottom: 10px;
}
.service-description p {
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.7;
}
.service-description ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}
.service-description li {
    color: var(--gray-600);
    margin-bottom: 6px;
    line-height: 1.6;
}
.warranty-section {
    margin-top: 24px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.warranty-section h4 {
    color: var(--primary);
}
.cta-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(14,165,233,0.06), rgba(0,200,150,0.06));
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.cta-section h4 {
    color: var(--accent);
}

/* Policy/terms pages */
.policy-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    line-height: 1.8;
    color: var(--gray-600);
}
.policy-content h1 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 800;
}
.policy-content .last-updated {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 30px;
}
.policy-content h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}
.policy-content p,
.policy-content li {
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.policy-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}
.policy-content a {
    color: var(--accent);
    font-weight: 500;
}
.policy-content a:hover {
    color: var(--primary);
}

/* Blog sections */
.blog-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 32px;
}
.blog-section h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 32px;
    text-align: center;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Blog post article */
.blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

/* ===== CONTACT SECTION (loaded via contact-loader.js) ===== */
section.contact {
    background: #fff;
    border-radius: var(--radius);
    padding: 48px 32px;
    max-width: var(--max-width);
    margin: 40px auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
section.contact:hover {
    transform: none;
}
section.contact h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 32px;
}
section.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--primary));
    border-radius: 4px;
    margin: 12px auto 0;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.contact-info p {
    color: var(--gray-500);
    margin-bottom: 20px;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: 0.2s;
}
.contact-method:hover {
    background: var(--gray-100);
}
.contact-method a {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}
.contact-method a:hover {
    color: var(--primary);
}
.contact-icon-small {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.address {
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.address h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.address p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.6;
}
.map-container {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    min-height: 280px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

/* Store status badges */
.open-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 8px;
}
.open-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}
.closed-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fee2e2;
    color: #991b1b;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 8px;
}
.closed-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}
.outside-hours-msg {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Working hours */
.hours {
    margin-top: 12px;
}
.hours p {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 4px 8px;
    border-radius: 6px;
}
.hours p.today-row {
    background: rgba(14,165,233,0.06);
    font-weight: 600;
    color: var(--dark);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 48px 24px 24px;
    margin-top: auto;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}
.footer-logo small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 1px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--gray-400);
    transition: 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
    .map-container {
        grid-column: span 2;
    }
    .service-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    .navbar-inner { height: 60px; }

    .logo { font-size: 1.1rem; letter-spacing: 0; }
    .logo-store { font-size: 0.55rem; }
    .logo-tagline { font-size: 0.4rem; letter-spacing: 1px; }

    /* Mobile menu */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        background: #fff;
        padding: 40px 24px 100px;
        gap: 8px;
        z-index: 999;
        animation: slideDown 0.3s ease;
        overflow-y: auto;
    }
    .nav-links.open > a {
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: 8px;
        text-align: left;
        width: 100%;
    }
    .nav-links.open > a:hover {
        background: var(--gray-100);
    }

    /* Mobile dropdown */
    .nav-links.open .nav-dropdown {
        width: 100%;
    }
    .nav-links.open .nav-dropdown-trigger {
        padding: 14px 16px;
        font-size: 1.05rem;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
        border-radius: 8px;
    }
    .nav-links.open .nav-dropdown-trigger:hover {
        background: var(--gray-100);
    }
    .nav-links.open .nav-dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-100);
        border-radius: 8px;
        margin-top: 4px;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    .nav-links.open .nav-dropdown.active .nav-dropdown-content {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    .nav-links.open .nav-dropdown-content a {
        padding: 12px 24px;
        border-bottom-color: var(--gray-200);
    }

    .nav-actions.open {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 24px;
        background: #fff;
        border-top: 1px solid var(--gray-200);
        z-index: 1001;
        justify-content: center;
        gap: 12px;
    }

    section.service-details {
        margin: 20px 12px;
        padding: 24px 20px;
    }
    section.service-details h1 {
        font-size: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    .map-container {
        grid-column: span 1;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }

    .policy-content {
        margin: 20px 12px;
        padding: 24px 20px;
    }
    .blog-section {
        margin: 20px 12px;
        padding: 24px 20px;
    }
    .blog-post {
        margin: 20px 12px;
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    section.service-details h1 {
        font-size: 1.3rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HIDE OLD HEADER/NAV ===== */
/* These selectors hide the old header/nav structure if accidentally included */
body > header:has(.header-content) { display: none !important; }
nav.main-nav { display: none !important; }
