/* =========================================================
   NYC LIBERTY CONTRACTING
   styles.css
   ========================================================= */

:root {
    --navy: #062954;
    --navy-dark: #031a38;
    --navy-deep: #02152f;
    --blue: #087cff;
    --blue-light: #0aa4ff;
    --cyan: #63c5ff;

    --text: #09264c;
    --muted: #63758c;
    --bg: #f6f9fd;
    --white: #ffffff;

    --green: #20cf65;

    --border: #e0e7f0;
    --shadow: 0 10px 30px rgba(0, 27, 58, 0.10);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Inter", Arial, sans-serif;

    color: var(--text);
    background: #ffffff;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: 76px;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid rgba(9, 38, 76, 0.07);

    box-shadow:
        0 2px 12px rgba(0, 27, 58, 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.brand img {
    width: 205px;
    height: 68px;

    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav nav {
    display: flex;
    align-items: center;

    gap: 25px;

    font-size: 13px;
    font-weight: 700;
}

.nav nav > a {
    position: relative;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.nav nav > a:not(.quote)::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    margin: auto;

    background: var(--blue);

    transition: width 0.25s ease;
}

.nav nav > a:not(.quote):hover {
    color: var(--blue);
}

.nav nav > a:not(.quote):hover::after {
    width: 100%;
}


/* =========================================================
   FREE ESTIMATE BUTTON
   ========================================================= */

.quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 20px;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            #086de0
        );

    border-radius: 9px;

    box-shadow:
        0 8px 20px rgba(8, 124, 255, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.quote:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(8, 124, 255, 0.30);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: #ffffff;

    color: var(--navy);

    font-size: 25px;

    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    width: 100%;
    min-height: 535px;

    display: flex;
    align-items: stretch;

    /*
       IMPORTANTE:
       Ruta absoluta para cPanel.
    */

    background-color: var(--navy);

    background-image:
        url("/assets/img/hero.jpg") !important;

    background-position:
        center center !important;

    background-size:
        cover !important;

    background-repeat:
        no-repeat !important;

    color: #ffffff;

    overflow: hidden;
}


/* =========================================================
   HERO OVERLAY
   ========================================================= */

.shade {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(2, 25, 55, 0.94) 0%,
            rgba(3, 35, 73, 0.82) 35%,
            rgba(4, 43, 85, 0.50) 60%,
            rgba(2, 22, 46, 0.10) 100%
        );
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding-top: 72px;
    padding-bottom: 65px;
}

.hero-copy {
    width: 100%;
    max-width: 650px;
}

.eyebrow,
.kicker,
.center-title span,
.cta span {
    display: inline-block;

    color: var(--blue-light);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.hero h1 {
    margin: 12px 0 16px;

    font-family: "Oswald", Arial, sans-serif;

    font-size: clamp(48px, 5vw, 64px);

    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.02em;

    text-transform: uppercase;
}

.hero h1 em {
    display: block;

    color: var(--cyan);

    font-style: normal;
}

.hero h2 {
    margin: 12px 0;

    font-size: 24px;
    font-weight: 800;
}

.hero p {
    max-width: 530px;

    margin: 0;

    color: rgba(255, 255, 255, 0.93);

    font-size: 17px;

    line-height: 1.65;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.actions {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin: 28px 0;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 23px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            #0871e5
        );

    box-shadow:
        0 10px 24px rgba(8, 124, 255, 0.25);
}

.primary:hover {
    box-shadow:
        0 14px 30px rgba(8, 124, 255, 0.35);
}

.outline {
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.70);

    background:
        rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(5px);
}

.outline:hover {
    color: var(--navy);

    background: #ffffff;
}


/* =========================================================
   HERO POINTS
   ========================================================= */

.hero-points {
    display: flex;
    flex-wrap: wrap;

    gap: 26px;

    margin-top: 30px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.hero-points span {
    display: flex;
    align-items: center;

    gap: 6px;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 80px 0;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.center-title {
    max-width: 850px;

    margin: 0 auto 38px;

    text-align: center;
}

.center-title h2,
.about h2,
.cta h2 {
    margin: 8px 0 12px;

    font-family: "Oswald", Arial, sans-serif;

    font-size: clamp(32px, 4vw, 42px);

    font-weight: 700;

    line-height: 1.08;

    text-transform: uppercase;
}

.center-title p {
    max-width: 680px;

    margin: 8px auto 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
    background: var(--bg);
}


/* =========================================================
   SERVICES CAROUSEL
   ========================================================= */

.carousel {
    position: relative;

    width: 100%;
}

.viewport {
    width: 100%;

    overflow: hidden;
}

.track {
    display: flex;

    gap: 14px;

    transition:
        transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);

    will-change: transform;
}


/* =========================================================
   SERVICE CARD
   ========================================================= */

.card {
    position: relative;

    flex:
        0 0
        calc((100% - 70px) / 6);

    min-width: 0;

    height: 330px;

    overflow: hidden;

    border-radius: 12px;

    background: var(--navy);

    box-shadow:
        0 12px 28px rgba(0, 27, 58, 0.12);

    isolation: isolate;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 35px rgba(0, 27, 58, 0.18);
}

.card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(2, 21, 45, 0.00) 30%,
            rgba(2, 21, 45, 0.25) 55%,
            rgba(2, 21, 45, 0.96) 100%
        );
}

