:root {
  --color-maroon: #550000;
  --color-green: #06402B;
  --color-bg: #F0E9DD;
  --color-bg-alt: #E7DECC;
  --color-text: #2B2620;
  --color-text-muted: #6B6154;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, sans-serif;
  --container-width: 1120px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --space-5: 6rem;
  --space-6: 8rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { position: relative; isolation: isolate; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-maroon); }
img { max-width: 100%; display: block; }

/* Salta a navegação e vai direto ao conteúdo (teclado e leitores de ecrã).
   Só aparece quando recebe foco. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Consistent vertical rhythm for stacked home-page sections */
.section-pad { padding-top: var(--space-5); padding-bottom: var(--space-5); }

/* Curved (non-straight) divider between alternating section backgrounds */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 64px; }

.btn {
  display: inline-block;
  padding: 1rem 2.1rem;
  background: var(--color-maroon);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(85,0,0,0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: #3d0000; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(85,0,0,0.28); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-green);
  color: var(--color-green);
}
.btn--outline:hover { background: var(--color-green); color: #fff; }
.btn--small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

.site-header { position: sticky; top: 0; background: var(--color-bg); z-index: 50; border-bottom: 1px solid rgba(6,64,43,0.12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-2); padding-bottom: var(--space-2); }
.site-header__logo { display: flex; align-items: center; gap: var(--space-1); text-decoration: none; color: var(--color-green); font-family: var(--font-heading); font-size: 1.2rem; }
.site-header__logo img { border-radius: 50%; }

.primary-nav { display: flex; gap: var(--space-3); align-items: center; }
.primary-nav a { text-decoration: none; color: var(--color-text); font-size: 0.95rem; }
.primary-nav a.is-active { color: var(--color-maroon); font-weight: 500; }
.primary-nav a.btn { color: #fff; }
.primary-nav a:not(.btn):hover { color: var(--color-maroon); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-green); }

.photo-placeholder {
  background: var(--color-bg-alt);
  border: 1.5px dashed var(--color-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding: var(--space-3);
}

.person-photo {
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(6,64,43,0.16);
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 320px;
}
/* Portrait crop that keeps the face in frame at every breakpoint */
.person-photo--face { object-position: 50% 20%; }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); }
.value-card { background: #fff; border-radius: 12px; padding: var(--space-3); box-shadow: 0 4px 20px rgba(6,64,43,0.06); }
.value-card h3 { color: var(--color-maroon); font-size: 1.15rem; }

.site-footer { background: var(--color-green); color: #F0E9DD; margin-top: var(--space-5); padding: var(--space-4) 0 var(--space-2); }
.site-footer a { color: #F0E9DD; }
.site-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); padding-bottom: var(--space-3); }
.site-footer h2 { color: #F0E9DD; font-size: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__legal { border-top: 1px solid rgba(240,233,221,0.2); padding-top: var(--space-2); font-size: 0.85rem; opacity: 0.8; }

.form-field { margin-bottom: var(--space-2); display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.75rem;
  border: 1px solid rgba(6,64,43,0.25);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
.form-honeypot { position: absolute; left: -9999px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-4);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.contact-aside {
  background: #fff;
  border-radius: 16px;
  padding: var(--space-3);
  box-shadow: 0 4px 20px rgba(6,64,43,0.06);
  height: fit-content;
}
.contact-aside h2 { font-size: 1.15rem; }

.legal-content { max-width: 820px; }
.legal-content .legal-updated { color: var(--color-text-muted); font-style: italic; margin-bottom: var(--space-3); }
.legal-content h2 { margin-top: var(--space-4); font-size: 1.4rem; }
.legal-content h3 { margin-top: var(--space-3); font-size: 1.1rem; color: var(--color-maroon); }
.legal-content ul, .legal-content ol { padding-left: 1.4rem; margin: 0 0 var(--space-2); }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content strong { color: var(--color-green); }

/* Hero / interior banners with full-bleed photography */
.hero-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero-banner--short { min-height: 380px; align-items: center; }
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,64,43,0.55) 0%, rgba(20,16,12,0.5) 45%, rgba(61,0,0,0.88) 100%);
}
.hero-banner__inner { width: 100%; }
.hero-banner__content {
  position: relative;
  z-index: 1;
  padding: var(--space-4) 0 var(--space-6);
  max-width: 720px;
}
.hero-banner--short .hero-banner__content { padding-top: var(--space-3); padding-bottom: var(--space-3); }
/* Line break that only takes effect on phone-sized screens */
.br-mobile { display: none; }
@media (max-width: 520px) { .br-mobile { display: inline; } }

/* Title block centred over the photo instead of anchored to the left edge */
.hero-banner--centered { justify-content: center; }
.hero-banner--centered .hero-banner__content { margin: 0 auto; text-align: center; }
.hero-banner h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hero-banner p { color: rgba(255,255,255,0.95); text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.hero-banner .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin-bottom: var(--space-1);
}

/* Alternating image + text rows */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
.split-section--reverse .split-section__media { order: 2; }
.split-section__media img,
.photo-frame {
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(6,64,43,0.16);
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* Full-width rounded photo banner used as a section divider, optionally with a quote overlay */
.image-divider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.image-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6,64,43,0.62);
}
.image-divider blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 640px;
  padding: 0 var(--space-3);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.35;
}

