/* ==========================================================================
   03-landing-sections.css  (3 de 18)
   Secções da página pública: hero, manifesto, confiança, serviços, porquê, processo, rota, portal, documentos, FAQ, contacto e rodapé.
   Não reordenar: a ordem de carga (ver README.md) faz parte da cascata,
   por isso os ficheiros seguintes podem substituir regras dos anteriores.
   ========================================================================== */

.hero {
  padding: 44px 0 32px;
}

@media(min-width:720px) {
  .hero {
    padding: 80px 0 44px;
  }
}

.hero {
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 14s ease-in-out infinite;
}

.hero-bg img:nth-child(2) {
  animation-delay: 7s;
}

.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#0b263099,#0b2630d1);
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  43% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  to {
    opacity: 0;
  }
}

.hero .eyebrow {
  color: #bfeff7;
}

.hero .eyebrow:before {
  background: #4fd8ef;
}

.hero h1 {
  color: #fafcfd;
}

.hero .blob-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -80px;
  background: var(--amber-glow);
  opacity: .35;
}

.hero .blob-2 {
  width: 240px;
  height: 240px;
  bottom: -100px;
  right: -60px;
  background: var(--ink);
  opacity: .1;
}

@media(min-width:720px) {
  .hero .blob-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
  }
  .hero .blob-2 {
    width: 360px;
    height: 360px;
    bottom: -140px;
    right: -60px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media(min-width:900px) {
  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
  }
}

.hero h1 {
  font-size: clamp(30px,7vw,56px);
  line-height: 1.08;
  margin-bottom: 18px;
}

@media(min-width:720px) {
  .hero h1 {
    margin-bottom: 22px;
  }
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero p {
  font-size: 16px;
  color: var(--graphite);
  max-width: 46ch;
  margin-bottom: 26px;
}

@media(min-width:720px) {
  .hero p {
    font-size: 17px;
    margin-bottom: 32px;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.manifest {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 20px 50px #0b263024;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) rotate(0);
  animation: stampIn .8s cubic-bezier(.2,.7,.2,1) .3s forwards;
}

@media(min-width:900px) {
  .manifest {
    transform: translateY(18px) rotate(-1.4deg);
    margin: 0;
  }
}

@keyframes stampIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media(min-width:900px) {
  @keyframes stampIn {
    to {
      opacity: 1;
      transform: translateY(0) rotate(-1.4deg);
    }
  }
}

.manifest-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px dashed var(--ink-20);
  font-family: IBM Plex Mono,monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite);
}

.manifest-body {
  padding: 22px 20px;
}

.manifest-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-10);
  font-size: 13.5px;
  gap: 10px;
}

.manifest-row:last-child {
  border-bottom: none;
}

.manifest-row .label {
  color: var(--graphite);
  flex-shrink: 0;
}

.manifest-row .value {
  font-family: IBM Plex Mono,monospace;
  font-weight: 500;
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: IBM Plex Mono,monospace;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--amber);
  color: var(--amber);
}

.status-pill:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  to {
    opacity: 1;
    box-shadow: 0 0 #0ba5c780;
  }
  50% {
    opacity: .6;
    box-shadow: 0 0 0 5px #0ba5c700;
  }
}

.manifest-foot {
  padding: 16px 20px;
  border-top: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seal-stamp {
  width: 50px;
  height: 50px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--amber);
  font-family: IBM Plex Mono,monospace;
  font-size: 8px;
  letter-spacing: .06em;
  transform: rotate(-8deg);
  text-align: center;
  line-height: 1.15;
  flex-shrink: 0;
}

.trust-strip {
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  padding: 26px 0;
  overflow: hidden;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-family: IBM Plex Mono,monospace;
  font-size: 11.5px;
  color: var(--graphite);
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media(min-width:640px) {
  .trust-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 12px;
  }
}

.trust-grid strong {
  display: block;
  font-family: Inter Tight,sans-serif;
  font-size: 24px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -.01em;
  margin-bottom: 2px;
}

