/* Custom Styles for Pits Landing Page */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Remove default margins and padding */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: var(--Type-Font-family-Primary), sans-serif;
}

/* Fix white space on small mobile screens */
@media (max-width: 768px) {
    .timeline-hover-image {
        width: min(350px, calc(100vw - 32px));
        right: 16px;
    }
    
    .hero-hover-image {
        width: 100%;
        right: 0;
    }
    
    .hero-image-container {
        overflow: hidden;
    }
    
    section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

@media (max-width: 385px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    .timeline-hover-image {
        width: min(350px, calc(100vw - 24px));
        right: 12px;
    }
}

/* Custom Variables - Matching Design */
:root {
    --red-primary: #DC2626;
    --red-dark: #7F1D1D;
    --red-light: #FEE2E2;
    --Text-Primary: #181818;
    --Text-Text-Inverse: #FFF;
    --Neutral-100: #EEE;
    --Surface-Action-button: #BA2429;
    --Surface-Background: #FFF;
    --Type-Font-family-Primary: Lato;
    --Paragraph-spacing-Heading-h7: 18px;
    --Paragraph-spacing-Heading-h3: 28px;
    --Paragraph-spacing-Heading-h6: 20px;
    --Lineheight-Heading-h7: 28px;
    --Lineheight-Heading-h6: 32px;
    --Fontsize-Heading-h2: 48px;
    --Lineheight-Heading-h2: 64px;
    --Fontsize-Heading-h3: 38px;
    --Lineheight-Heading-h3: 52px;
    --Fontsize-Heading-h4: 32px;
    --Lineheight-Heading-h4: 48px;
    --Fontsize-Heading-h5: 24px;
    --Lineheight-Heading-h5: 40px;
    --Border-Primary-100: #EEE;
    --Border-Action: #BA2429;
    --Section-BG-Light: #F6F8FA;
    --Fontsize-body-md: 14px;
    --Lineheight-body-md: 20px;
    --Fontsize-body-lg: 16px;
    --Lineheight-body-lg: 28px;
}

/* Hero Heading Styles */
.hero-heading,
.hero-heading-bold {
    color: var(--Text-Primary);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 58px;
    line-height: 120%;
}

.hero-heading {
    font-weight: 400;
}

.hero-heading-bold {
    font-weight: 700;
}

/* Hero Subtitle Styles */
.hero-subtitle {
    color: var(--Text-Primary);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h7);
    font-weight: 500;
    line-height: 130%;
    text-transform: uppercase;
}

/* Hero Paragraph Styles */
.hero-paragraph {
    color: var(--Text-Primary);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h7);
    font-weight: 500;
    line-height: var(--Paragraph-spacing-Heading-h3);
}

/* Section Background Image Styles */
.process-section,
.estimate-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.process-section {
    background-image: url('images/bg-gradient.jpg');
}

.estimate-section {
    background-image: url('images/bg-calculator.jpg');
}

.estimate-label,
.ai-speed-label {
    font-size: 18px;
    color: #181818;
}

/* Common Heading H2 Styles */
.process-heading,
.portfolio-heading,
.estimate-heading,
.ai-speed-heading,
.footer-cta-heading,
.testimonial-quote {
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Fontsize-Heading-h2);
    font-weight: 400;
    line-height: var(--Lineheight-Heading-h2);
}

.process-heading,
.estimate-heading {
    color: var(--Text-Text-Inverse);
}

.portfolio-heading,
.ai-speed-heading {
    color: var(--Text-Primary);
}

.testimonial-quote {
    color: var(--Text-Primary);
    text-align: center;
}

.footer-cta-heading {
    color: var(--Text-Text-Inverse);
}

/* Common Paragraph Styles */
.process-paragraph,
.estimate-paragraph,
.ai-speed-paragraph,
.footer-cta-paragraph {
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h7);
    font-weight: 400;
    line-height: var(--Paragraph-spacing-Heading-h3);
}

.process-paragraph,
.estimate-paragraph,
.footer-cta-paragraph {
    color: var(--Text-Text-Inverse);
}

.ai-speed-paragraph {
    color: var(--Text-Primary);
}

/* Timeline Item Styles */
.timeline-heading {
    color: var(--Text-Text-Inverse);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 140%;
}

.timeline-paragraph {
    color: var(--Neutral-100);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h7);
    font-weight: 400;
    line-height: 140%;
}

/* Common Section Background Styles */
.section-bg-light,
.portfolio-section,
.ai-speed-section {
    background-color: var(--Section-BG-Light);
    width: 100%;
}

