/* ══════════════════════════════════════════════════════════════
   PAYTEK — style.css (página de Pedido de Acesso)
   Ordem: reset · base · layout · page hero · access · footer ·
          animações · responsivo
══════════════════════════════════════════════════════════════ */


/* ── RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--ease), color var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }
textarea { resize: vertical; }


/* ── BASE TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: clamp(2rem,   5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem,  2vw, 1.3rem); }
h4 { font-size: 1rem; }


/* ── LAYOUT ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section { padding: 5rem 0; }


/* ── SECTION HEADER ── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { color: var(--text2); font-size: 1.05rem; }


/* ══════════════════════════════════════════════════════════════
   HERO DA PÁGINA + BREADCRUMB
══════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero-bg::before {
    content: '';
    position: absolute;
    width: 50vmin; height: 50vmin;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
    top: 5%; right: 8%;
    animation: heroFloat 10s ease-in-out infinite alternate;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    margin-right: 10px;
    padding-right: 10px;
    padding-top: 120px;
}
.page-hero-content h1 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
    margin: 1rem 0;
    text-shadow: 0 2px 24px rgba(0,0,0,.3);
    max-width: 700px;
}
.page-hero-content p {
    color: rgba(255,255,255,.75);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    max-width: 560px;
    line-height: 1.75;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-bottom: .75rem;
}
.breadcrumb a {
    color: rgba(255,255,255,.6);
    transition: color var(--ease);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: rgba(255,255,255,.9); font-weight: 600; }

@media (max-width: 767px) {
    .page-hero { min-height: 360px; padding-bottom: 3rem; }
}


/* ══════════════════════════════════════════════════════════════
   PÁGINA DE PEDIDO DE ACESSO
══════════════════════════════════════════════════════════════ */

/* Hero accent verde (marca) */
.page-hero--access .page-hero-bg {
    background: linear-gradient(135deg, #0d0d0d 0%, #10190b 50%, #163b0d 100%);
}
.page-hero--access .page-hero-bg::before { background: #6DC135; }
.page-hero--access .page-hero-overlay { background-image: none; }
.page-hero--access .page-hero-content {
    text-align: left;
    width: 100%;
    margin-right: auto;
    padding-left: 39px;
}
.page-hero--access .page-hero-content h1,
.page-hero--access .page-hero-content p { margin-left: 0; }
.page-hero--access .breadcrumb { justify-content: flex-start; }

/* ── Secção principal: fundo escuro esverdeado ── */
.section--access {
    background: linear-gradient(150deg, #0a1108 0%, #10151b 40%, #0d1712 100%);
    position: relative;
    overflow: hidden;
}
.section--access::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(109,193,53,.07) 0%, transparent 65%);
    animation: floatOrb 22s ease-in-out infinite alternate;
    pointer-events: none;
}

.section--access .section-header {
    text-align: left;
    margin: 0;
    max-width: none;
}
.section--access .section-header h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}
.section--access .section-header p { color: rgba(255,255,255,.6); }


/* ── "Como funciona o processo" — steps de largura total ── */
.section-process {
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
    z-index: 1;
}
.process-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
}
.process-side .section-header { margin-bottom: 1.25rem; }

.process-steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    width: 100%;
    padding-bottom: 25px;
}
.process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: .6rem;
    background: rgba(109,193,53,.02);
    border: 1px solid rgba(109,193,53,.16);
    border-radius: 12px;
    padding: 1.1rem 1rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1),
                border-color .2s, box-shadow .2s;
}
.process-side.visible .process-step:nth-child(1) { opacity: 1; transform: none; transition-delay: .15s; }
.process-side.visible .process-step:nth-child(2) { opacity: 1; transform: none; transition-delay: .25s; }
.process-side.visible .process-step:nth-child(3) { opacity: 1; transform: none; transition-delay: .35s; }
.process-side.visible .process-step:nth-child(4) { opacity: 1; transform: none; transition-delay: .45s; }
.process-step:hover {
    border-color: #6dcc29;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(82,168,40,.15);
}
.process-step-num {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: rgba(109,193,53,.14);
    color: #6DC135;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: .85rem; font-weight: 800;
    flex-shrink: 0;
}
.process-step-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.4);
}
.process-step-title {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}
.process-step-desc {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    line-height: 1.55;
}


/* ── Grid principal: formulário centrado ── */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}
.access-grid--centered {
    grid-template-columns: 1fr;
    justify-items: center;
}


