/*
 * Main custom styling for Thalekhu Construction Theme
 * Utilizing the variables defined in style.css:
 * --color-primary: #FF6600 (Orange)
 * --color-secondary: #000000 (Black)
 */

/* =================================
   1. GENERAL LAYOUT & CONTAINERS
   ================================= */
.site-content {
    padding-top: 20px; /* Space below header */
    min-height: 80vh; /* Ensure footer stays low on short pages */
}

/* Ensure content is readable and centered */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================
   2. HEADER & NAVIGATION STYLES
   ================================= */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

/* Logo/Branding */
.site-branding a {
    text-transform: uppercase;
    color: var(--color-secondary);
    line-height: 1;
}

.site-branding .tagline {
    font-size: 0.75em;
    color: var(--color-primary);
    font-weight: 400;
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between links */
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-primary);
}

/* Underline effect for active/hover */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}


/* =================================
   3. TYPOGRAPHY & BUTTONS
   ================================= */
h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h2 {
    font-size: 2.2em;
    color: var(--color-secondary);
}

/* Primary Accent Styling */
.section-mission h2,
.service-column h3 {
    color: var(--color-primary);
}

/* Primary CTA Button Style (used in front-page.php) */
.hero-content a {
    transition: background-color 0.3s, transform 0.2s;
}

.hero-content a:hover {
    background-color: #e55e00 !important; /* Slightly darker orange */
    transform: translateY(-2px);
}

/* =================================
   4. PAGE-SPECIFIC STYLES
   ================================= */

/* General Page Headers */
.page-hero {
    margin-bottom: 40px;
    text-align: center;
}

.page-hero h1 {
    font-weight: 700;
    letter-spacing: 2px;
}

/* About Us Styles */
.two-column-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.column-vision, .column-values {
    flex: 1 1 45%;
}

/* Contact Page Grid */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 15px;
    padding: 30px;
    transition: box-shadow 0.3s;
    flex-grow: 1;
    max-width: 300px;
}

.contact-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* =================================
   5. FOOTER STYLES
   ================================= */
.site-footer {
    border-top: 5px solid var(--color-primary);
    margin-top: 50px;
}
.site-footer p {
    color: #444; /* Dark gray for general footer text */
}

/* Ensure the branded footer colors are correctly applied */
.site-info .powered-by-brand span:first-child {
    color: var(--color-secondary); /* Bonez in black */
}
.site-info .powered-by-brand span:last-child {
    color: #FF0000; /* Booth in red */
}


/* =================================
   6. RESPONSIVENESS
   ================================= */
@media (max-width: 768px) {
    /* Stack navigation on smaller screens */
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    .main-navigation li {
        margin: 5px 0;
    }
    
    /* Adjust columns for About Us */
    .two-column-info {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Adjust gallery for smaller viewports */
    .image-gallery {
        grid-template-columns: 1fr !important; /* Single column on mobile */
    }
}