.portfolio-paragraph {
    color: #5D5D5D;
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h7);
    font-weight: 400;
    line-height: var(--Paragraph-spacing-Heading-h3);
}

/* Estimate Calculator Title Styles */
.estimate-calculator-title {
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Fontsize-Heading-h3, 38px);
    font-weight: 700;
    line-height: var(--Lineheight-Heading-h3, 52px);
}

/* Stats Card Styles */
.stats-card {
    border-radius: 16px;
    border: 1px solid var(--Border-Primary-100, #EEE);
    background: var(--Surface-Background, #FFF);
    padding: 24px;
}

.stats-card .text-3xl {
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Fontsize-Heading-h5, 24px);
    font-weight: 700;
    line-height: var(--Lineheight-Heading-h5, 40px);
}

.stats-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #F0F2FF;
}

.stats-icon-container-2,
.stats-icon-container-4 {
    background: #E4F3E9;
}

.stats-icon-container-3 {
    background: #FDF6E6;
}

.stats-card p {
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Fontsize-body-lg, 16px);
    font-weight: 400;
    line-height: var(--Lineheight-body-lg, 28px);
}

/* Discover Text Styles */
.discover-text {
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Fontsize-Heading-h5, 24px);
    font-weight: 500;
    line-height: var(--Lineheight-Heading-h5, 40px);
}

/* Book a Free Call Button Styles */
.btn-book-free-call {
    display: flex;
    width: 210px;
    height: 56px;
    padding-left: 48px;
    padding-right: 48px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid var(--Border-Action, #BA2429);
    box-shadow: 1px 6px 24px 0 rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

/* Testimonial Author Styles */
.testimonial-author-name {
    color: #000;
    text-align: center;
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Fontsize-Heading-h4);
    font-weight: 400;
    line-height: var(--Lineheight-Heading-h4);
}

.testimonial-author-title {
    color: rgba(0, 0, 5, 0.84);
    text-align: center;
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h7);
    font-weight: 400;
    line-height: var(--Paragraph-spacing-Heading-h3);
}

