@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --navy: #0b1f33;
  --navy-2: #102c45;
  --blue: #173c5d;
  --gold: #b59a63;
  --light: #f4f6f8;
  --white: #ffffff;
  --text: #1d2935;
  --muted: #697887;
  --border: #dfe5ea;
  --shadow: 0 18px 50px rgba(11, 31, 51, .10);
  --radius: 18px;

  /* Alturas de referência */
  --header-h: 110px;
  --header-h-mobile: 86px;

  /* Alturas adaptativas do slider — nunca obrigam a rolar */
  --slider-h: clamp(340px, 55vh, 460px);
  --slider-h-mobile: clamp(220px, 40vh, 300px);
  --slider-h-small: clamp(180px, 35vh, 240px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* Compensa o header fixo quando se navega para uma âncora */
section[id], main > section {
  scroll-margin-top: var(--header-h);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(11, 31, 51, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}

/* LOGO do header — com destaque e micro-interação */
.brand { display: flex; align-items: center; }
.brand img {
  height: 80px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: brightness(1.12) drop-shadow(0 3px 10px rgba(181,154,99,.35));
  transition: transform .25s ease, filter .25s ease;
}
.brand:hover img {
  transform: scale(1.04);
  filter: brightness(1.18) drop-shadow(0 4px 14px rgba(181,154,99,.55));
}

.main-nav {
  display: flex; align-items: center; gap: 28px;
  color: rgba(255,255,255,.86); font-size: .92rem; font-weight: 600;
}
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--gold); }
.nav-cta {
  padding: 11px 17px;
  border: 1px solid rgba(181,154,99,.65);
  border-radius: 999px;
  color: white !important;
  transition: background .2s ease, border-color .2s ease;
}
.nav-cta:hover {
  background: rgba(181,154,99,.15);
  border-color: var(--gold);
}
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: white; transition: transform .2s ease; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  background:
    radial-gradient(circle at 78% 30%, rgba(35, 83, 121, .45), transparent 34%),
    linear-gradient(120deg, #071725 0%, #0b1f33 48%, #163a58 100%);
  color: white; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: 500px; height: 500px;
  border: 1px solid rgba(181,154,99,.2);
  border-radius: 50%; right: -180px; top: 17%;
}
.hero::after {
  content: ""; position: absolute; width: 700px; height: 700px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 50%; right: -270px; top: 5%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,23,37,.75), transparent);
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: var(--header-h);
  max-width: 760px;
}
.eyebrow, .section-kicker {
  color: var(--gold); font-size: .78rem;
  letter-spacing: .20em; font-weight: 800;
}
.hero h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.03; letter-spacing: -.045em; margin: 20px 0;
}
.hero h1 span { color: #d7dde3; }
.hero-text { max-width: 650px; font-size: 1.15rem; color: rgba(255,255,255,.74); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s;
  cursor: pointer; font-family: inherit; font-size: .95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #111b23; }
.btn-primary:hover { background: #c6aa70; }
.btn-outline { border-color: rgba(255,255,255,.35); color: white; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: #f0f0f0; }

/* Seta para a próxima secção */
.scroll-down {
  position: absolute; bottom: 45px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: 1.9rem; z-index: 3;
  animation: bounceDown 2s infinite;
  transition: color .2s ease;
}
.scroll-down:hover { color: var(--gold); }

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============ SEÇÕES ============ */
.section { padding: 105px 0; }
.intro { padding-top: 90px; padding-bottom: 90px; }

.two-col { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: start; }
h2 {
  font-family: Manrope, sans-serif; color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.1; letter-spacing: -.04em; margin-top: 12px;
}
.section-copy { color: var(--muted); font-size: 1.05rem; }
.section-copy p + p { margin-top: 17px; }
.section-copy strong { color: var(--navy); }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 70px; }
.value-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(11,31,51,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(181,154,99,.45);
  box-shadow: 0 16px 40px rgba(11,31,51,.08);
}
.value-icon { color: var(--gold); font-weight: 800; letter-spacing: .1em; font-size: .82rem; margin-bottom: 35px; }
.value-card h3 { color: var(--navy); font-family: Manrope; font-size: 1.25rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); }

/* ============ SERVIÇOS ============ */
.services { background: var(--light); }
.section-heading {
  display: flex; justify-content: space-between;
  gap: 50px; align-items: end; margin-bottom: 45px;
}
.section-heading > p { max-width: 390px; color: var(--muted); }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
  min-height: 300px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,31,51,.08); }
.service-card.featured { background: var(--navy); color: white; border-color: var(--navy); }
.service-card.featured:hover { box-shadow: 0 16px 40px rgba(11,31,51,.25); }
.service-card.featured h3 { color: white; }
.service-card.featured p { color: rgba(255,255,255,.68); }
.service-number { position: absolute; right: 25px; top: 22px; color: rgba(11,31,51,.20); font-weight: 800; }
.featured .service-number { color: rgba(255,255,255,.18); }
.service-icon { font-size: 2.3rem; color: var(--gold); margin: 20px 0 28px; }
.service-card h3 { font-family: Manrope; color: var(--navy); font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); }

/* ============ OBRAS / SLIDER ============ */
.works { background: #fff; }

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: var(--shadow);
  height: var(--slider-h);   /* adapta-se à altura do ecrã — nunca obriga a rolar */
}

.slides {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.65,.05,.36,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
}

/* Imagem da obra — sempre redimensionada para preencher o espaço */
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fallback (caso alguma imagem falte) */
.slide-placeholder {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(181,154,99,.20), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 12px),
    #15334e;
}
.slide-placeholder span {
  width: 130px; height: 130px;
  border: 1px solid rgba(181,154,99,.5);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
  font-family: Manrope; font-size: 2rem; letter-spacing: .08em;
}

