/* espisegur.css — estilos globais partilhados */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

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

:root {
  --navy:   #0b1e30;
  --navy2:  #152d45;
  --blue:   #1c6ea4;
  --gold:   #1ca5ac;
  --gold-l: #3dbdc4;
  --cream:  #f8f5ef;
  --warm:   #ede9e1;
  --text:   #1a1a1a;
  --muted:  #6b6660;
  --white:  #ffffff;
  --radius: 4px;
  --radius-lg: 12px;
  --nav-h:  68px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--cream); color: var(--text); line-height: 1.7; overflow-x: hidden; }

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,30,48,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28,165,172,0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-link {
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold-l); }
.nav-cta {
  background: var(--gold); color: var(--white) !important;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  padding: 9px 20px; border-radius: var(--radius);
  white-space: nowrap; transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-l); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--white); padding: 4px; width: 32px; height: 32px;
  align-items: center; justify-content: center;
}
.hamburger svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 5% 16px; border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--navy);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 15px; color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── LAYOUT ── */
.page-body { padding-top: var(--nav-h); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.eyebrow-light { color: var(--gold-l); }
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(32px, 4vw, 50px); line-height: 1.1; color: var(--navy); margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title-light { color: var(--white); }
.section-sub { font-size: 16px; font-weight: 300; color: var(--muted); max-width: 600px; line-height: 1.75; }
.divider { width: 48px; height: 1.5px; background: var(--gold); margin: 24px 0; }

/* ── RICH TEXT ── */
.rich-text p { margin-bottom: 12px; font-size: 16px; font-weight: 300; line-height: 1.8; color: #3a3530; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text strong { font-weight: 500; color: var(--navy); }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin-bottom: 12px; }
.rich-text li { margin-bottom: 6px; }
.rich-text .ql-size-small  { font-size: 13px; }
.rich-text .ql-size-large  { font-size: 20px; }
.rich-text .ql-size-huge   { font-size: 26px; }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: #158f96; transform: translateY(-1px); }
.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 24px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-gold-outline:hover { background: var(--gold); color: var(--white); }
.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 24px; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy2); }
.btn-full { width: 100%; justify-content: center; }

/* ── HERO (páginas internas) ── */
.page-hero {
  background: var(--navy); padding: 80px 0 70px;
  border-bottom: 1px solid rgba(28,165,172,0.2);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,.5) 60px, rgba(255,255,255,.5) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.5) 60px, rgba(255,255,255,.5) 61px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; color: var(--white); margin-bottom: 16px; }
.page-hero-title em { font-style: italic; color: var(--gold); }
.page-hero-sub { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.65); max-width: 600px; line-height: 1.7; }

/* ── FOOTER ── */
#site-footer { background: var(--navy); padding: 56px 5% 32px; border-top: 1px solid rgba(28,165,172,0.2); }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo-wrap { margin-bottom: 10px; }
.footer-slogan { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-desc { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.4); max-width: 280px; }
.footer-desc p { margin-bottom: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social a svg { width: 15px; height: 15px; }
.footer-col-title { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-list li { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; }
.footer-col-list a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col-list a:hover { color: var(--gold-l); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-item svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-note { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-horarios-list { display: flex; flex-direction: column; gap: 3px; }
.footer-horarios-list span { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-horarios-list strong { color: rgba(255,255,255,0.75); font-weight: 500; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.9; }
.footer-legal a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ── WHATSAPP ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 54px; height: 54px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; color: #fff; }
.wa-tooltip {
  position: absolute; right: 62px;
  background: var(--navy); color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 100px; white-space: nowrap;
  opacity: 0; transform: translateX(6px); transition: all 0.25s; pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ── FORMULÁRIO ── */
.section-contacto { background: var(--navy); padding: 90px 0; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.contacto-left .section-title { color: var(--white); }
.contacto-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.7; margin-top: 12px; }
.contacto-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.fgroup label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fgroup input, .fgroup select { height: 44px; padding: 0 14px; border: 1px solid #e0dbd2; border-radius: var(--radius); font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--text); background: var(--white); outline: none; transition: border-color 0.2s; appearance: none; }
.fgroup input:focus, .fgroup select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(28,165,172,0.12); }
.fields-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.select-wrap { position: relative; }
.select-wrap::after { content:''; position:absolute; right:14px; top:50%; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); width:7px; height:7px; transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; }

/* ── PILARES ── */
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pilar-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 30px; border-bottom: 3px solid transparent; transition: border-color 0.25s, transform 0.25s; }
.pilar-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.pilar-icon { width: 52px; height: 52px; background: var(--cream); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pilar-icon svg { width: 24px; height: 24px; color: var(--navy); }
.pilar-titulo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--navy); margin-bottom: 10px; }
.pilar-texto { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── CARDS SEGURO ── */
.seguros-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.seguro-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #e8e4dc; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.seguro-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(11,30,48,0.1); }
.seguro-card-header { background: var(--navy); padding: 28px 28px 24px; }
.seguro-card-header.alt { background: var(--navy2); }
.seguro-card-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.seguro-card-icon svg { width: 22px; height: 22px; color: var(--white); }
.seguro-card-titulo { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: var(--white); }
.obrigatorio-badge { display: inline-block; background: rgba(28,165,172,0.25); color: var(--gold-l); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-top: 6px; }
.seguro-card-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.seguro-card-body .rich-text { flex: 1; }

/* ── BLOCOS SOLUCOES HOME ── */
.solucoes-home { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.solucao-bloco {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; transition: transform 0.25s;
}
.solucao-bloco:hover { transform: scale(1.01); }
.solucao-bloco-bg { position: absolute; inset: 0; background: var(--navy); }
.solucao-bloco-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.solucao-bloco-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,30,48,0.92) 0%, rgba(11,30,48,0.3) 60%, transparent 100%); }
.solucao-bloco-content { position: relative; z-index: 2; padding: 32px; }
.solucao-bloco-icons { display: flex; gap: 10px; margin-bottom: 16px; }
.solucao-bloco-icons .si { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.solucao-bloco-icons .si svg { width: 18px; height: 18px; color: var(--gold-l); }
.solucao-bloco-titulo { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--white); margin-bottom: 8px; }
.solucao-bloco-texto { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 20px; }
.solucao-bloco-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-l); }
.solucao-bloco-link svg { width: 14px; height: 14px; }

