:root {
    --primary-color: #D32F2F;
    /* Red */
    --primary-dark: #B71C1C;
    --text-color: #333333;
    --heading-color: #111111;
    --bg-color: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-dark: #1A1A1A;
    --white: #FFFFFF;
    --gray-light: #E0E0E0;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

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

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

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -1px;
}

.logo-img {
    height: 30px;
    /* Set to 30px per user request */
    width: auto;
    object-fit: contain;
}

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

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

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('images/capital.png');
    /* Local Hero Image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    padding-top: var(--header-height);
    /* Offset fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Projects Gallery (projects.html) */
.projects-gallery {
    padding: 60px 0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Detailed Services Page Layout */
.new-construction-hero {
    margin-top: 0;
    padding-top: var(--header-height);
    background-size: cover;
    background-position: center;
}

.detailed-services {
    padding: 80px 0;
}

.detailed-service-item {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .detailed-service-item {
        flex-direction: row;
    }

    .detailed-service-item.reverse {
        flex-direction: row-reverse;
    }
}

.detailed-service-image {
    flex: 1;
    width: 100%;
}

.detailed-service-image > img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 400px;
}

.detailed-service-content {
    flex: 1;
}

.detailed-service-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.detailed-service-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.detailed-service-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.detailed-service-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.detailed-service-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-weight: 500;
}

.detailed-service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ── Projects Page Styles ─────────────────────────────── */

/* Hero tag */
.projects-hero-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    padding: 6px 16px;
    border-radius: 2px;
}

/* Stats Bar */
.projects-stats-bar {
    background-color: var(--bg-dark);
    padding: 30px 0;
}

.projects-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.projects-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.projects-stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.projects-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
    font-weight: 500;
}

.projects-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .projects-stat-divider { display: none; }
    .projects-stats-grid { gap: 24px; }
}

/* Gallery Section */
.projects-gallery-section {
    background-color: var(--bg-light);
}

.projects-gallery-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Card Grid */
.projects-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Row 2: first card spans 2 cols (wide), second spans 1 */
.project-card--wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .projects-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 580px) {
    .projects-card-grid {
        grid-template-columns: 1fr;
    }
    .project-card--wide {
        grid-column: span 1;
    }
}

/* Individual Card */
.project-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--primary-color);
}

.project-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    flex-shrink: 0;
}

.project-card--wide .project-card-img-wrapper {
    height: 280px;
}

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

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

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-cta {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--white);
    padding: 10px 22px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.project-card-cta:hover {
    background: var(--white);
    color: var(--heading-color);
}

.project-card-body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-tag {
    display: inline-block;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
    font-weight: 700;
    align-self: flex-start;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.project-card-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.project-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

.project-card-meta i {
    color: var(--primary-color);
    margin-right: 4px;
}

/* CTA Strip */
.projects-cta-strip {
    background-color: var(--primary-color);
    padding: 70px 0;
}

.projects-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.projects-cta-inner .cta-title {
    color: var(--white);
    margin-bottom: 8px;
}

.projects-cta-inner .cta-text {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .projects-cta-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ── Lightbox Modal ────────────────────────────────────── */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 9002;
}

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

.lightbox-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
}

.lightbox-img-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 75vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-nav {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    z-index: 9001;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-footer {
    margin-top: 18px;
    text-align: center;
}

.lightbox-title {
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.lightbox-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
}

.lb-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 0.85rem; }
    #lightbox-img { max-height: 60vh; }
}



/* Services */
.services {
    background-color: var(--bg-light);
    text-align: center;
}

.services .section-header {
    margin-bottom: 60px;
}

.services .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.services .section-subtitle {
    margin: 0 auto;
}

.services-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
    box-sizing: border-box;
    /* Create a smooth horizontal fade effect on the left and right edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
    mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
}

.services-grid {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollServices 30s linear infinite;
}

/* Pseudo-elements to create 40px visual padding at the extreme edges */
.services-grid::before,
.services-grid::after {
    content: "";
    flex: 0 0 10px;
    /* 30px gap + 10px flex = 40px equivalent spacing from the first/last card */
}

