
/* ==================================================
   MIRANDA PAINTING
   Main Stylesheet
   ================================================== */


/* ==================================================
   1. DESIGN VARIABLES
   ================================================== */

:root {
    /* Brand colors */
    --color-navy: #0B1940;
    --color-primary: #245B91;
    --color-accent: #54A8D8;
    --color-light: #EFF5FA;
    --color-white: #FFFFFF;

    /* Text colors */
    --color-text: #242B33;
    --color-muted: #536171;
    --color-border: #DCE3EA;

    /* Typography */
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Inter", Arial, sans-serif;

    /* Layout */
    --container-width: 1280px;
    --container-padding: 24px;
    --section-spacing: 96px;

    /* Border radius */
    --radius-small: 4px;
    --radius-medium: 8px;

    /* Shadows */
    --shadow-small: 0 2px 8px rgba(11, 25, 64, 0.08);
    --shadow-medium: 0 8px 24px rgba(11, 25, 64, 0.12);

    /* Transitions */
    --transition: 250ms ease;
}


/* ==================================================
   2. GLOBAL RESET
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}


/* ==================================================
   3. TYPOGRAPHY
   ================================================== */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

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


/* ==================================================
   4. REUSABLE LAYOUT CLASSES
   ================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--section-spacing);
}

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

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

.section-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-description {
    max-width: 680px;
    color: var(--color-muted);
    font-size: 1.05rem;
}


/* ==================================================
   5. REUSABLE BUTTONS
   ================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 14px 28px;

    border: 2px solid transparent;
    border-radius: var(--radius-small);

    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;

    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    transform: translateY(-2px);
}

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

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

.btn:active {
    transform: translateY(0);
}


/* ==================================================
   6. ACCESSIBILITY
   ================================================== */

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 9999;

    padding: 12px 20px;
    background-color: var(--color-navy);
    color: var(--color-white);
    border-radius: var(--radius-small);
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}


/* ==================================================
   7. GLOBAL RESPONSIVE SETTINGS
   ================================================== */

@media (max-width: 1023px) {
    :root {
        --section-spacing: 72px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-spacing: 48px;
        --container-padding: 20px;
    }

    html {
        scroll-padding-top: 80px;
    }

    .btn {
        padding: 12px 22px;
    }
}


/* Respect users who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}



/* ==================================================
   8. HEADER & NAVIGATION
   ================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-small);
}


/* Top information bar */

.top-bar {
    background-color: var(--color-navy);
    color: var(--color-white);
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 16px;
}

.top-bar a {
    font-weight: 600;
    transition: color var(--transition);
}

.top-bar a:hover {
    color: var(--color-accent);
}


/* Main navigation */

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    gap: 32px;
}


/* Business logo */

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: 200px;
    height: auto;
    max-height: 78px;
    object-fit: contain;
}


/* Navigation links */

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

.nav-links a {
    position: relative;
    color: var(--color-navy);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
}

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

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

.nav-cta {
    flex-shrink: 0;
}

html {
    scroll-padding-top: 140px;
}


/* ==================================================
   9. HERO SECTION
   ================================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    background-color: var(--color-navy);
}


/* Left side: text content */

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px 56px;
    padding-left: max(
        40px,
        calc((100vw - var(--container-width)) / 2 + 24px)
    );

    color: var(--color-white);
}

