/* General Styles */
:root {
    --primary-color: #0e76bc;
    --secondary-color: #34a853;
    --accent-color: #f7ca18;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #4a4a4a;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --section-padding: 80px 0; /* Standard section padding */
    --header-height: 76px; /* Standard header height */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    padding-top: var(--header-height);
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

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

a:hover {
    color: #065a91;
}

ul {
    list-style: none;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

section {
    padding: var(--section-padding);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

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

/* Placeholder for images */
.placeholder-image {
    background-color: #e0e0e0;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: transform 0.3s ease, padding 0.3s ease;
    border-bottom: 3px solid var(--primary-color);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.logo:hover::after {
    opacity: 1;
}

.company-logo {
    display: none;
    max-height: 60px;
    transition: max-height 0.3s ease;
}

.company-logo-simple {
    display: block;
    max-height: 60px;
    transition: max-height 0.3s ease;
}

header.scrolled .company-logo {
    max-height: 50px;
}

header.scrolled .company-logo-simple {
    max-height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2.5rem;
    position: relative;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0.4rem;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
    width: 100%;
}

/* Exclude button from underline effect */
.nav-links .btn::after {
    display: none;
}

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

.nav-links .btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(14, 118, 188, 0.2);
    transition: all 0.3s ease;
    margin-left: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a8ad3 100%);
    border: none;
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 118, 188, 0.3);
    background: linear-gradient(135deg, #1a8ad3 0%, var(--primary-color) 100%);
    color: white;
}

.nav-links .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(14, 118, 188, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Homepage Intro Section */
.intro-section {
    padding-top: 80px;
    padding-bottom: 60px;
    background-color: #f8fbfe;
    border-bottom: 1px solid #edf2f7;
}

.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.intro-content {
    max-width: 600px;
}

.intro-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #666;
}

.hero-logo {
    margin-bottom: 2rem;
    text-align: center;
    max-width: 100%;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 360px; /* Doubled from original 180px */
    display: inline-block;
}

.intro-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: #f8f9f9;
    min-height: 400px;
    width: 100%;
}

.intro-image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    min-height: 400px;
}

.intro-image:hover .intro-image-content {
    transform: scale(1.05);
}

.intro-buttons {
    display: flex;
    gap: 15px;
}

/* Services Section */
.services {
    background-color: white;
}

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

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f3fa;
    border-radius: 50%;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

/* About Section */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--secondary-color);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
}

.testimonials-slider {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.testimonial {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 1rem;
}

.testimonial-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 5rem;
    position: absolute;
    left: 20px;
    top: -10px;
    color: #e0e0e0;
    font-family: serif;
}

.client-info {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.client-info h4 {
    margin-bottom: 0.2rem;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.contact-item h4 {
    margin-bottom: 0.2rem;
}

.contact-cta {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f5f9fd;
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-cta p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo p {
    color: #ddd;
    margin-top: 10px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    margin-bottom: 10px;
    max-height: 70px;
}

.footer-logo-img.company-logo {
    display: none;
}

.footer-logo-img.company-logo-simple {
    display: none;
}

.footer-logo-img.company-logo-nontransparent {
    display: block;
    max-height: 60px;
    filter: brightness(1.2); /* Increase brightness to improve visibility on dark background */
    width: auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    margin: 0 auto;
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

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

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

.creator-credit {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.creator-credit a {
    color: inherit;
    text-decoration: underline;
    transition: var(--transition);
}

.creator-credit a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Standard Inner Page Header for all pages */
.inner-page-header {
    height: 40vh;
    min-height: 300px;
    background: #f8fbfe;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--primary-color);
    margin-top: calc(-1 * var(--header-height)); /* Use variable for consistency */
    border-bottom: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
}

.inner-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(232, 244, 253, 0.9) 0%, rgba(248, 251, 254, 0.75) 100%);
    z-index: 1;
}

.inner-page-header .container {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-height) + 20px);
}

.inner-page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.inner-page-header h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.inner-page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: var(--text-color);
}

.page-breadcrumbs {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 10px;
    font-size: 0.95rem;
}

.page-breadcrumbs a {
    color: var(--primary-color);
    transition: var(--transition);
}

.page-breadcrumbs a:hover {
    text-decoration: underline;
}

.page-breadcrumbs .breadcrumb-separator {
    color: #999;
}

.page-breadcrumbs .current-page {
    color: #777;
}

/* Page-specific backgrounds can override the background image only */
.inner-page-header.services-header {
    background: #f8fbfe;
    background-size: cover;
    background-position: center;
}

.inner-page-header.about-header {
    background: #f8fbfe;
    background-size: cover;
    background-position: center;
}

.inner-page-header.projects-header {
    background: #f8fbfe;
    background-size: cover;
    background-position: center;
}

.inner-page-header.contact-header {
    background: #f8fbfe;
    background-size: cover;
    background-position: center;
}

.inner-page-header.quote-header {
    background: #f8fbfe;
    background-size: cover;
    background-position: center;
}

/* Consistent section layouts */
.content-section {
    background-color: white;
}

.alternate-section {
    background-color: #f9f9f9;
}

/* Standard CTA Section - consistent styling across all pages */
.cta-section {
    padding: 60px 0;
    background-color: #f0f7fd;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image {
        order: -1;
    }
    .contact-map {
        margin-top: 2rem;
    }
    .intro-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .intro-content {
        max-width: 100%;
        text-align: center;
    }
    .intro-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-content .company-logo {
        display: none;
    }
    
    .header-content .company-logo-simple {
        display: block;
        max-height: 50px;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        z-index: 999;
        overflow-y: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        display: block;
        width: 100%;
        color: var(--dark-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links .btn {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .menu-logo {
        width: 30px;
        height: 30px;
        transition: transform 0.3s ease;
    }
    
    .menu-logo {
        width: 30px;
        height: 30px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn[aria-expanded="true"] .menu-logo {
        transform: rotate(90deg);
    }

    body.menu-open {
        overflow: hidden;
    }

    header {
        position: fixed;
        top: 0;
        background: white;
        z-index: 1000;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

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

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

    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0; /* Smaller padding on mobile */
    }
    
    .inner-page-header {
        min-height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .intro-content h1 {
        font-size: 2.2rem;
    }
    
    .intro-buttons {
        flex-direction: column;
    }

    .hero-logo-img {
        max-height: 240px; /* Slightly smaller on mobile but still larger than original */
    }
} 