/* Joalida — Site frontend */

:root {
  --cream: #F5F0E8;
  --cream-2: #EDE7D9;
  --dark: #2C2318;
  --gold: #B8A58A;
  --brown: #7A6650;
  --err: #9b3a2e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button, input, textarea, select { font-family: 'Jost', sans-serif; }
::selection { background: var(--gold); color: var(--cream); }

@keyframes joaFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes joaSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

a { color: inherit; text-decoration: none; }

/* HEADER ================================================================ */
.j-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 48px;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,165,138,0.32);
  transition: padding 0.25s ease, background-color 0.25s ease;
}
.j-header.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(245,240,232,0.96);
}
.j-logo {
  display: flex; align-items: center;
  text-align: left; padding: 0;
}
.j-logo img {
  display: block;
  width: auto;
  height: 120px;
  max-width: 42vw;
  transition: height 0.25s ease;
}
.j-header.is-scrolled .j-logo img {
  height: 80px;
}
.j-nav {
  display: flex; align-items: center; gap: 36px;
}
.j-nav-item {
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dark);
}
.j-nav-item .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}

/* MAIN containers ======================================================= */
main { padding-top: 145px; min-height: 100vh; }
.j-section { max-width: 1200px; margin: 0 auto; padding: 96px 48px; }
.j-section-narrow { max-width: 820px; margin: 0 auto; padding: 96px 48px; }

.j-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.j-eyebrow .bar { width: 40px; height: 1px; background: var(--gold); }
.j-eyebrow span.text {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brown);
}

/* HERO ================================================================== */
.j-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 88px 48px 64px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  align-items: center;
}
.j-hero-text { animation: joaFade 0.9s ease both; }
.j-hero-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: 1.05;
  letter-spacing: 0.01em; color: var(--dark);
  margin: 0 0 28px;
}
.j-hero-sub {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 0.92rem; line-height: 1.9; color: var(--brown);
  max-width: 480px; margin: 0 0 38px;
}
.j-hero-ctas { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.j-hero-img {
  position: relative; aspect-ratio: 4/5;
  border: 1px solid rgba(184,165,138,0.5);
  background: linear-gradient(135deg, #EDE7D9, #F5F0E8);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; overflow: hidden;
  animation: joaFade 0.9s ease 0.2s both;
}
.j-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-hero-img .placeholder-mark {
  width: 46px; height: 46px;
  border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.2rem;
}
.j-hero-img .placeholder-text {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.6rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
  text-align: center; max-width: 60%;
}

/* BUTTONS =============================================================== */
.btn-solid {
  background: var(--dark); color: var(--cream);
  border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px 32px;
  display: inline-block;
}
.btn-solid-light {
  background: var(--cream); color: var(--dark);
  border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px 38px;
  display: inline-block;
}
.btn-link {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1px solid var(--gold);
  padding: 0 0 5px;
}

/* STATS ================================================================= */
.j-stats { background: var(--dark); color: var(--cream); }
.j-stats-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
}
.j-stat { text-align: center; }
.j-stat-val {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 3.2rem; line-height: 1; color: var(--cream);
}
.j-stat-bar {
  width: 28px; height: 1px;
  background: rgba(184,165,138,0.6);
  margin: 18px auto;
}
.j-stat-lbl {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.62rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}

/* MANIFESTO ============================================================= */
.j-manifesto {
  max-width: 820px; margin: 0 auto; padding: 96px 48px;
  text-align: center;
}
.j-manifesto p {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.5;
  color: var(--dark); margin: 0;
}

/* BRAND SLIDER ========================================================== */
.j-brands {
  background: var(--cream-2);
  border-top: 1px solid rgba(184,165,138,0.4);
  border-bottom: 1px solid rgba(184,165,138,0.4);
}
.j-brands-inner { max-width: 1200px; margin: 0 auto; padding: 80px 48px; }
.j-brands-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 50px;
}
.j-brands-eyebrow .bar { width: 40px; height: 1px; background: var(--gold); }
.j-brands-eyebrow span.text {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brown);
}
.j-brands-stage { display: flex; align-items: center; justify-content: center; gap: 36px; }
.j-brand-arrow {
  background: none; border: 1px solid var(--gold); color: var(--brown);
  cursor: pointer; width: 46px; height: 46px; border-radius: 50%;
  font-size: 1rem; flex-shrink: 0;
}
.j-brand-card {
  flex: 1; max-width: 640px; text-align: center;
  min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.j-brand-card .inner { display: block; animation: joaSlideIn 0.5s ease both; color: inherit; text-decoration: none; }
.j-brand-card .inner.is-link { cursor: pointer; }
.j-brand-card .inner.is-link .j-brand-logo img { transition: transform 0.25s ease; }
.j-brand-card .inner.is-link:hover .j-brand-logo img { transform: scale(1.06); }
.j-brand-logo { display: flex; align-items: center; justify-content: center; min-height: 150px; margin-bottom: 22px; }
.j-brand-logo img { height: 150px; width: auto; max-width: min(510px, 90vw); object-fit: contain; }
.j-brand-desc {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.86rem;
  line-height: 1.8; color: var(--brown);
  margin: 22px auto 0; max-width: 440px;
}
.j-brand-dots {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 48px;
}
.j-brand-dot {
  background: rgba(184,165,138,0.5); border: none; cursor: pointer;
  width: 18px; height: 6px; border-radius: 3px; padding: 0;
  transition: all 0.3s ease;
}
.j-brand-dot.active { background: var(--dark); width: 32px; }

/* SETORES =============================================================== */
.j-sectors h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--dark);
  margin: 0 0 48px; max-width: 620px; line-height: 1.15;
}
.j-sector-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.j-sector-tag {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown);
  border: 1px solid var(--gold);
  padding: 11px 22px; border-radius: 30px;
}

