/* ═══════════════════════════════════════════════════════════
   CORTICEIRA CARDOSO — ESTILOS PRINCIPAIS
═══════════════════════════════════════════════════════════ */

/* VARIÁVEIS */
:root {
    --dark: #111111;
    --white: #ffffff;
    --brown: #7C4A2A;
    --brown-bg: #6B3D20;
    --teal: #4A7C6A;
    --teal-bg: #D8E9E3;
    --teal-dark: #2E5A4E;
    --green-hover: #95CCC3;
    --gray-light: #f5f5f5;
    --gray-mid: #888888;
    --font: 'all-round-gothic', sans-serif;
    --header-h: 100px;
    --max-w: 1350px;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── HEADER ──────────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    transition: background 0.35s, box-shadow 0.35s;
}

#site-header.scrolled {
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 44px;
    width: auto;
}

.logo-dark {
    display: none;
}

.logo-white {
    display: block;
}

.header-nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
}

.header-nav a:hover {
    color: var(--green-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-login-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.2s;
}

.header-login-btn:hover {
    color: var(--green-hover);
}

.login-icon-img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.header-logout-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.header-logout-link:hover {
    color: var(--white);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}

.lang-switcher span {
    color: rgba(255, 255, 255, 0.2);
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--white);
}

/* Burger */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu — opens below header, full remaining height, frosted glass */
.mobile-menu {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(22, 10, 5, 0.90);
    -webkit-backdrop-filter: blur(56px);
    backdrop-filter: blur(56px);
    padding: 48px 32px 40px;
    z-index: 999;
    flex-direction: column;
    gap: 28px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
    height:100vh;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.mobile-lang {
    display: flex;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
}

.mobile-lang span {
    color: rgba(255, 255, 255, 0.2);
}

.mobile-lang a {
    color: rgba(255, 255, 255, 0.45);
}

.mobile-lang a.active {
    color: var(--white);
}

/* ─── HERO / SWIPER ───────────────────────────────────── */
.hero-swiper {
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    display: none;
}

/* Hero inner — container 1350px dentro do slide */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
}

.hero-inner--split {
    justify-content: space-between;
    gap: 80px;
}

.hero-content {
    max-width: 660px;
}

.hero-title {
    font-size: clamp(30px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.12;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}

.hero-title strong {
    color: var(--green-hover);
    font-weight: inherit;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-aside {
    flex-shrink: 0;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.hero-aside-text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

/* Botão hero — pill teal */
.btn-hero {
    display: inline-block;
    padding: 14px 32px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--green-hover);
    color: var(--white);
    border-radius: 50px;
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--green-hover);
}

/* ─── HERO NAV (setas + bullets em baixo, dentro dos 1350px) ── */
.hero-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding-bottom: 60px;
}

.hero-nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-nav-arrows {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-shrink: 0;
}

/* Setas — override ao posicionamento absoluto do Swiper */
.swiper-button-prev,
.swiper-button-next {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 32px !important;
    height: 32px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
    content: '' !important;
}

.swiper-button-prev {
    background-image: url('../images/icon-white-previousarrow.svg') !important;
}

.swiper-button-next {
    background-image: url('../images/icon-white-nextarrow.svg') !important;
}

/* Pagination — override ao posicionamento absoluto do Swiper */
.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.62) !important;
    opacity: 1 !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    transition: background 0.2s;
    flex-shrink: 0;
}

.swiper-pagination-bullet-active {
    background: var(--white) !important;
    transform: none !important;
}

/* ─── BOTÕES ──────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    padding: 16px 44px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--white);
    color: var(--dark);
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--brown);
    color: var(--white);
}

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 2px solid var(--dark);
    color: var(--dark);
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    background: none;
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

/* ─── SECÇÕES ─────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
}

/* Watermark */
.watermark-wrap {
    position: relative;
}

