/* =========================================================
   AMBIANCE BY EPISTLE
   HOME PAGE STYLES
========================================================= */

: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,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
}

.section-number {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    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;
    transition: color var(--transition);
}

.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:
        background var(--transition),
        transform 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);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    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% 45%,
            rgba(198, 106, 61, 0.16),
            transparent 30%
        ),
        linear-gradient(
            115deg,
            #17191b 0%,
            #1d2022 60%,
            #17191b 100%
        );
}

.hero-background::after {
    content: "";
    position: absolute;
    right: -10%;
    top: 15%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    padding-top: 100px;
    padding-bottom: 70px;
}

.hero-content {
    max-width: 690px;
}

.hero-content .eyebrow {
    margin-bottom: 22px;
}

.hero h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -3.5px;
    max-width: 720px;
}

.hero h1 span {
    display: block;
    color: var(--accent);
}

.hero-description {
    max-width: 570px;
    margin-top: 28px;
    color: rgba(255,255,255,0.68);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--dark);
}

.btn-dark {
    margin-top: 22px;
    background: var(--dark);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--dark);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 45px;
}

.hero-note p {
    color: rgba(255,255,255,0.48);
    font-size: 11px;
    letter-spacing: 0.6px;
}

.note-line {
    width: 38px;
    height: 1px;
    background: var(--accent);
}


/* Hero visual */

.hero-visual {
    display: flex;
    justify-content: center;
}

.paint-card {
    width: min(100%, 390px);
    aspect-ratio: 0.78;
    padding: 22px;
    background: #ded8ca;
    color: var(--dark);
    box-shadow: 30px 30px 80px rgba(0,0,0,0.35);
    transform: rotate(3deg);
}

.paint-card-top,
.paint-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paint-card-top {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.finish-display {
    position: relative;
    height: 72%;
    margin: 20px 0;
    overflow: hidden;
    background: #c8bba6;
}

.finish-layer {
    position: absolute;
    border-radius: 50%;
}

.layer-one {
    width: 260px;
    height: 360px;
    right: -70px;
    top: -50px;
    background: #f0ece2;
    transform: rotate(17deg);
}

.layer-two {
    width: 250px;
    height: 380px;
    left: -100px;
    bottom: -90px;
    background: var(--accent);
    transform: rotate(-23deg);
    opacity: 0.92;
}

.layer-three {
    width: 180px;
    height: 270px;
    right: 30px;
    bottom: -100px;
    background: #4d5250;
    transform: rotate(28deg);
    opacity: 0.9;
}

.paint-card-bottom {
    font-size: 8px;
    letter-spacing: 1.5px;
}

.paint-card-bottom strong {
    font-size: 8px;
    font-weight: 800;
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 4%;
    right: 4%;
    height: 1px;
    background: rgba(255,255,255,0.12);
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    background: var(--cream);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.25fr 1fr;
    gap: 80px;
}

.section-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.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 h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.large-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.intro-content > p:not(.large-text) {
    max-width: 720px;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 6px;
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(5px);
}


/* =========================================================
   SERVICES
========================================================= */

.services-preview {
    background: var(--white);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    gap: 70px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(36px, 4.5vw, 58px);
    line-height: 1.08;
    letter-spacing: -2.5px;
    max-width: 760px;
}

.section-heading h2 span {
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    position: relative;
    min-height: 440px;
    padding: 36px;
    border: 1px solid var(--border);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.service-card-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.service-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}

.service-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 80px 0 35px;
}

.service-icon span {
    position: absolute;
    display: block;
    border: 2px solid currentColor;
}

.service-icon span:first-child {
    width: 40px;
    height: 13px;
    top: 8px;
    left: 4px;
}

.service-icon span:last-child {
    width: 4px;
    height: 35px;
    top: 20px;
    left: 22px;
    background: currentColor;
    border: 0;
}

