:root {
  --navy: #0D2B4E;
  --gold: #B89A5A;
  --cream: #F8F4ED;
  --teal: #2C7873;
  --limestone: #C9B99A;
  --ink: #1A1A1A;
  --muted: #66717f;
  --surface: #ffffff;
  --surface-2: #f2ece2;
  --border: rgba(13, 43, 78, 0.13);
  --shadow: 0 18px 44px rgba(13, 43, 78, 0.10);
  --radius: 22px;
  --shell: min(1180px, calc(100vw - 32px));
  --display: Georgia, "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
  --label: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  --surface: #081424;
  --surface-2: #111f34;
  --cream: #F8F4ED;
  --ink: #F8F4ED;
  --muted: #b6c0ce;
  --border: rgba(248, 244, 237, 0.14);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), var(--surface));
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.58;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 16px;
  z-index: 90;
}
.skip-link:focus { left: 12px; top: 12px; }

.shell { width: var(--shell); margin-inline: auto; }
.section { position: relative; padding: clamp(64px, 8vw, 104px) 0; }
.max-copy { max-width: 740px; }
.stack-lg { display: grid; gap: 32px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-header { background: color-mix(in srgb, var(--surface) 88%, transparent); }

.nav-wrap { min-height: 78px; display: flex; align-items: center; gap: 22px; }
.brand { flex: 0 0 auto; }
.brand-logo { width: clamp(172px, 18vw, 252px); }
.site-menu { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex: 1; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); }
.nav-links a,
.footer-wrap a,
.menu-toggle {
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .footer-wrap a,
html[data-theme="dark"] .menu-toggle { color: var(--cream); }
.nav-links a { padding: 10px 0; }
.nav-links a:hover { color: var(--gold); }

.controls { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.lang-btn,
.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-btn.active { background: var(--navy); color: var(--cream); }
.theme-toggle { width: 36px; padding: 0; display: grid; place-items: center; background: var(--navy); color: var(--cream); }
.theme-toggle::before { content: "◐"; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 10px 14px; }

.hero {
  min-height: min(760px, calc(100svh - 78px));
  display: grid;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  padding: clamp(72px, 9vw, 112px) 0;
}
.hero-media,
.hero-overlay { position: absolute; inset: 0; }
.hero-media img { height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.03); }
.hero-overlay { background: linear-gradient(90deg, rgba(13,43,78,0.96), rgba(13,43,78,0.78) 48%, rgba(13,43,78,0.42)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,0.62fr); align-items: end; gap: clamp(24px, 4vw, 56px); }
.eyebrow,
.mono { margin: 0 0 14px; font-family: var(--label); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.hero h1,
.section-heading h2,
.quote-panel h2 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -0.018em; }
.hero h1 { max-width: 12ch; font-size: clamp(2.85rem, 5.7vw, 4.9rem); }
.hero-subtitle,
.section-lead { font-size: clamp(1.08rem, 1.25vw, 1.2rem); color: var(--muted); }
.hero-subtitle { max-width: 54rem; color: rgba(248,244,237,0.9); margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0.92rem 1.22rem; font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.btn-primary { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.btn-primary:hover { background: #c9ad6c; }
.btn-secondary { color: var(--cream); border: 1px solid rgba(248,244,237,.34); background: rgba(248,244,237,.06); }
.btn-secondary:hover { border-color: var(--gold); }
.hero-panel,
.info-card,
.service-card,
.stat-card,
.quote-panel,
.testimonial-card,
.contact-form,
.answer-list article,
.faq-list details { background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-panel { padding: 26px; background: rgba(248,244,237,.12); border-color: rgba(248,244,237,.18); color: var(--cream); }
.metric-list { display: grid; gap: 16px; margin: 0; }
.metric-list div { display: grid; gap: 3px; }
.metric-list dt { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; color: var(--cream); }
.metric-list dd { margin: 0; color: rgba(248,244,237,.84); font-size: 1rem; }

.intro-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.editorial-image,
.image-mosaic figure { overflow: hidden; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow); }
.editorial-image img { aspect-ratio: 4 / 5; object-fit: cover; }
.image-mosaic img { height: 100%; object-fit: cover; }
.section-heading { display: grid; gap: 12px; }
.section-heading h2,
.quote-panel h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); color: var(--navy); line-height: 1.08; }
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .quote-panel h2 { color: var(--cream); }
.centered { margin-inline: auto; text-align: center; }
.pillars-grid,
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.info-card,
.testimonial-card { padding: 24px; }
.card-index,
.service-card span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--cream); font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.08em; margin-bottom: 16px; }
.info-card h3,
.service-card h3,
.feature-list h3,
.testimonial-card strong,
.answer-list h3,
.faq-list summary { margin: 0 0 8px; font-family: var(--display); font-weight: 500; font-size: clamp(1.18rem, 1.65vw, 1.45rem); color: var(--navy); }
html[data-theme="dark"] .info-card h3,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .feature-list h3,
html[data-theme="dark"] .testimonial-card strong,
html[data-theme="dark"] .answer-list h3,
html[data-theme="dark"] .faq-list summary { color: var(--cream); }
.info-card p,
.service-card p,
.feature-list p,
.testimonial-card p,
.stat-card span,
.footer-wrap p,
.answer-list p,
.faq-list p { color: var(--muted); font-size: clamp(0.98rem, 1.05vw, 1.06rem); line-height: 1.62; }

