/* =========================================================
   AMBIANCE BY EPISTLE
   SERVICES PAGE
========================================================= */

:root {
    --dark: #17191b;
    --dark-soft: #222528;
    --cream: #f6f3ed;
    --white: #ffffff;
    --accent: #c66a3d;
    --accent-dark: #a9532e;
    --text: #25282a;
    --muted: #737474;
    --border: #dedbd4;

    --container: 1180px;
    --transition: 0.35s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    width: min(92%, var(--container));
    margin: auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 0;
    transition:
        background var(--transition),
        padding var(--transition),
        box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(23, 25, 27, 0.96);
    backdrop-filter: blur(14px);
    padding: 14px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--white);
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.6);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.brand-text small {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 29px;
}

.nav-link {
    position: relative;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 18px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}


/* MOBILE MENU */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: var(--transition);
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    position: relative;
    min-height: 76vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 78% 35%,
            rgba(198,106,61,0.2),
            transparent 27%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(255,255,255,0.05),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #17191b,
            #222528
        );
}

.hero-background::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -220px;
    top: -160px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 50%;
}

.hero-background::after {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: 100px;
    bottom: -250px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 90px;
}

.page-hero-content .eyebrow {
    margin-bottom: 22px;
}

.page-hero h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -4px;
}

.page-hero h1 span {
    display: block;
    color: var(--accent);
}

.page-hero-content > p:last-child {
    max-width: 650px;
    margin-top: 28px;
    color: rgba(255,255,255,0.62);
    font-size: 17px;
    line-height: 1.8;
}

.hero-index {
    position: absolute;
    z-index: 3;
    right: 4%;
    bottom: 35px;
    display: flex;
    gap: 25px;
    color: rgba(255,255,255,0.35);
    font-size: 9px;
    letter-spacing: 2px;
}


/* =========================================================
   INTRO
========================================================= */

.services-intro {
    background: var(--cream);
}

.services-intro-grid {
    display: grid;
    grid-template-columns: 0.25fr 1fr;
    gap: 80px;
}

