/* ==========================================================
   HERO — SERVIÇOS
   ========================================================== */

.services-hero {
    min-height: 720px;

    background-image:
        url("/images/pagina-servicos/servicos-eletricista-certificado-lisboa-setubal.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-hero__container {
    min-height: 720px;

    display: flex;
    align-items: center;
}

.services-hero__content {
    width: 100%;
    max-width: 720px;
}

.services-hero__eyebrow {
    display: block;

    margin-bottom: 20px;

    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;

    color: #806000;
}

.services-hero__title {
    max-width: 700px;
    margin-bottom: 24px;

    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;

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

.services-hero__description {
    max-width: 600px;
    margin-bottom: 40px;

    font-size: 1.15rem;
    line-height: 1.7;

    color: #3f4854;
}


/* ==========================================================
   CATEGORIAS
   ========================================================== */

.services-hero__categories {
    display: flex;
    align-items: stretch;

    margin-bottom: 40px;
}

.services-hero__category {
    min-width: 0;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    text-align: center;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;

    color: var(--color-primary);

    border-right: 1px solid #d5d9df;
}

.services-hero__category img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.services-hero__category:first-child {
    padding-left: 0;
}

.services-hero__category:last-child {
    border-right: 0;
}


/* ==========================================================
   BOTÕES
   ========================================================== */

.services-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.services-hero__button {
    min-width: 220px;
    min-height: 64px;
    padding: 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    border-radius: 6px;

    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.services-hero__button img {
    width: 26px;
    height: 26px;
}


/* LIGAR AGORA */

.services-hero__button--call {
    background-color: var(--color-primary);
    color: #ffffff;
}

.services-hero__button--call:hover {
    transform: translateY(-2px);
}


/* WHATSAPP */

.services-hero__button--contact {
    background-color: #ffffff;
    color: var(--color-primary);

    border: 1px solid var(--color-primary);
}

.services-hero__button--contact:hover {
    transform: translateY(-2px);
    background-color: #FFD400;
    color: var(--color-primary);

    border: 1px solid var(--color-primary);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .services-hero {
        min-height: auto;

        background-size: auto 100%;
        background-position: 58% center;
        background-repeat: no-repeat;
    }

    .services-hero__container {
        min-height: auto;

        align-items: flex-start;

        padding-top: 60px;
        padding-bottom: 60px;
    }

    .services-hero__content {
        max-width: 100%;
    }

    .services-hero__eyebrow {
        max-width: 300px;

        font-size: 0.9rem;
        line-height: 1.5;
    }

    .services-hero__title {
        max-width: 330px;

        font-size: 2rem;
        line-height: 1.08;
    }

    .services-hero__description {
        max-width: 330px;

        font-size: 1rem;
        line-height: 1.7;
    }

    .services-hero__categories {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .services-hero__category {
        width: 100%;
        padding: 0;

        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;

        text-align: left;

        border-right: 0;
    }

    .services-hero__category img {
        width: 38px;
        height: 38px;
    }

    .services-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services-hero__button {
        width: 100%;
    }

}

/* ==========================================================
   SECÇÃO 2 — SERVIÇOS
   ========================================================== */

.services {
    padding: 100px 0;
    background-color: #f6f8fb;
}


/* ==========================================================
   CABEÇALHO
   ========================================================== */

.services__header {
    max-width: 760px;
    margin: 0 auto 64px;

    text-align: center;
}

.services__eyebrow {
    display: inline-block;
    margin-bottom: 16px;

    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #806000;
}

.services__title {
    margin-bottom: 20px;

    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;

    color: #0b1f3b;
}

.services__description {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;

    color: #555555;
}


/* ==========================================================
   GRUPOS
   ========================================================== */

.services__group {
    margin-bottom: 90px;
}

.services__group:last-child {
    margin-bottom: 0;
}

.services__group-header {
    margin-bottom: 32px;
}

.services__group-title {
    margin-bottom: 10px;

    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;

    color: #0b1f3b;
}

.services__group-description {
    max-width: 700px;

    font-size: 1.1rem;
    line-height: 1.6;

    color: #555555;
}


/* ==========================================================
   GRELHA
   ========================================================== */

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


/* ==========================================================
   CARTÕES
   ========================================================== */

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #ffffff;

    border: 1px solid #e8e8e8;
    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 40px rgba(11, 31, 59, 0.15);
}


/* ==========================================================
   IMAGEM
   ========================================================== */

.service-card__image {
    position: relative;
    flex-shrink: 0;

    height: 300px;

    overflow: hidden;
}

.service-card__image>img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================
   ÍCONE
   ========================================================== */

.service-card__icon {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 64px;
    height: 64px;

    z-index: 2;
}

.service-card__icon img {
    display: block;

    width: 100%;
    height: 100%;
}


/* ==========================================================
   CONTEÚDO
   ========================================================== */

.service-card__content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card__title {
    min-height: 2.6em;
    margin-bottom: 16px;

    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;

    color: #0b1f3b;
}

.service-card__description {
    margin-bottom: 24px;

    font-size: 1.2rem;
    line-height: 1.8;

    color: #555555;
}


/* ==========================================================
   SABER MAIS
   ========================================================== */

.service-card__link {
    display: inline-flex;
    align-items: center;

    font-size: 1.2rem;
    font-weight: 700;

    color: #806000;

    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: auto;
    min-height: 44px;

    transition: color 0.3s ease;
}

.service-card__link:hover {
    color: #0b1f3b;
}

.services__group-header {
    margin-bottom: 30px;
}

.services__group-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.services__group-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.services__group-title {
    margin: 0;
}

.services__group-description {
    margin: 0;
}

/* ==========================================================
   SECÇÃO 3 — COMO FUNCIONA O SERVIÇO
   ========================================================== */

.service-process {
    position: relative;

    padding: 90px 0 100px;

    background-color: #061428;

    overflow: hidden;
}


/* ==========================================================
   CABEÇALHO
   ========================================================== */

.service-process__header {
    max-width: 850px;

    margin: 0 auto 65px;

    text-align: center;
}

.service-process__eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #FFD400;
}

.service-process__title {
    margin: 0 0 16px;

    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.2;

    color: #ffffff;
}

.service-process__description {
    margin: 0;

    font-size: 1.15rem;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.75);
}


/* ==========================================================
   ETAPAS
   ========================================================== */

.service-process__steps {
    position: relative;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 40px;
}


/* Linha horizontal */

.service-process__steps::before {
    content: "";

    position: absolute;

    top: 36px;
    left: 10%;
    right: 10%;

    height: 1px;

    background-color: rgba(255, 255, 255, 0.35);

    z-index: 0;
}


/* ==========================================================
   CADA ETAPA
   ========================================================== */

.service-process__step {
    position: relative;

    text-align: center;

    z-index: 1;
}


/* ==========================================================
   ÍCONE
   ========================================================== */

.service-process__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background-color: #ffffff;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.service-process__icon img {
    display: block;

    width: 72px;
    height: 72px;
}


