﻿/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul: rgb(14, 33, 71);
  --ouro: rgb(219, 195, 123);
  --white: #ffffff;
  --font-main: 'Frank Ruhl Libre', serif;
  --font-ui: 'Satoshi', sans-serif;
  --max-w: 1200px;
  --nav-h: 90px;
  /* margem lateral do bloco central de 1200px (nunca menor que 52px)
     usa 50% da secção (largura real, sem scrollbar) em vez de 100vw */
  --edge: max(52px, calc(50% - 600px));
  --bg: repeating-linear-gradient(
    90deg,
    rgb(14, 33, 71) 0px,
    rgb(14, 33, 71) 20px,
    rgb(16, 35, 73) 20px,
    rgb(16, 35, 73) 40px
  );
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

section, header, footer { margin: 0; padding-top: 0; padding-bottom: 0; display: block; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  overflow: visible;
  background: var(--bg);
  padding: 0 52px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 31px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-sep {
  color: var(--ouro);
  opacity: 0.5;
}

.nav-link {
  color: var(--ouro);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-link:hover {
  transform: scale(1.08);
  color: var(--white);
}

.nav-pt,
.nav-sep {
  font-family: var(--font-ui);
  font-weight: 500;
}

.nav-en {
  font-family: var(--font-main);
  font-weight: 400;
}

.nav-home-icon {
  display: flex;
  align-items: center;
}
.nav-home-icon img { height: 18px; width: 18px; }
.nav-home-icon:hover { opacity: 0.75; }

/* Botão flutuante "voltar ao início" — só visível em mobile */
.home-fab { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO / APRESENTAÃ‡ÃƒO
   ============================================================ */
.hero {
  background: var(--bg);
  display: flex;
  align-items: stretch;
  height: 600px;
  overflow: hidden;
}

.hero-content {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0px 52px 0px var(--edge);
  gap: 0;
}

.hero-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 497px;
}

.hero-block .hero-bio {
  margin-top: 12px;
  padding-left: 40px;
}

.hero-block--en {
  margin-top: 28px;
}

.hero-label {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ouro);
}

.hero-name {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ouro);
  padding-left: 40px;
}

.hero-bio {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 437px;
  opacity: 0.9;
}

.hero-image {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% -40px;
}

/* ============================================================
   SERVICES SECTIONS
   ============================================================ */
.services-section {
  background: var(--bg);
  display: flex;
  align-items: stretch;
  min-height: 600px;
}

.services-section--reverse { flex-direction: row-reverse; }

.services-image {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.services-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-text {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 50px 60px;
}

.services-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 467px;
  margin: 0 auto;
}

/* Serviços PT — imagem à esquerda, texto à direita: alinhar à borda direita do bloco central */
.services-image + .services-text {
  align-items: flex-end;
  padding: 50px var(--edge) 50px 60px;
}
.services-image + .services-text .services-block { margin: 0; }

/* Services EN — texto à esquerda, imagem à direita: alinhar à borda esquerda do bloco central */
.services-section > .services-text:first-child {
  align-items: flex-start;
  padding: 50px 60px 50px var(--edge);
}
.services-section > .services-text:first-child .services-block { margin: 0; }

.services-section .section-title {
  color: var(--ouro);
}

.section-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.section-icon img { width: 54px; height: 54px; }

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--white);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.services-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.9;
  color: var(--white);
}
.services-list li.gold {
  color: var(--ouro);
}
.services-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: currentColor;
}

/* ============================================================
   DETAIL SECTIONS (COMO TE POSSO AJUDAR)
   ============================================================ */
.detail-section {
  background: var(--bg);
  padding: 50px 52px;
}

.detail-section + .detail-section {
  padding-top: 10px;
}

.detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 30px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.detail-section .detail-header .section-title {
  color: var(--ouro);
}