.card > div {
    position: absolute;

    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px;

    color: #ffffff;
}

.card h3 {
    margin: 0 0 7px;

    font-size: 15px;
    font-weight: 800;

    line-height: 1.3;
}

.card p {
    margin: 0;

    color: rgba(255, 255, 255, 0.84);

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   CAROUSEL ARROWS
   ========================================================= */

.arrow {
    position: absolute;

    z-index: 10;

    top: 45%;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(9, 38, 76, 0.12);

    border-radius: 50%;

    background: #ffffff;

    color: var(--navy);

    font-size: 27px;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(0, 27, 58, 0.15);

    transform:
        translateY(-50%);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.arrow:hover {
    color: #ffffff;

    background: var(--blue);

    transform:
        translateY(-50%)
        scale(1.06);
}

.prev {
    left: -21px;
}

.next {
    right: -21px;
}


/* =========================================================
   CAROUSEL DOTS
   ========================================================= */

.dots {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 22px;
}

.dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;

    border-radius: 20px;

    background: #cbd6e2;

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.dot.active {
    width: 26px;

    background: var(--blue);
}


/* =========================================================
   BENEFITS
   ========================================================= */

.benefits {
    padding: 32px 0;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #073568,
            #05264e
        );
}

.benefit-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);
}

.benefit-grid > div {
    padding: 8px 18px;

    text-align: center;

    border-right:
        1px solid rgba(28, 115, 199, 0.65);
}

.benefit-grid > div:last-child {
    border-right: 0;
}

.benefit-grid b {
    display: block;

    margin-bottom: 6px;

    color: #2b9cff;

    font-size: 30px;
}

.benefit-grid strong {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
}

.benefit-grid small {
    display: block;

    color: #c6d5e7;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    background: #ffffff;
}

.about-grid {
    display: grid;

    grid-template-columns:
        0.9fr 1.6fr;

    gap: 50px;

    align-items: center;
}

