/*
Theme Name: GreenVille Construction
Theme URI: https://greenvilleconstruction.com
Author: GreenVille Enterprises
Author URI: https://greenvilleconstruction.com
Description: A professional WordPress theme for construction and building consulting businesses, inspired by modern consulting firm designs.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greenville-construction
Tags: business, construction, consulting, professional, responsive, custom-menu, featured-images

This theme, like WordPress, is licensed under the GPL.
*/

/* ===================================
   Fonts
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

/* ===================================
   Accessibility
   =================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

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

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

:root {
    --primary-color: #429568;
    --secondary-color: #fecb27;
    --accent-color: #429568;
    --text-dark: #1a1a1a;
    --text-light: #616161;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --surface-color: #616161;
    --transition: all 0.3s ease;
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.container-wide {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: #234a34;
    padding: 12px 0;
    font-size: 0.875rem;
}

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

.header-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.contact-link i {
    font-size: 1rem;
    color: #fecb27;
}

.contact-link:hover {
    color: #fecb27;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .header-contact {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .contact-link {
        font-size: 0.8125rem;
    }
    
    .contact-text {
        display: none;
    }
    
    .contact-link i {
        font-size: 1.125rem;
        padding: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }
}

.header-main {
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5f45;
}

.site-logo:hover {
    color: #429568;
}

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

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #429568;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 12px 20px;
    color: var(--text-dark);
}

.main-navigation .sub-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

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

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

.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 160px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-section {
        background: #215732 !important;
        padding: 80px 0;
        min-height: auto;
    }
    
    .hero-section > div:first-child {
        display: none !important;
    }
    
    .hero-section > div:nth-child(2) {
        background: none !important;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-section h1 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #fecb27;
    color: #1a1a1a;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #e5b61f;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 203, 39, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}

/* ===================================
   Breadcrumb
   =================================== */

.breadcrumb {
    background-color: var(--bg-light);
    padding: 15px 0;
    font-size: 0.875rem;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb li:last-child::after {
    display: none;
}

/* ===================================
   Content Sections
   =================================== */

.content-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.125rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 2px solid var(--border-color);
}

.tab-navigation a {
    padding: 15px 0;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
}

.tab-navigation a:hover,
.tab-navigation a.active {
    color: var(--primary-color);
}

.tab-navigation a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-content p {
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link::after {
    content: '→';
    transition: var(--transition);
}

.card-link:hover::after {
    transform: translateX(5px);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column img {
    width: 100%;
    border-radius: 8px;
}

/* ===================================
   Team Section
   =================================== */

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

.team-member {
    text-align: center;
}

.team-member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member .position {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.25rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

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

.site-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

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

.footer-widget h3 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

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

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

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        padding: 15px 20px;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background-color: var(--bg-light);
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .tab-navigation a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .content-section {
        padding: 50px 0;
    }
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary p {
    color: var(--text-white);
}

/* ===================================
   Capabilities Grid
   =================================== */

.capability-card {
    cursor: pointer;
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15) !important;
}

.capability-card:hover h3 {
    color: var(--primary-color);
}

/* ===================================
   Mobile Responsive Styles
   =================================== */

/* Prevent content overflow */
img, video, iframe {
    max-width: 100% !important;
    height: auto;
}

.hero-section, 
.content-section, 
.site-footer {
    width: 100%;
    overflow: hidden;
}

table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix for mobile viewport jumping */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Capability Card Hover Animation */
.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.capability-card:hover .capability-accent {
    width: 100px !important;
    height: 100px !important;
    bottom: -15px !important;
    right: -15px !important;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 60vh;
        background-position: center center !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
    }
    
    .two-column {
        flex-direction: column;
    }
    
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
}