.services-grid:hover {
    animation-play-state: paused;
}

@keyframes scrollServices {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    overflow: hidden;
    flex: 0 0 300px;
    /* Fixed width */
    width: 300px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* About */
.about {
    background-color: var(--white);
}

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

.about-subtitle {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* CTA */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    /* Align form to top of contact info */
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

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

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

.form-group input,
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input[type="file"] {
    padding: 9px 12px;
    /* Slight adjustment for file input button vertical alignment */
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background-color: var(--bg-light);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: var(--gray-light);
}

.form-help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
}

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

/* Projects / Comparison Slider */
.projects {
    background-color: var(--bg-light);
    text-align: center;
}

.projects .section-header {
    margin-bottom: 50px;
}

.projects .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.projects .section-subtitle {
    margin: 0 auto;
}

.comparison-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.projects-carousel {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    display: block;
    overflow: visible;
}

/* Stage: contains only slides + nav buttons so top:50% is relative to image height */
.carousel-stage {
    position: relative;
    display: block;
    overflow: visible;
    min-height: 500px;
}

/* Slide caption */
.slide-caption {
    text-align: center;
    margin-top: 28px;
    padding: 0 20px;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 6px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide-caption p {
    font-size: 1rem;
    color: #666;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide-caption.fading h3,
.slide-caption.fading p {
    opacity: 0;
    transform: translateY(8px);
}

.project-slide {
    display: none;
    width: 100%;
    animation: slideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-slide.active {
    display: block;
}

/* Carousel Navigation - glassmorphism style */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--heading-color);
    border: 1px solid rgba(255,255,255,0.6);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: -70px;
}

.carousel-next {
    right: -70px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.indicator.active {
    background-color: var(--primary-color);
    width: 28px;
    border-radius: 5px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments for buttons */
@media (max-width: 1060px) {
    .carousel-prev { left: 10px; z-index: 110; }
    .carousel-next { right: 10px; z-index: 110; }
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.resize-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 10;
}

/* Vertical divider line */
.resize-img::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.resize-img .comp-img {
    width: 100vw; /* always covers full slider width; resize-img clips it */
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: white;
    border-radius: 50%;
    z-index: 20;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 3px solid white;
}

.handle:hover {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.handle::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 22px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

.handle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3Cpolyline points='15 18 9 12 15 6' transform='scale(-1,1) translate(-24,0)'%3E%3C/polyline%3E%3C/svg%3E") center/65% no-repeat;
}


.label {
    position: absolute;
    top: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 15;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

/* Subscribe Section */
.subscribe-section {
    background-color: var(--white);
    color: var(--text-color);
    padding: 80px 0;
    border-top: 1px solid #eee;
    display: block;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.subscribe-wrapper {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    -webkit-align-items: start;
    align-items: start;
}

.subscribe-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--primary-color);
}

.subscribe-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 400px;
}

/* Mobile Responsive - Subscribe */
@media (max-width: 768px) {
    .subscribe-wrapper {
        -webkit-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
    display: block;
    /* Block to constrain child image */
    line-height: 0;
    /* Remove any line-height gap */
}

.footer-logo-img {
    height: 100px !important;
    /* Force height */
    width: auto !important;
    /* Let width scale */
    max-width: 400px !important;
    /* Hard cap on width for Safari */
    display: block;
    object-fit: contain;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.footer-copy {
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    width: 100%;
    padding-top: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 100px 30px;
        transition: var(--transition);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-color);
}

/* New Construction Hero */
.new-construction-hero {
    background-image: url('images/hero_new_construction_background_1771274030710.png');
    height: 70vh;
    /* Slightly shorter hero for sub-pages */
}

/* Dashboard Styles */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
    font-size: 0.95rem;
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.dashboard-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.dashboard-table tr:hover {
    background-color: #fcfcfc;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-service {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.message-cell {
    max-width: 300px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}