/* ============================================================
   Crowe Portugal — AI Consulting Unit
   Folha de estilos partilhada (landing + subpáginas)
   Identidade visual do site oficial crowe.com/pt
   (cores extraídas por amostragem da página Financial Regulatory):
   - Azul Crowe:   #002D62  (títulos, hero, faixas)
   - Amarelo:      #FDB913  (linhas e botões)
   - Cinzento:     #F0F0F0  (cartões de serviço)
   - Títulos em peso regular, corpo Arial/Helvetica
   ============================================================ */

:root {
  --crowe-blue: #002D62;
  --crowe-gold: #FDB913;
  --card-grey: #F0F0F0;
  --footer-grey: #F7F7F7;
  --ink: #333333;
  --ink-soft: #555555;
  --line: #E5E5E5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--crowe-blue);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

img { max-width: 100%; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.header-icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--crowe-blue);
  font-size: 18px;
}
.header-icons a { color: var(--crowe-blue); text-decoration: none; font-size: 14px; font-weight: 600; }
.header-icons a:hover { text-decoration: underline; }

/* Breadcrumb (linha branca sob o header, como no oficial) */
.breadcrumb-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #F0F0F0;
}
.breadcrumb-bar .wrap { padding-top: 10px; padding-bottom: 10px; }
.breadcrumb { font-size: 13px; color: #777777; }
.breadcrumb a { color: var(--crowe-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #999999; }

/* ---------- Botões (pílula amarela, como no oficial) ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: 999px;
  transition: filter 0.15s ease;
}
.btn-gold { background: var(--crowe-gold); color: var(--crowe-blue); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  margin-left: 14px;
}
.btn-ghost:hover { border-color: var(--crowe-gold); color: var(--crowe-gold); }
.btn-navy { background: var(--crowe-blue); color: #FFFFFF; }
.btn-navy:hover { filter: brightness(1.15); }

/* ---------- Hero (banner com imagem oficial) ---------- */
.hero {
  background: var(--crowe-blue) url("../img/hero.jpg") no-repeat right center;
  background-size: cover;
  position: relative;
  color: #FFFFFF;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,45,98,0.96) 0%, rgba(0,45,98,0.85) 38%, rgba(0,45,98,0.25) 70%, rgba(0,45,98,0) 100%);
}
.hero .wrap { position: relative; padding-top: 84px; padding-bottom: 84px; }
.hero .eyebrow {
  color: var(--crowe-gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 16px;
}
.hero h1 {
  color: #FFFFFF;
  font-weight: 400;
  font-size: 48px;
  max-width: 560px;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 17px;
  max-width: 520px;
  color: #E8EDF4;
  margin-bottom: 30px;
}

/* Hero das subpáginas */
.page-hero {
  background: var(--crowe-blue) url("../img/hero.jpg") no-repeat right center;
  background-size: cover;
  position: relative;
  color: #FFFFFF;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,45,98,0.96) 0%, rgba(0,45,98,0.85) 40%, rgba(0,45,98,0.3) 75%, rgba(0,45,98,0.05) 100%);
}
.page-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 60px; }
.page-hero h1 { color: #FFFFFF; font-weight: 400; font-size: 40px; max-width: 640px; margin-bottom: 14px; }
.page-hero p.lead { color: #E8EDF4; font-size: 17px; max-width: 600px; }

/* ---------- Secções ---------- */
.section { padding: 64px 0; }
.section.soft { background: #FFFFFF; }
.section.navy { background: var(--crowe-blue); color: #FFFFFF; }
.section.navy h2, .section.navy h3 { color: #FFFFFF; }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 36px; font-weight: 400; }
.section-head .rule {
  width: 100%;
  height: 3px;
  background: var(--crowe-gold);
  margin: 20px 0 26px;
}
.section-head p { color: var(--ink); font-size: 16px; max-width: 880px; }
.section-head p strong { color: var(--crowe-blue); }
.section.navy .section-head p { color: #D7E0EC; }
.section.navy .section-head p strong { color: #FFFFFF; }

/* Resposta directa (AEO) */
.answer-box {
  border-left: 4px solid var(--crowe-gold);
  background: var(--card-grey);
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  font-size: 16px;
  margin-bottom: 44px;
}
.answer-box strong { color: var(--crowe-blue); }

/* ---------- Percurso ---------- */
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}
.journey .step {
  flex: 1 1 160px;
  background: var(--card-grey);
  border-radius: 8px;
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.journey .step:hover { background: #E7E7E7; }
.journey .step .verb {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  font-weight: 700;
}
.journey .step .verb::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crowe-gold);
  margin-right: 8px;
}
.journey .step h3 { font-size: 18px; font-weight: 600; margin: 8px 0 4px; }
.journey .step p { font-size: 13px; color: var(--ink-soft); }
.journey-note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); max-width: 880px; }
.journey-note strong { color: var(--crowe-blue); }

/* ---------- Blocos de serviço (cartões cinzentos, como no oficial) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: var(--card-grey);
  border-radius: 4px;
  padding: 44px 48px;
  margin-bottom: 28px;
}
.service-block.flip .service-copy { order: 2; }
.service-block.flip .service-photo { order: 1; }
.service-copy .kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 8px;
}
.service-copy h3 { font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.service-copy p.desc { color: var(--ink); margin-bottom: 14px; font-size: 15px; }
.service-copy p.desc strong { color: var(--ink); font-weight: 700; }
.service-copy ul { list-style: none; margin-bottom: 20px; }
.service-copy ul li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--ink);
}
.service-copy ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ink);
}
.more-link {
  font-weight: 700;
  color: var(--crowe-blue);
  text-decoration: none;
  font-size: 15px;
}
.more-link::after { content: " →"; }
.more-link:hover { text-decoration: underline; }
.service-photo {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 16 / 9.5;
}

/* ---------- Cartões (variantes nas subpáginas) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card-grey);
  border-radius: 8px;
  padding: 26px 24px;
}
.card h3, .card h4 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--ink-soft); }
.card p strong { color: var(--ink); }
.card .meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--crowe-blue);
  font-weight: 700;
}
.section.navy .card { background: rgba(255,255,255,0.08); }
.section.navy .card h3, .section.navy .card h4 { color: #FFFFFF; }
.section.navy .card p { color: #D7E0EC; }

/* ---------- Segmentos "Trabalhe Connosco" (lista oficial) ---------- */
.seg-item { margin-bottom: 30px; }
.seg-item h3 {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.seg-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crowe-gold);
}
.seg-item p { color: var(--ink); font-size: 15px; max-width: 880px; padding-left: 20px; }
.seg-item .meta { color: var(--crowe-blue); font-weight: 700; font-size: 13px; padding-left: 20px; margin-top: 4px; }

/* ---------- Strategy Studio ---------- */
.studio {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.studio .panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(253,185,19,0.5);
  border-radius: 8px;
  padding: 34px 30px;
}
.studio .panel .tag {
  color: var(--crowe-gold);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.studio .panel h3 { color: #FFFFFF; font-size: 22px; font-weight: 600; margin: 10px 0 12px; }
.studio .panel p { color: #D7E0EC; font-size: 14px; margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card-grey);
  border-radius: 8px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 50px 18px 22px;
  font-weight: 600;
  color: var(--crowe-blue);
  font-size: 16px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 16px;
  color: var(--crowe-blue);
  font-size: 20px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 22px 20px; color: var(--ink); font-size: 15px; }
.faq .faq-a a { color: var(--crowe-blue); font-weight: 600; }

/* ---------- Contacto (faixa cinzenta, como no oficial) ---------- */
.section.contact-band { background: var(--card-grey); }
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.contact-card .photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}
.contact-card .who h3 { font-size: 20px; font-weight: 700; color: var(--crowe-blue); }
.contact-card .who p { color: var(--ink); font-size: 14px; }
.contact-card .who a.tel {
  display: inline-block;
  color: var(--crowe-blue);
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
}
.contact-card .channels { margin-left: auto; }
.contact-card .channels a { margin-left: 10px; }

/* ---------- Duas colunas / listas ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.two-col .section-head h2 { font-size: 26px; }
.feature-list { list-style: none; }
.feature-list li {
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crowe-gold);
}
.feature-list li strong { color: var(--crowe-blue); }

/* ---------- Serviços Relacionados (faixa navy, como no oficial) ---------- */
.section.related {
  background: var(--crowe-blue);
  text-align: center;
  padding: 56px 0;
}
.section.related h2 {
  color: #FFFFFF;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 26px;
}
.crosslinks { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; }
.crosslinks a {
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
}
.crosslinks a:hover { color: var(--crowe-gold); }

/* ---------- CTA final (faixa navy) ---------- */
.cta-band { text-align: left; }
.cta-band h2 { font-size: 30px; font-weight: 400; color: #FFFFFF; margin-bottom: 12px; }
.cta-band p { color: #D7E0EC; max-width: 640px; margin-bottom: 26px; }

/* ---------- Footer (claro, como no oficial) ---------- */
.site-footer { background: var(--footer-grey); font-size: 13px; color: var(--ink); }
.site-footer .top { padding: 44px 0 30px; }
.site-footer .footer-logo img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.site-footer .slogan { color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.site-footer .tagline { color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 8px; }
.site-footer .footer-links a { color: var(--crowe-blue); font-weight: 600; text-decoration: none; }
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .bottom {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
}
.site-footer .bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .legal { font-size: 11.5px; color: var(--ink-soft); max-width: 640px; }
.site-footer .legal-links { font-size: 13px; text-align: right; }
.site-footer .legal-links a { color: var(--crowe-blue); text-decoration: none; }
.site-footer .legal-links a:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 28px; }
  .service-block,
  .studio,
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .service-block { padding: 28px 24px; }
  .service-block.flip .service-copy { order: 1; }
  .service-block.flip .service-photo { order: 2; }
  .contact-card .channels { margin-left: 0; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .site-footer .legal-links { text-align: left; }
}

/* Tablets e telemóveis grandes */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 24px; }
  .section-head .rule { margin: 14px 0 18px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero p.lead { font-size: 15px; }
  .page-hero .wrap { padding-top: 44px; padding-bottom: 40px; }
  .page-hero h1 { font-size: 25px; }
  .page-hero p.lead { font-size: 15px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px 18px; }
  .service-copy h3 { font-size: 23px; }
  .service-block { padding: 22px 18px; }
  .journey { gap: 16px; }
}

/* Telemóveis: header compacto + navegação que não transborda */
@media (max-width: 560px) {
  .site-header .wrap { height: 58px; gap: 10px; }
  .logo img { height: 28px; }
  .header-icons { gap: 12px; font-size: 14px; }
  .header-icons a { font-size: 12.5px; }
  .breadcrumb { font-size: 12px; }
  .btn, .btn-primary, .btn-ghost { width: 100%; justify-content: center; text-align: center; }
  .answer-box { padding: 16px 16px 16px 18px; font-size: 15px; }
}

/* Ecrãs muito estreitos */
@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .section-head h2 { font-size: 21px; }
  .header-icons { gap: 9px; }
  .header-icons a { font-size: 12px; }
}
