/* ------------------------------------------------------------------
   Tema RACEP — skin sobre o design base do OpsCom CMS.
   Carregado depois do site.css (ver front-themes/racep/front/layout).
   Paleta da marca: verde #9ac31d, azul-noite #102136, texto #4d5d6d.
   ------------------------------------------------------------------ */

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
        U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ink: #102136;
    --accent: #9ac31d;
    --accent-2: #88aa17;
    --accent-soft: rgba(154, 195, 29, .14);
    --paper: #ffffff;
    --paper-2: #f9fafc;
    --tint-1: #f9fafc;
    --tint-2: #f2f4f7;
    --tint-3: #eaedf1;
    --gray: #4d5d6d;
    --line: #e3e7ec;
    --heading: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* 1338 − 2×24 de padding = 1290 de conteúdo (medido no site original). */
    --container: 1338px;
    --header-h: 78px;
}

body.theme-racep { color: var(--gray); line-height: 1.65; }
.theme-racep h1, .theme-racep h2, .theme-racep h3, .theme-racep h4 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.theme-racep a { color: var(--accent); }
.theme-racep a:hover { color: var(--accent-2); }

/* ---------- cabeçalho ---------- */

.theme-racep .site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.theme-racep .main-nav a {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray);
}
.theme-racep .main-nav a:hover { color: var(--accent); }
.theme-racep .brand-logo { max-height: 34px; }

/* Sobre a imagem do hero o cabeçalho é transparente, com texto escuro
   (como no site original: o topo das imagens é claro). */
.theme-racep.header-overlay .site-header:not(.is-stuck) .main-nav > ul > li > a { color: var(--ink); }
.theme-racep.header-overlay .site-header:not(.is-stuck) .brand-logo-dark { display: block; }
.theme-racep.header-overlay .site-header:not(.is-stuck) .brand-logo-light { display: none; }
.theme-racep.header-overlay .site-header:not(.is-stuck) .nav-toggle span { background: var(--ink); }
.theme-racep.header-overlay .site-header:not(.is-stuck) .btn-cta {
    background: rgba(255, 255, 255, .55);
    border-color: rgba(16, 33, 54, .25);
    color: var(--ink);
}
.theme-racep.header-overlay .site-header:not(.is-stuck) .btn-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Colado ao topo: barra branca (o base escurece). */
.theme-racep .site-header.is-stuck,
.theme-racep.header-overlay .site-header.is-stuck {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(16, 33, 54, .07);
}
.theme-racep .site-header.is-stuck .main-nav > ul > li > a { color: var(--gray); }
.theme-racep .site-header.is-stuck .main-nav > ul > li > a:hover { color: var(--accent); }
.theme-racep .site-header.is-stuck .brand-logo-dark { display: block; }
.theme-racep .site-header.is-stuck .brand-logo-light { display: none; }

/* ---------- botões ---------- */

.theme-racep .btn-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .02em;
    border-radius: 3px;
    text-transform: none;
}
.theme-racep .btn-cta:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.theme-racep .btn-cta.light { background: #fff; border-color: #fff; color: var(--ink); }
.theme-racep .btn-cta.light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- hero ---------- */

/* Altura fixa (o original não usa vh): ≈606 px a 1440 de largura. */
.theme-racep .block-hero.has-image { min-height: clamp(360px, 42vw, 620px); text-align: center; padding: 0; }
.theme-racep .block-hero.has-image::after {
    background: linear-gradient(180deg, rgba(16, 33, 54, .18) 0%, rgba(16, 33, 54, .36) 100%);
}
.theme-racep .hero-inner { max-width: 900px; margin: 0 auto; }
.theme-racep .block-hero h1 {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 700;
    letter-spacing: .01em;
    text-shadow: 0 2px 18px rgba(16, 33, 54, .35);
}
.theme-racep .hero-subtitle {
    margin: 14px auto 0;
    font-size: 15px;
    letter-spacing: .12em;
    text-shadow: 0 2px 14px rgba(16, 33, 54, .4);
}
/* O hero é a assinatura do site: sem antetítulo com o nome. */
.theme-racep .block-hero .kicker { display: none; }

/* ---------- títulos de secção ---------- */

.theme-racep .section-head { max-width: 820px; margin: 0 auto 60px; text-align: center; }
.theme-racep .block-icon-features { padding-top: 94px; }
.theme-racep .section-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.theme-racep .section-intro { font-size: 16px; }
.theme-racep .block-text-image .section-head,
.theme-racep .block-text-image .ti-text { text-align: left; }
.theme-racep .kicker { color: var(--accent); font-size: 12.5px; letter-spacing: .16em; }

/* ---------- destaques com ícone ---------- */

.theme-racep .if-cards .if-grid { gap: 31px; }
.theme-racep .if-cards .if-item {
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(16, 33, 54, .04);
    padding: 24px 30px;
    min-height: 131px;
    gap: 16px;
}
.theme-racep .if-cards .if-item h3 { font-size: 16px; font-weight: 500; }
.theme-racep .if-icon-wrap { color: var(--ink); }
.theme-racep .if-rows .if-icon-wrap,
.theme-racep .if-centered .if-icon-wrap,
.theme-racep .ti-feature .if-icon-wrap { color: var(--accent); background: var(--accent-soft); }
.theme-racep .if-centered .if-item h3 { font-size: 15px; letter-spacing: .01em; }
.theme-racep .if-centered .if-item p { font-size: 14px; }

/* ---------- texto + imagem ---------- */

.theme-racep .block-text-image h2 { font-size: clamp(26px, 3vw, 38px); }
.theme-racep .ti-media img { border-radius: 3px; }
.theme-racep .check-list li { font-size: 15px; color: var(--gray); }

/* ---------- banners CTA ---------- */

/* O banner verde tem a largura do container (não é de margem a margem). */
.theme-racep .block-cta { padding: 56px 0; background: transparent; }
.theme-racep .block-cta.cta-brand { background: transparent; }
.theme-racep .block-cta.cta-brand .cta-inner {
    background: var(--accent);
    border-radius: 4px;
    padding: 52px 48px;
    box-shadow: 0 12px 34px rgba(16, 33, 54, .08);
}
.theme-racep .block-cta.cta-brand h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); }
.theme-racep .block-cta.cta-brand p { color: rgba(255, 255, 255, .92); }

