/* =====================================================
   Sheridan Construction Group - Main Stylesheet
   ===================================================== */

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    --primary-color: #1a3a5c;
    --primary-dark: #0d2137;
    --secondary-color: #d4a855;
    --secondary-light: #e8c87b;
    --accent-color: #2c5282;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* =====================================================
   Base Styles
   ===================================================== */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

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

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

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

/* =====================================================
   Navigation
   ===================================================== */
#mainNav {
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

#mainNav.navbar-scrolled {
    background: var(--primary-dark);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 2px;
}

.brand-subtext {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: -0.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.navbar-nav .btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.navbar-nav .btn-primary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
}

.hero-badge i {
    color: var(--secondary-color);
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--primary-dark);
}

.btn-primary-custom:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--primary-dark);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-custom:hover {
    background: #fff;
    color: var(--primary-dark);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* =====================================================
   Section Styles
   ===================================================== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

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

/* =====================================================
   Services Cards
   ===================================================== */
.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* =====================================================
   About Section
   ===================================================== */
.about-content {
    padding-right: 3rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-features li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(212, 168, 85, 0.4);
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* =====================================================
   Stats Section
   ===================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   Gallery
   ===================================================== */
.gallery-section {
    padding: 6rem 0;
}

.gallery-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-filter .btn {
    margin: 0.25rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 58, 92, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =====================================================
   Project Gallery Page
   ===================================================== */
.project-hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
}

.project-hero h1 {
    color: #fff;
    font-size: 3rem;
}

.project-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

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

.project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.project-card-body {
    padding: 1.5rem;
}

.project-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.image-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* =====================================================
   Lightbox
   ===================================================== */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    position: relative;
}

.lightbox-modal img {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: invert(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    transition: var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    text-align: center;
    color: #fff;
    padding: 1rem;
    font-size: 0.95rem;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-section {
    padding: 6rem 0;
}

.contact-info-card {
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    padding: 3rem;
    height: 100%;
}

.contact-info-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.contact-info-item h4 {
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.contact-info-item a:hover {
    color: var(--secondary-color);
}

.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form-card .subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-control,
.form-select {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.btn-submit {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--primary-dark);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

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

/* =====================================================
   About Page
   ===================================================== */
.about-hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
}

.about-hero h1 {
    color: #fff;
    font-size: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-dark);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-light);
}

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

.team-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card-body {
    padding: 1.5rem;
    text-align: center;
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.team-card .role {
    color: var(--secondary-color);
    font-weight: 500;
}

/* =====================================================
   Services Page
   ===================================================== */
.services-hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
}

.services-hero h1 {
    color: #fff;
    font-size: 3rem;
}

.service-detail-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.service-detail-image {
    min-height: 350px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .service-detail-image {
        height: 100%;
        min-height: 400px;
    }
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-body {
    padding: 2.5rem;
}

.service-detail-body h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.service-features li i {
    color: var(--secondary-color);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .experience-badge {
        left: auto;
        right: 20px;
    }

    .contact-info-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .gallery-item img {
        aspect-ratio: 4/3;
    }

    .project-hero h1,
    .about-hero h1,
    .services-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .brand-subtext {
        display: none;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 2rem;
    }
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