.slide-info {
  color: white;
  padding: 55px 60px 55px 50px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, rgba(7,23,37,0) 0%, rgba(7,23,37,.15) 100%);
}
.slide-tag { color: var(--gold); font-size: .75rem; letter-spacing: .13em; font-weight: 800; text-transform: uppercase; }
.slide-info h3 { font-family: Manrope; font-size: clamp(1.6rem,2.6vw,2.4rem); line-height: 1.12; margin: 14px 0; }
.slide-info p { color: rgba(255,255,255,.67); font-size: 1rem; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 45px; height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(7,23,37,.55);
  color: white; font-size: 2rem;
  cursor: pointer;
  display: grid; place-items: center;
  line-height: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.slider-btn:hover { background: rgba(181,154,99,.85); color: var(--navy); }
.slider-btn:active { transform: translateY(-50%) scale(.95); }
.prev { left: 18px; }
.next { right: 18px; }

.slider-dots {
  position: absolute; bottom: 18px; right: 26px;
  display: flex; gap: 7px; z-index: 4;
}
.slider-dots button {
  width: 8px; height: 8px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.slider-dots button.active { width: 24px; border-radius: 999px; background: var(--gold); }

/* ============ CLIENTES ============ */
.clients { background: var(--light); }
.clients-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.clients-text { color: var(--muted); max-width: 530px; margin-top: 20px; }

.client-logo-box {
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(11,31,51,.05);
  padding: 25px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.client-logo-box:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11,31,51,.08); }
.client-label { color: var(--gold); letter-spacing: .16em; font-size: .68rem; font-weight: 800; margin-bottom: 16px; }
.client-logo-img { max-height: 90px; width: auto; max-width: 80%; object-fit: contain; }

/* ============ CONTACTO ============ */
.contact { background: var(--navy); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; }
.contact h2 { color: white; }
.contact-intro > p:not(.section-kicker) { color: rgba(255,255,255,.68); margin-top: 20px; max-width: 500px; }

.contact-details { margin-top: 35px; display: grid; gap: 15px; }
.contact-details a { display: flex; gap: 15px; align-items: center; color: white; transition: color .2s ease; }
.contact-details a:hover { color: var(--gold); }
.detail-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: border-color .2s ease, background .2s ease;
}
.contact-details a:hover .detail-icon { border-color: var(--gold); background: rgba(181,154,99,.08); }
.contact-details small {
  display: block; color: rgba(255,255,255,.45);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
}

.contact-form {
  background: white; color: var(--text);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--navy); font-family: Manrope; font-size: 1.5rem; margin-bottom: 22px; }
.contact-form label { display: block; color: var(--navy); font-size: .82rem; font-weight: 700; margin: 13px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit; outline: none;
  background: #fbfcfd;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:hover, .contact-form textarea:hover { background: #fff; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181,154,99,.12);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-full { width: 100%; margin-top: 17px; border: 0; }
.form-help { font-size: .75rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-success { font-size: .82rem; margin-top: 10px; color: #3f7654; text-align: center; }

/* ============ CTA ============ */
.cta-strip { background: var(--gold); color: #111b23; padding: 42px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner p { font-weight: 600; }
.cta-inner h2 { color: #111b23; font-size: 2rem; margin-top: 2px; }

/* ============ FOOTER ============ */
.site-footer { background: #071725; color: rgba(255,255,255,.62); padding: 55px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 45px; }

.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo { width: 210px; margin-bottom: 12px; }

.site-footer h3 { color: white; font-size: .9rem; margin-bottom: 10px; }
.site-footer p { font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: .78rem;
}
.footer-bottom a { transition: color .2s ease; }
.footer-bottom a:hover { color: var(--gold); }

/* ============ RESPONSIVO ============ */
@media (max-width: 850px) {
  .nav-wrap { height: var(--header-h-mobile); }
  .brand img { height: 58px; max-width: 220px; }
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h-mobile);
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    padding: 10px 20px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 5px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-cta { margin-top: 8px; text-align: center; border: 1px solid rgba(181,154,99,.65) !important; }

  .hero { min-height: 760px; }
  .hero-content { padding-top: 100px; }

  .two-col, .clients-layout, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .values-grid, .services-grid { grid-template-columns: 1fr; }

  .section { padding: 75px 0; }
  .intro { padding-top: 70px; padding-bottom: 70px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }

  /* Slider: imagem fixa em cima, texto flui por baixo */
  .slider { height: auto; }
  .slides { height: auto; }
  .slide { grid-template-columns: 1fr; height: auto; }
  .slide-img { height: var(--slider-h-mobile); }
  .slide-placeholder { height: var(--slider-h-mobile); }
  .slide-info { padding: 35px 45px 50px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { align-items: center; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  section[id], main > section { scroll-margin-top: var(--header-h-mobile); }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1140px); }
  .brand img { height: 48px; max-width: 180px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-text { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }

  .slide-img { height: var(--slider-h-small); }
  .slide-placeholder { height: var(--slider-h-small); }
  .slide-info { padding: 28px 26px 40px; }
  .slide-info h3 { font-size: 1.45rem; }

  .contact-form { padding: 25px 20px; }
  .slider-btn { width: 38px; height: 38px; font-size: 1.6rem; }
  .prev { left: 10px; } .next { right: 10px; }
  .slider-dots { bottom: 12px; right: 16px; }

  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ============ ECRÃS MUITO BAIXOS (portáteis pequenos) ============ */
@media (max-height: 720px) and (min-width: 851px) {
  :root {
    --slider-h: clamp(300px, 48vh, 380px);
  }
  .slide-info { padding: 40px 50px 40px 40px; }
  .slide-info h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
}