.shield-icon {
    border: 2px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.shield-icon span {
    width: 20px;
    height: 27px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 45% 45%;
}

.floor-icon {
    display: flex;
    gap: 5px;
    align-items: center;
}

.floor-icon span {
    position: static;
    width: 13px;
    height: 43px;
    background: currentColor;
    border: 0;
    transform: rotate(15deg);
}

.service-card h3 {
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.7px;
    max-width: 290px;
}

.service-card p {
    margin-top: 17px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.service-card-dark p {
    color: rgba(255,255,255,0.58);
}

.service-link {
    position: absolute;
    left: 36px;
    bottom: 32px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
}

.service-link span {
    transition: transform var(--transition);
}

.service-link:hover span {
    transform: translate(3px, -3px);
}


/* =========================================================
   PROCESS
========================================================= */

.process {
    background: var(--cream);
}

.process-heading {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    gap: 70px;
    margin-bottom: 65px;
}

.process-heading h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(36px, 4.5vw, 58px);
    line-height: 1.08;
    letter-spacing: -2.5px;
}

.process-heading h2 span {
    display: block;
    color: var(--muted);
}

.process-heading > div:last-child > p {
    max-width: 570px;
    margin-top: 22px;
    color: var(--muted);
}

.process-list {
    border-top: 1px solid var(--border);
}

.process-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 50px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left var(--transition);
}

.process-item:hover {
    padding-left: 10px;
}

.process-number {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.process-item h3 {
    font-family: "Manrope", sans-serif;
    font-size: 22px;
}

.process-item p {
    max-width: 600px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   WHY US
========================================================= */

.why-us {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 90px;
    align-items: center;
}

.why-content {
    max-width: 650px;
}

.why-content .eyebrow {
    margin-top: 8px;
}

.why-content h2 {
    margin-top: 20px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 4.5vw, 59px);
    line-height: 1.08;
    letter-spacing: -2.5px;
}

.why-content h2 span {
    display: block;
    color: var(--muted);
}

.why-content p:not(.eyebrow) {
    margin-top: 22px;
    color: var(--muted);
    max-width: 600px;
}

.standards-visual {
    display: flex;
    justify-content: center;
}

.standard-box {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 480px;
    padding: 35px;
    background: var(--dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.standard-box::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    right: -100px;
    top: -100px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
}

.standard-small {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 35px;
}

.standard-box strong {
    position: relative;
    z-index: 1;
    font-family: "Manrope", sans-serif;
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1;
    letter-spacing: -2px;
}

.standard-box strong + strong {
    margin-top: 5px;
}

.standard-line {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 45px 0 15px;
}

.standard-bottom {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    background: var(--accent);
    color: var(--white);
    padding: 105px 0;
    overflow: hidden;
}

.cta-container {
    position: relative;
}

.cta-container::after {
    content: "AE";
    position: absolute;
    right: 0;
    top: -80px;
    font-family: "Manrope", sans-serif;
    font-size: 230px;
    font-weight: 800;
    color: rgba(255,255,255,0.07);
    line-height: 1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta-content .eyebrow {
    color: rgba(255,255,255,0.65);
}

.cta-content h2 {
    margin-top: 18px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -3px;
}

.cta-content h2 span {
    display: block;
}

.cta-content > p:not(.eyebrow) {
    max-width: 600px;
    margin-top: 22px;
    color: rgba(255,255,255,0.76);
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
}

.cta-whatsapp {
    font-size: 12px;
    font-weight: 700;
}

.cta-whatsapp:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--dark);
    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-link {
    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;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.footer-column a,
.footer-column p {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    line-height: 1.7;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    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;
    letter-spacing: 0.5px;
}


/* =========================================================
   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);
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    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;
    }

    .hero-container {
        gap: 40px;
    }

    .intro-grid,
    .section-heading,
    .process-heading {
        gap: 45px;
    }

    .why-grid {
        gap: 50px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 800px) {

    .site-header {
        padding: 16px 0;
    }

    .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;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .intro-grid,
    .section-heading,
    .process-heading,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .intro-grid {
        gap: 30px;
    }

    .section-heading,
    .process-heading {
        gap: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 390px;
    }

    .service-icon {
        margin-top: 55px;
    }

    .process-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    .why-grid {
        gap: 55px;
    }

    .standard-box {
        min-height: 400px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 520px) {

    .section {
        padding: 80px 0;
    }

    .container {
        width: min(90%, var(--container));
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-note {
        margin-top: 30px;
    }

    .intro-content h2,
    .section-heading h2,
    .process-heading h2,
    .why-content h2 {
        letter-spacing: -1.7px;
    }

    .service-card {
        padding: 28px;
    }

    .service-link {
        left: 28px;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-content 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;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}