/*
Theme Name: Boman Digital Theme
Theme URI: https://bomandigital.com
Author: Boman Digital
Author URI: https://bomandigital.com
Description: A custom, professional WordPress theme with full Customizer support for Boman Digital.
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bomandigital
*/

/* --- Google Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #0a7cff;
    --secondary-color: #343a40;
    --accent-color: #28a745;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --footer-bg: #212529; /* Darker blue/black for footer */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
}

/* --- Base & Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); line-height: 1.7; color: var(--secondary-color); background: var(--white); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 28px; font-size: 1rem; font-weight: 700; font-family: var(--font-heading); color: var(--white); background: var(--primary-color); border: none; border-radius: 50px; cursor: pointer; text-align: center; transition: all 0.3s ease; }
.btn:hover { background: #0056b3; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); text-decoration: none; color: var(--white); }
.btn-accent { background: var(--accent-color); }
.btn-accent:hover { background: #218838; }

/* --- Header --- */
.site-header { background: var(--white); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
body.customize-preview .site-header { position: static; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.site-branding { display: flex; align-items: center; gap: 1rem; }
.custom-logo-link img { max-height: 60px; width: auto; }
.site-title a { font-size: 1.8rem; font-weight: 800; color: var(--secondary-color); }
.site-title a:hover { text-decoration: none; }
.site-description { font-size: 0.9rem; color: #6c757d; margin: 0; }
.main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-navigation li { margin-left: 2rem; }
.main-navigation a { font-weight: 700; font-family: var(--font-heading); color: var(--secondary-color); }
.main-navigation a:hover { color: var(--primary-color); text-decoration: none; }
.menu-toggle { display: none; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-bg { background: var(--light-gray); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; }
.section-title p { max-width: 600px; margin: 1rem auto 0; color: #6c757d; }

/* --- Hero Section --- */
.hero { background-color: var(--secondary-color); color: var(--white); text-align: center; padding: 120px 0; position: relative; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 31, 68, 0.7); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); color: var(--white); }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2rem auto; }

/* --- Services & Testimonials Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item, .testimonial-item { background: var(--white); padding: 40px; text-align: center; border-radius: var(--border-radius); box-shadow: 0 5px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.service-item:hover, .testimonial-item:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.service-item .service-icon img { height: 60px; width: auto; margin-bottom: 1.5rem; }
.service-item h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.testimonial-item img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 4px solid var(--primary-color); }
.testimonial-item p.quote { font-style: italic; font-size: 1.1rem; margin-bottom: 1rem; color: #555; }
.testimonial-item .client-name { font-weight: 700; font-family: var(--font-heading); }

/* --- Portfolio / Themes Showcase --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.portfolio-item { background: var(--white); border-radius: var(--border-radius); box-shadow: 0 5px 25px rgba(0,0,0,0.08); overflow: hidden; transition: all 0.3s ease; }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.portfolio-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-content { padding: 25px; }
.portfolio-content h3 { font-size: 1.4rem; }
.portfolio-content p { color: #6c757d; margin-bottom: 1.5rem; }
.portfolio-content .btn { padding: 8px 20px; font-size: 0.9rem; }

/* --- CTA Section --- */
.cta { background: var(--primary-color); color: var(--white); text-align: center; }
.cta h2 { font-size: 2.5rem; color: var(--white); margin-bottom: 1rem; }
.cta p { max-width: 700px; margin: 0 auto 2rem auto; opacity: 0.9; }
.cta .btn { background: var(--white); color: var(--primary-color); }
.cta .btn:hover { background: var(--light-gray); color: var(--primary-color); }

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    color: #adb5bd;
    font-size: 0.9rem;
}
.footer-widgets {
    padding: 60px 0;
    border-bottom: 1px solid #495057;
}
.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.footer-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.footer-widget a {
    color: #adb5bd;
}
.footer-widget a:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
}
.footer-widget ul li {
    margin-bottom: 0.5rem;
}
.site-info {
    padding: 20px 0;
    text-align: center;
}
.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-copyright {
    margin: 0;
}

/* --- Blog & Pages --- */
.page-header { padding: 60px 0; background: var(--secondary-color); color: var(--white); text-align: center; margin-bottom: 60px; }
.page-header h1 { color: var(--white); }
.main-content { max-width: 800px; margin: 0 auto; padding-bottom: 60px; }
.main-content img { border-radius: var(--border-radius); margin: 1rem 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.post-item { background: var(--white); border-radius: var(--border-radius); box-shadow: 0 5px 25px rgba(0,0,0,0.08); overflow: hidden; }
.post-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-content { padding: 25px; }
.post-content h3 { font-size: 1.4rem; }
.post-meta { font-size: 0.85rem; color: #6c757d; margin-bottom: 1rem; }
.post-meta a { color: #6c757d; }
.post-meta a:hover { color: var(--primary-color); }

/* --- 404 Page --- */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 h1 { font-size: 6rem; font-weight: 800; color: var(--primary-color); }
.error-404 p { font-size: 1.2rem; }

/* ==========================================================================
   Services Archive Page Styles
   ========================================================================== */
.services-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.service-archive-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-archive-item .service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-archive-item .service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-archive-item .entry-title {
    font-size: 1.5em;
    margin-bottom: 0.5rem;
}

.service-archive-item .entry-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.service-archive-item .entry-title a:hover {
    color: var(--primary-color);
}

.service-archive-item .service-price {
    font-size: 1.1em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.service-archive-item .entry-summary {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================================================
   Single Service Page Styles
   ========================================================================== */
.single-service-layout {
    margin: 60px 0;
}

.service-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .service-grid-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.service-main-content .entry-title {
    margin-bottom: 1.5rem;
}

.service-main-content .post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-sidebar .service-cta-box,
.service-sidebar .service-meta-box {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.service-cta-box .price-display {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.5rem;
}

.price-display .price-label {
    display: block;
    font-size: 1em;
    color: #6c757d;
}

.price-display .price-amount {
    display: block;
    font-size: 3em;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
}

.price-display .price-currency {
    display: block;
    font-size: 1.1em;
    color: #6c757d;
}

.btn-full-width {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.sidebar-notice {
    font-size: 0.85em;
    color: #6c757d;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.service-meta-box h5 {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.meta-list {
    padding-left: 0;
    list-style: none;
}

.meta-list li {
    margin-bottom: 5px;
}

.meta-list.tags li {
    display: inline-block;
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* ==========================================================================
   Responsive Styles & Mobile Menu - THIS IS THE FIX
   ========================================================================== */
.menu-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--secondary-color);
}

.menu-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block; /* Makes the hamburger icon visible on smaller screens */
        padding: 10px;
    }
    .main-navigation {
        display: none; /* Hides the desktop menu by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-navigation.toggled {
        display: block; /* This class is added by JS to show the menu */
    }
    .main-navigation ul {
        flex-direction: column;
    }
    .main-navigation li {
        margin: 0;
    }
    .main-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--light-gray);
    }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .site-info { text-align: center; }
}