/* ── Formulário ── */
.access-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
    max-width: 640px;
}
.access-grid--centered .access-form-wrap {
    align-items: center;
    text-align: center;
}
.access-grid--centered .access-form-wrap .section-header,
.access-grid--centered .access-form-wrap .cform,
.access-grid--centered .access-form-wrap .cform-field,
.access-grid--centered .access-form-wrap .cform-consent {
    text-align: left;
    align-self: stretch;
    width: 100%;
}
.access-form-wrap h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}
.access-form-wrap > p {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    margin-top: .5rem;
    margin-bottom: 0;
}

.cform {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}
.cform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.cform-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.cform-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.cform-field label {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.cform-field input,
.cform-field select,
.cform-field textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .9rem;
    color: #fff;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
}
.cform-field input::placeholder,
.cform-field textarea::placeholder { color: rgba(255,255,255,.3); }
.cform-field select option { background: #131a14; color: #fff; }
.cform-field input:focus,
.cform-field select:focus,
.cform-field textarea:focus {
    border-color: #52A828;
    box-shadow: 0 0 0 3px rgba(82,168,40,.2);
}
.cform-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Título de secção do formulário (blocos: Empresa · Contacto · Produto) */
.cform-section-title {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6DC135;
    margin-top: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(109,193,53,.18);
}
.cform-section-title:first-child { margin-top: 0; }

/* Grupo de checkboxes — Ramo de actividade */
.cform-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem .75rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}
.cform-checkbox {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255,255,255,.8);
    cursor: pointer;
}
.cform-checkbox input[type="checkbox"],
.cform-checkbox input[type="radio"] {
    width: 17px; height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #52A828;
    cursor: pointer;
}
@media (max-width: 600px) {
    .cform-checkbox-group { grid-template-columns: 1fr; }
}
.cform-field-conditional { margin-top: .75rem; }
.cform-field-conditional[hidden] { display: none; }

/* Checkbox de termos */
.cform-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding-top: .25rem;
}
.cform-consent input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #52A828;
    cursor: pointer;
}
.cform-consent label {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}
.cform-consent label a { color: #6DC135; text-decoration: underline; text-underline-offset: 3px; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 2.5rem;
    background: #52A828;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, transform .15s;
    align-self: flex-start;
}
.btn-submit:hover { background: #5fbf2e; transform: translateY(-2px); }
.btn-submit:disabled { opacity: .65; transform: none; cursor: default; }


/* Responsivo */
@media (max-width: 1023px) {
    .access-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 900px) {
    .process-steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cform-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .cform-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .process-steps-row { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   ANIMAÇÕES DE REVEAL (Intersection Observer)
══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity  .7s cubic-bezier(.4, 0, .2, 1),
        transform .7s cubic-bezier(.4, 0, .2, 1);
}
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes floatOrb {
    from { transform: translate(-50%, 0) scale(1); }
    to   { transform: translate(-50%, 40px) scale(1.08); }
}
@keyframes heroFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 40px) scale(1.08); }
}


/* ══════════════════════════════════════════════════════════════
   FOOTER — igual ao usado em index.html (footer3)
══════════════════════════════════════════════════════════════ */
.footer3 {
    background: #080808;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer3-top {
    max-width: 1200px; margin: 0 auto; padding: 64px 24px 48px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer3-brand { display: flex; flex-direction: column; gap: 16px; }
.footer3-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Inter', sans-serif; font-size: 1.18rem;
    font-weight: 400; color: #fff;
    text-decoration: none;
}
.footer3-logo strong { font-weight: 900; }
.footer3-logo em { font-style: normal; font-weight: 700; color: #6DC135; }
.footer3-desc { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer3-socials { display: flex; gap: 8px; }
.footer3-soc {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.10); color: rgba(255,255,255,.75);
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.footer3-soc:hover { background: #52A828; color: #fff; }
.footer3-col { display: flex; flex-direction: column; gap: 10px; }
.footer3-col-h {
    font-family: 'Inter', sans-serif; font-size: .6rem; font-weight: 800;
    color: rgba(255,255,255,.55); letter-spacing: .12em;
    text-transform: uppercase; margin-bottom: 4px;
}
.footer3-lnk {
    font-size: .83rem; color: rgba(255,255,255,.75);
    transition: color .15s; text-decoration: none;
}
.footer3-lnk:hover { color: #6DC135; }
.footer3-bottom {
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 18px 24px;
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 3px;
}
.footer3-copy {
    font-family: 'Inter', sans-serif; font-size: .6rem;
    font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: .04em;
}
.footer3-reg { font-size: .58rem; color: rgba(255,255,255,.45); letter-spacing: .03em; }

@media (max-width: 767px) {
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .footer3-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer3-top { grid-template-columns: 1fr; }
}