/* 
============================================
xfiniOps Main Stylesheet
Author: Claude 3.7 Sonnet
Version: 1.0
============================================
*/

/* ========== BASE STYLES ========== */
:root {
    /* Color Scheme */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #475569;
    --secondary-light: #64748b;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --white: #ffffff;
    --light-gray: #e2e8f0;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --text-white: #f8fafc;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 24px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1 {
    font-size: 48px;
    font-weight: 700;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 16px;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

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

/* ========== UTILITIES ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

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

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    font-size: 16px;
}

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

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

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

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

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

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

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

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--heading-font);
}

.logo-text {
    color: var(--secondary-color);
}

.logo-highlight {
    color: var(--primary-color);
}

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

.nav-item {
    margin: 0 10px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

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

.nav-link.active {
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-dark);
}

/* ========== HERO SECTION ========== */
.hero {
    background-color: var(--light-bg);
    padding: var(--section-padding);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* ========== SERVICES PREVIEW ========== */
.services-preview {
    padding: var(--section-padding);
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 16px;
}

.service-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 500;
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

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

/* ========== WHY CHOOSE US ========== */
.why-choose-us {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

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

.feature {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-text p {
    color: var(--text-white);
    margin-bottom: 0;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--white);
}

.testimonial-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding-bottom: 24px;
    margin-bottom: 32px;
    scrollbar-width: thin;
}

.testimonial {
    min-width: 300px;
    flex: 1;
}

.testimonial-content {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 32px;
    position: relative;
}

.testimonial-text {
    margin-bottom: 24px;
}

.testimonial-text p {
    font-style: italic;
}

.author-info h4 {
    margin-bottom: 4px;
}

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

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

/* ========== CONTACT CTA ========== */
.contact-cta {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.contact-cta-content h2 {
    margin-bottom: 16px;
}

.contact-cta-content p {
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: var(--light-gray);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-links-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-contact p {
    color: var(--light-gray);
    margin-bottom: 12px;
}

.footer-contact p i {
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icon {
    color: var(--light-gray);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--white);
}

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

.footer-bottom p {
    color: var(--light-gray);
    margin-bottom: 0;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 {
        font-size: 42px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-contact {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
        --container-padding: 0 16px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}





/* ========== studies ========== */


/* ========== CASE STUDIES ========== */
.filter-section {
    padding: 40px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.filter-label {
    font-weight: 600;
    margin-right: 16px;
    color: var(--text-dark);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--heading-font);
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.case-studies-section {
    padding: var(--section-padding);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.case-study-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.case-study-image {
    position: relative;
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
}

.case-study-content {
    padding: 24px;
}

.case-study-brief {
    color: var(--text-light);
    margin-bottom: 16px;
}

.case-study-details {
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 500;
    margin-right: 8px;
    color: var(--text-dark);
}

.case-study-link {
    margin-top: 12px;
}

/* ========== CONTRACTOR PAGE EXTENSIONS ========== */
.contractor-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--section-padding);
}

.contractor-hero h1,
.contractor-hero p {
    color: var(--white);
}

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

.process-step {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.step-number {
    background-color: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-right: 30px;
}

.timeline-line {
    position: absolute;
    top: 70px;
    left: 30px;
    width: 2px;
    height: calc(100% - 140px);
    background-color: var(--primary-light);
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.skill-category {
    background-color: var(--white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skill-list {
    list-style: none;
    margin-top: 16px;
}

.skill-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
}

.inquiry-form-section {
    padding: var(--section-padding);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-submit {
    text-align: center;
    margin-top: 32px;
}

.two-column-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.two-column-content.reverse {
    flex-direction: row-reverse;
}

.two-column-content .content-text,
.two-column-content .content-image {
    flex: 1;
}

@media (max-width: 768px) {
    .two-column-content {
        flex-direction: column;
        text-align: center;
    }
    .two-column-content.reverse {
        flex-direction: column;
    }
}

/* Space between contract sections */
.light-section,
.dark-section {
    padding: 80px 0;
}

.light-section,
.dark-section {
    padding: 80px 0;
    border-bottom: 1px solid #f0f0f0; /* optional */
}
