/* ================================================================
   AS Prime Contracting - Main Stylesheet
   Brand Colors: Gold/Bronze (#B8860B), Deep Grey (#333333), White
   ================================================================ */

:root {
    --primary-gold: #B8860B;
    --dark-grey: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
}

/* ================================================================
   Global Styles
   ================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-grey);
    background-color: var(--white);
}

/* ================================================================
   Typography & Text Utilities
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-grey);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-grey);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), rgba(184, 134, 11, 0.4));
    border-radius: 2px;
}

.text-gold {
    color: var(--primary-gold);
}

/* ================================================================
   Buttons & CTA Elements
   ================================================================ */

.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold), #a0760a);
    border: none;
    color: var(--dark-grey);
    font-weight: 600;
    padding: 12px 30px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #a0760a, var(--primary-gold));
    color: var(--dark-grey);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

.btn-outline-light:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--dark-grey);
}

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

.navbar {
    background-color: var(--dark-grey) !important;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    margin-left: 20px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

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

.hero-section {
    min-height: 100vh;
    background-image: url('../images/construction-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(51, 51, 51, 0.85), rgba(85, 85, 85, 0.85)),
        radial-gradient(circle at 20% 50%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    z-index: 3;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.hero-wave {
    width: 100%;
    height: 120px;
    z-index: 2;
}

/* Media Query for Hero Section */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* ================================================================
   Section Padding Utility
   ================================================================ */

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

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

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

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

.service-card {
    padding: 40px;
    background-color: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-gold), #a0760a) !important;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.transition-all {
    transition: var(--transition);
}

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

.featured-projects {
    background-color: var(--white);
}

.project-card {
    overflow: hidden;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(184, 134, 11, 0.2);
}

.project-image {
    background: linear-gradient(135deg, #555555, #777777);
    min-height: 300px;
    transition: var(--transition);
    overflow: hidden;
}

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

.project-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark-grey);
}

.project-info p {
    flex-grow: 1;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.badge.bg-gold {
    background-color: var(--primary-gold) !important;
    color: var(--dark-grey);
    font-weight: 600;
    padding: 8px 14px;
}

/* ================================================================
   Divider Waves (SVG)
   ================================================================ */

.hero-wave,
.divider-wave {
    display: block;
    margin-bottom: -1px;
}

.divider-wave {
    opacity: 0.5;
}

/* ================================================================
   CTA Section
   ================================================================ */

.cta-section {
    background: linear-gradient(135deg, var(--dark-grey) 0%, #555555 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.cta-section .btn {
    position: relative;
    z-index: 2;
}

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

footer {
    background-color: var(--dark-grey) !important;
    border-top: 2px solid var(--primary-gold);
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-gold);
}

footer .text-muted {
    color: #aaa !important;
    transition: var(--transition);
}

footer a:not(.btn) {
    color: #aaa;
    transition: var(--transition);
}

footer a:not(.btn):hover {
    color: var(--primary-gold);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(184, 134, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-gold);
    color: var(--dark-grey) !important;
}

footer p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* ================================================================
   Custom Gradient Classes
   ================================================================ */

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--primary-gold), #a0760a) !important;
}

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

.rounded-lg {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ================================================================
   Responsive Design - Tablets
   ================================================================ */

@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-nav .nav-link {
        margin-left: 10px;
    }
}

/* ================================================================
   Responsive Design - Mobile
   ================================================================ */

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .btn-gold,
    .btn-outline-light {
        width: 100%;
        margin-bottom: 12px !important;
        margin-right: 0 !important;
    }
    
    .service-card,
    .project-card {
        padding: 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .cta-section h2 {
        font-size: 1.7rem;
    }
    
    footer .row {
        text-align: center;
    }
    
    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .project-image {
        min-height: 250px;
    }
}

/* ================================================================
   Accessibility & Print Styles
   ================================================================ */

@media print {
    .navbar,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* ================================================================
   Loading & Animation Classes
   ================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}
