/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --blue:       #1B3A6B;
  --blue-light: #2B5BA8;
  --gold:       #B8965A;
  --cream:      #F7F3EE;
  --white:      #FFFFFF;
  --text:       #1A1A1A;
  --muted:      #6B6B6B;
  --border:     rgba(27, 58, 107, 0.12);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-h: 80px;
  --max:   1200px;
  --gap:   clamp(2rem, 5vw, 5rem);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; color: var(--muted); }

.label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

/* ─── REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: .9rem 2.2rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: 2px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #9e7a43; transform: translateY(-1px); }

/* ─── NAV ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background .35s, box-shadow .35s;
}
#nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo img {
  height: 68px;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.25));
  transition: filter .3s;
}
#nav.scrolled .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--white);
  transition: color .2s;
}
#nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.nav-cta {
  padding: .55rem 1.4rem;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 2px;
  color: var(--white);
}
#nav.scrolled .nav-links a.nav-cta {
  border-color: var(--blue);
  color: var(--blue);
}
.nav-links a.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background .3s;
}
#nav.scrolled .nav-toggle span { background: var(--text); }

/* ─── HERO – base ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.4rem;
}
.hero-sub {
  color: rgba(255,255,255,.80);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.4rem;
}

/* ─── HERO – ilustração full-screen ────────────────────── */
.hero-illus { justify-content: flex-start; }
.hero-illus-bg {
  position: absolute;
  inset: 0;
  background: #0f2240;
}
.hero-illus-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-content--illus {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 8vw, 10rem);
  max-width: 700px;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-content--illus h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
}
.hero-content--illus h1 em { color: #d4b07c; font-style: italic; }
.hero-content--illus .hero-sub { max-width: 460px; }

/* ─── HERO – Opção B (split-screen) ────────────────────── */
.hero-split {
  flex-direction: row;
  height: 100svh;
  min-height: 600px;
}
.hero-split-left {
  position: relative;
  width: 52%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-split-bg {
  position: absolute;
  inset: 0;
  background: var(--blue);
}
.hero-split-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content--split {
  position: relative;
  z-index: 2;
  padding: var(--nav-h) clamp(2rem, 5vw, 5rem) 3rem;
}
.hero-content--split h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.1;
}
.hero-content--split h1 em {
  color: #d4b07c;
  font-style: italic;
}
.hero-split-right {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
}
.hero-split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.hero-split-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 18%);
  z-index: 1;
}
.hero-split-caption {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  z-index: 2;
  writing-mode: vertical-rl;
}

@media (max-width: 700px) {
  .hero-split { flex-direction: column; }
  .hero-split-left { width: 100%; height: 60%; }
  .hero-split-right { height: 40%; }
  .hero-split-right::before {
    background: linear-gradient(180deg, var(--blue) 0%, transparent 30%);
  }
}

/* ─── HERO – Opção A (CSS tipográfico) ──────────────────── */
.hero-css {
  justify-content: center;
  text-align: center;
}
.hero-css-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #24508f 0%, var(--blue) 60%, #0f2240 100%);
}
/* padrão subtil de linhas diagonais */
.hero-css-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.018) 40px,
    rgba(255,255,255,.018) 41px
  );
}
/* selo ao fundo, grande e esbatido */
.hero-css-seal {
  position: absolute;
  right: -4vw;
  bottom: -6vh;
  width: clamp(320px, 45vw, 680px);
  opacity: .07;
  z-index: 1;
  pointer-events: none;
  filter: invert(1) brightness(2);
}
.hero-css-seal img { width: 100%; }

/* linhas decorativas horizontais */
.hero-css-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  z-index: 2;
}
.hero-css-line--top    { top: calc(var(--nav-h) + 2.5rem); }
.hero-css-line--bottom { bottom: 5rem; }

.hero-content--css {
  position: relative;
  z-index: 3;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  padding-inline: 2rem;
}
.hero-content--css h1 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6rem);
  margin-bottom: 0;
  line-height: 1.08;
}
.hero-content--css h1 em {
  color: #d4b07c;
  font-style: italic;
}
.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.8rem auto;
  flex-shrink: 0;
}
.hero-content--css .hero-sub {
  text-align: center;
  max-width: 520px;
}