.watermark-text {
    position: absolute;
    top: -0.1em;
    left: -10px;
    font-size: clamp(70px, 11vw, 170px);
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.section-text {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

/* ─── SOBRE NÓS ───────────────────────────────────────── */
#sobrenos {
    background: var(--white);
    overflow: hidden;
    padding: 100px 0 120px;
}

/* Watermark slide-in */
.sobrenos-watermark {
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    user-select: none;
    margin-bottom: -4.1em;
}

/*.swm-wrap {
    overflow: hidden;
}*/

.sobrenos-watermark span {
    display: block;
    font-size: clamp(80px, 14vw, 233px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px #715347;
    line-height: 1;
    letter-spacing: 0.02em;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.swm-left {
    transform: translateX(-110%);
}

.swm-right {
    transform: translateX(110%);
}

#sobrenos.wm-visible .swm-left {
    transform: translateX(0);
}

#sobrenos.wm-visible .swm-right {
    transform: translateX(0);
    transition-delay: 0.1s;
}

/* Título e subtítulo */
.sobrenos-header {
    margin-bottom: 40px;
}

.sobrenos-title {
    font-size: clamp(28px, 4vw, 77px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #715347;
    margin-bottom: 10px;
}

.sobrenos-sub {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #715347;
}

.sobrenos-sub strong {
    color: #715347;
}

/* Card full-width com imagem dentro */
.sobrenos-card {
    width: 100%;
    background: rgba(113, 83, 71, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 420px;
}

.sobrenos-card-content {
    flex: 1;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.sobrenos-card-text {
    font-size: 14px;
    line-height: 1.9;
    color: #3a2318;
}

.btn-sobrenos {
    display: inline-block;
    padding: 13px 32px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 2px solid #715347;
    color: #715347;
    background: none;
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
    border-radius: 4px;
}

.btn-sobrenos:hover {
    background: #715347;
    color: var(--white);
}

.sobrenos-img {
    flex: 0 0 62%;
}

.sobrenos-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ─── QUALIDADE ────────────────────────────────────────── */
#qualidade {
    background: var(--teal-bg);
    position: relative;
    overflow: visible;
    padding: 0;
}

/* Watermark — o wrapper clips o overflow horizontal da animação */
.qualidade-wm {
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.qualidade-wm-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
}

.qwm-word {
    display: block;
    font-size: clamp(80px, 14vw, 233px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--teal-dark);
    line-height: 1;
    letter-spacing: 0.02em;
    transform: translateX(110%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#qualidade.wm-visible .qwm-word {
    transform: translateX(0);
}

/* Conteúdo esquerda */
.qualidade-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    margin-top: -3em;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}

.qualidade-left {
    width: 48%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.qualidade-title {
    font-size: clamp(28px, 4vw, 77px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--teal-dark);
}

.qualidade-text {
    font-size: 14px;
    line-height: 1.9;
    color: #3a5a52;
    max-width: 420px;
}

/* Imagem — começa no centro do viewport (= centro do conteúdo),
   ocupa a metade direita e ultrapassa a secção em baixo */
.qualidade-img {
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    bottom: -140px;
    z-index: 1;
}

.qualidade-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* ─── PROCESSO PRODUTIVO ───────────────────────────────── */
#processo {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100svh;
    background: #f0eeec;
    padding: 0;
}

/* Lado esquerdo — área cinzenta, imagem centrada */
.processo-img-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

/* Imagem com moldura branca */
.processo-img-wrap {
    max-width: 650px;
    width: 100%;
}

.processo-img-wrap img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Card castanho — encostado à direita, sem max-width */
.processo-card {
    flex: 0 0 50%;
    background: #715347;
    padding: 64px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 28px;
}

.processo-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

#processo .processo-t-solid {
    display: block;
    font-size: clamp(40px, 5.5vw, 80px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.04em;
}

#processo .processo-t-outline {
    display: block;
    font-size: clamp(40px, 5.5vw, 80px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
    letter-spacing: 0.04em;
}

.processo-text {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    max-width: 380px;
}

.btn-processo {
    display: inline-block;
    padding: 13px 44px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--white);
    color: #715347;
    border-radius: 50px;
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
}

.btn-processo:hover {
    background: var(--green-hover);
    color: var(--white);
}

/* ─── SUSTENTABILIDADE ─────────────────────────────────── */
#sustentabilidade {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding-bottom: 72px;
}

#sustentabilidade::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

/* Watermark — slide-in da esquerda, full-width */
.sustent-wm {
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 1;
    padding-top: 52px;
    margin-bottom: 8px;
}

.sustent-wm-word {
    display: block;
    font-size: clamp(44px, 8vw, 140px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
    line-height: 1;
    letter-spacing: 0.02em;
    transform: translateX(-110%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

#sustentabilidade.wm-visible .sustent-wm-word {
    transform: translateX(0);
}

/* Conteúdo dentro dos 1350px */
.sustent-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.sustent-title {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 36px;
    line-height: 1;
}

.sustent-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.sustent-text {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.8);
    max-width: 420px;
}

.sustent-text strong {
    color: var(--white);
    font-weight: 700;
}

.btn-sustent {
    display: inline-block;
    padding: 14px 44px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--white);
    color: var(--dark);
    border-radius: 50px;
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-sustent:hover {
    background: var(--green-hover);
    color: var(--white);
}

/* ─── FOOTER ───────────────────────────────────────────── */
#contacts {
    background: #715347;
    color: var(--white);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 52px 0 56px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.5fr auto;
    gap: 56px;
    align-items: start;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 28px;
}

/* Sociais — ícones já têm cor própria, hover clareia */
.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials img {
    width: auto;
    height: 28px;
    object-fit: contain;
    transition: filter 0.2s;
}

.footer-socials a:hover img {
    filter: brightness(1.3);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

.footer-nav a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--green-hover);
}