.services-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 28px; align-items: start; }
.sticky { position: sticky; top: 104px; }
.services-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.service-card { padding: 24px; }
.service-card.wide { grid-column: 1 / -1; }
.gallery-band { background: linear-gradient(180deg, rgba(13,43,78,.04), transparent), var(--surface-2); }
.image-mosaic { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; }
.image-mosaic figure { position: relative; min-height: 320px; margin: 0; }
.image-mosaic .mosaic-large { min-height: 420px; }
.image-mosaic figcaption { position: absolute; left: 18px; bottom: 16px; padding: 7px 10px; border-radius: 999px; background: rgba(13,43,78,.78); color: var(--cream); font-family: var(--label); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.stat-card { padding: 24px; text-align: center; }
.stat-card strong { display: block; font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 500; color: var(--navy); }
html[data-theme="dark"] .stat-card strong { color: var(--gold); }
.portugal-grid,
.cta-grid,
.faq-grid,
.answer-grid { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: 24px; align-items: start; }
.quote-panel { padding: 28px; background: linear-gradient(180deg, var(--navy), #17385f); color: var(--cream); }
.quote-panel h2,
.quote-panel p:not(.eyebrow) { color: var(--cream); }
.feature-list,
.answer-list,
.faq-list { display: grid; gap: 16px; }
.feature-list article { padding: 22px 0; border-bottom: 1px solid var(--border); }
.feature-list article:first-child { padding-top: 0; }
.feature-list article:last-child { border-bottom: 0; }
.answer-list article,
.faq-list details { padding: 22px; }
.faq-list summary { cursor: pointer; }
.contact-form { padding: 24px; display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form span { font-family: var(--label); font-size: 0.76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
html[data-theme="dark"] .contact-form span { color: var(--cream); }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; background: var(--surface-2); color: var(--ink); font-size: 1rem; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin: 0; color: var(--muted); font-size: .98rem; }
.form-status.success { color: var(--teal); }
.form-status.error { color: #b42318; }
.site-footer { padding: 24px 0 34px; border-top: 1px solid var(--border); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-wrap p { margin: 0; }
.footer-dot { color: var(--gold); margin: 0 .4rem; }

@media (max-width: 1080px) {
  .hero-grid,
  .intro-grid,
  .services-layout,
  .portugal-grid,
  .cta-grid,
  .faq-grid,
  .answer-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .image-mosaic { grid-template-columns: 1fr 1fr; }
  .image-mosaic .mosaic-large { grid-column: 1 / -1; min-height: 360px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-menu { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
  .site-menu.open { display: flex; }
  .nav-links,
  .controls { flex-direction: column; align-items: stretch; }
  .lang-switch { justify-content: center; }
  .theme-toggle { width: 100%; }
  .pillars-grid,
  .services-grid,
  .testimonials-grid,
  .stats-grid,
  .image-mosaic { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; }
  .brand-logo { width: 178px; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px; }
}


/* Fast readability refinements */
.intro,
.services {
  background: linear-gradient(180deg, var(--cream), var(--surface));
}
.intro .section-heading h2,
.services .section-heading h2,
.intro .info-card h3,
.services .service-card h3 {
  color: var(--navy);
}
.intro .eyebrow,
.services .eyebrow {
  color: var(--gold);
}
.intro .section-lead,
.services .section-lead,
.intro .info-card p,
.services .service-card p {
  color: var(--muted);
}
.intro .card-index,
.services .service-card span {
  background: var(--navy);
  color: var(--cream);
}
.intro .info-card,
.services .service-card,
.services .sticky {
  background: var(--surface);
  border-color: var(--border);
}
.intro .editorial-image {
  border-color: var(--border);
  background: var(--surface);
}
html[data-theme="dark"] .intro,
html[data-theme="dark"] .services {
  background: linear-gradient(180deg, #102f53, #0D2B4E);
}
html[data-theme="dark"] .intro .section-heading h2,
html[data-theme="dark"] .services .section-heading h2,
html[data-theme="dark"] .intro .eyebrow,
html[data-theme="dark"] .services .eyebrow,
html[data-theme="dark"] .intro .section-lead,
html[data-theme="dark"] .services .section-lead,
html[data-theme="dark"] .intro .info-card h3,
html[data-theme="dark"] .services .service-card h3,
html[data-theme="dark"] .intro .info-card p,
html[data-theme="dark"] .services .service-card p,
html[data-theme="dark"] .intro .card-index,
html[data-theme="dark"] .services .service-card span {
  color: var(--cream);
}
html[data-theme="dark"] .intro .card-index,
html[data-theme="dark"] .services .service-card span {
  background: var(--gold);
  color: var(--navy);
}
html[data-theme="dark"] .intro .info-card,
html[data-theme="dark"] .services .service-card,
html[data-theme="dark"] .services .sticky {
  background: rgba(248,244,237,0.06);
  border-color: rgba(248,244,237,0.12);
}
html[data-theme="dark"] .intro .section-lead,
html[data-theme="dark"] .services .section-lead,
html[data-theme="dark"] .intro .info-card p,
html[data-theme="dark"] .services .service-card p {
  color: rgba(248,244,237,0.82);
}
html[data-theme="dark"] .intro .editorial-image {
  border-color: rgba(248,244,237,0.12);
  background: rgba(248,244,237,0.06);
}
.testimonial-card strong {
  font-family: var(--label);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}
.hero-media img,
.editorial-image img,
.image-mosaic img {
  image-rendering: auto;
}


/* Header and footer fixes */
.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}
.site-header {
  background: #0D2B4E;
  border-bottom: 1px solid rgba(184,154,90,0.55);
  backdrop-filter: none;
}
html[data-theme="dark"] .site-header {
  background: #0D2B4E;
}
.nav-wrap {
  background: #0D2B4E;
}
.brand-logo {
  box-shadow: none;
  border-radius: 0;
}
.nav-links a {
  color: rgba(248,244,237,0.88);
}
.nav-links a:hover,
.footer-wrap a:hover {
  color: var(--gold);
}
html[data-theme="dark"] .nav-links a {
  color: rgba(248,244,237,0.88);
}
.menu-toggle {
  background: rgba(248,244,237,0.08);
  color: var(--cream);
  border-color: rgba(248,244,237,0.22);
}
.lang-switch {
  background: rgba(248,244,237,0.08);
  border-color: rgba(248,244,237,0.2);
}
.lang-btn {
  color: rgba(248,244,237,0.86);
}
.lang-btn.active,
.theme-toggle {
  background: var(--gold);
  color: var(--navy);
}
.theme-toggle::before {
  color: var(--navy);
}
.back-to-top {
  cursor: pointer;
}
@media (max-width: 860px) {
  .site-menu {
    background: #0D2B4E;
    border-color: rgba(184,154,90,0.38);
  }
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.whatsapp-link {
  opacity: .82;
}
.whatsapp-link::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #25D366;
  vertical-align: 1px;
}
.whatsapp-link:hover {
  opacity: 1;
}