@media(min-width:640px) {
  .trust-grid strong {
    font-size: 28px;
  }
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

@media(min-width:720px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.section-head h2 {
  font-size: clamp(24px,6vw,38px);
}

.section-head p {
  color: var(--graphite);
  font-size: 15.5px;
  margin-top: 14px;
}

@media(min-width:720px) {
  .section-head p {
    font-size: 16px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media(min-width:600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media(min-width:900px) {
  .services-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

.service {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ink-10);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s;
}

@media(min-width:720px) {
  .service {
    padding: 30px 26px;
  }
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px #0b26301f;
  border-color: var(--amber-glow);
}

.service .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--amber-10);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: IBM Plex Mono,monospace;
  font-size: 13px;
  font-weight: 600;
}

.service h3 {
  font-size: 17.5px;
  margin-bottom: 9px;
}

.service p {
  font-size: 14px;
  color: var(--graphite);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width:560px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(min-width:900px) {
  .why-grid {
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
  }
}

.why-card {
  padding: 24px 20px;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 26px #0b26300f;
}

.why-card .num {
  font-family: IBM Plex Mono,monospace;
  font-size: 22px;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

.why-card h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 13px;
  color: var(--graphite);
}

.process {
  background: var(--process-bg);
  color: var(--on-dark);
  transition: var(--transition-theme);
}

.process .blob-3 {
  width: 320px;
  height: 320px;
  top: -140px;
  right: -120px;
  background: var(--amber-glow);
  opacity: .18;
}

@media(min-width:720px) {
  .process .blob-3 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
  }
}

.process .eyebrow {
  color: #4fd8ef;
}

.process .eyebrow:before {
  background: #4fd8ef;
}

.process .section-head h2 {
  color: var(--on-dark);
}

.process .section-head p {
  color: #faf8f4a6;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}

@media(min-width:560px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media(min-width:900px) {
  .steps {
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
  }
}

.step {
  padding: 24px 22px;
  border-radius: 14px;
  background: var(--glass-bg-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border-dark);
  transition: transform .3s cubic-bezier(.2,.8,.2,1),border-color .3s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: #0ba5c799;
}

.step .num {
  font-family: IBM Plex Mono,monospace;
  font-size: 12px;
  color: #4fd8ef;
  display: block;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 16px;
  color: var(--on-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.step p {
  font-size: 13.5px;
  color: #faf8f499;
}

.testimonial {
  text-align: center;
}

.testimonial blockquote {
  font-size: clamp(19px,4.4vw,28px);
  line-height: 1.4;
  max-width: 56ch;
  margin: 0 auto 24px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.testimonial blockquote:before {
  content: "\201c";
  color: var(--amber);
}

.testimonial blockquote:after {
  content: "\201d";
  color: var(--amber);
}

.testimonial .who {
  font-family: IBM Plex Mono,monospace;
  font-size: 12px;
  color: var(--graphite);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.route-wrap {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px 18px 16px;
  box-shadow: 0 16px 40px #0b263014;
}

@media(min-width:720px) {
  .route-wrap {
    padding: 36px 28px 24px;
  }
}

.route-svg {
  width: 100%;
  height: auto;
  display: block;
}

.route-path {
  stroke: var(--amber);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.2s cubic-bezier(.2,.7,.2,1);
}

.route-wrap.in .route-path {
  stroke-dashoffset: 0;
}

.route-dot {
  fill: var(--ink);
}

.route-dot.end {
  fill: var(--amber);
}

.route-pulse {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  opacity: 0;
}

.route-wrap.in .route-pulse {
  animation: routePulse 2s ease-out 2.1s infinite;
}

@keyframes routePulse {
  0% {
    opacity: .8;
    r: 6;
  }
  to {
    opacity: 0;
    r: 18;
  }
}

.route-label {
  font-family: IBM Plex Mono,monospace;
  font-size: 10px;
  fill: var(--graphite);
}

@media(min-width:640px) {
  .route-label {
    font-size: 11px;
  }
}

.route-label.strong {
  fill: var(--ink);
  font-weight: 600;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media(min-width:900px) {
  .portal-grid {
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
  }
}

.portal-mock {
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px #0b263024;
}

.portal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-10);
}

.portal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-20);
}

.portal-bar span:nth-child(1) {
  background: #e28b7a;
}

.portal-bar span:nth-child(2) {
  background: #e8c069;
}

.portal-bar span:nth-child(3) {
  background: #8fb99b;
}

.portal-table {
  padding: 14px;
}

@media(min-width:640px) {
  .portal-table {
    padding: 18px;
  }
}

.portal-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 6px;
  padding: 10px 6px;
  font-size: 11px;
  align-items: center;
  border-radius: 8px;
  transition: background .2s;
}

@media(min-width:640px) {
  .portal-table-row {
    gap: 10px;
    padding: 11px 8px;
    font-size: 12.5px;
  }
}

.portal-table-row:not(.head):hover {
  background: #7f7f7f14;
}

.portal-table-row.head {
  font-family: IBM Plex Mono,monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--graphite);
  border-bottom: 1px solid var(--ink-10);
  margin-bottom: 4px;
}

@media(min-width:640px) {
  .portal-table-row.head {
    font-size: 10.5px;
  }
}

.tag {
  font-family: IBM Plex Mono,monospace;
  font-size: 9.5px;
  padding: 3px 7px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
  transition: background .4s,color .4s;
}

@media(min-width:640px) {
  .tag {
    font-size: 10.5px;
    padding: 4px 9px;
  }
}

.tag.pending {
  background: var(--amber-10);
  color: var(--amber);
}

.tag.progress {
  background: #0b263014;
  color: var(--ink);
}

.tag.done {
  background: #4c6e5a1f;
  color: #4c6e5a;
}

.portal-copy p {
  color: var(--graphite);
  font-size: 15.5px;
  margin: 16px 0 24px;
  max-width: 44ch;
}

@media(min-width:720px) {
  .portal-copy p {
    font-size: 16px;
  }
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  perspective: 1200px;
}

@media(min-width:560px) {
  .docs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media(min-width:860px) {
  .docs-grid {
    grid-template-columns: repeat(3,1fr);
    gap: 26px;
  }
}

.doc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 40px #0b26301a;
  transform-style: preserve-3d;
  transition: transform .15s ease-out,box-shadow .3s;
}

@media(min-width:640px) {
  .doc-card {
    padding: 24px;
  }
}

.doc-card:hover {
  box-shadow: 0 24px 54px #0b26302e;
}

.doc-tag {
  font-family: IBM Plex Mono,monospace;
  font-size: 10px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  display: block;
}

.doc-line {
  height: 8px;
  border-radius: 3px;
  background: var(--ink-10);
  margin-bottom: 9px;
}

.doc-line.w80 {
  width: 80%;
}

.doc-line.w60 {
  width: 60%;
}

.doc-line.w95 {
  width: 95%;
}

.doc-line.w45 {
  width: 45%;
}

.doc-foot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-stamp {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  opacity: .7;
}

.faq-item {
  border-bottom: 1px solid var(--ink-10);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
}

@media(min-width:640px) {
  .faq-q {
    font-size: 16px;
    padding: 22px 4px;
  }
}

.faq-q .plus {
  color: var(--amber);
  transition: transform .3s;
  flex-shrink: 0;
  display: flex;
}

.faq-q .plus svg {
  width: 16px;
  height: 16px;
}

.faq-item.open .plus {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease,padding .35s ease;
  font-size: 14px;
  color: var(--graphite);
  padding: 0 4px;
}

@media(min-width:640px) {
  .faq-a {
    font-size: 14.5px;
  }
}

.faq-item.open .faq-a {
  max-height: 700px;
  padding: 0 4px 20px;
}

.contact {
  background: var(--paper);
  border-top: 1px solid var(--ink-10);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media(min-width:900px) {
  .contact-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
  }
}

.contact-info p {
  color: var(--graphite);
  font-size: 15.5px;
  margin: 16px 0 26px;
  max-width: 40ch;
}

@media(min-width:720px) {
  .contact-info p {
    font-size: 16px;
    margin-bottom: 28px;
  }
}

.contact-line {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink-10);
  font-size: 13.5px;
  gap: 8px;
}

@media(min-width:640px) {
  .contact-line {
    font-size: 14px;
  }
}

.contact-line span:first-child {
  color: var(--graphite);
}

.contact-line span:last-child {
  font-family: IBM Plex Mono,monospace;
}

#quoteForm {
  border-radius: 16px;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px #0b26301a;
}

@media(min-width:640px) {
  #quoteForm {
    padding: 34px;
  }
}

.field {
  margin-bottom: 18px;
}

@media(min-width:640px) {
  .field {
    margin-bottom: 20px;
  }
}

.field label {
  display: block;
  font-family: IBM Plex Mono,monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--graphite);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--ink-20);
  background: transparent;
  padding: 9px 2px;
  font-family: Inter Tight,sans-serif;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5F66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px;
}

.field select option {
  color: #111;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--amber);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

#quoteForm .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

footer {
  border-top: 1px solid var(--ink-10);
  padding: 32px 0;
}

@media(min-width:720px) {
  footer {
    padding: 40px 0;
  }
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--graphite);
}

@media(min-width:640px) {
  .footer-row {
    font-size: 13px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .manifest {
    animation: none;
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .status-pill:before {
    animation: none;
  }
  .route-wrap.in .route-pulse {
    animation: none;
  }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
