/* ===================== */
/*   BASE & PAGE BODY    */
/* ===================== */

* {
    box-sizing: border-box;
}

:root {
    --header-height: 96px;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #071A33;
    color: #071A33;
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Títulos e parágrafos */

h1,
h2,
h3,
.service-card-title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #071A33;
    letter-spacing: -0.3px;
}

p,
.service-card-text p,
.section-intro {
    font-weight: 400;
    color: #3c4a5a;
    line-height: 1.55;
}

/* Fundo claro para o conteúdo principal */
.why,
.services,
.pricing,
.contact {
    background: #f5f7fa;
}


/* ===================== */
/*        HEADER         */
/* ===================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--header-height);

    /* vidro escuro semi-transparente */
    background: rgba(7, 26, 51, 0.82);

    /* blur “frosted glass” */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* para Safari */

    /* linha + sombra suave por baixo */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* Navegação */

.main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* linha de links */
.nav-links {
    display: flex;
    gap: 14px; /* ligeiramente menos que 16 */
}

/* links com look mais “Clean-Tec” */
.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;  /* um bocadinho menos largo */
    padding-bottom: 4px;
    opacity: 0.9;
    transition: color 0.18s ease-out, opacity 0.18s ease-out;
}

/* sublinhado animado */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd54a, #7ab6ff);
    transition: width 0.22s ease-out;
}

/* hover / focus */
.nav-links a:hover,
.nav-links a:focus-visible {
    color: #ffffff;
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

/* activo (se quiseres usar) */
.nav-links a.active {
    color: #ffffff;
    opacity: 1;
}
.nav-links a.active::after {
    width: 100%;
}

/* Línguas – pill futurista */
.lang-switch {
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(4px);
}

.lang-switch a {
    min-width: 32px;
    padding: 3px 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(122, 182, 255, 0.9);
    text-decoration: none;
    transition: background 0.18s ease-out, color 0.18s ease-out, opacity 0.18s ease-out;
    opacity: 0.85;
}

.lang-switch a.active {
    background: #ffd54a;
    color: #071A33;
    font-weight: 700;
    opacity: 1;
}

.lang-switch a:hover {
    opacity: 1;
}


/* ===================== */
/*        BUTTONS        */
/* ===================== */

.btn,
.btn:link,
.btn:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 30px;
    min-width: 190px;

    border-radius: 999px;
    border: 2px solid #ffd54a;           /* aro amarelo Clean-Tec */

    background: linear-gradient(
        135deg,
        #27a4ff 0%,
        #0a5fff 45%,
        #0740a3 100%
    );
    background-size: 180% 180%;

    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;

    text-decoration: none;
    cursor: pointer;

    box-shadow:
        0 10px 26px rgba(10, 95, 255, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04);

    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background-position 0.35s ease-out,
        filter 0.18s ease-out;
    overflow: hidden;
}

.hero-card .hero-btn {
    align-self: center;
    max-width: 100%;
}

/* brilho diagonal por cima do botão */
.btn::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.26),
        rgba(255, 255, 255, 0.02)
    );
    mix-blend-mode: screen;
    pointer-events: none;
}

/* pequeno “glow” por baixo, tipo reflexo no chão */
.btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px; /* mais perto do botão */
    transform: translateX(-50%);
    width: 80%;   /* mais largo */
    height: 24px; /* mais alto */
    border-radius: 999px;
    background: radial-gradient(
        ellipse at center,
        rgba(39, 164, 255, 0.95),
        transparent 70%
    );
    opacity: 0.9;
    filter: blur(7px);
    pointer-events: none;
}

@media (max-width: 767px) {
    .hero-card .hero-btn::after {
        animation: heroCtaGlow 3.8s ease-in-out infinite;
        will-change: transform, opacity;
    }
}

.btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    filter: brightness(1.06);
    box-shadow:
        0 14px 32px rgba(10, 95, 255, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
    box-shadow:
        0 6px 16px rgba(7, 26, 51, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.btn:focus-visible {
    outline: 2px solid #ffd54a;
    outline-offset: 3px;
}

.btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #0a5fff;
    border-radius: 999px;
    border: 2px solid rgba(10, 95, 255, 0.8);
    font-weight: 600;
    padding: 10px 22px;
}

.btn-outline:hover {
    background: rgba(10, 95, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px rgba(10, 95, 255, 0.35),
      0 8px 26px rgba(0, 0, 0, 0.35);
}

.hero-btn--stacked {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hero-btn--stacked .btn-main {
    font-size: 15px;
    font-weight: 700;
}

.hero-btn--stacked .btn-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-submit {
    width: 100%;
    cursor: pointer;
}

/* ===================== */
/*         HERO          */
/* ===================== */

.hero {
    background: #071A33;
    margin: 0;   /* hero encosta mesmo ao topo da página */

    /* empurramos só o conteúdo para baixo, não o próprio bloco */
    padding: calc(16px + var(--header-height)) 16px 12px;
}

/* BLOCO DA IMAGEM / SLIDER */

.hero-media {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    height: 230px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(10, 95, 255, 0.26),  /* glow azul soft */
        0 6px 18px rgba(0, 0, 0, 0.38);       /* profundidade neutra */
    border: 2px solid #ffd54a;   /* amarelo Clean-Tec, fininho */
}

/* slides de fundo */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* overlay para escurecer ligeiramente a imagem */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 26, 51, 0.15) 0%,
        rgba(7, 26, 51, 0.5) 60%,
        rgba(7, 26, 51, 0.75) 100%
    );
    pointer-events: none;
}