/* ── VALORES (Quem Somos) ── */
.valores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.valor-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px; border-top: 3px solid var(--gold); }
.valor-num { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.valor-titulo { font-weight: 500; font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.valor-texto { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── HERO HOME ── */
.hero-home { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--navy); overflow: hidden; }
.hero-home-bg { position: absolute; inset: 0; }
.hero-home-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.hero-home-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,30,48,0.85) 0%, rgba(11,30,48,0.5) 100%); }
.hero-home-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,.5) 60px, rgba(255,255,255,.5) 61px), repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.5) 60px, rgba(255,255,255,.5) 61px); }
.hero-home-content { position: relative; z-index: 2; max-width: 700px; padding: 0 5%; margin: 0 auto; width: 100%; }
.hero-home-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(28,165,172,0.15); border: 1px solid rgba(28,165,172,0.4); color: var(--gold-l); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 16px; border-radius: 100px; margin-bottom: 28px; }
.hero-home-titulo { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(42px, 6vw, 70px); line-height: 1.06; color: var(--white); margin-bottom: 24px; }
.hero-home-titulo em { font-style: italic; color: var(--gold); }
.hero-home-sub { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 560px; margin-bottom: 40px; }
.hero-home-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── QUEM SOMOS BLOCOS ── */
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.qs-image { width: 100%; aspect-ratio: 4/5; background: var(--warm); border-radius: var(--radius-lg); overflow: hidden; }
.qs-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qs-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #b0a898; }
.qs-image-placeholder svg { width: 36px; height: 36px; opacity: 0.35; }
.qs-image-placeholder span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.45; }

/* ── SEGURO EXTRA (imagem + detalhe) ── */
.seg-extra-grid { display: block; }
.seg-extra-grid.tem-imagem { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.seg-extra-img { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--warm); }
.seg-extra-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── SEGURO CARD ACTIONS ── */
.seguro-card-actions { display: flex; flex-direction: column; gap: 10px; }

/* ── SEGURO DETALHE ── */
.seg-detalhe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.seg-coberturas { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.seg-cobertura-item { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); line-height: 1.5; }
.seg-check { flex-shrink: 0; width: 22px; height: 22px; background: var(--gold); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-top: 1px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(1) { grid-column: 1 / -1; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .seg-detalhe-grid { grid-template-columns: 1fr; gap: 40px; }
  .seg-extra-grid.tem-imagem { grid-template-columns: 1fr; gap: 32px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .pilares-grid { grid-template-columns: 1fr; }
  .solucoes-home { grid-template-columns: 1fr; }
  .seguros-grid { grid-template-columns: 1fr 1fr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .qs-grid { grid-template-columns: 1fr; }
  .fields-row2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .seguros-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contacto-form-wrap { padding: 24px 20px; }
  .hero-home-content { padding: 100px 5% 60px; }
}