.value-card { position: relative; overflow: hidden; }
.value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-2);
  border: 1.5px solid var(--color-green);
  border-radius: 50%;
  color: var(--color-green);
}
.value-card__icon svg { width: 22px; height: 22px; }

/* Section intro / eyebrow used above headings on the home page */
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-maroon);
  margin-bottom: var(--space-1);
}
.section-intro { max-width: 640px; margin: 0 auto var(--space-4); text-align: center; }
.section-intro p { color: var(--color-text-muted); font-size: 1.05rem; }

/* Shared reading column: keeps every prose block on a page on the same
   left/right edges, with one consistent paragraph rhythm. */
.container.prose-column { max-width: 760px; }
.prose { font-size: 1.1rem; }
.prose p { margin: 0 0 var(--space-2); }
.prose p:last-child { margin-bottom: 0; }

/* Closing statement + call to action, centred as one block */
.closing-block { text-align: center; max-width: 520px; margin: var(--space-4) auto 0; }
.closing-block__statement {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-green);
  line-height: 1.5;
  text-wrap: balance;
  margin: 0 0 var(--space-3);
}

/* Two supporting sub-blocks under a section-intro (heading + paragraph each) */
.subsection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-4); }
.subsection-grid h3 { color: var(--color-maroon); font-size: 1.25rem; }

/* Trust strip: three short credibility pillars under the hero */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  background: #fff;
  border-radius: 16px;
  padding: var(--space-3);
  box-shadow: 0 10px 30px rgba(6,64,43,0.08);
  margin-top: -64px;
  position: relative;
  z-index: 2;
}
.trust-strip__item { display: flex; align-items: center; gap: var(--space-2); }
.trust-strip__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-green);
}
.trust-strip__icon svg { width: 20px; height: 20px; }
.trust-strip__item span.trust-strip__label { font-size: 0.92rem; font-weight: 500; color: var(--color-text); line-height: 1.3; }

/* Benefit / topic bento grid */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); }
.benefit-card {
  background: #fff;
  border-radius: 14px;
  padding: var(--space-3);
  border-top: 3px solid var(--color-maroon);
  box-shadow: 0 4px 20px rgba(6,64,43,0.06);
  transition: transform 0.2s ease;
}
.benefit-card:hover { transform: translateY(-3px); }
.benefit-card h3 { font-size: 1.1rem; color: var(--color-green); }
.benefit-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* Numbered "how it works" steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.step { text-align: center; padding: 0 var(--space-2); }
.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--color-text-muted); font-size: 0.95rem; }

/* FAQ accordion */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(6,64,43,0.15);
  padding: var(--space-2) 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-green);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-maroon);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: var(--space-2); color: var(--color-text-muted); }

/* Full-bleed alternating section backgrounds for visual rhythm */
.section-white { background: #fff; }
.section-alt { background: var(--color-bg-alt); }

/* Single feature photo. Sized with aspect-ratio (not a fixed parent height)
   so it can never overflow its box and bleed into the next section. */
.photo-feature { margin: 0 auto; max-width: 860px; }
.photo-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 62%;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(6,64,43,0.14);
}

.portrait-frame {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(6,64,43,0.18);
  border: 3px solid #fff;
}

/* Banner de consentimento de cookies (só existe se houver cookies a consentir) */
.cookie-banner {
  position: fixed;
  left: var(--space-2);
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: 60;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(6,64,43,0.22);
  border-top: 3px solid var(--color-maroon);
}
.cookie-banner__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cookie-banner__text { margin: 0; font-size: 0.95rem; max-width: 60ch; }
.cookie-banner__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.cookie-banner__actions .btn { cursor: pointer; border: 1.5px solid transparent; font-size: 0.9rem; }
.cookie-banner__actions .btn--outline { border-color: var(--color-green); }

@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; padding: var(--space-2); }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; text-align: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: var(--space-2) var(--space-3);
    display: none;
    border-bottom: 1px solid rgba(6,64,43,0.12);
  }
  .primary-nav.is-open { display: flex; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-banner { min-height: 480px; }
  .split-section { grid-template-columns: 1fr; }
  .split-section--reverse .split-section__media { order: 0; }
  .split-section__media img, .photo-frame { min-height: 220px; }
  .trust-strip { grid-template-columns: 1fr; margin-top: var(--space-3); }
  .steps { grid-template-columns: 1fr; }
  .subsection-grid { grid-template-columns: 1fr; }
  .photo-feature img { aspect-ratio: 4 / 3; }
  .person-photo { min-height: 260px; }
}