.section-label {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.section-label span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.section-label p {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.intro-content {
    max-width: 820px;
}

.intro-content .eyebrow {
    margin-bottom: 15px;
}

.intro-content h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.08;
    letter-spacing: -2.5px;
}

.intro-content p:not(.eyebrow) {
    max-width: 700px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   SERVICES LIST
========================================================= */

.services-list {
    background: var(--white);
}

.services-heading {
    margin-bottom: 65px;
}

.services-heading h2 {
    margin-top: 12px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(40px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
}


/* SERVICE CARD */

.service-card {
    padding: 45px 0;
    border-top: 1px solid var(--border);
}

.service-card:last-child {
    border-bottom: 1px solid var(--border);
}

.service-number {
    margin-bottom: 35px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.service-main {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.service-card-reverse .service-main {
    grid-template-columns: 1.1fr 0.9fr;
}


/* SERVICE VISUAL */

.service-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: var(--cream);
}

.visual-label {
    position: absolute;
    left: 25px;
    bottom: 22px;
    color: rgba(255,255,255,0.6);
    font-size: 8px;
    letter-spacing: 2px;
    font-weight: 700;
}


/* COATING VISUAL */

.coating-visual {
    background:
        linear-gradient(
            135deg,
            #dad1c3,
            #b59d83
        );
}

.surface-one,
.surface-two,
.surface-three {
    position: absolute;
    transform: rotate(-22deg);
}

.surface-one {
    width: 500px;
    height: 190px;
    top: 40px;
    left: -90px;
    background: #222a30;
}

.surface-two {
    width: 520px;
    height: 160px;
    top: 165px;
    left: -40px;
    background: var(--accent);
}

.surface-three {
    width: 520px;
    height: 130px;
    top: 280px;
    left: 50px;
    background: #efe8dc;
}


/* PROTECTION VISUAL */

.protection-visual {
    background: var(--dark);
}

.protection-ring {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
}

.ring-one {
    width: 430px;
    height: 430px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ring-two {
    width: 290px;
    height: 290px;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    border-color: rgba(198,106,61,0.5);
}

.protection-core {
    position: absolute;
    width: 115px;
    height: 115px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 25px rgba(198,106,61,0.08);
}


/* FLOORING VISUAL */

.flooring-visual {
    background: #e7e1d7;
}

.floor-line {
    position: absolute;
    left: -15%;
    width: 130%;
    height: 90px;
    transform: rotate(-8deg);
    border: 1px solid rgba(23,25,27,0.12);
}

.line-one {
    top: 40px;
    background: #20262a;
}

.line-two {
    top: 140px;
    background: #c9bba6;
}

.line-three {
    top: 240px;
    background: #eee8dd;
}

.line-four {
    top: 340px;
    background: #b85f36;
}


/* SERVICE CONTENT */

.service-category {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.service-content h3 {
    max-width: 600px;
    margin-top: 17px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.service-content > p:not(.service-category) {
    max-width: 600px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.service-features span {
    padding: 8px 11px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 9px;
}

.service-link {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    margin-top: 32px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--accent);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.service-link span {
    color: var(--accent);
    font-size: 16px;
    transition: transform var(--transition);
}

.service-link:hover span {
    transform: translateX(5px);
}


/* =========================================================
   PROCESS
========================================================= */

.service-process {
    background: var(--cream);
}

.process-header {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    gap: 70px;
    margin-bottom: 60px;
}

.process-header h2 {
    max-width: 800px;
    margin-top: 15px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.process-item {
    min-height: 250px;
    padding: 30px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition:
        background var(--transition),
        transform var(--transition);
}

.process-item:hover {
    background: var(--white);
    transform: translateY(-4px);
}

.process-item > span {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

.process-item h3 {
    margin-top: 70px;
    font-family: "Manrope", sans-serif;
    font-size: 21px;
}

.process-item p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.process-highlight {
    background: var(--accent);
    color: var(--white);
}

.process-highlight > span {
    color: rgba(255,255,255,0.6);
}

.process-highlight p {
    color: rgba(255,255,255,0.7);
}

.process-highlight:hover {
    background: var(--accent);
}


/* =========================================================
   FAQ
========================================================= */

.faq {
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 100px;
}

.faq-intro {
    max-width: 400px;
}

.faq-intro h2 {
    margin-top: 17px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(40px, 4.5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.faq-intro h2 span {
    color: var(--muted);
}

.faq-intro > p:last-child {
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 22px;
    font-weight: 400;
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq-answer p {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
    padding-bottom: 25px;
}


/* =========================================================
   CTA
========================================================= */

.services-cta {
    padding: 105px 0;
    background: var(--dark);
    color: var(--white);
}

.services-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.services-cta-inner > div:first-child {
    max-width: 720px;
}

.services-cta .eyebrow {
    color: var(--accent);
}

.services-cta h2 {
    margin-top: 17px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.04;
    letter-spacing: -3px;
}

.services-cta h2 span {
    display: block;
    color: var(--accent);
}

.services-cta-inner > div:first-child > p:last-child {
    max-width: 600px;
    margin-top: 20px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    min-width: 180px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 25px;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-light {
    background: var(--white);
    color: var(--dark);
}

.whatsapp-link {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 700;
}

.whatsapp-link:hover {
    color: var(--white);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #111315;
    color: var(--white);
    padding: 75px 0 25px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 65px;
}

.footer-brand {
    max-width: 330px;
}

.footer-brand .brand {
    margin-bottom: 25px;
}

.footer-brand > p {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column h4 {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-column a,
.footer-column p {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    line-height: 1.7;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 9px;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--dark);
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .service-main,
    .service-card-reverse .service-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .faq-grid {
        gap: 55px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 800px) {

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85%, 360px);
        height: 100vh;
        padding: 110px 35px 40px;
        background: var(--dark);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        box-shadow: -20px 0 60px rgba(0,0,0,0.25);
        transition: right 0.4s ease;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-link {
        font-size: 16px;
    }

    .nav-cta {
        margin-top: 10px;
    }

    .page-hero {
        min-height: 70vh;
    }

    .services-intro-grid,
    .process-header,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .service-main,
    .service-card-reverse .service-main {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .service-card-reverse .service-visual {
        order: -1;
    }

    .service-visual {
        min-height: 360px;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        flex-direction: row;
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 520px) {

    .section {
        padding: 80px 0;
    }

    .container {
        width: min(90%, var(--container));
    }

    .page-hero {
        min-height: 75vh;
    }

    .page-hero h1 {
        font-size: 46px;
        letter-spacing: -2.5px;
    }

    .page-hero-content > p:last-child {
        font-size: 15px;
    }

    .service-main,
    .service-card-reverse .service-main {
        gap: 30px;
    }

    .service-visual {
        min-height: 300px;
    }

    .service-content h3 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-item {
        min-height: 220px;
    }

    .faq-question {
        min-height: 75px;
        font-size: 12px;
    }

    .services-cta {
        padding: 80px 0;
    }

    .services-cta h2 {
        letter-spacing: -2px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}