/* Contactos — ícones já têm cor, hover clareia */
.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--white);
    line-height: 1.65;
}

.footer-contact-line img {
    width: auto;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
    transition: filter 0.2s;
}

.footer-contact-line:hover img {
    filter: brightness(1.3);
}

.footer-contact-line a {
    color: var(--white);
    transition: color 0.2s;
}

.footer-contact-line a:hover {
    color: var(--green-hover);
}

/* Botão voltar ao topo */
.footer-top-wrap {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.footer-top-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-hover);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.footer-top-btn:hover {
    background: #7ab8af;
    transform: translateY(-3px);
}

/* Barra inferior */
.footer-bottom {
    background: #47332A;
}

.footer-bottom-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Esquerda: copyright + desenvolvido por */
.footer-copy {
    font-size: 13px;
    color: var(--white);
    line-height: 1.8;
    flex-shrink: 0;
}

.footer-copy a {
    color: var(--white);
}

.footer-dev-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 4px;
}

.footer-dev-link img {
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.footer-dev-link:hover img {
    opacity: 0.75;
}

/* Centro: links legais */
.footer-legal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.footer-legal a:hover {
    opacity: 0.7;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.4);
}

/* Direita: logos PRR + 2030 — brancos */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer-logos img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* ─── AUTH (login / registo) ───────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 48px) 20px 64px;
    background: var(--gray-light);
}

.auth-box {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    padding: 52px 48px;
    box-shadow: 0 4px 48px rgba(0, 0, 0, 0.08);
}

.auth-box--wide {
    max-width: 680px;
}

.auth-heading {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #715347;
    margin-bottom: 28px;
}

.auth-subtitle {
    font-size: 13px;
    color: #715347;
    line-height: 1.75;
    margin-bottom: 28px;
}

.auth-forgot {
    margin-bottom: 20px;
    margin-top: -4px;
}