/* O texto dos banners é sempre claro (o :root do tema escurece os títulos). */
.theme-racep .block-cta h2, .theme-racep .block-cta p { color: #fff; }

/* O banner escuro é de margem a margem, com a imagem confinada ao container. */
.theme-racep .block-cta.cta-dark { background: #141414; padding: 0; }
.theme-racep .block-cta.cta-dark .cta-bg {
    left: max(24px, calc((100% - 1290px) / 2));
    right: max(24px, calc((100% - 1290px) / 2));
}
.theme-racep .block-cta.cta-dark .cta-inner { padding: 96px 24px; }
.theme-racep .block-cta.cta-dark h2 { text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); }
.theme-racep .block-cta.cta-dark .cta-bg img { opacity: .55; }
.theme-racep .block-cta.cta-dark .cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16, 33, 54, .5);
}
.theme-racep .block-cta .cta-inner { position: relative; z-index: 2; }

/* ---------- contactos + mapa ---------- */

.theme-racep .block-contact .contact-map { border-radius: 3px; overflow: hidden; }
.theme-racep .contact-form label { font-size: 14px; color: var(--ink); }
.theme-racep .contact-form input, .theme-racep .contact-form textarea { border-radius: 3px; }

/* ---------- rodapé ---------- */

.theme-racep .rc-footer { background: #141414; color: rgba(255, 255, 255, .68); }
.theme-racep .rc-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 64px 24px 52px;
}
@media (max-width: 900px) { .theme-racep .rc-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .theme-racep .rc-footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.theme-racep .rc-footer h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin: 0 0 20px;
}
.theme-racep .rc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.theme-racep .rc-footer li { font-size: 14px; }
.theme-racep .rc-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.theme-racep .rc-footer a:hover { color: var(--accent); }

.theme-racep .rc-contact-rows li { display: flex; gap: 12px; align-items: flex-start; }
.theme-racep .rc-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--accent);
}
.theme-racep .rc-contact-body { display: grid; gap: 2px; }
.theme-racep .rc-contact-label { color: #fff; font-size: 13.5px; font-weight: 500; }

.theme-racep .footer-bottom { background: #141414; border-top: 1px solid rgba(255, 255, 255, .08); }
.theme-racep .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}
/* .rc-footer ul acima é grid: precisa de mais especificidade para ficar em linha. */
.theme-racep .rc-footer .rc-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.theme-racep .rc-footer .rc-social li { margin: 0; }
.theme-racep .rc-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.theme-racep .rc-social a:hover { background: var(--accent); color: #fff; }
.theme-racep .rc-social svg { width: 15px; height: 15px; }

/* Sobre imagens escuras (hero dos contactos) o texto escuro do cabeçalho
   perde contraste: um brilho claro por baixo resolve sem mudar o registo. */
.theme-racep.header-overlay .site-header:not(.is-stuck) .main-nav a,
.theme-racep.header-overlay .site-header:not(.is-stuck) .brand-text {
    text-shadow: 0 1px 12px rgba(255, 255, 255, .75);
}

/* Enquadramento do hero: o motivo principal das fotos está acima do centro. */
.theme-racep .block-hero.has-image .hero-bg img { object-position: center 42%; }
