/*
Theme Name: Home Builders Pro
Theme URI: https://yourwebsite.com/theme
Author: Your Name
Author URI: https://yourwebsite.com
Description: A professional WordPress theme for Home Builders and Real Estate Developers
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homebuilders
*/

:root {
    /* Colors */
    --primary-color: #cf2b41;
    --secondary-color: #003623;
    --dark-gray: #003623;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Work Sans', sans-serif;
    
    /* Font Weights */
    --regular: 400;
    --medium: 500;
    --semibold: 600;
    --bold: 700;
    
    /* Spacing */
    --section-spacing: 8rem;
    --container-padding: 2rem;
}

/* Base Typography */
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-weight: var(--regular);
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: var(--bold);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--heading-font);
    font-weight: var(--bold);
    position: relative;
}

.lead-text {
    font-family: var(--body-font);
    font-size: 1.25rem;
    font-weight: var(--medium);
    line-height: 1.8;
}

/* Buttons */
.btn {
    font-family: var(--heading-font);
    font-weight: var(--semibold);
    letter-spacing: 0.5px;
}

/* Navigation */
.nav-link {
    font-family: var(--heading-font);
    font-weight: var(--medium);
    letter-spacing: 0.3px;
}

/* Service Cards */
.service-card h3 {
    font-family: var(--heading-font);
    font-weight: var(--semibold);
}

/* Footer */
.footer-title {
    font-family: var(--heading-font);
    font-weight: var(--bold);
    letter-spacing: 0.5px;
}

.footer-description {
    font-family: var(--body-font);
    font-weight: var(--regular);
}

/* Responsive Typography */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.site-branding {
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    width: 180px;
    height: 60px;
    object-fit: contain;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

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

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

.main-menu li {
    margin: 0 1.5rem;
}

.main-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: var(--secondary-color);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Blog/Index Styles */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.post {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--secondary-color);
}

.entry-meta {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--secondary-color);
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-footer {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    font-size: 0.9rem;
}

.entry-footer span {
    margin-right: 1rem;
}

/* Pagination */
.navigation.pagination {
    text-align: center;
    margin: 2rem 0;
}

.nav-links .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .posts-grid {
		margin-top: 65px;
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
		        margin-top: 65px;
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Update container styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Add this to handle homepage overflow */
.homepage {
    margin-top: 80px;
    overflow-x: hidden;
    width: 100%;
} 