.auth-forgot a {
    font-size: 12px;
    color: #715347;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.auth-forgot a:hover {
    opacity: 0.7;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #715347;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    font-size: 14px;
    font-family: var(--font);
    border: 1.5px solid #e4e4e4;
    outline: none;
    background: #fafafa;
    color: var(--dark);
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus {
    border-color: var(--dark);
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: #2D7B61;
    color: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-full:hover {
    background: #225e4a;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #2D7B61;
    cursor: pointer;
}

.form-check label {
    font-size: 12px;
    color: #715347;
    line-height: 1.5;
    cursor: pointer;
}

.auth-link-row {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #715347;
}

.auth-link-row a {
    color: #715347;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

.auth-msg {
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.auth-msg.ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-msg.err {
    background: #fce4e4;
    color: #b71c1c;
}

.auth-msg.pending {
    background: #fff3e0;
    color: #bf6000;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.captcha-img {
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

.captcha-refresh {
    font-size: 20px;
    color: #715347;
    text-decoration: none;
    line-height: 1;
}

.captcha-refresh:hover {
    opacity: 0.7;
}

/* ─── SOBRE NÓS (aboutus) ──────────────────────────────── */

.aboutus-hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.aboutus-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.aboutus-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding: 0 40px 60px;
}

.aboutus-hero-wm {
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    margin-bottom: -0.14em;
}

/* Stacked variant — each word on its own line (used for PROCESSO PRODUTIVO) */
.aboutus-hero-wm--stacked {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: -0.2em;
}

.aboutus-hero-wm--stacked .aboutus-wm-wrap:last-child {
    align-self: flex-end;
}

/* Smaller watermark variant — for long words like SUSTENTABILIDADE */
.aboutus-hero-wm--sm {
    justify-content: flex-start;
}

.aboutus-hero-wm--sm .aboutus-wm-l,
.aboutus-hero-wm--sm .aboutus-wm-r {
    font-size: clamp(44px, 7.5vw, 130px);
}

.aboutus-wm-wrap {
    overflow: hidden;
}

.aboutus-wm-l,
.aboutus-wm-r {
    display: block;
    font-size: clamp(80px, 14vw, 233px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
    line-height: 0.9;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.aboutus-wm-l {
    transform: translateX(-110%);
}

.aboutus-wm-r {
    transform: translateX(110%);
}

.aboutus-hero.wm-visible .aboutus-wm-l {
    transform: translateX(0);
}

.aboutus-hero.wm-visible .aboutus-wm-r {
    transform: translateX(0);
    transition-delay: 0.1s;
}

.aboutus-hero-title {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1;
}

/* 50 anos */
.aboutus-50y {
    padding: 80px 0 0;
    background: rgba(98, 98, 98, 0.1);
}

.aboutus-50y-label-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 40px;
}

.aboutus-50y-label {
    text-align: center;
    font-size: clamp(20px, 2.8vw, 40px);
    font-weight: 700;
    color: var(--brown);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.aboutus-50y-label strong {
    color: var(--dark);
}

.aboutus-50y-img-wrap {
    position: relative;
    overflow: hidden;
    max-width: var(--max-w);
    margin: 0 auto;
}

.aboutus-50y-img-wrap img {
    width: 100%;
    display: block;
}

/* fade inferior: dissolve a imagem para o fundo da secção
   rgb(239,239,239) = rgba(98,98,98,0.1) composto sobre branco */
.aboutus-50y-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to bottom, transparent 0%, rgb(239, 239, 239) 100%);
    pointer-events: none;
    z-index: 0;
}

.aboutus-50y-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aboutus-50y-overlay p {
    font-size: 12px;
    line-height: 1.75;
    font-style: italic;
    color: rgba(40, 20, 10, 0.72);
    max-width: 480px;
}

.aboutus-50y-overlay p strong {
    color: rgba(40, 20, 10, 0.9);
}

/* Família — card estilo sobrenos homepage */
.aboutus-story {
    padding: 80px 0 100px;
    background: rgba(98, 98, 98, 0.1);
}

.aboutus-story-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.aboutus-family-card {
    width: 100%;
    background: rgba(113, 83, 71, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 420px;
}

.aboutus-family-content {
    flex: 1;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.aboutus-family-text {
    font-size: 14px;
    line-height: 1.9;
    color: #3a2318;
}

.aboutus-family-text strong {
    color: #1a0e0a;
    font-weight: 700;
}

.aboutus-family-img {
    flex: 0 0 60%;
}

.aboutus-family-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

@media (max-width: 900px) {
    .aboutus-family-card {
        flex-direction: column;
    }

    .aboutus-family-img {
        flex: none;
        height: 320px;
    }

    .aboutus-family-content {
        padding: 36px 28px;
    }

    .aboutus-hero-wm {
        padding: 0 20px;
    }

    .aboutus-hero-inner {
        padding: 0 20px 40px;
    }

    .aboutus-50y-label-wrap {
        padding: 0 20px;
    }

    .aboutus-50y-overlay {
        padding: 0 20px 24px;
    }

    .aboutus-story-inner {
        padding: 0 20px;
    }
}

/* ─── PROCESSO PRODUTIVO ────────────────────────────────── */
.processo-section {
    background: rgba(98, 98, 98, 0.1);
    min-height: calc(100vh - var(--header-h));
}

.processo-inner {
    display: flex;
    min-height: calc(100vh - var(--header-h));
}

/* Painel da imagem — Swiper peek */
.processo-img-panel {
    flex: 0 0 48%;
    position: relative;
    overflow: hidden;
}

.processo-img-swiper {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.processo-swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s;
}

.processo-swiper-slide:not(.swiper-slide-active) {
    opacity: 0.5;
}

.processo-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.processo-img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(98, 98, 98, 0.2);
}

/* Painel do texto */
.processo-text-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 32px 48px;
}

/* Standalone processo page card — scoped to override home-page .processo-card */
.processo-section .processo-card {
    flex: 1;
    width: 100%;
    background: #715347;
    border-radius: 20px;
    padding: 44px 44px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    gap: 24px;
}

/* Conteúdo do step — grid overlay: todos os steps na mesma célula, altura = step mais alto */
.processo-content {
    display: grid;
}

.processo-step-content {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    pointer-events: none;
}

.processo-step-content.active {
    opacity: 1;
    pointer-events: auto;
}

.processo-step-title {
    font-size: clamp(18px, min(3vw, 4.5vh), 46px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.processo-t-solid {
    display: block;
    font-size: clamp(22px, min(5.5vw, 7vh), 80px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.04em;
}

.processo-t-outline {
    display: block;
    font-size: clamp(22px, min(5.5vw, 7vh), 80px);
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
    color: transparent;
    letter-spacing: 0.04em;
}

.processo-step-text {
    font-size: clamp(11px, min(1vw, 1.5vh), 14px);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

/* Navegação por dots */
.processo-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.processo-dots-wrap {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    height: 132px;
    scrollbar-width: none;
    display: flex;
    align-items: center;
}

.processo-dots-wrap::-webkit-scrollbar {
    display: none;
}

.processo-dots {
    display: flex;
    align-items: center;
    position: relative;
    width: max-content;
    min-width: 100%;
    height: 100%;
}


/* Cada item: label / tick / dot / tick / label */
.processo-dot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 72px;
    height: 100%;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

/* Labels */
.processo-dot-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    white-space: normal;
    text-align: center;
    width: 70px;
    line-height: 1.3;
    padding: 0 2px;
    transition: color 0.25s;
    min-height: 34px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.processo-dot-top {
    margin-bottom: 6px;
}

.processo-dot-bot {
    align-items: flex-start;
    margin-top: 6px;
}

.dot-label-hidden {
    visibility: hidden;
}

.processo-dot-item.active .processo-dot-label {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

/* Tick vertical entre label e dot — gap para label, sem gap para o dot */
.processo-dot-tick {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.30);
    flex-shrink: 0;
    transition: background 0.25s;
}

.dot-tick-hidden {
    visibility: hidden;
}

.processo-dot-item.active .processo-dot-tick {
    background: rgba(255, 255, 255, 0.75);
}

/* Dot (círculo) */
.processo-dot-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.30);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    transition: background 0.25s, transform 0.25s;
}

.processo-dot-item.active .processo-dot-btn {
    background: var(--white);
    transform: scale(1.5);
}

.processo-nav-next {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
}

.processo-nav-next:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ─── QUALIDADE — INTRO ─────────────────────────────────── */
.qualidade-intro {
    background: rgba(98, 98, 98, 0.1);
    padding: 80px 0;
}

.qualidade-intro-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.qualidade-intro-inner p {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.85;
    color: var(--dark);
    max-width: 860px;
    margin: 0 auto;
}

/* ─── ENSAIOS — STICKY CARDS ────────────────────────────── */
.ensaios-section {
    position: relative;
}

.ensaio-step {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    display: flex;
    overflow: hidden;
}

.ensaio-step--1 {
    z-index: 1;
    background: #f9f5f2;
}

.ensaio-step--2 {
    z-index: 2;
    background: #ede6de;
}

.ensaio-step--3 {
    z-index: 3;
    background: #e2d9ce;
}

.ensaio-step--4 {
    z-index: 4;
    background: #3a2317;
    color: var(--white);
}

.ensaio-text-side {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 60px 60px max(80px, calc((100vw - var(--max-w)) / 2 ));
}

.ensaio-img-side {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 50px;
}

.ensaio-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ensaio-num {
    font-size: clamp(72px, 9vw, 150px);
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 0, 0, 0.06);
    display: block;
    margin-bottom: -0.18em;
}

.ensaio-step--4 .ensaio-num {
    color: rgba(255, 255, 255, 0.07);
}

.ensaio-title {
    font-size: clamp(26px, 3.2vw, 50px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ensaio-t-solid {
    color: var(--brown);
}

.ensaio-step--4 .ensaio-t-solid {
    color: var(--white);
}

.ensaio-t-outline {
    -webkit-text-stroke: 2px var(--brown);
    color: transparent;
}

.ensaio-step--4 .ensaio-t-outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
    color: transparent;
}

.ensaio-text {
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.8;
    color: #444;
    max-width: 440px;
}

.ensaio-step--4 .ensaio-text {
    color: rgba(255, 255, 255, 0.75);
}

/* ─── USER DROPDOWN (header) ───────────────────────────── */
.header-user-wrap {
    position: relative;
}

.header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    min-width: 180px;
    z-index: 300;
    padding: 6px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
}

/* Invisible bridge fills the 10px gap so hover isn't lost mid-motion */
.header-user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.header-user-wrap:hover .header-user-dropdown {
    display: block;
}

.header-user-dropdown a {
    display: block;
    padding: 11px 20px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.header-user-dropdown a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ─── ÁREA CLIENTE ─────────────────────────────────────── */
.account-page {
    min-height: 100vh;
    padding: calc(var(--header-h) + 60px) 40px 80px;
    max-width: 860px;
    margin: 0 auto;
}

.auth-page--account {
    align-items: flex-start;
}

.account-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── DOCUMENTOS (área cliente) ─────────────────────────── */
.account-docs {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.account-docs-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #715347;
    margin-bottom: 14px;
}

.account-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border: 1px solid #e8e8e8;
    margin-bottom: 8px;
    color: #333;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.account-doc-item:hover {
    border-color: #715347;
    background: #faf9f8;
    color: #333;
}

.account-doc-name {
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 16px;
}

.account-doc-dl {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   SUSTENTABILIDADE — PAGE
═══════════════════════════════════════════════════════════ */

/* Títulos escuros solid + outline (reutilizados em todas as secções) */
.sust-dark-solid {
    display: block;
    font-size: clamp(30px, 3.6vw, 56px);
    font-weight: 900;
    text-transform: uppercase;
    color: #3d1a0a;
    line-height: 1.05;
    letter-spacing: 0.02em;
}
.sust-dark-outline {
    display: block;
    font-size: clamp(30px, 3.6vw, 56px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px #3d1a0a;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

/* ─── COMPROMISSO ─────────────────────────────────────────── */
.sust-comp {
    padding: 90px 0;
    background: var(--white);
}
.sust-comp-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    gap: 80px;
    align-items: center;
}
.sust-comp-left { flex: 0 0 44%; }
.sust-comp-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sust-comp-right p {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(40,20,10,0.68);
    font-style: italic;
}
.sust-comp-right p strong {
    color: rgba(40,20,10,0.88);
    font-style: normal;
}

/* ─── TRANSIÇÃO (fullwidth image + overlay + bottom fade) ─── */
.sust-trans {
    position: relative;
    overflow: hidden;
}
.sust-trans img {
    width: 100%;
    display: block;
}
/* dark overlay para legibilidade do título */
.sust-trans::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 8, 0, 0.48);
    z-index: 1;
    pointer-events: none;
}
/* fade inferior para branco */
.sust-trans::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
    pointer-events: none;
    z-index: 2;
}
.sust-trans-content {
    position: absolute;
    inset: 0;
    padding: 10% 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 3;
}
.sust-trans-solid {
    display: block;
    font-size: clamp(46px, 6vw, 90px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.03em;
}
.sust-trans-outline {
    display: block;
    font-size: clamp(46px, 6vw, 90px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.55);
    line-height: 1;
    letter-spacing: 0.03em;
}

/* ─── ENERGIAS RENOVÁVEIS — TABS ─────────────────────────── */
.sust-energias { background: var(--white); }
.sust-energias-tabs {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.sust-tab {
    flex: 1;
    padding: 28px 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    font-family: var(--font);
    position: relative;
    overflow: hidden;
}
/* Progress track (always visible, dim) */
.sust-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(113,83,71,0.12);
    z-index: 0;
}
/* Animated fill (only on active tab) */
.sust-tab.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #715347;
    z-index: 1;
    transform-origin: left center;
    transform: scaleX(0);
    animation: sust-tab-progress var(--sust-tab-dur, 6s) linear forwards;
}
@keyframes sust-tab-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.sust-tab + .sust-tab {
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 48px;
}
.sust-tab-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.32);
    transition: color 0.2s;
}
.sust-tab-num {
    font-size: 10px;
    font-weight: 400;
    color: rgba(0,0,0,0.32);
    transition: color 0.2s;
}
.sust-tab.active .sust-tab-title,
.sust-tab.active .sust-tab-num {
    color: #715347;
    font-weight: 700;
}

/* ─── ENERGIAS RENOVÁVEIS — ITEMS ────────────────────────── */
.sust-energia-item {
    display: none;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 80px;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.sust-energia-item.active { display: grid; }
.sust-energia-text h2 { margin-bottom: 28px; }
.sust-energia-lead {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75;
    color: #3d1a0a;
    margin-bottom: 16px;
}
.sust-energia-text p {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(40,20,10,0.68);
}
.sust-energia-text p strong { color: #3d1a0a; }
.sust-energia-img img {
    width: 100%;
    display: block;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.sust-cards {
    background: rgba(98,98,98,0.08);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.sust-cards::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/sustainability/watermark.png') center / auto 100% no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}
.sust-cards-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}
.sust-card {
    background: var(--white);
    border-radius: 12px;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sust-card-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.sust-card h3 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sust-card .sust-dark-solid,
.sust-card .sust-dark-outline {
    font-size: clamp(16px, 1.6vw, 24px);
}
.sust-card-body {
    font-size: 12px;
    line-height: 1.85;
    color: rgba(40,20,10,0.7);
}
.sust-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sust-card-body li::before {
    content: '✓  ';
    color: #715347;
    font-weight: 700;
}
.sust-card-body p { margin-top: 10px; }
.sust-card-body strong { color: rgba(40,20,10,0.9); }

/* ─── RESPONSIVO ───────────────────────────────────────── */

/* Intermediate padding — prevents content touching edges below max-width */
@media (max-width: 1440px) {
    .header-inner,
    .hero-inner,
    .hero-nav-inner,
    .section-inner,
    .qualidade-wm-inner,
    .sustent-inner,
    .footer-bottom-inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .footer-inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .qualidade-inner {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1100px) {
    .header-nav {
        gap: 16px;
    }

    .header-nav a {
        font-size: 10.5px;
    }
}

@media (max-width: 900px) {

    #processo {
        flex-direction: column;
    }

    .processo-img-side {
        padding: 40px 24px;
    }

    .processo-card {
        flex: none;
        width: 100%;
        padding: 48px 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .header-inner {
        padding: 0 20px;
        justify-content: space-between;
    }

    .header-nav {
        display: none;
    }

    /* On mobile only show burger — login and lang are inside the mobile menu */
    .header-actions .lang-switcher,
    .header-actions .header-login-btn,
    .header-actions .header-user-wrap {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .hero-content {
        padding: 0 24px;
    }

    /* Hero split slides — stack vertically on mobile */
    .hero-inner--split {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
        padding-bottom: 40px;
    }

    .hero-aside {
        max-width: 100%;
    }

    .section {
        padding: 64px 0;
    }

    .section-inner {
        padding: 0 24px;
    }

    /* Sobrenos card — stack vertically on mobile */
    .sobrenos-card {
        flex-direction: column;
    }

    .sobrenos-img {
        flex: none;
        height: 240px;
        order: -1;
    }

    .sobrenos-card-content {
        padding: 36px 24px;
    }

    /* Sustentabilidade section — stack vertically on mobile */
    .sustent-row {
        flex-direction: column;
        gap: 28px;
        align-items: flex-start;
    }

    .sustent-text {
        max-width: 100%;
    }

    /* Override 1440px intermediate padding for mobile-specific widths */
    .header-inner,
    .hero-inner,
    .hero-nav-inner,
    .section-inner,
    .qualidade-wm-inner,
    .qualidade-inner,
    .sustent-inner,
    .footer-inner,
    .footer-bottom-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Prevent large watermarks and titles from causing horizontal overflow */
    body { overflow-x: hidden; }

    .sobrenos-watermark,
    .qualidade-wm,
    .sustent-wm,
    .aboutus-hero-wm {
        overflow: hidden;
    }

    /* Reduce large title font-sizes on mobile */
    .sobrenos-title {
        font-size: clamp(22px, 8vw, 52px);
    }

    .sobrenos-watermark span {
        font-size: clamp(44px, 14vw, 140px);
    }

    .qwm-word {
        font-size: clamp(44px, 14vw, 140px);
    }

    .sustent-wm-word {
        font-size: clamp(30px, 8vw, 90px);
    }

    .sustent-title {
        font-size: clamp(24px, 8vw, 52px);
    }

    .aboutus-wm-l,
    .aboutus-wm-r {
        font-size: clamp(40px, 13vw, 140px);
    }

    .aboutus-hero-title {
        font-size: clamp(26px, 7vw, 60px);
    }

    .sust-trans-solid,
    .sust-trans-outline {
        font-size: clamp(28px, 8vw, 60px);
    }

    .sust-dark-solid,
    .sust-dark-outline {
        font-size: clamp(22px, 6vw, 44px);
    }

    /* Processo — mobile */
    .processo-inner {
        flex-direction: column;
        height: auto;
        position: relative;
        top: auto;
    }

    .processo-img-panel {
        flex: none;
        height: 260px;
        position: relative;
    }

    .processo-img-swiper,
    .processo-swiper-slide {
        height: 260px;
    }

    .processo-text-panel {
        padding: 24px 16px;
    }

    .processo-card {
        padding: 28px 24px 24px;
        max-height: none;
        height: auto;
    }

    .processo-step-content {
        position: relative;
        display: none;
    }

    .processo-step-content.active {
        display: flex;
        position: relative;
    }

    /* Ensaios sticky cards — mobile: desempilhar */
    .ensaio-step {
        position: relative;
        top: auto;
        height: auto;
        flex-direction: column;
    }

    .ensaio-text-side {
        flex: none;
        padding: 48px 24px 32px;
    }

    .ensaio-img-side {
        height: 260px;
    }

    .ensaio-num {
        font-size: 20vw;
    }

    .qualidade-intro-inner {
        padding: 0 24px;
    }

    /* Qualidade mobile: imagem volta ao fluxo normal */
    .qualidade-img {
        position: static;
        width: 100%;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
        margin-top: 32px;
    }

    .qualidade-img img {
        height: 280px;
    }

    .qualidade-left {
        width: 100%;
    }

    .qualidade-inner {
        padding: 0 24px 60px;
        margin-top: -2em;
    }

    .watermark-text {
        font-size: 15vw;
    }


    .footer-inner {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .auth-box {
        padding: 36px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Sustentabilidade */
    .sust-comp {
        padding: 60px 0;
    }
    .sust-comp-inner {
        flex-direction: column;
        padding: 0 24px;
        gap: 36px;
    }
    .sust-comp-left { flex: none; }
    .sust-trans-content {
        padding: 10% 24px 0;
    }
    .sust-energias-tabs {
        padding: 0 24px;
    }
    .sust-tab + .sust-tab {
        padding-left: 24px;
    }
    .sust-energia-item {
        padding: 48px 24px;
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .sust-energia-img { order: -1; }
    .sust-cards {
        padding: 60px 0;
    }
    .sust-cards-inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
}