/* ==========================================================
   HOVER
   ========================================================== */

.service-process__step:hover .service-process__icon {
    background-color: #FFD400;

    transform: translateY(-5px);
}


/* ==========================================================
   TÍTULO DA ETAPA
   ========================================================== */

.service-process__step-title {
    margin: 0 0 10px;

    font-size: 1.25rem;
    font-weight: 700;

    color: #ffffff;
}


/* ==========================================================
   DESCRIÇÃO DA ETAPA
   ========================================================== */

.service-process__step-description {
    max-width: 210px;

    margin: 0 auto;

    font-size: 0.95rem;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.75);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {

    .services {
        padding: 70px 0;
    }

    .services__header {
        margin-bottom: 50px;
    }

    .services__title {
        font-size: 2.2rem;
    }

    .services__description {
        font-size: 1.15rem;
    }

    .services__group {
        margin-bottom: 70px;
    }

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

}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .services {
        padding: 50px 0;
    }


    /* Cabeçalho */

    .services__header {
        margin-bottom: 40px;
    }

    .services__eyebrow {
        font-size: 1rem;
    }

    .services__title {
        font-size: 1.7rem;
    }

    .services__description {
        font-size: 1.05rem;
    }


    /* Grupos */

    .services__group {
        margin-bottom: 60px;
    }

    .services__group-header {
        margin-bottom: 24px;
    }

    .services__group-title {
        font-size: 1.6rem;
    }

    .services__group-description {
        font-size: 1rem;
    }


    /* Grelha */

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


    /* Imagem */

    .service-card__image {
        height: 220px;
    }


    /* Conteúdo */

    .service-card__content {
        padding: 24px;
    }

    .service-card__title {
        min-height: auto;

        font-size: 1.35rem;
    }

    .service-card__description {
        font-size: 1.05rem;
        line-height: 1.6;
    }


    /* Ícone */

    .service-card__icon {
        top: 14px;
        right: 14px;

        width: 52px;
        height: 52px;
    }

}