/* Testimonial Author Info Block Styles */
.testimonial-author-info {
    border-right: 1px solid var(--Border-Primary-100, #EEE);
    padding-right: 40px;
}

/* See All Projects Button Styles */
.btn-see-all-projects {
    border-radius: 8px;
    border: 1px solid var(--Surface-Action-button, #BA2429);
    background: var(--Surface-Background, #FFF);
    color: var(--Surface-Action-button, #BA2429);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.btn-see-all-projects:hover {
    background: var(--red-light);
}

/* Visit Website Button Styles */
.btn-visit-website {
    border-radius: 8px;
    background: var(--Surface-Action-button, #BA2429);
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 9px;
    padding-bottom: 9px;
    transition: all 0.3s ease;
}

.btn-visit-website:hover {
    background: #9a1e22;
}

/* Project Styles */
.project-description {
    color: var(--Text-Primary);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h7);
    font-weight: 700;
    line-height: var(--Lineheight-Heading-h7);
}

.project-detail {
    color: var(--Text-Primary);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

/* Section Label Styles */
.section-label,
.why-pits-label,
.powered-by-text {
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary, Lato), sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 130%;
    text-transform: uppercase;
}

/* Process Section Label - White Color */
.process-section .section-label {
    color: var(--Text-Text-Inverse, #FFF);
}

/* Estimate Section Label - White Color */
.estimate-section .estimate-label {
    color: var(--Text-Text-Inverse, #FFF);
}

.footer-cta-label {
    color: var(--Text-Text-Inverse);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Powered By Section Styles */
.powered-by-section {
    background-color: #F6F8FA;
    padding-top: 80px;
    padding-bottom: 80px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* Powered By Grid Styles */
.powered-by-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 27px;
    width: 100%;
}

.powered-by-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid var(--Border-Primary-100, #EEE);
    background: #FFF;
    padding: 12px 16px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.powered-by-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f9f9f9;
    border-radius: 4px;
}

.powered-by-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.powered-by-name {
    color: var(--Text-Primary);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .powered-by-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .powered-by-card {
        padding: 10px 8px;
        gap: 12px;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .powered-by-logo {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .powered-by-name {
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .powered-by-grid {
        gap: 6px;
    }
    
    .powered-by-card {
        padding: 8px 6px;
        gap: 12px;
    }
    
    .powered-by-logo {
        width: 28px;
        height: 28px;
    }
    
    .powered-by-name {
        font-size: 11px;
        text-align: center;
    }
}

/* Why Pits Section Styles */
.why-pits-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Increase gap between grid items in Why Pits section on desktop */
@media (min-width: 1024px) {
    .why-pits-section .grid {
        gap: 10rem; /* Increased from gap-8 (2rem) to 4rem for more spacing */
    }
}

/* Why Pits Section - H3 Styles */
.why-pits-section h3 {
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: var(--Paragraph-spacing-Heading-h6, 20px);
    font-weight: 700;
    line-height: var(--Lineheight-Heading-h6, 32px);
}

/* Feature Icon Container Styles */
.feature-icon-container {
    display: flex;
    width: 64px;
    height: 64px;
    padding: 16px;
    align-items: center;
    gap: 10px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    background: #F0F2FF; /* Default for 1st, 3rd, and 4th icons */
}

.feature-icon-2 {
    background: #E4F3E9;
}

/* Timeline Connector Line */
.timeline-connector {
    left: 48px; /* Center of 96px wide label */
    width: 2px;
    border-left: 2px dashed rgba(255, 255, 255, 0.3);
}

/* Timeline Day Label Styles */
.timeline-day-label {
    display: flex;
    width: 96px;
    height: 42px;
    padding: 10px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-day-label {
    background: white;
    border-color: white;
}

.timeline-item:hover .timeline-day-label span {
    color: black;
}

/* Timeline Paragraph */
.timeline-paragraph {
    position: relative;
}

.space-y-12 {
    position: relative;
}

/* Timeline Item with Gradient Border */
.timeline-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 136px; /* 96px (timeline-day-label width) + 40px (gap) */
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.00) 100%);
    width: 70%;
}

.timeline-item:last-child::after {
    display: none;
}

/* Hero Hover Images */
.hero-image-container {
    position: relative;
    overflow: hidden;
}

.hero-hover-image {
    position: absolute;
    top: 25%;
    width: 60%;
    max-width: 100%;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.hero-hover-image-1 {
    right: 30%;
    z-index: 9;
    transform: rotate(0deg);
}

.hero-hover-image-2 {
    right: 10%;
    z-index: 4;
    transform: rotate(0deg);
    top: 25%;
}

.hero-image-container:hover .hero-hover-image-1 {
    transform: rotate(-10deg);
}

.hero-image-container:hover .hero-hover-image-2 {
    transform: rotate(10deg);
}

.hero-main-image {
    position: relative;
    z-index: 3;
    max-height: min(700px, 70vh);
    object-fit: contain;
}

/* Responsive hero image height based on viewport */
@media (max-width: 1024px) {
    .hero-main-image {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .hero-main-image {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .hero-main-image {
        max-height: 40vh;
    }
}

/* Timeline Hover Image */
.timeline-item {
    transition: all 0.3s ease;
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 40px;
}

.timeline-hover-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.2);
    transform-origin: right center;
    width: 350px;
    max-width: calc(100vw - 32px);
    height: 233px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    z-index: 10;
    border-radius: 8px;
}

.timeline-item:hover .timeline-hover-image {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease;
}

.timeline-item:hover .timeline-image {
    transform: scale(1.1);
}

/* Disable timeline hover animation on 1024px and below */
@media (max-width: 1024px) {
    .timeline-hover-image {
        display: none;
    }
    
    .timeline-item:hover .timeline-image {
        transform: scale(1);
    }
    
    .timeline-item:hover .timeline-day-label {
        background: transparent;
    }
    
    .timeline-item:hover .timeline-day-label span {
        color: white;
    }
}

.timeline-day-label span {
    color: white;
    font-weight: bold;
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

/* Navigation Styles */
.nav-header {
    background-color: #FFF !important;
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

nav.nav-header {
    background-color: #FFF !important;
    background: #FFF !important;
    overflow: visible;
}

/* Ensure dropdown container doesn't clip dropdown menu */
.nav-header .container {
    overflow: visible;
}

.nav-header .container > div {
    overflow: visible;
}


.nav-link {
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary, Lato);
    font-size: var(--Fontsize-body-md, 14px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Lineheight-body-md, 20px);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-link:visited {
    color: var(--Text-Primary, #181818);
}

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

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 200px;
    background: var(--Surface-Background);
    border: 1px solid var(--Border-Primary-100, #EEE);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
}

/* Mobile dropdown positioning - ensure it's fully visible */
@media (max-width: 1024px) {
    .nav-dropdown {
        position: relative;
    }
    
    .nav-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-dropdown {
        position: relative;
    }
    
    .nav-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: calc(100vw - 32px);
        white-space: nowrap;
        margin-top: 8px;
    }
    
    .nav-dropdown-item {
        white-space: nowrap;
        overflow: visible;
    }
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary, Lato);
    font-size: var(--Fontsize-body-md, 14px);
    font-weight: 400;
    line-height: var(--Lineheight-body-md, 20px);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav-dropdown-item:hover {
    background-color: #F6F8FA;
    color: var(--red-primary);
}

.nav-dropdown-item .nav-flag-icon {
    width: 20px;
    height: 20px;
}

.nav-chevron {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.nav-language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--Text-Primary, #181818);
    font-family: var(--Type-Font-family-Primary, Lato);
    font-size: var(--Fontsize-body-md, 14px);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-language-selector:hover {
    opacity: 0.8;
}

.nav-flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-lang-text {
    font-weight: 400;
    color: var(--Text-Primary, #181818);
}

/* Icon Reversed Color */
.icon-reversed {
    filter: invert(1);
}

/* Navigation Buttons */
.btn-estimate-calculator,
.btn-book-call-nav {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--Surface-Action-button, #BA2429);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-estimate-calculator {
    background: var(--Surface-Background, #FFF);
    color: var(--Surface-Action-button, #BA2429);
}

.btn-estimate-calculator:hover {
    background: #FEE2E2;
}

.btn-book-call-nav {
    background: var(--Surface-Action-button, #BA2429);
    color: var(--Text-Text-Inverse);
}

.btn-book-call-nav:hover {
    background: #9a1e22;
    border-color: #9a1e22;
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
}

#mobileMenu.menu-open {
    transform: translateY(0);
    opacity: 1;
    max-height: 500px;
    visibility: visible;
}

/* Burger Menu Button Animation */
#mobileMenuBtn {
    transition: transform 0.2s ease;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobileMenuBtn:active {
    transform: scale(0.95);
}

/* Mobile Menu Navigation Links */
#mobileMenu .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#mobileMenu .nav-link:hover {
    background-color: #F6F8FA;
    color: var(--red-primary);
}


.estimate-option-card {
    background: white;
    transition: all 0.3s ease;
}

.estimate-option-card:hover {
    background-color: #FEE2E2;
    border-color: #DC2626;
}

/* Footer Logo Styles */
.footer-logo {
    min-width: 63px;
    width: 63px;
    height: 63px;
    object-fit: contain;
}

/* Footer Link Styles */
footer a {
    color: var(--Text-Text-Inverse, #FFF);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Footer CTA Section Styles */
.footer-cta-section {
    background-image: url('images/bg-footer.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-color: #000;
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer-cta-heading {
    color: var(--Text-Text-Inverse);
}

.footer-cta-button {
    background: var(--Surface-Background);
    padding: 16px 32px;
}


/* Common Transitions */
button {
    transition: all 0.3s ease;
    font-family: var(--Type-Font-family-Primary), sans-serif;
}

a {
    transition: color 0.3s ease;
    font-family: var(--Type-Font-family-Primary), sans-serif;
}

/* Ensure all text elements use Lato */
h1, h2, h3, h4, h5, h6, p, span, div, input, textarea, select, label {
    font-family: var(--Type-Font-family-Primary), sans-serif;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Headings */
    .hero-heading,
    .hero-heading-bold {
        font-size: 32px;
        line-height: 120%;
    }
    
    /* H2 Headings */
    .process-heading,
    .portfolio-heading,
    .estimate-heading,
    .ai-speed-heading,
    .footer-cta-heading,
    .testimonial-quote {
        font-size: 28px;
        line-height: 120%;
    }
    
    /* H3 Headings */
    .estimate-calculator-title {
        font-size: 24px;
        line-height: 130%;
    }
    
    /* Timeline Headings */
    .timeline-heading {
        font-size: 20px;
        line-height: 140%;
    }
    
    /* H4 Headings */
    .testimonial-author-name {
        font-size: 24px;
        line-height: 140%;
    }
    
    /* H5 Headings */
    .discover-text {
        font-size: 18px;
        line-height: 140%;
    }
    
    /* Stats Card - Center align on mobile */
    .stats-card.text-left {
        text-align: center;
    }
    
    .stats-card.text-left .stats-icon-container {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Center flex containers with justify-between on mobile */
    .flex.items-center.justify-between.gap-4.flex-wrap {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .flex.items-center.justify-between.gap-4.flex-wrap > * {
        text-align: center;
    }
    
    .flex.items-center.justify-between.gap-4.flex-wrap .discover-text {
        text-align: center;
    }
    
    /* Center grid items on mobile - Why Pits section */
    .why-pits-section .grid {
        justify-items: center;
        text-align: center;
    }
    
    .why-pits-section .grid > div {
        text-align: center;
        max-width: 100%;
    }
    
    .why-pits-section .grid .feature-icon-container {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Reduce section padding on mobile */
    section.py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    section.pt-4.pb-16 {
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
    }
    
    footer.py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .powered-by-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .footer-cta-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Center align FREE CONSULTATION label and icon on mobile */
    .footer-cta-label {
        justify-content: center;
    }
    
    /* Reduce padding for contact us button on mobile */
    .footer-cta-button {
        padding: 12px 24px !important;
    }
}

/* Custom Scrollbar (Optional) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--red-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
    top: 0;
    outline: 3px solid var(--red-primary);
    outline-offset: 2px;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
}

/* Focus visible for better keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--red-primary);
    outline-offset: 3px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Button Styles */
.btn-book-call,
.btn-see-work,
.footer-cta-button {
    border-radius: 12px;
    box-shadow: 1px 6px 24px 0 rgba(0, 0, 0, 0.12);
}

.btn-book-call {
    background: var(--Surface-Background);
    padding-left: 48px !important;
    padding-right: 48px !important;
}

.btn-see-work {
    background: #D42D27;
    padding-left: 48px !important;
    padding-right: 48px !important;
}

/* Center align See Our Work button text on mobile */
@media (max-width: 640px) {
    .btn-see-work {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--red-primary);
}

/* Contact Form Styles */
.contact-form-title {
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--Text-Primary);
    margin-bottom: 16px;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--Text-Primary);
    margin-bottom: 4px;
}

.form-label .required {
    color: var(--red-primary);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--Border-Primary-100, #EEE);
    border-radius: 8px;
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 14px;
    color: var(--Text-Primary);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.form-textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 120px;
}

/* Error Message Styles */
.error-message {
    display: none;
    color: var(--red-primary, #DC2626);
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 14px;
    margin-top: 4px;
    font-weight: 400;
}

.error-message.show {
    display: block;
}

.form-input.error,
.form-textarea.error {
    border-color: var(--red-primary, #DC2626);
    background-color: #FEE2E2;
}

.form-input.error:focus,
.form-textarea.error:focus {
    border-color: var(--red-primary, #DC2626);
    outline: 2px solid rgba(220, 38, 38, 0.2);
}

/* Character Counter Styles */
.char-counter {
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-align: right;
}

.char-counter span {
    font-weight: 500;
}

.recaptcha-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

.recaptcha-container .g-recaptcha {
    display: block;
    width: 100%;
    overflow: hidden;
    transform: scale(1);
    transform-origin: 0 0;
}

.recaptcha-note {
    font-size: 12px;
    color: #666;
    font-family: var(--Type-Font-family-Primary), sans-serif;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 4px;
}

.btn-clear,
.btn-submit {
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--Border-Primary-100, #EEE);
}

.btn-clear {
    background: white;
    color: var(--Text-Primary);
}

.btn-clear:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-submit {
    background: var(--Surface-Action-button, #BA2429);
    color: white;
    border-color: var(--Surface-Action-button, #BA2429);
}

.btn-submit:hover {
    background: #9a1e22;
    border-color: #9a1e22;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Thank You Message Styles */
.thank-you-message {
    text-align: center;
    padding: 40px 20px;
}

.thank-you-icon {
    color: #22c55e;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.thank-you-title {
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--Text-Primary);
    margin-bottom: 16px;
}

.thank-you-text {
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-close-thankyou {
    padding: 12px 32px;
    border-radius: 8px;
    font-family: var(--Type-Font-family-Primary), sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--Surface-Action-button, #BA2429);
    color: white;
    border: 1px solid var(--Surface-Action-button, #BA2429);
}

.btn-close-thankyou:hover {
    background: #9a1e22;
    border-color: #9a1e22;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 25px 18px;
        max-width: 100%;
    }
    
    .contact-form-title,
    .thank-you-title {
        font-size: 22px;
    }
    
    .contact-form {
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-clear,
    .btn-submit {
        width: 100%;
    }
    
    .thank-you-message {
        padding: 25px 15px;
    }
    
    .thank-you-text {
        font-size: 16px;
    }
    
    /* Fix reCAPTCHA for mobile */
    .recaptcha-container {
        /* overflow-x: auto; */
        -webkit-overflow-scrolling: touch;
    }
    
    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        width: 117.65%; /* Compensate for scale (100 / 0.85) */
    }
}

@media (max-width: 480px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
        width: 129.87%; /* Compensate for scale (100 / 0.77) */
    }
}
