/* ===== Paleta (baseada nas imagens: creme, bege, dourado, castanho) ===== */
:root {
  --cream:      #FBF7F1;
  --cream-2:    #F4EBDD;
  --sand:       #E9DAC4;
  --gold:       #B8945F;
  --gold-dark:  #9A774A;
  --brown:      #43382C;
  --brown-soft: #6E6052;
  --white:      #ffffff;
  --shadow:     0 14px 40px rgba(67, 56, 44, 0.10);
  --radius:     16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Clipa o menu lateral fechado (fora do ecrã) sem criar scroll horizontal
     nem quebrar o cabeçalho sticky. */
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 90%); margin: 0 auto; }

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(184,148,95,.35); }
.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

.btn-wpp { background: var(--gold); color: #fff; padding: 0.55rem 1.3rem; }
.btn-wpp:hover { background: var(--gold-dark); }

.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

/* ===== Cabeçalho ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,148,95,.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-script {
  font-family: 'Parisienne', cursive;
  font-size: 1.9rem;
  color: var(--gold-dark);
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brown-soft);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { font-size: 0.95rem; color: var(--brown); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: url('Artifacts/photo7.jpeg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(67,56,44,.72) 0%, rgba(67,56,44,.45) 45%, rgba(67,56,44,.15) 100%);
}
.hero-content { position: relative; color: #fff; max-width: 640px; padding: 4rem 0; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--sand);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero-text { font-size: 1.1rem; color: rgba(255,255,255,.92); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Secções ===== */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--cream-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}
.eyebrow-light { color: var(--sand); }
.section-head h2, .about-text h2, .cta-inner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}
.section-lead { color: var(--brown-soft); }

/* divisória decorativa */
.section-head h2::after,
.about-text h2::after {
  content: "";
  display: block;
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
}
.about-text h2::after { margin-left: 0; }

/* ===== Serviços ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(184,148,95,.18);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(67,56,44,.16); }
.icon-badge {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge svg { width: 30px; height: 30px; }
.service-body h3 { font-size: 1.32rem; margin-bottom: 0.35rem; }
.service-body p { color: var(--brown-soft); font-size: 0.95rem; }

/* Selos de confiança */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(184,148,95,.22);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  color: var(--brown);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 160px;
}
.trust-item svg { width: 38px; height: 38px; color: var(--gold-dark); }

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .4s ease;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* Visualizador / carrossel */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(34, 28, 22, 0.94);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.lightbox.open { display: flex; }