.hero-label {
    display: inline-block;
    margin-bottom: 24px;

    color: #A6D3F0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 3.8vw, 4rem);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content p {
    max-width: 540px;
    margin-bottom: 32px;

    color: #DCE8F5;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* Hero buttons */

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

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

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

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

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


/* Right side: project photograph */

.hero-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.hero-image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* ==================================================
   10. CREDIBILITY BAR
   ================================================== */

.trust-bar {
    background-color: var(--color-light);
    border-bottom: 1px solid var(--color-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-block: 32px;
}

.trust-item {
    text-align: center;
    padding: 12px 24px;
}

.trust-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.trust-item strong {
    display: block;
    margin-bottom: 4px;

    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

.trust-item p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 500;
}


/* ==================================================
   11. HEADER & HERO RESPONSIVE STYLES
   ================================================== */

@media (max-width: 1100px) {

    .nav-container {
        gap: 20px;
    }

    .nav-links {
        gap: 18px;
    }

    .brand-logo {
        width: 170px;
    }

    .hero-content {
        padding: 56px 32px;
    }
}

@media (max-width: 900px) {

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 16px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 64px 32px;
    }

    .hero-image {
        min-height: 400px;
    }

    html {
        scroll-padding-top: 220px;
    }
}

@media (max-width: 600px) {

    .site-header {
        position: relative;
    }

    .top-bar-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 16px;
        padding-block: 8px;
        font-size: 0.75rem;
    }

    .nav-container {
        gap: 16px;
    }

    .brand-logo {
        width: 150px;
    }

    .nav-links {
        gap: 12px 18px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 48px 24px;
    }

    .hero-image {
        min-height: 300px;
    }

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

    .trust-grid {
        grid-template-columns: 1fr;
        padding-block: 16px;
    }

    .trust-item {
        padding: 20px;
    }

    .trust-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    html {
        scroll-padding-top: 20px;
    }
}

/* ==============================
   ABOUT SECTION
   ============================== */

#about {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.about-image {
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
}

.about-content {
    max-width: 540px;
}

.about-label {
    display: inline-block;
    color: #24598b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.2;
    margin-bottom: 24px;
    color: #101b3f;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #526074;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #101b3f;
}

.about-features li::before {
    content: "\2713";
    color: #24598b;
    font-weight: 700;
}

.about-content .btn {
    margin-top: 8px;
}


/* About Section - Mobile */

@media (max-width: 768px) {
    #about {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image img {
        height: 340px;
    }

    .about-content {
        max-width: 100%;
    }

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

/* ==============================
   SERVICES SECTION
   ============================== */

.services-section {
    background-color: #f1f5f9;
    padding: 90px 0;
}

.services-section .section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.services-section .section-heading h2 {
    margin: 12px 0 16px;
}

.services-section .section-heading p {
    color: #64748b;
    line-height: 1.8;
}

/* Services Grid */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Individual Service Cards */

.service-card {
    background-color: #ffffff;
    padding: 32px 26px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: #24598b;
}

.service-card h3 {
    color: #0f1b40;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Service Icons */

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #eaf1f8;
    color: #24598b;
    border-radius: 8px;
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 24px;
}

/* Responsive Services Layout */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-section {
        padding: 60px 0;
    }
}

/* ==============================
   PROJECT GALLERY SECTION
   ============================== */

.projects-section {
    background-color: #ffffff;
    padding: 90px 0;
}

.projects-section .section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.projects-section .section-heading h2 {
    margin: 12px 0 16px;
}

.projects-section .section-heading p {
    color: #64748b;
    line-height: 1.8;
}

/* ==============================
   GALLERY FILTERS
   ============================== */

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 11px 22px;
    background-color: #f1f5f9;
    color: #0f1b40;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}

.filter-btn:hover {
    border-color: #24598b;
    color: #24598b;
}

.filter-btn.active {
    background-color: #24598b;
    color: #ffffff;
    border-color: #24598b;
}

/* ==============================
   GALLERY GRID
   ============================== */

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

/* ==============================
   GALLERY OVERLAY
   ============================== */

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 45px 22px 22px;
    background: linear-gradient(
        to top,
        rgba(10, 20, 45, 0.95),
        rgba(10, 20, 45, 0)
    );
    color: #ffffff;
}

.gallery-overlay span {
    display: block;
    color: #bfdbfe;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.gallery-overlay h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0;
}

/* Empty Gallery Message */

.gallery-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}

.gallery-item[hidden],
.gallery-empty[hidden] {
    display: none;
}

/* ==============================
   RESPONSIVE GALLERY
   ============================== */

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .projects-section {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item img,
    .filter-btn {
        transition: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

/* ==============================
   PROJECT LIGHTBOX
   ============================== */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 30px;
    border: none;
    background: rgba(8, 15, 32, 0.97);
    color: #ffffff;
    box-sizing: border-box;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    width: 85%;
    max-width: 1200px;
    text-align: center;
}

#lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 6px;
}

#lightbox-title {
    color: #ffffff;
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 8px;
}