/* Ajustes exclusivos de Serviços: preservam as restantes páginas. */
.services-page .header__container { gap: 1.5rem; }
.services-page .header__brand { min-width: 0; }
.services-page .header__nav { margin-right: 1rem; }
.services-page .header__menu { gap: 1.5rem; }
.services-page .header__call { min-width: 160px; padding-inline: 1rem; }

.services-skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 12px 20px;
    color: #061428;
    background: #FFD400;
    border-radius: 8px;
    transform: translateY(-160%);
}
.services-skip:focus { transform: translateY(0); }
.services-page :focus-visible { outline: 3px solid #806000; outline-offset: 5px; }
.services-page .header :focus-visible,
.services-page .footer :focus-visible,
.service-process :focus-visible { outline-color: #FFD400; }
.service-process__step { min-width: 0; }
.service-process__title { overflow-wrap: anywhere; text-wrap: balance; }
.service-process__icon { background: #FFF4BF; }
.service-process__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin-top: 56px;
}
.service-process__contact { background: #FFD400; color: #061428; }
.service-process__contact:hover { background: #ffe36b; color: #061428; }
.service-process__phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .services-page .container { width: calc(100% - 4rem); }
    .services-page .header__container { flex-wrap: wrap; padding-block: 16px; gap: 12px 24px; }
    .services-page .header__logo { margin-right: auto; }
    .services-page .header__nav { order: 3; flex-basis: 100%; margin: 0; }
    .services-page .header__menu { justify-content: center; }
    .services-hero__container { min-height: 650px; padding-block: 48px; }
    .services-hero__content { max-width: 650px; }
    .services-hero {
        min-height: 650px;
        background-image: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.7) 65%, rgba(255,255,255,.08)), url('/images/pagina-servicos/servicos-eletricista-certificado-lisboa-setubal.webp');
    }
    .service-process__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
    .service-process__steps::before { display: none; }
}

@media (max-width: 768px) {
    .services-page .header__container { width: min(100% - 2.5rem, 370px); column-gap: 12px; row-gap: 10px; }
    .services-page .header__brand-name { font-size: clamp(1.05rem, 4.7vw, 1.3rem); letter-spacing: .075em; }
    .services-page .header__brand-subtitle { font-size: clamp(.73rem, 3.2vw, .93rem); letter-spacing: .015em; }
    .services-page .header__nav { margin: 0; }
    .services-page .header__call { min-width: 0; }
    .services-page .header__urgency { max-width: calc(100% - 2.5rem); font-size: .73rem; }
    .services-hero {
        background-image: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.78)), url('/images/pagina-servicos/servicos-eletricista-certificado-lisboa-setubal.webp');
    }
    .services-hero__button { min-width: 0; padding-block: 14px; height: auto; }
    .service-process { padding: 56px 0; }
    .service-process__header { margin-bottom: 40px; }
    .service-process__title { font-size: clamp(1.65rem, 5vw, 2.25rem); line-height: 1.2; }
    .service-process__eyebrow { font-size: .85rem; letter-spacing: .08em; }
    .service-process__description { font-size: 1rem; }
    .service-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
    .service-process__steps::before { display: none; }
    .service-process__step-description { max-width: 260px; }
    .service-process__actions { margin-top: 40px; }
}

@media (max-width: 560px) {
    .service-process__steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .service-process__step { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 18px; text-align: left; }
    .service-process__icon { width: 60px; height: 60px; grid-column: 1; grid-row: 1 / span 2; margin: 0; }
    .service-process__icon img { width: 60px; height: 60px; }
    .service-process__step-title { grid-column: 2; font-size: 1.15rem; margin-bottom: 6px; }
    .service-process__step-description { grid-column: 2; margin: 0; max-width: none; }
    .service-process__contact { width: 100%; }
}

@media (max-width: 360px) {
    .services-page .container { width: calc(100% - 2.5rem); }
    .services-page .header__container { grid-template-columns: 48px 1fr; }
    .services-page .header__logo { grid-template-columns: 48px 1fr; }
    .services-page .header__logo-image { width: 46px; height: 46px; }
    .services-hero__title { font-size: 1.9rem; }
    .service-card__content { padding: 20px; }
    .services__group-heading { gap: 12px; }
    .services__group-title { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .services-page *, .services-page *::before { transition: none !important; scroll-behavior: auto !important; }
    .service-card:hover, .service-process__step:hover .service-process__icon,
    .services-hero__button:hover { transform: none; }
}