/* dots do hero */

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-dots .dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* CARTÃO BRANCO COM TEXTO */

.hero-card {
    max-width: 1100px;
    margin: -40px auto 0;          /* mantém o overlap certinho */
    background: #ffffff;
    border-radius: 18px;
    padding: 52px 16px 24px;       /* +20px em cima → afasta o eyebrow do slider */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f0f4ff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #071A33;
    margin: 0 0 12px;

    align-self: center;        /* centra a pill dentro do cartão */
}

.hero h1 {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.18;
    margin: 0 0 10px;
    color: #071A33;
}

.hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #3c4a5a;
    opacity: 0.98;
    margin: 6px 0 8px;
    max-width: 380px;
}

.hero-tagline {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    color: #26354a;
    margin: 10px 0 14px;
    font-style: italic;
}

.hero-btn {
    margin-top: 4px;
    min-width: 160px;
    padding-inline: 22px;
}

/* ========= HERO CTA FLOAT (MOBILE) ========= */

@keyframes heroCtaFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes heroCtaGlow {
    0%,
    100% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.35;
    }
    50% {
        transform: translateX(-50%) scale(1.4);
        opacity: 1;
    }
}

.hero-card .hero-btn {
    /* já tens align-self: center mais acima, mantém isso */
    will-change: transform;
    box-shadow: 0 12px 28px rgba(10, 95, 255, 0.45); /* sombra fixa */
}

.hero-tagline-strip {
    max-width: 1100px;
    margin: 15px auto 0;   /* 10px em cima, 0 em baixo */
    padding: 0 16px;
    display: flex;
    justify-content: center;  /* garante que fica mesmo centrada */
}

.hero-tagline-strip img {
    display: block;
    max-width: 220px;
    height: auto;
    opacity: 0.96;
}

/* Float suave do CTA apenas em mobile */
@media (max-width: 767px) {
    .hero-card .hero-btn {
        animation: heroCtaFloat 3.8s ease-in-out infinite;
        will-change: transform;
        box-shadow: 0 12px 28px rgba(10, 95, 255, 0.45); /* sombra fixa */
    }
}

/* Respeitar quem tem reduced motion activo */
@media (prefers-reduced-motion: reduce) {
    .hero-card .hero-btn {
        animation: none !important;
    }
}

@media (min-width: 768px) {
    .hero-tagline-strip {
        margin: 12px auto 0;
        padding: 0 24px;
        justify-content: center;
    }

    .hero-tagline-strip img {
        max-width: 260px;
    }
}

/* ===================== */
/*      WHY CLEAN-TEC    */
/* ===================== */

.why {
    background: #f5f7fa;
    padding: 40px 16px 48px;
}

.why-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.why h2 {
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 8px;
    color: #071A33;
}

.why .section-intro {
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 14px;
    color: #3c4a5a;
    opacity: 0.9;
}

/* cards */

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.why-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 26px rgba(7, 26, 51, 0.06);
    text-align: left;
}

.why-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.why-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #071A33;
}

.why-card p {
    margin: 0;
    font-size: 14px;
    color: #3c4a5a;
    line-height: 1.55;
}

/* tablet / desktop */