/* CTA DARK ============================================================= */
.j-cta-dark { background: var(--dark); color: var(--cream); }
.j-cta-dark-inner {
  max-width: 820px; margin: 0 auto; padding: 96px 48px; text-align: center;
}
.j-cta-dark-inner h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3rem); color: var(--cream); margin: 0 0 28px;
}
.j-cta-dark-inner p {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.9rem;
  line-height: 1.9; color: var(--gold); margin: 0 0 40px;
}

/* PRODUTOS ============================================================= */
.j-prod-header {
  max-width: 1100px; margin: 0 auto; padding: 80px 48px 40px;
}
.j-prod-header h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.8rem); color: var(--dark);
  margin: 0 0 16px; line-height: 1.05;
}
.j-prod-header p {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.9rem;
  line-height: 1.9; color: var(--brown); max-width: 520px; margin: 0;
}
.j-prod-list { max-width: 1100px; margin: 0 auto; padding: 20px 48px 110px; }

.j-area { border-top: 1px solid rgba(184,165,138,0.45); }
.j-area-list .j-area:last-child { border-bottom: 1px solid rgba(184,165,138,0.45); }
.j-area-head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 4px; text-align: left; gap: 24px;
}
.j-area-head .titles { display: flex; align-items: baseline; gap: 24px; }
.j-area-num {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.7rem;
  letter-spacing: 0.18em; color: var(--gold);
}
.j-area-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--brown);
  line-height: 1.1; transition: color 0.3s ease;
}
.j-area.is-open .j-area-name { color: var(--dark); }
.j-area-meta { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.j-area-meta-lbl {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown);
}
.j-area-icon {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--gold);
  transition: transform 0.3s ease;
  display: inline-block; width: 18px; text-align: center;
}
.j-area.is-open .j-area-icon { transform: rotate(45deg); }

.j-area-body { padding: 8px 4px 44px; animation: joaSlideIn 0.4s ease both; display: none; }
.j-area.is-open .j-area-body { display: block; }

.j-area-types {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 40px;
  border-top: 1px solid rgba(184,165,138,0.3); padding-top: 24px;
}
.j-area-type {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(184,165,138,0.22);
}
.j-area-type .bullet {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  margin-top: 8px; flex-shrink: 0;
}
.j-area-type .label {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.82rem;
  line-height: 1.55; color: var(--brown);
}

