/* =========================================================
   Sofia Justino Consulting — réplica estática (HTML/CSS)
   ========================================================= */

:root {
  --navy: #21263b;
  --blue: #21abd6;
  --orange: #ff9800;
  --text: #7e8890;
  --heading-light: #e1ebf4;
  --hero-title: #414855;
  --footer-bg: #232a34;
  --footer-text: #8c8989;
  --icon-bg: #333333;
  --header-h: 97px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 17.33px;
  line-height: 26.67px;
  letter-spacing: 1px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
p { margin: 0 0 20px; }
strong { font-weight: 700; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  padding: 0 10%;
  transition: background-color .3s, box-shadow .3s;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 16px 0;
}
.logo { display: block; line-height: 0; }
.logo-small { display: none; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 0 15px;
  line-height: 65px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}
.main-nav li:last-child a { padding-right: 0; }
.main-nav a:hover,
.main-nav a.is-active { color: var(--orange); }

/* estado "sticky" (após scroll) */
.site-header.is-sticky {
  background: #fff;
  border-bottom-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .118);
}
.site-header.is-sticky .logo-full { display: none; }
.site-header.is-sticky .logo-small { display: block; }

.menu-toggle {
  display: none;
  width: 36px; height: 30px;
  padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
  display: block; height: 5px; border-radius: 1px;
  background: #505865;
}

/* ---------- Destaque (desktop) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
}
.hero-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  min-height: 600px;
  background-color: #c9c9c9;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 10% 0;
}
.hero-kicker {
  margin-top: 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 26px;
}
.hero-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 3.65vw, 51px);
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--hero-title);
  margin-bottom: 83px;
}

/* ---------- Conteúdo ---------- */
.site-main {
  position: relative;
  background: #fff;
  z-index: 1;
}

section[id] { scroll-margin-top: var(--header-h); }

.hero-mobile { display: none; }

/* barra azul entre secções */
.bar {
  height: 8px;
  background: url('../../images/BARRA-DIREITA-2.png') center center / cover no-repeat;
}

/* secções de duas colunas */
.split {
  display: flex;
  align-items: stretch;
}
.split-text {
  order: 1;
  width: 60%;
  padding: 10% 16%;            /* % relativos à coluna (como no original) */
}
.split-media {
  order: 2;
  width: 40%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.split--media-left .split-media { order: 1; }
.split--media-left .split-text  { order: 2; }

/* O Avada calcula padding em % da coluna; aqui a coluna é 60% do ecrã */
.split-text { padding: 6vw 9.6vw; }
.split-text--narrow-right { padding: 6vw 6vw 6vw 9.6vw; }

.split--empresa   { min-height: 515px; }
.split--distingue { min-height: 564px; }
.split--sofia     { min-height: 511px; }
.split--formacao  { min-height: 491px; }
.split--imprensa  { min-height: 388px; }

.split h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 75px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--heading-light);
}
.split h4 {
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 40px;
}
.split h3 + p { margin-top: 40px; }