@media (min-width: 768px) {
    .why {
        padding: 56px 24px 64px;
    }

    .why h2 {
        font-size: 28px;
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .why-card {
        padding: 20px 20px 22px;
    }
}

/* ===================== */
/*       SECTIONS        */
/* ===================== */

section {
    padding: 40px 16px;
}

.services,
.pricing,
.contact {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.services h2,
.pricing h2,
.contact h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
}

/* sub-intros */

.section-intro {
    max-width: 480px;
    margin: 0 auto 30px;
    opacity: 0.85;
    font-size: 14px;
}

/* ===================== */
/*  SERVICE CARDS BASE   */
/* ===================== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 22px 18px 14px;
    text-align: left;
}

.service-card-image {
    margin: 0 18px 16px;
}

.service-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.service-card-text {
    text-align: left;
}

.service-card-text p {
    margin: 0;
    padding: 0 18px 24px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* ===================== */
/*       PRICING         */
/* ===================== */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

.price-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 22px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.price-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.price-card .price {
    font-size: 22px;
    margin: 6px 0 10px;
    font-weight: 700;
    color: #0a5fff;
}

.price-card .desc {
    opacity: 0.85;
    line-height: 1.4;
    font-size: 13px;
}

/* ===================== */
/*        CONTACT        */
/* ===================== */

.contact-block {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-text h3 {
    margin-top: 0;
    font-size: 18px;
}

.contact-text p {
    font-size: 14px;
    opacity: 0.85;
}

.contact-form {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: left;
    font-size: 14px;
}

.contact-form label {
    display: block;
    margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d3d7de;
    font-family: inherit;
    font-size: 14px;
}





/* ===================== */
/*         FOOTER        */
/* ===================== */

footer {
    padding: 16px;
    font-size: 12px;
    text-align: center;
    color: #666;
}

/* ===================== */
/* PREMIUM SLIDER - FADE */
/* ===================== */

.service-card-image--slider {
    margin: 0 18px 16px;
    border-radius: 16px;
    overflow: hidden;
}

.service-card-image--slider .service-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-card-image--slider .service-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.service-card-image--slider .service-slide:first-child {
    position: relative;
}

.service-card-image--slider .service-slide.active {
    opacity: 1;
}

.service-card-image--slider .service-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

.service-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 8px;
}

.service-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(7, 26, 51, 0.25);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.service-slider-dots .dot.active {
    background: #0a5fff;
    transform: scale(1.2);
}

/* ===================== */
/*      BREAKPOINTS      */
/* ===================== */

/* iPhone 14 Pro Max / ecrãs até 430px de largura */
@media (max-width: 430px) {
    :root {
        --header-height: 95px;   /* mantém este ou ajusta 108–114 ao teu gosto */
    }

    .header-inner {
        padding-inline: 8px;
        gap: 4px;
    }

    .logo img {
        height: 74px;             /* logo um bocadinho mais pequeno */
    }

    .nav-links {
        gap: 6px;
        flex-wrap: wrap;          /* se não couber numa linha, passa CONTACT para a 2ª */
        justify-content: flex-end;
    }

    .nav-links a {
        font-size: 11px;          /* um pouquinho menor */
        letter-spacing: 0.06em;   /* menos tracking para ocupar menos largura */
        padding-bottom: 3px;
    }

    .lang-switch {
        transform: scale(0.9);
        transform-origin: right center;
    }

    .lang-switch a {
        font-size: 11px;
        padding: 3px 7px;
        letter-spacing: 0.14em;
    }
}


/* Phones mais estreitos (Androids 320-380px de largura) */
@media (max-width: 380px) {

    :root {
        --header-height: 100px;   /* podes ajustar 118–122 se quiseres */
    }

    .header-inner {
        padding-inline: 8px;
        gap: 4px;
        flex-direction: row;      /* logo e menu na mesma linha */
        align-items: center;
    }

    .main-nav {
        align-items: flex-end;
    }

    .nav-links {
        gap: 6px;                 /* ainda mais curto */
        flex-wrap: nowrap;        /* NÃO deixa quebrar para 2 linhas */
        justify-content: flex-end;
    }

    .logo img {
        height: 70px;             /* logo um toque mais pequeno */
    }

    .nav-links a {
        font-size: 10px;          /* mais pequeno para caber tudo */
        letter-spacing: 0.05em;   /* menos tracking */
        padding-bottom: 3px;
    }

    .lang-switch {
        transform: scale(0.9);
        transform-origin: right center;
    }

    .lang-switch a {
        font-size: 10px;
        padding: 2px 6px;
        letter-spacing: 0.12em;
    }
}



/* Telefones mesmo apertados (tipo 320px) */
@media (max-width: 340px) {

    :root {
        --header-height: 90px;
    }

    .logo img {
        height: 64px;
    }

    .nav-links a {
        font-size: 10px;
        letter-spacing: 0.04em;
    }
}

@media (min-width: 768px) {

    .hero {
        padding: 24px 24px 24px;
    }

    .header-inner {
        padding: 10px 24px;
    }

    .logo img {
        height: 96px;
    }

    .nav-links a {
        font-size: 16px;
        margin-left: 18px;
    }

    section {
        padding: 60px 24px;
    }

    .hero-slider {
        height: 260px;
        border-width: 2px;
    }

    .hero-overlay {
        align-items: center;
        padding: 90px 40px 60px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
        max-width: 460px;
    }

    .hero-card {
        margin-top: -32px;
        padding: 22px 24px 26px;
        border-radius: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-block {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-text {
        flex: 1;
        text-align: left;
        padding-right: 20px;
    }

    .contact-form {
        flex: 1;
    }

    .service-card-title {
        font-size: 22px;
        margin: 26px 24px 16px;
    }

    .service-card-image {
        margin: 0 24px 18px;
    }

    .service-card-text p {
        padding: 0 24px 28px;
    }

    .service-card-image--slider {
        margin: 0 24px 18px;
    }
}

/* Desktop largo */
@media (min-width: 1024px) {

    .hero-slider {
        height: 560px;
    }

    section {
        padding: 70px 40px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