.j-area-products-wrap { margin-top: 40px; }
.j-area-products-eyebrow {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.6rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.j-prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.j-prod-card {
  background: var(--cream); border: 1px solid rgba(184,165,138,0.4);
}
.j-prod-card-img {
  aspect-ratio: 4/3; background: var(--cream-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.j-prod-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-prod-card-img .no-foto {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.55rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.j-prod-card-body { padding: 18px 20px 22px; }
.j-prod-marca {
  font-family: 'Jost', sans-serif; font-weight: 400; font-size: 0.55rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px;
}
.j-prod-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 1.25rem; line-height: 1.2; color: var(--dark);
}
.j-prod-modelo {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.78rem;
  color: var(--brown); margin-top: 6px;
}
.j-prod-info-btn {
  display: block; width: 100%; margin-top: 16px;
  background: none; cursor: pointer;
  border: none; border-top: 1px solid rgba(184,165,138,0.4);
  padding: 14px 0 0;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brown);
  text-align: left;
}
.j-prod-info-btn:hover { color: var(--dark); }
.j-prod-card.is-highlight { animation: joaHighlight 2.4s ease; }
@keyframes joaHighlight {
  0%, 100% { box-shadow: none; }
  15%, 60% { box-shadow: 0 0 0 3px var(--gold); }
}

.j-loading {
  padding: 40px; text-align: center;
  font-family: 'Jost', sans-serif; font-size: 0.78rem; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* CONTACTOS ============================================================ */
.j-contact-section {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 48px 110px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.j-contact-info h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.8rem); color: var(--dark);
  margin: 0 0 28px; line-height: 1.05;
}
.j-contact-intro {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.9rem;
  line-height: 1.9; color: var(--brown); max-width: 440px; margin: 0 0 48px;
}
.j-contact-block { margin-bottom: 34px; }
.j-contact-lbl {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.58rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.j-contact-tel {
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 1.15rem; color: var(--dark); line-height: 1.7;
  letter-spacing: 0.01em;
}
.j-contact-text {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.92rem;
  line-height: 1.7; color: var(--brown); white-space: pre-line;
}
.j-contact-form-wrap {
  background: var(--cream-2);
  border: 1px solid rgba(184,165,138,0.4);
  padding: 48px;
}
.j-form-field { margin-bottom: 30px; }
.j-form-field label {
  display: block;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.58rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brown);
  margin-bottom: 12px;
}
.j-form-field input,
.j-form-field textarea {
  width: 100%;
  background: transparent; border: none; border-bottom: 1px solid var(--gold);
  padding: 0 0 10px;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.95rem;
  color: var(--dark); outline: none; resize: none;
}
/* Honeypot anti-spam: fora do ecrã, invisível para pessoas, preenchido por bots.
   Não usar display:none — alguns bots ignoram campos escondidos assim. */
.j-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.j-form-err {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.78rem;
  color: var(--err); margin-bottom: 16px;
}
.j-form-success {
  text-align: center; padding: 40px 0; animation: joaSlideIn 0.5s ease both;
}
.j-form-success .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--brown); font-size: 1.4rem;
  margin-bottom: 24px;
}
.j-form-success h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.8rem; color: var(--dark); margin: 0 0 14px;
}
.j-form-success p {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.88rem;
  line-height: 1.8; color: var(--brown); margin: 0 0 28px;
}

/* MODAL "PEDIR MAIS INFORMAÇÃO" ========================================= */
.j-info-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.j-info-modal[hidden] { display: none; }
.j-info-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(44,35,24,0.55);
}
.j-info-modal-panel {
  position: relative;
  background: var(--cream-2);
  border: 1px solid rgba(184,165,138,0.4);
  padding: 44px;
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  animation: joaSlideIn 0.3s ease both;
}
.j-info-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 1px solid var(--gold); cursor: pointer;
  color: var(--brown); font-size: 1.1rem; line-height: 1;
}
.j-info-modal-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 1.5rem; color: var(--dark); margin: 14px 0 26px;
}

/* FOOTER =============================================================== */
.j-footer { background: var(--dark); color: var(--cream); }
.j-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 72px 48px 40px;
}
.j-footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(184,165,138,0.25);
}
.j-footer-logo-wrap {
  display: inline-block;
  background: var(--cream);
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.j-footer-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}
.j-footer p, .j-footer .j-footer-text {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.82rem;
  line-height: 1.8; color: var(--gold); max-width: 300px; margin: 0;
}
.j-footer-contact-stack { display: flex; flex-direction: column; gap: 32px; }
.j-footer-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.j-footer-badge-wrap {
  background: var(--cream); border-radius: 10px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.j-footer-badge { display: block; height: 90px; width: auto; max-width: 100%; }
.j-footer-col-lbl {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.56rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.j-footer-col-val {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.86rem;
  line-height: 1.9; color: var(--cream); white-space: pre-line;
}
.j-footer .btn-footer-link {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); border-bottom: 1px solid var(--gold);
  padding: 0 0 4px; margin-top: 18px;
}
.j-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; flex-wrap: wrap; gap: 16px;
}
.j-footer-copy {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.66rem;
  letter-spacing: 0.1em; color: var(--gold);
}
.j-footer-bo-link {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brown);
}

/* RESPONSIVE =========================================================== */
@media (max-width: 880px) {
  .j-header { padding: 10px 20px; }
  .j-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; }
  .j-logo img { height: 96px; max-width: 42vw; }
  .j-header.is-scrolled .j-logo img { height: 72px; }
  main { padding-top: 117px; }
  .j-nav { gap: 18px; }
  .j-nav-item { font-size: 0.62rem; letter-spacing: 0.14em; }
  .j-hero, .j-stats-grid, .j-contact-section, .j-footer-grid {
    grid-template-columns: 1fr; gap: 36px;
  }
  .j-footer-badges { justify-content: flex-start; }
  .j-hero { padding: 48px 20px 32px; }
  .j-section, .j-section-narrow, .j-stats-grid, .j-brands-inner,
  .j-prod-header, .j-prod-list, .j-contact-section, .j-footer-inner,
  .j-cta-dark-inner, .j-manifesto {
    padding-left: 20px; padding-right: 20px;
  }
  .j-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .j-contact-form-wrap { padding: 28px; }
  .j-area-head { padding: 22px 4px; }
}