.lb-stage {
  margin: 0;
  width: 100%;
  max-width: min(92vw, 1000px);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.lb-stage img {
  flex: 0 1 auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: lbFade .3s ease;
}
@keyframes lbFade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

.lb-counter {
  flex: 0 0 auto;
  color: rgba(255,255,255,.85);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.lb-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.3rem 0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.4) transparent;
}
.lb-thumbs::-webkit-scrollbar { height: 6px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 6px; }
.lb-thumb {
  width: 64px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  flex: 0 0 auto;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.lb-thumb:hover { opacity: 0.85; }
.lb-thumb.active { opacity: 1; border-color: var(--gold); }

.lb-nav, .lb-close {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.lb-nav:hover, .lb-close:hover { background: var(--gold); }

/* Setas sempre em sobreposição, centradas na vertical */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.7rem;
  z-index: 2;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

.lb-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  font-size: 1.7rem;
  line-height: 1;
  z-index: 3;
}

/* Slogan no CTA */
.cta-quote {
  font-family: 'Parisienne', cursive;
  font-size: 1.6rem;
  color: var(--sand);
  margin-top: 1.8rem;
}

/* ===== Sobre Mim ===== */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.about-text p { color: var(--brown-soft); margin-bottom: 1rem; }
.formacoes { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.formacoes li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--brown);
}
.formacoes li::before {
  content: "❀";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.formacoes li span { color: var(--brown-soft); font-size: 0.9rem; }

/* ===== Faixa CTA ===== */
.cta-band {
  background: linear-gradient(rgba(67,56,44,.78), rgba(67,56,44,.78)), url('Artifacts/photo4.jpeg') center/cover fixed no-repeat;
  text-align: center;
  color: #fff;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: #fff; }
.cta-inner h2::after { content: ""; display:block; width:60px; height:2px; background: var(--gold); margin: 1rem auto 0; }
.cta-lead { color: rgba(255,255,255,.9); margin: 0.6rem 0 2rem; }

/* ===== Contactos ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid rgba(184,148,95,.2);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-ico { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--brown-soft); font-size: 0.95rem; }

/* ===== Rodapé ===== */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 3rem 0 2.2rem;
}
.footer-brand { font-size: 2.2rem; color: var(--sand); }
.site-footer p { color: rgba(251,247,241,.75); }
.footer-small { font-size: 0.82rem; margin-top: 1rem; color: rgba(251,247,241,.55); }

/* ===== Botão flutuante WhatsApp ===== */
.float-wpp {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(184,148,95,.5);
  z-index: 60;
  transition: transform .2s, background .2s;
}
.float-wpp:hover { transform: scale(1.08); background: var(--gold-dark); }

/* ===== Animação de entrada ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsivo ===== */
@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: 64px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    width: 250px;
    height: calc(100vh - 64px);
    padding: 1.5rem;
    box-shadow: -10px 0 30px rgba(67,56,44,.12);
    transform: translateX(110%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid rgba(184,148,95,.15); }
  .nav .btn-wpp { margin-top: 1rem; border: none; text-align: center; }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.4rem; }

  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { max-width: 420px; margin: 0 auto; }
  .about-text h2::after { margin-left: auto; margin-right: auto; }
  .about-text { text-align: center; }
  .formacoes { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }

  .cta-band { background-attachment: scroll; }
  .trust-row { gap: 1.8rem 2.2rem; }
}

/* ===== Telemóvel ===== */
@media (max-width: 560px) {
  html { scroll-padding-top: 70px; }
  .container { width: 90%; }

  .section { padding: 3.2rem 0; }

  /* Cabeçalho */
  .brand-script { font-size: 1.6rem; }
  .brand-sub { font-size: 0.55rem; letter-spacing: 0.25em; }
  .nav { top: 58px; height: calc(100vh - 58px); width: 78%; }

  /* Hero */
  .hero { min-height: 80vh; background-attachment: scroll; }
  .hero-content { padding: 3rem 0; }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; }
  .hero-text { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Títulos e secções */
  .section-head { margin-bottom: 2rem; }

  /* Serviços */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.3rem 1.2rem; gap: 0.9rem; }
  .icon-badge { width: 50px; height: 50px; }
  .icon-badge svg { width: 26px; height: 26px; }
  .service-body h3 { font-size: 1.2rem; }

  /* Selos */
  .trust-row { gap: 1.6rem; }
  .trust-item { font-size: 0.74rem; max-width: 130px; }
  .trust-item svg { width: 32px; height: 32px; }

  /* Galeria */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .gallery-grid img { height: 150px; }

  /* CTA */
  .cta-quote { font-size: 1.3rem; }
  .btn-lg { width: 100%; text-align: center; }

  /* Contactos */
  .contacts-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .contact-card { padding: 1.5rem 0.9rem; }
  .contact-card h3 { font-size: 1.15rem; }
  .contact-card p { font-size: 0.88rem; }

  /* Botão flutuante */
  .float-wpp { width: 50px; height: 50px; right: 16px; bottom: 16px; font-size: 1.35rem; }

  /* Visualizador */
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lb-thumb { width: 54px; height: 40px; }
}

/* ===== Telemóvel pequeno ===== */
@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 200px; }
  .contacts-grid { grid-template-columns: 1fr; }
}