.about-copy p {
    margin-bottom: 28px;

    color: var(--muted);

    line-height: 1.75;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.projects img {
    width: 100%;
    height: 270px;

    object-fit: cover;

    border-radius: 9px;

    box-shadow:
        0 8px 22px rgba(0, 27, 58, 0.10);

    transition:
        transform 0.3s ease;
}

.projects img:hover {
    transform:
        translateY(-4px);
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials {
    background: var(--bg);
}

.reviews {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.reviews article {
    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 8px 22px rgba(0, 27, 58, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.reviews article:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(0, 27, 58, 0.10);
}

.reviews p {
    color: #4d6179;

    font-style: italic;

    line-height: 1.7;
}

.reviews strong,
.reviews small {
    display: block;
}

.reviews small {
    margin-top: 4px;

    color: #7d8da1;
}

.stars {
    margin-bottom: 12px;

    color: #ffb400;

    letter-spacing: 2px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    padding: 44px 0;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #07366a,
            #044786
        );
}

.cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.cta h2 {
    margin: 5px 0 10px;

    font-size: 40px;
}

.cta p {
    max-width: 650px;

    margin: 0;

    color: #d6e6f8;

    line-height: 1.6;
}


/* =========================================================
   WHATSAPP CTA
   ========================================================= */

.whatsapp-big {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-height: 58px;

    padding: 0 28px;

    border-radius: 8px;

    color: #ffffff;

    background: var(--green);

    font-weight: 800;

    box-shadow:
        0 10px 26px rgba(32, 207, 101, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.whatsapp-big:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(32, 207, 101, 0.35);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 30px 0 15px;

    background: #ffffff;
}

.footer {
    display: grid;

    grid-template-columns:
        1fr 1.5fr 1fr;

    align-items: center;

    gap: 30px;
}

.footer img {
    width: 210px;
    height: 85px;

    object-fit: contain;
}

.footlinks {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 20px;

    font-size: 12px;
    font-weight: 600;
}

.footlinks a:hover {
    color: var(--blue);
}

.contact {
    display: flex;

    flex-direction: column;

    gap: 8px;

    font-size: 12px;
}

.copy {
    margin-top: 20px;

    padding-top: 16px;

    border-top:
        1px solid var(--border);

    color: #8090a4;

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */

.floating {
    position: fixed;

    z-index: 999;

    right: 22px;
    bottom: 22px;

    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background: var(--green);

    font-size: 26px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.floating:hover {
    transform:
        translateY(-4px)
        scale(1.05);

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .header {
        height: 72px;
    }

    .nav nav {
        display: none;

        position: absolute;

        top: 72px;
        left: 18px;
        right: 18px;

        padding: 22px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: #ffffff;

        border:
            1px solid var(--border);

        border-radius: 12px;

        box-shadow:
            0 16px 40px rgba(0, 27, 58, 0.16);
    }

    .nav nav.open {
        display: flex;
    }

    .nav nav > a {
        padding: 13px 8px;
    }

    .nav nav > a::after {
        display: none;
    }

    .quote {
        margin-top: 10px;
    }

    .menu {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 540px;

        background-position:
            60% center !important;
    }

    .hero-copy {
        max-width: 600px;
    }

    .card {
        flex-basis:
            calc((100% - 28px) / 3);

        height: 360px;
    }

    .benefit-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 25px 0;
    }

    .benefit-grid > div {
        border-right: 0;
    }

    .about-grid {
        grid-template-columns:
            1fr;

        gap: 35px;
    }

    .footer {
        grid-template-columns:
            1fr;

        text-align: center;
    }

    .footer img {
        margin: auto;
    }

    .contact {
        align-items: center;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width:
            min(100% - 28px, 1180px);
    }

    .header {
        height: 68px;
    }

    .brand img {
        width: 165px;
        height: 60px;
    }

    .nav nav {
        top: 68px;
    }

    /* HERO MOBILE */

    .hero {
        min-height: 610px;

        background-position:
            65% center !important;
    }

    .shade {
        background:
            linear-gradient(
                90deg,
                rgba(2, 25, 55, 0.97) 0%,
                rgba(2, 25, 55, 0.88) 60%,
                rgba(2, 25, 55, 0.55) 100%
            );
    }

    .hero-content {
        padding-top: 58px;
        padding-bottom: 50px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 47px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .hero p {
        font-size: 15px;
    }

    .actions {
        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }

    .actions .btn {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;

        gap: 10px;

        margin-top: 24px;
    }

    /* SECTIONS */

    .section {
        padding: 58px 0;
    }

    .center-title {
        margin-bottom: 28px;
    }

    .center-title h2,
    .about h2 {
        font-size: 31px;
    }

    /* SERVICE SLIDER */

    .card {
        flex-basis: 100%;

        height: 400px;

        border-radius: 12px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 13px;
    }

    .card > div {
        padding: 22px;
    }

    .prev {
        left: -7px;
    }

    .next {
        right: -7px;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }

    /* BENEFITS */

    .benefit-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 28px 0;
    }

    /* PROJECTS */

    .projects {
        grid-template-columns:
            1fr;
    }

    .projects img {
        height: 260px;
    }

    /* REVIEWS */

    .reviews {
        grid-template-columns:
            1fr;
    }

    /* CTA */

    .cta {
        padding: 40px 0;
    }

    .cta-inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

    .cta h2 {
        font-size: 34px;
    }

    .whatsapp-big {
        width: 100%;
    }

    /* FOOTER */

    .footlinks {
        justify-content: center;
    }

    /* WHATSAPP FLOAT */

    .floating {
        right: 16px;
        bottom: 16px;

        width: 56px;
        height: 56px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 390px) {

    .hero h1 {
        font-size: 41px;
    }

    .center-title h2,
    .about h2 {
        font-size: 28px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .card {
        height: 370px;
    }
}