/* ─── HISTÓRIA ──────────────────────────────────────────── */
.historia {
  padding: var(--gap) 0;
  background: var(--cream);
}
.historia-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.historia-seal img {
  width: 100%;
  max-width: 280px;
  border-radius: 50%;
  filter: sepia(.15) contrast(1.05);
  box-shadow: 0 8px 40px rgba(27,58,107,.12);
}
.historia-text h2 { margin-bottom: 1.5rem; color: var(--blue); }
.historia-text p + p { margin-top: 1rem; }

/* ─── SERVIÇOS ──────────────────────────────────────────── */
.servicos {
  padding: var(--gap) 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { color: var(--blue); }
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}
.servico-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: background .25s;
}
.servico-card:hover { background: var(--cream); }
.servico-icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.servico-icon svg { width: 100%; height: 100%; }
.servico-card h3 { color: var(--blue); margin-bottom: .75rem; line-height: 1.3; }
.servico-card p { font-size: .9rem; }

/* ─── EQUIPA ────────────────────────────────────────────── */
.equipa {
  padding: var(--gap) 0;
  background: var(--cream);
}
.equipa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.equipa-text h2 { color: var(--blue); margin-bottom: 1.5rem; }
.equipa-text p + p { margin-top: 1rem; }
.equipa-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--blue);
}
.stat span {
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--muted);
}
.equipa-foto img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 16px 64px rgba(27,58,107,.15);
}

/* ─── CUIDADO ───────────────────────────────────────────── */
.cuidado {
  padding: var(--gap) 0;
  background: var(--blue);
}
.cuidado-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.cuidado-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 4px solid rgba(255,255,255,.2);
}
.cuidado blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
}

/* ─── CONTACTO ──────────────────────────────────────────── */
.contacto {
  padding: var(--gap) 0;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contacto-info h2 { color: var(--blue); margin-bottom: 2rem; }
.info-block { margin-bottom: 1.8rem; }
.info-block h4 {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.info-block p { color: var(--text); line-height: 1.6; }
.social-links {
  display: flex;
  gap: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--blue);
  font-weight: 500;
  transition: color .2s;
}
.social-links a:hover { color: var(--gold); }
.social-links svg { width: 20px; height: 20px; }
.contacto-map iframe {
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--blue);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo { height: 36px; filter: brightness(0) invert(1); }
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.footer-reclamacoes {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 500;
  color: #f5c842;
  letter-spacing: .03em;
  transition: opacity .2s;
  text-decoration: none;
}
.footer-reclamacoes:hover { opacity: .8; }
.footer-reclamacoes svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-policy {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
  transition: color .2s;
  text-decoration: none;
}
.footer-policy:hover { color: rgba(255,255,255,.8); }
.footer-social {
  display: flex;
  gap: 1.2rem;
}
.footer-social a {
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-social a:hover { color: var(--white); }
.footer-social svg { width: 20px; height: 20px; }

/* ─── COOKIE BANNER ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--blue);
  border-top: 2px solid var(--gold);
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: .85rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}
.cookie-text strong { color: var(--white); }
.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: .6rem 1.4rem;
  font-size: .8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}
.cookie-btn:hover { opacity: .85; }
.cookie-btn--reject {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.8);
}
.cookie-btn--accept {
  background: var(--gold);
  color: var(--white);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .historia-grid,
  .equipa-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .historia-seal { display: flex; justify-content: center; }
  .historia-seal img { max-width: 200px; }
  .equipa-foto { order: -1; }
  .cuidado-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    padding: 3rem 2rem;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 0 1.5rem; padding-top: var(--nav-h); }

  .servicos-grid { grid-template-columns: 1fr; gap: 0; }
  .equipa-stats { gap: 2rem; }
  .footer-inner { justify-content: center; text-align: center; }
}
