/* ============================================================
   HOST BY JULIANA — Gestão de Alojamento Local, Algarve
   Tokens do manual de identidade:
   70% neutros escuros · 22% creme/bege · 8% dourado (só detalhe)
   ============================================================ */

:root {
  /* Cores */
  --ebony:   #111111;  /* Preto Ébano — fundo principal */
  --walnut:  #4B2E2A;  /* Castanho Nogueira — secções alternadas */
  --gold:    #C9A227;  /* Dourado Assinatura — acento, nunca superfícies grandes */
  --white:   #FFFFFF;
  --cream:   #F5EFE6;  /* Creme — texto sobre escuro, fundos claros */
  --beige:   #D8C3A5;  /* Bege Quente — apoio */
  --gray:    #9C9691;  /* Cinza Suave — apoio (nunca corpo de texto sobre escuro) */

  /* Tipografia */
  --serif: 'Lora', Georgia, serif;
  --sans:  'Poppins', -apple-system, sans-serif;

  /* Motivo Arcada: arco r16, repetição 48, traço 1px */
  --arcada: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='56'%3E%3Cpath d='M8 56 V28 a16 16 0 0 1 32 0 V56' fill='none' stroke='%23C9A227' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");

  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  background: var(--ebony);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }

/* ---------- Tipos ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.label {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.label--dark { color: var(--walnut); }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: .01em;
  margin-bottom: 24px;
  max-width: 640px;
}
.section-lead { max-width: 560px; }

/* ---------- Botões: raio 3px, altura mínima 40px ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 24px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .25s, border-color .25s, color .25s, opacity .25s;
}
.btn-lg { min-height: 48px; padding: 8px 32px; }
.btn-sm { min-height: 40px; padding: 8px 16px; }

.btn-gold { background: var(--gold); color: var(--ebony); }
.btn-gold:hover { background: #d9b23a; }

.btn-ghost { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(201, 162, 39, .12); }
.btn-ghost--dark { border-color: var(--cream); color: var(--cream); }
.btn-ghost--dark:hover { background: rgba(245, 239, 230, .1); }

.btn-walnut { background: var(--walnut); color: var(--cream); }
.btn-walnut:hover { background: #5d3a35; }

.ico-wa { width: 18px; height: 18px; flex: none; }

.cta-buttons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Separador Arcada ---------- */
.arcada {
  height: 56px;
  background-color: var(--ebony);
  background-image: var(--arcada);
  background-repeat: repeat-x;
  background-position: center bottom;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(17, 17, 17, .94);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(201, 162, 39, .3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.logo-mark { width: 40px; height: 42px; flex: none; }
.logo-j { font-family: var(--serif); font-size: 58px; fill: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}
.logo-tag {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* Nav */
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--cream);
  padding: 8px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right .3s;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 24px; }

.language-selector { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--gray);
  padding: 8px 0;
}
.lang-btn.active, .lang-btn:hover { color: var(--gold); }
.lang-sep { width: 1px; height: 12px; background: rgba(245, 239, 230, .3); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 1.5px; background: var(--cream); transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--ebony);
  z-index: 99;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-content { padding: 32px 24px 48px; display: flex; flex-direction: column; }
.mobile-link {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 239, 230, .1);
}
.mobile-ctas { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.mobile-langs { display: flex; gap: 24px; margin-top: 32px; }
body.menu-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ebony);
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}
/* Moldura hairline a 26px da margem (abaixo do header fixo) */
.hero-frame {
  position: absolute;
  inset: calc(var(--header-h) + 26px) 26px 26px;
  border: 1px solid rgba(201, 162, 39, .35);
  pointer-events: none;
}
/* Marca de água Arcada */
.hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  height: 112px;
  background-image: var(--arcada);
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 96px 112px;
  opacity: .16;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); color: var(--white); margin-bottom: 24px; }
.hero-copy p { font-size: 17px; color: var(--beige); max-width: 440px; margin-bottom: 40px; }