#lightbox-counter {
    color: #b8c4d6;
    font-size: 14px;
}

/* Lightbox controls */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 32px;
}

.lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-item {
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

/* Mobile lightbox */

@media (max-width: 768px) {

    .lightbox {
        padding: 15px;
    }

    .lightbox-content {
        width: 100%;
    }

    #lightbox-image {
        max-height: 65vh;
    }

    #lightbox-title {
        font-size: 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }
}

.lightbox button[hidden] {
    display: none;
}

/* ==============================
   BEFORE & AFTER SECTION
   ============================== */

.before-after-section {
    background: #f0f4f8;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.comparison-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Image comparison container */

.comparison-slider {
    --position: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    isolation: isolate;
    background: #e5e7eb;
}

.comparison-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.comparison-before {
    z-index: 1;
}

.comparison-after {
    z-index: 2;
    clip-path: inset(0 0 0 var(--position));
}

/* Before and After labels */

.comparison-label {
    position: absolute;
    top: 16px;
    z-index: 3;
    padding: 7px 14px;
    background: rgba(13, 26, 54, 0.85);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    pointer-events: none;
}

.label-before {
    left: 16px;
}

.label-after {
    right: 16px;
}

/* Vertical divider */

.comparison-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 3px;
    background: #ffffff;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
}

/* Draggable handle */

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #24598b;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Invisible interactive range input */

.comparison-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    touch-action: pan-y;
}

.comparison-slider:focus-within .comparison-handle {
    outline: 3px solid #24598b;
    outline-offset: 3px;
}

/* Project descriptions */

.comparison-info {
    padding: 24px;
}

.comparison-info h3 {
    margin-bottom: 8px;
    color: #0d1a36;
    font-size: 22px;
}

.comparison-info p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* Mobile responsiveness */

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .comparison-info {
        padding: 20px;
    }

    .comparison-info h3 {
        font-size: 20px;
    }
}

/* Before & After Image Alignment */

/* House - Before */
.comparison-card:nth-child(1) .comparison-before {
    object-position: 50% 50%;
}

/* House - After */
.comparison-card:nth-child(1) .comparison-after {
    object-position: 50% 30%;
}

/* Porch - Before */
.comparison-card:nth-child(2) .comparison-before {
    object-position: 50% 50%;
}

/* Porch - After */
.comparison-card:nth-child(2) .comparison-after {
    object-position: 50% 25%;
}

/* ========================================
   CONTACT SECTION
======================================== */

.contact-section {
    background: #0d193c;
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.contact-content {
    max-width: 850px;
    margin: 0 auto;
}

.contact-eyebrow {
    display: block;
    color: #a9c9eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact-section h2 {
    color: #ffffff;
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 20px;
}

.contact-description {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #24598b;
    color: #ffffff;
    padding: 18px 32px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease,
                transform 0.3s ease;
}

.contact-call-btn:hover {
    background: #3274ad;
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #cbd5e1;
    margin-top: 25px;
    font-size: 15px;
}

.contact-location i,
.contact-trust i {
    color: #a9c9eb;
}

.contact-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 35px;
    padding-top: 25px;
    color: #e2e8f0;
    font-size: 14px;
}

.contact-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact mobile responsiveness */

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-call-btn {
        font-size: 16px;
        padding: 16px 24px;
    }

    .contact-trust {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: #080f24;
    color: #aeb9cc;
    padding: 60px 0 0;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding-bottom: 45px;
}

.footer-logo {
    width: 160px;
    height: auto;
    background: #ffffff;
    border-radius: 5px;
    padding: 6px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #aeb9cc;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 22px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 13px;
}

.footer-column a {
    color: #aeb9cc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 18px;
}

.footer-contact i {
    color: #a9c9eb;
}

.footer-column .footer-estimate {
    display: inline-block;
    color: #a9c9eb;
    font-weight: 600;
    margin-top: 5px;
}

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

.footer-bottom p {
    color: #aeb9cc;
    font-size: 13px;
    margin: 0;
}

/* Footer tablet responsiveness */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

/* Footer mobile responsiveness */

@media (max-width: 576px) {
    .footer {
        padding-top: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
