/*
Theme Name: Plumber Portal
Author: Antigravity
Description: Premium landing page theme for Plumber Portal
Version: 2.0
*/
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #1a5fb4;
    --primary-dark: #0d3b7a;
    --primary-light: #e8f0fe;
    --accent: #25D366;
    --accent-dark: #1ebd56;
    --bg: #ffffff;
    --bg-alt: #f4f7fb;
    --text: #1e293b;
    --text-muted: #64748b;
    --error: #ef4444;
    --success: #22c55e;
    --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;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Assistant', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}
.logo:hover { color: var(--primary-dark); }
.nav a {
    margin: 0 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}
.nav a:hover { color: var(--primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; gap: 8px; align-items: center; }
.header-cta .btn { margin-right: 0; }

/* Mobile Hamburger */
#menuToggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 200;
}
#menuToggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
    position: absolute;
}
#menuToggle span:nth-child(1) { top: 0; }
#menuToggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
#menuToggle span:nth-child(3) { bottom: 0; }
#menuToggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
#menuToggle.active span:nth-child(2) { opacity: 0; }
#menuToggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,95,180,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,95,180,0.4);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-whatsapp {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(13,59,122,0.92), rgba(26,95,180,0.85));
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}
.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.92;
    line-height: 1.8;
}
.hero-actions .btn { font-size: 1.1rem; padding: 14px 36px; }

/* Sections */
.section { padding: 72px 0; }
.bg-light { background: var(--bg-alt); }
.section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--primary);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.card, .trust-item {
    background: #fff;
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: right;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.card:hover, .trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}
.card p, .trust-item p {
    color: var(--text-muted);
    line-height: 1.7;
}
.trust-item h4 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

/* Form */
.lead-section { background: var(--primary-light); }
.form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fafbfc;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,95,180,0.1);
}
.error { color: var(--error); font-size: 0.85rem; display: block; margin-top: 5px; }
.hidden { display: none; }
.form-success {
    background: #dcfce7;
    color: var(--success);
    padding: 14px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
}
.form-error {
    background: #fef2f2;
    color: var(--error);
    padding: 14px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
}

/* FAQ */
details {
    background: #fff;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
details:hover { box-shadow: var(--shadow-md); }
details[open] { border-right: 3px solid var(--primary); }
summary {
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p { margin-top: 12px; color: var(--text-muted); text-align: right; }

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 32px 0;
    font-size: 0.9rem;
}
.footer a { color: #64748b; text-decoration: none; transition: var(--transition); }
.footer a:hover { color: #fff; }
.footer h4 { color: #e2e8f0; font-size: 1rem; margin-bottom: 8px; }
.footer p { margin: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: right;
    padding-bottom: 24px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 16px;
}
.footer-bottom { opacity: 0.7; font-size: 0.85rem; }
.footer-bottom a { margin-right: 16px; }

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 32px 0;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Card Icons */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}

/* Scroll Reveal */
.card, .trust-item, .form-wrapper, details, .section h2 {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.card.revealed, .trust-item.revealed, .form-wrapper.revealed, details.revealed, .section h2.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Article Cards */
.article-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    text-align: right;
}
.article-card h3, .article-card h4 { color: var(--primary); margin-bottom: 8px; }
.article-card p { color: var(--text-muted); flex-grow: 1; }
.read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 12px;
    display: inline-block;
    transition: var(--transition);
}
.article-card:hover .read-more { transform: translateX(-4px); }

/* Single Article Page */
.article-page { padding: 32px 0 60px; }
.article-header { margin-bottom: 40px; text-align: right; }
.breadcrumb {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.breadcrumb:hover { color: var(--primary-dark); }
.article-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 12px;
}
.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
}
.article-body {
    text-align: right;
    max-width: 760px;
    line-height: 1.9;
}
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 32px 0 12px;
    text-align: right;
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 24px 0 8px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
    margin: 12px 24px 16px 0;
    padding-right: 20px;
}
.article-body li { margin-bottom: 8px; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.article-body table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}
.article-body table tr:nth-child(even) { background: var(--bg-alt); }

/* Article CTA Block */
.article-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    margin: 48px 0;
}
.article-cta h3 { font-size: 1.4rem; margin-bottom: 8px; }
.article-cta p { opacity: 0.9; margin-bottom: 16px; }
.article-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.article-cta .btn-primary {
    background: #fff;
    color: var(--primary);
}
.related-articles { margin-top: 48px; }
.related-articles h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: 16px 0;
        flex-direction: column;
        text-align: center;
    }
    .nav.nav-open { display: flex; }
    .nav a { margin: 8px 0; padding: 8px; display: block; }
    #menuToggle { display: block; }
    .header-cta { gap: 6px; }
    .header-cta .btn { padding: 8px 12px; font-size: 0.85rem; }
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 24px; margin: 20px 0; }
    .stat-num { font-size: 1.5rem; }
    .section { padding: 48px 0; }
    .form-wrapper { padding: 24px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .whatsapp-float { bottom: 16px; left: 16px; width: 50px; height: 50px; }
}