.hero-images {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-height: 560px;
}
.hero-img { overflow: hidden; border-radius: 3px; margin: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img.img-1 { grid-row: span 2; }
.hero-img.img-1 img { object-position: top; }

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.how { background: var(--cream); color: var(--ebony); padding: 96px 0; }
.how .section-title { color: var(--ebony); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.step { border-top: 1px solid var(--beige); padding-top: 24px; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: #4a453e; font-size: 15px; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services { background: var(--walnut); padding: 96px 0; }
.services .section-title { color: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.service-card {
  border: 1px solid rgba(245, 239, 230, .16);
  border-radius: 3px;
  padding: 32px;
  transition: border-color .3s;
}
.service-card:hover { border-color: rgba(201, 162, 39, .55); }
.service-ico { display: block; width: 36px; height: 36px; color: var(--gold); margin-bottom: 24px; }
.service-ico svg { width: 100%; height: 100%; }
.service-ico svg * { vector-effect: non-scaling-stroke; }
.service-card h3 { font-size: 19px; color: var(--white); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--beige); }

/* ============================================================
   GALERIA
   ============================================================ */
.gallery { background: var(--ebony); padding: 96px 0 0; }
.gallery .section-title { color: var(--white); }

.gallery-strip {
  display: flex;
  gap: 16px;
  margin-top: 56px;
  padding: 0 24px 96px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--walnut) transparent;
}
.gallery-strip figure {
  flex: 0 0 auto;
  width: clamp(220px, 21vw, 300px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  margin: 0;
  scroll-snap-align: center;
}
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SOBRE A JULIANA
   ============================================================ */
.about { background: var(--cream); color: var(--ebony); padding: 96px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo { position: relative; border-radius: 3px; overflow: hidden; margin: 0; }
.about-photo::after {
  content: '';
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(201, 162, 39, .55);
  pointer-events: none;
}
.about-copy p { max-width: 480px; margin-bottom: 16px; color: #33302b; }
.about-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--walnut);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin: 24px 0 32px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--ebony); padding: 96px 0; }
.faq .section-title { color: var(--white); }
.faq-head { margin-bottom: 40px; }

.faq-list details { border-bottom: 1px solid rgba(245, 239, 230, .14); }
.faq-list summary {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream);
  padding: 24px 40px 24px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 22px;
  color: var(--gold);
  transition: transform .3s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--gold); }
.faq-answer { padding: 0 0 24px; max-width: 640px; }

/* TODO visível — a preencher com a Juliana */
.todo {
  display: inline-block;
  font-size: 13px;
  color: var(--gold);
  border: 1px dashed rgba(201, 162, 39, .5);
  border-radius: 3px;
  padding: 4px 12px;
  background: rgba(201, 162, 39, .06);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--cream); color: var(--ebony); padding: 96px 0; }
.contact-head { margin-bottom: 56px; }
.contact-head .section-lead { color: #4a453e; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Formulário */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 24px; }
.form-field label {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 8px;
}
.form-field .opt { text-transform: none; letter-spacing: 0; color: #6b665f; font-weight: 300; }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ebony);
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 3px;
  padding: 12px 16px;
  transition: border-color .25s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-field input.is-invalid,
.form-field select.is-invalid { border-color: #8b2f2f; }
.form-error { font-size: 13px; color: #8b2f2f; margin-top: 8px; }
.form-success {
  margin-top: 16px;
  font-size: 14px;
  color: var(--walnut);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

/* Contacto direto */
.contact-direct {
  background: var(--walnut);
  color: var(--cream);
  border-radius: 3px;
  padding: 40px;
}
.contact-direct h3 { font-size: 20px; color: var(--white); margin-bottom: 24px; }
.contact-list li { margin-bottom: 24px; display: flex; flex-direction: column; }
.contact-label {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-list a { font-family: var(--serif); font-size: 18px; color: var(--cream); }
.contact-list a:hover { color: var(--gold); }
.contact-direct .btn { width: 100%; margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ebony);
  border-top: 1px solid rgba(201, 162, 39, .3);
  padding: 72px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo-card {
  display: inline-block;
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 3px;
  padding: 24px;
  margin: 0 0 16px;
}
.footer-logo-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 162, 39, .55);
  border-radius: 2px;
  pointer-events: none;
}
.footer-logo-card img { width: 176px; height: auto; }
.footer-desc { font-size: 13px; color: var(--gray); margin-top: 8px; }

.footer-col h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 8px; font-size: 14px; color: var(--beige); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 230, .1);
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray);
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-actions .cta-buttons { display: none; }
  .header-actions .language-selector { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px; }
  .hero-frame { display: none; }
  .hero-images { max-height: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .how, .services, .about, .faq, .contact { padding: 72px 0; }
  .gallery { padding-top: 72px; }
  .gallery-strip { padding-bottom: 72px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-buttons .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