/* ---------- Serviços ---------- */
.services {
  background-color: #2a2f3d;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 50px 8.8%;
}
.services-title {
  padding-top: 41px;
}
.services h5 {
  font-family: 'Raleway', sans-serif;
  font-size: 75px;
  line-height: 1.1;
  font-weight: 800;
  color: rgba(255, 255, 255, .15);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4%;
}
.service {
  min-height: 218px;
  margin-bottom: 20px;
  padding: 5% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service:nth-last-child(-n+3) { margin-bottom: 0; }
.service img { display: block; margin: 0 auto 5%; }
.service p {
  margin: 0;
  font-size: 18px;
  color: var(--blue);
}
.service strong { font-weight: 700; }

/* ---------- Contactos ---------- */
.contact-info h3 { margin-bottom: 5%; }
.contact-line {
  display: flex;
  align-items: flex-start;
  margin: 0 0 5%;
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
}
.contact-line strong { font-weight: 700; padding-top: 3px; }
.contact-line a { color: #0000ff; }
.contact-line a:hover { color: var(--orange); }
.contact-icon {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  margin: 0 9px 0 0;
  border-radius: 50%;
  background: var(--icon-bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 16px; height: 16px; fill: #fff; }

.contact-panel {
  order: 2;
  width: 40%;
  background: var(--blue);
  padding: 2vw 6.4vw 4vw 2vw;
  color: #fff;
}
.contact-panel p { color: #fff; }
.contact-panel a { color: #fff; font-weight: 600; text-decoration: underline; }
.contact-panel a:hover { color: var(--navy); }

/* ---------- Rodapé ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--footer-bg);
  padding: 30px 10% 29px;
  min-height: 123px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.copyright { font-size: 14px; color: var(--footer-text); }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 5px;
  background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.social a:hover { opacity: .8; }
.social svg { width: 22px; height: 22px; fill: #fff; }

/* botão voltar ao topo */
.to-top {
  position: fixed;
  right: 75px; bottom: 0;
  z-index: 50;
  width: 48px; height: 35px;
  background: var(--icon-bg);
  border-radius: 4px 4px 0 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.to-top.is-visible { opacity: .85; visibility: visible; }
.to-top:hover { opacity: 1; }
.to-top svg { width: 22px; height: 22px; fill: #fff; }

/* =========================================================
   Responsivo
   ========================================================= */

/* Tablet: colunas empilhadas, imagem por cima do texto */
@media (max-width: 1024px) {
  .split { flex-direction: column; min-height: 0 !important; }
  .split-text, .split-media, .contact-panel { width: 100%; order: 0 !important; }
  .split-media { order: -1 !important; height: 0; padding-top: 60%; }
  .split-text { padding: 10% 16%; }
  .split-text--narrow-right { padding: 10% 10% 10% 16%; }
  .contact-info { padding: 10% 5%; }
  .contact-panel { padding: 5% 16% 10% 5%; }

  .split h3, .services h5 { font-size: 55px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Menu mobile (tablet e telemóvel) */
@media (max-width: 1024px) {
  .site-header { position: relative; padding: 32px 10% 40px; }
  .site-header.is-sticky { background: var(--navy); box-shadow: none; border-bottom-color: var(--blue); }
  .site-header.is-sticky .logo-full { display: block; }
  .site-header.is-sticky .logo-small { display: none; }
  .header-row { flex-wrap: wrap; min-height: 0; padding: 0; }
  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    flex-basis: calc(100% + 16vw);
    margin: 30px -8% -40px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; border-top: 1px solid #505865; }
  .main-nav a {
    padding: 0 12px 0 30px;
    line-height: 50px;
    font-size: 16px;
    font-weight: 400;
    background: var(--navy);
    border-bottom: 1px solid #505865;
  }
  .main-nav li:last-child a { padding-right: 12px; border-bottom: 0; }

  section[id] { scroll-margin-top: 0; }

  .to-top { right: 20px; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 17.33px; }

  .hero { display: none; }

  .hero-mobile {
    display: block;
    background-size: cover;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-color: #c9c9c9;
    padding: 15% 0 0 5%;
  }
  .hero-mobile h1 {
    font-family: 'Noto Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 25.5px;
    line-height: 34px;
    letter-spacing: 1px;
    color: var(--navy);
    margin-bottom: 10%;
    max-width: 60%;
  }
  .hero-mobile h1 span { display: block; }
  .hero-mobile::after { content: ""; display: block; padding-top: 50%; }

  .split h3, .services h5 { font-size: 35.16px; line-height: 38.44px; }
  .split h4 { font-size: 25.5px; line-height: 32.37px; margin-bottom: 40px; }
  .split p, .service p { font-size: 19px; }

  .services { padding: 50px 8.8%; }
  .services-title { padding-top: 0; padding-bottom: 5px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 9px 0 0; margin-bottom: 20px !important; }

  .site-footer { flex-direction: column; align-items: flex-start; }
}
