/*
Theme Name: Fountain Building Services
Description: A professional WordPress theme designed for construction, home repair, and building services companies. Features custom post types for services and projects, responsive design, and industry-specific functionality.
Version: 1.0.0
Author: Fountain Electric & Services, LLC.
License: GPL v2 or later
Text Domain: building-services
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
    font-weight: 400;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #c000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c000000;
}

a:visited {
	color: #940303;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-1 { width: 8.333%; }
.col-2 { width: 16.666%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-6 { width: 50%; }
.col-8 { width: 66.666%; }
.col-9 { width: 75%; }
.col-12 { width: 100%; }

[class*="col-"] {
    padding: 0 15px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-top {
    background: #C00000;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: #ffffff;
    visited: #ffffff;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 100px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c00000;
    margin: 0;
}

.site-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 10px;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: #c00000;
    background: #f8f9fa;
    border-radius: 4px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    /* background: linear-gradient(135deg, #940303 0%, #c00000 100%); */
	background-image: url("/wp-content/uploads/2025/09/pexels-jeshoots-com-147458-834892-scaled.jpg");
    color: #ffffff;
    padding: 150px 0 100px;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,600 1200,0 1200,600"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 800;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #c00000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    background: #940303;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #c00000;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #c00000;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: #c00000;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects-section {
    padding: 100px 0;
    background: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.project-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #000000;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-widget p,
.footer-widget li {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: #95a5a6;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #c00000;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
}

.footer-bottom a {
	color: #c00000;
	visited: #940303:
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #ecf0f1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    [class*="col-"] {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

.wp-block-image {
    margin-bottom: 2rem;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.wp-block-quote {
    border-left: 4px solid #c00000;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #7f8c8d;
}

.wp-block-button .wp-block-button__link {
    background: #c00000;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.alignleft {
    float: left;
    margin: 0 2rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 2rem;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
    text-align: center;
}

.alignwide,
.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #c00000;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    margin-top: 120px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #7f8c8d;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #c00000;
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

.sidebar {
    padding-left: 30px;
}

.widget {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #c00000;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #c00000;
}

/* ==========================================================================
   Single Post/Page Styles
   ========================================================================== */

.single-post-header {
    text-align: center;
    padding: 60px 0;
    background: #f8f9fa;
    margin-top: 120px;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.post-meta a {
    color: #7f8c8d;
}

.post-meta a:hover {
    color: #c00000;
}

.post-content {
    padding: 60px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 2rem 0;
}

.post-navigation {
    border-top: 1px solid #ecf0f1;
    padding-top: 30px;
    margin-top: 50px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 45%;
}

.nav-links a:hover {
    background: #c00000;
    color: #ffffff;
}

/* ==========================================================================
   Archive Styles
   ========================================================================== */

.archive-header {
    text-align: center;
    padding: 60px 0;
    background: #f8f9fa;
    margin-top: 120px;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.archive-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.post-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.post-card-image {
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #c00000;
}

.post-card-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #c00000;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: #d35400;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #ffffff;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

.pagination a:hover,
.pagination .current {
    background: #c00000;
    color: #ffffff;
    border-color: #c00000;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #ecf0f1;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.comment-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-content p {
    color: #555;
    line-height: 1.6;
}

.reply {
    margin-top: 15px;
}

.reply a {
    color: #c00000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.children {
    margin-left: 30px;
    margin-top: 20px;
}

/* ==========================================================================
   Contact Page Specific
   ========================================================================== */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-item {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info-icon {
    font-size: 3rem;
    color: #c00000;
    margin-bottom: 1.5rem;
}

.contact-info-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info-item p {
    color: #7f8c8d;
    margin: 0;
}

/* ==========================================================================
   Error 404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 100px 0;
    margin-top: 120px;
}

.error-404 h1 {
    font-size: 8rem;
    color: #c00000;
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7e7e7e;
}

.error-404 p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.search-form {
    max-width: 400px;
    margin: 0 auto 2rem;
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
}

.search-form input[type="submit"] {
    padding: 12px 20px;
    background: #c00000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: #c00000;
}

/* ==========================================================================
   Homepage Contact Form
   ========================================================================== */
   
.contact-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 40px;
}

.contact-form-column,
.contact-info-column {
	width: 100%;
}

.contact-info-column {
	padding: 30px;
	background: #ffffff;
	border-radius: 8px;
	text-align: left !important;
}

.contact-info-column h3 {
	margin-bottom: 30px;
	font-size: 28px;
	color: #333;
	text-align: left !important;
}

.contact-info-items {
	display: flex;
	flex-direction: column;
	gap: 25px;
	text-align: left !important;
}

.contact-info-item {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	text-align: left !important;
}

.contact-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.contact-details {
	text-align: left !important;
}

.contact-details h4 {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #333;
	text-align: left !important;
}

.contact-details p {
	margin: 0;
	color: #666;
	line-height: 1.6;
	text-align: left !important;
}

.contact-details a {
	color: #C00000;
	text-decoration: none;
	transition: color 0.3s ease;
	text-align: left !important;
}

.contact-details a:hover {
	color: #C00000;
}

/* Responsive Design */
@media (max-width: 768px) {
	.contact-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.contact-info-column {
		padding: 20px;
	}
}