.detail-icon { width: 54px; height: 54px; flex-shrink: 0; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.detail-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-card h3 {
  font-family: var(--font-main);
  font-size: 20pt;
  font-weight: 300;
  line-height: 1.1;
  color: var(--ouro);
  margin-top: 20px;
}
.detail-card h3:first-child { margin-top: 0; }

.detail-card p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.1;
  opacity: 0.88;
}

/* ============================================================
   CV / BIOGRAPHY
   ============================================================ */
.cv-section {
  background: var(--bg);
}

.cv-block {
  padding: 60px 52px;
  max-width: 100%;
}
.cv-block:first-child { padding-bottom: 20px; }
.cv-block:last-child { padding-top: 20px; }

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.cv-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-section .section-title {
  color: var(--ouro);
}

.cv-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.cv-text {
  column-count: 2;
  column-gap: 40px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.cv-text p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.2;
  opacity: 0.9;
  margin-bottom: 16px;
  break-inside: avoid;
}
.cv-text a {
  color: var(--ouro);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cv-text a:hover { opacity: 0.8; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  background: var(--bg);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.contact-title {
  font-size: clamp(24px, 3vw, 36px);
  text-align: center;
  color: var(--ouro);
}

.contact-form {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hidden { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--ouro);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: background 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.14);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  opacity: 0.4;
}

.form-success,
.form-error {
  max-width: 680px;
  width: 100%;
  padding: 20px 24px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.form-success {
  background: rgba(219, 195, 123, 0.12);
  border: 1px solid rgba(219, 195, 123, 0.4);
  color: var(--ouro);
}
.form-success span { opacity: 0.75; font-size: 13px; }
.form-error {
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(200, 60, 60, 0.3);
  color: #e8a0a0;
}
.form-error a { color: var(--ouro); text-decoration: underline; }

.btn-submit {
  align-self: flex-start;
  background: var(--ouro);
  color: var(--azul);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 12px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.85; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  padding: 36px 40px;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  height: 92px;
  width: auto;
  max-width: 320px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-oa {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ouro);
  letter-spacing: 0.2em;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ouro);
  text-align: center;
  align-items: center;
}
.footer-right a { transition: opacity 0.2s; color: var(--ouro); }
.footer-right a:hover { opacity: 0.7; }

.footer-phone { text-decoration: none; }
.footer-phone-number { font-size: 18px; font-weight: 400; }

.footer-instagram {
  margin-top: 4px;
}
.footer-instagram img {
  width: 30px;
  height: 30px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --nav-h: 70px; }

  /* --- NAV --- */
  .nav-inner { padding: 0 40px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
    border-bottom: 1px solid rgba(219, 195, 123, 0.15);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-item {
    padding: 12px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  /* esconder o ícone Home dentro do menu — substituído pelo símbolo flutuante */
  .nav-home-icon { display: none; }

  /* --- SÍMBOLO FLUTUANTE "voltar ao início" (tablet + mobile) --- */
  .home-fab {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    transition: transform 0.2s;
  }
  .home-fab:active { transform: scale(0.9); }
  .home-fab img { width: 28px; height: 28px; }

  /* --- HERO â€” imagem 37%, texto 63%, altura 70% --- */
  .hero { min-height: 520px; }
  .hero-image { width: calc(37% + 50px); }
  .hero-image img { height: 100%; min-height: 520px; }
  .hero-content { width: calc(63% - 50px); padding: 30px 28px; }
  .hero-label { font-size: 16px; }
  .hero-name { font-size: 22px; }
  .hero-bio { font-size: 13px; }

  /* --- SERVIÃ‡OS / SERVICES â€” imagem 37%, texto 63%, altura 70% --- */
  .services-section { height: 520px; overflow: hidden; align-items: center; min-height: unset; display: flex; }
  .services-image { width: calc(37% + 50px); height: 520px; overflow: hidden; flex-shrink: 0; }
  .services-image img { width: 100%; height: 520px; object-fit: cover; }
  .services-list li { line-height: 1.3; font-size: 13px; }
  .services-text { width: calc(63% - 50px); height: 520px; padding: 30px 28px; justify-content: center; overflow: hidden; }
  .services-block { max-width: 100%; }
  .section-title { font-size: 24px; }

  /* --- DETAIL SECTIONS --- */
  .detail-section { padding: 40px 32px; }
  /* 2 colunas equilibradas: os 3 cartões deixam de ser blocos rígidos
     e os pares título+texto fluem e equilibram-se entre as colunas */
  .detail-grid {
    display: block;
    column-count: 2;
    column-gap: 40px;
  }
  .detail-card { display: contents; }
  .detail-grid h3 { break-inside: avoid; break-after: avoid; }
  .detail-grid p { break-inside: avoid; margin-top: 8px; }
  /* no fluxo de colunas, o 1º título de cada cartão precisa de margem
     (no desktop tinha 0 por ser topo da coluna); só o 1º de todos fica a 0 */
  .detail-grid .detail-card h3:first-child { margin-top: 28px; }
  .detail-grid .detail-card:first-child h3:first-child { margin-top: 0; }
  .detail-header { margin-bottom: 36px; }

  /* --- CV --- */
  .cv-block { padding: 40px 32px; }
  .cv-photo { width: 130px; height: 130px; }
  .cv-text p { font-size: 13px; }

  /* --- CONTACT --- */
  .contact-section { padding: 40px 32px; }
  .contact-form { max-width: 100%; }

  /* --- FOOTER --- */
  .footer { padding: 30px 32px; }
  .footer-inner { max-width: 100%; justify-content: center; gap: 80px; }
  .footer-logo { height: 75px; }
}

/* ============================================================
   RESPONSIVE â€” PHONE (â‰¤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --nav-h: 64px; }

  /* --- NAV --- */
  .nav { padding: 0; }
  .nav-inner { padding: 0 20px; }

  /* --- HERO — empilhado: imagem em cima, texto em baixo --- */
  .hero {
    flex-direction: column;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible;
  }
  .hero-image {
    width: 100%;
    height: auto;
    order: -1;
  }
  .hero-image img {
    width: 100%;
    height: 280px;
    min-height: 0;
    object-position: center 30%;
  }
  .hero-content {
    width: 100%;
    padding: 36px 20px;
    align-items: flex-start;
  }
  .hero-block { max-width: 100%; }
  .hero-label { font-size: 17px; }
  .hero-name { font-size: 24px; padding-left: 22px; }
  .hero-block .hero-bio { padding-left: 22px; }
  .hero-bio { font-size: 14px; }

  /* --- SERVIÇOS / SERVICES — empilhado: imagem em cima --- */
  .services-section {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  #services { flex-direction: column-reverse; }
  .services-image {
    width: 100%;
    height: 280px;
  }
  .services-image img { height: 280px; }
  .services-section > .services-text,
  .services-image + .services-text,
  .services-section > .services-text:first-child {
    width: 100%;
    height: auto;
    padding: 36px 20px;
    overflow: visible;
    align-items: flex-start;
  }
  .services-block { max-width: 100%; }

  /* --- DETAIL (Como te posso ajudar) — 1 coluna --- */
  .detail-section { padding: 40px 20px; }
  .detail-grid { column-count: 1; }
  .detail-header { gap: 8px; margin-bottom: 28px; }

  /* --- CV / ABOUT — empilhado --- */
  .cv-block { padding: 40px 20px; }
  .cv-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cv-heading { flex-direction: column; align-items: flex-start; }
  .cv-photo { width: 140px; height: 140px; }
  .cv-text { column-count: 1; }

  /* --- CONTACT — campos empilhados --- */
  .contact-section { padding: 40px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { max-width: 100%; }

  /* --- FOOTER — empilhado --- */
  .footer { padding: 30px 20px; }
  .footer-inner { flex-direction: column; align-items: center; gap: 30px; }
  /* bloco do logo ampliado ~15% e centrado */
  .footer-left {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-logo { height: 74px; }
  .footer-oa { font-size: 15px; }
}


