/*
Theme Name: Sump Plus Theme
Theme URI: https://sump-plus.eu/
Author: Sump Plus
Description: Custom theme for Sump Plus - Comprehensive Sump Pump & Drainage Information Guide
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sump-plus
Tags: custom-menu, featured-images, translation-ready, custom-post-types
*/

/* === CSS Variables === */
:root {
    --primary: #2B7A93;
    --primary-dark: #1E5A6E;
    --secondary: #5B9A3C;
    --accent: #7BC142;
    --dark: #2D3436;
    --light-bg: #F5F7F4;
    --grey: #636E72;
    --light-grey: #DFE6E9;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-logo img { height: 55px; width: auto; }
.site-logo { display: flex; align-items: center; }

/* === Navigation === */
.main-nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
}
.main-nav a {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 4px;
    transition: all 0.3s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
    color: var(--primary);
    background: rgba(43,122,147,0.08);
}
.main-nav .sub-menu {
    display: none;
    position: absolute;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 220px;
    z-index: 1001;
}
.main-nav li { position: relative; }
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a {
    display: block;
    padding: 8px 18px;
    font-weight: 400;
    font-size: 0.9rem;
}
/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* === Hero Section === */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(43,122,147,0.85) 0%, rgba(45,52,54,0.75) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; color: var(--white); margin-bottom: 1.2rem; max-width: 700px; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; opacity: 0.95; }
.hero .btn { font-size: 1.1rem; padding: 14px 32px; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--secondary); color: var(--white); }
.btn-secondary { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { color: var(--dark); }
.section-title p { color: var(--grey); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === Service Cards === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.service-card-image { height: 200px; overflow: hidden; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card-content { padding: 24px; }
.service-card-content h3 { margin-bottom: 10px; }
.service-card-content h3 a { color: var(--dark); }
.service-card-content h3 a:hover { color: var(--primary); }
.service-card-content p { color: var(--grey); font-size: 0.95rem; margin-bottom: 15px; }
.service-card .read-more { color: var(--primary); font-weight: 600; }
.service-card .read-more:hover { color: var(--accent); }

/* === About Snippet === */
.about-snippet { display: flex; gap: 50px; align-items: center; }
.about-snippet-content { flex: 1; }
.about-snippet-image { flex: 1; border-radius: 10px; overflow: hidden; }

/* === Featured Resources === */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.resource-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.resource-card:hover { transform: translateY(-3px); }
.resource-card-image { height: 180px; overflow: hidden; }
.resource-card-image img { width: 100%; height: 100%; object-fit: cover; }
.resource-card-content { padding: 20px; }
.resource-card-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.resource-card-content h3 a { color: var(--dark); }
.resource-card-content h3 a:hover { color: var(--primary); }
.resource-card-content p { color: var(--grey); font-size: 0.9rem; }

/* === Service Areas === */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.area-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.area-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.area-card p { color: var(--grey); font-size: 0.85rem; }

/* === FAQ Section === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--light-grey);
    padding: 20px 0;
}
.faq-question {
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--grey);
    line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 500px; padding-top: 12px; }

/* === Footer === */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* === Page Hero === */
.page-hero {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
    color: var(--white);
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(43,122,147,0.8), rgba(45,52,54,0.7));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.breadcrumbs { font-size: 0.9rem; opacity: 0.8; margin-bottom: 10px; }
.breadcrumbs a { color: var(--accent); }

/* === Single Post/Service === */
.single-content { padding: 60px 0; }
.single-content .container { max-width: 900px; }
.single-hero-image { border-radius: 10px; overflow: hidden; margin-bottom: 30px; max-height: 450px; }
.single-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.entry-content h2 { margin-top: 2rem; color: var(--primary); }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1rem 2rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content th { background: var(--primary); color: var(--white); padding: 12px 15px; text-align: left; }
.entry-content td { padding: 10px 15px; border-bottom: 1px solid var(--light-grey); }
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    margin: 1.5rem 0;
    background: var(--light-bg);
    border-radius: 0 6px 6px 0;
}

/* === Archive/Listing === */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* === Service Areas Page === */
.service-areas-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.area-detail-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s;
}
.area-detail-card:hover { transform: translateY(-3px); }
.area-detail-card h3 { color: var(--primary); margin-bottom: 10px; }

/* === 404 Page === */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 h1 { font-size: 6rem; color: var(--primary); }
.error-404 h2 { margin-bottom: 20px; }
.error-404 p { color: var(--grey); margin-bottom: 30px; }

/* === Pagination === */
.pagination { text-align: center; padding: 40px 0; }
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    background: var(--light-bg);
    color: var(--dark);
    font-weight: 600;
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white); }

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid, .resources-grid { grid-template-columns: repeat(2, 1fr); }
    .areas-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav .sub-menu { position: static; box-shadow: none; padding-left: 20px; display: block; }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 0; min-height: 400px; }
    .services-grid, .resources-grid, .archive-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .about-snippet { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .service-areas-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar .container { justify-content: center; text-align: center; }
    .section { padding: 50px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
