/* ==========================================================================
   SWELL RENOVA — Acabamentos de Luxo
   Paleta: azul-marinho + dourado
   ========================================================================== */

:root {
  --navy-900: #06122a;
  --navy-800: #0a1b34;
  --navy-700: #0e2444;
  --navy-600: #123057;
  --gold-500: #c9a24e;
  --gold-400: #d9b96a;
  --gold-300: #e6cd8c;
  --cream: #f4f1ea;
  --cream-2: #ece7dc;
  --white: #ffffff;
  --text-light: #e9eef6;
  --text-muted: #9fb0c4;
  --text-dark: #0a1b34;
  --text-dark-muted: #5a6577;
  --shadow: 0 20px 45px rgba(3, 10, 24, 0.35);
  --radius: 14px;
  --maxw: 1180px;
  --font-head: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --font-script: 'Great Vibes', cursive;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--navy-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* garante que todo ícone SVG preenche a sua caixa (evita SVG a 300x150 default) */
.ico svg { width: 100%; height: 100%; display: block; }

/* impede que itens de grid/flex estiquem além da largura (causa overflow no mobile) */
.trust-item, .trust-item > div,
.service-card,
.about-stats > .stat, .stat > div,
.project-tile { min-width: 0; }

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold-500); }
.script { font-family: var(--font-script); font-weight: 400; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(201, 162, 78, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 78, 0.42); }
.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-400); }

/* ---- Section headings ---- */
.section { padding: 90px 0; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-500);
  text-align: center;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 54px;
  line-height: 1.2;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 18, 42, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}
.header.scrolled { background: rgba(6, 18, 42, 0.96); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark { width: 46px; height: 46px; }
.brand-logo { height: 74px; width: auto; display: block; }
.footer .brand-logo { height: 120px; }
.brand-text .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--white);
  line-height: 1;
}
.brand-text .sub {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--gold-500);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--gold-400); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 12px 22px; font-size: 0.75rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 2px;
  background: var(--gold-500);
  transition: 0.3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 48%, rgba(10,27,52,0.72) 60%, rgba(10,27,52,0.35) 100%),
    var(--navy-800);
  overflow: hidden;
  padding-top: 84px;
}
.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 52%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-800) 0%, rgba(10,27,52,0.2) 40%, transparent 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 560px; padding: 60px 0; }
.hero-eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 .l2 { color: var(--gold-500); display: block; }
.hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust {
  background: var(--navy-700);
  border-top: 1px solid rgba(201,162,78,0.15);
  border-bottom: 1px solid rgba(201,162,78,0.15);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-item .ico {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  color: var(--gold-500);
}
.trust-item .ico svg { width: 100%; height: 100%; }
.trust-item h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.trust-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--cream); color: var(--text-dark); }
.services .eyebrow { color: var(--gold-500); }
.services .section-title { color: var(--text-dark); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  border: 1px solid rgba(10,27,52,0.06);
  box-shadow: 0 8px 22px rgba(10,27,52,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10,27,52,0.14);
}
.service-card .ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  color: var(--gold-500);
}
.service-card .ico svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.service-card p { font-size: 0.82rem; color: var(--text-dark-muted); margin: 0; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--navy-800); position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 46px;
  align-items: center;
}
.about-text .eyebrow { text-align: left; }
.about-text h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.about-text p { color: var(--text-muted); margin-bottom: 28px; }
.about-stats { display: flex; flex-direction: column; gap: 26px; }
.stat { display: flex; align-items: center; gap: 18px; }
.stat .ico { width: 46px; height: 46px; color: var(--gold-500); flex: 0 0 auto; }
.stat .ico svg { width: 100%; height: 100%; }
.stat .num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold-500);
  line-height: 1;
}
.stat .lbl { font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.about-media {
  height: 380px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,162,78,0.2);
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { background: var(--cream); color: var(--text-dark); }
.projects .section-title { color: var(--text-dark); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.project-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  background-size: cover; background-position: center;
  box-shadow: 0 10px 26px rgba(10,27,52,0.15);
  cursor: pointer;
}
.project-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,18,42,0.85));
  opacity: 0; transition: opacity 0.3s;
}
.project-tile span {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--white); opacity: 0; transition: opacity 0.3s; z-index: 2;
}
.project-tile:hover::before,
.project-tile:hover span { opacity: 1; }
.projects-more { text-align: center; margin-top: 40px; }
.projects-more .btn { color: var(--text-dark); border-color: rgba(10,27,52,0.3); }
.projects-more .btn:hover { border-color: var(--gold-500); color: var(--gold-500); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  padding: 54px 0;
  border-top: 1px solid rgba(201,162,78,0.15);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-left { display: flex; align-items: center; gap: 22px; }
.cta-left .ico {
  width: 58px; height: 58px; color: var(--gold-500); flex: 0 0 auto;
  border: 2px solid rgba(201,162,78,0.4); border-radius: 50%; padding: 12px;
}
.cta-left h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.5rem; text-transform: uppercase; line-height: 1.15;
}
.cta-left p { color: var(--text-muted); margin: 0; }

/* ==========================================================================
   CONTACT + FORM
   ========================================================================== */
.contact { background: var(--navy-800); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 2rem; text-transform: uppercase; margin-bottom: 8px;
}
.contact-info .script { font-size: 2.2rem; color: var(--gold-500); display: block; margin-bottom: 24px; }
.contact-info p.lead { color: var(--text-muted); margin-bottom: 34px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .ico {
  width: 46px; height: 46px; flex: 0 0 auto;
  color: var(--gold-500); background: var(--navy-700);
  border-radius: 10px; padding: 11px;
  border: 1px solid rgba(201,162,78,0.2);
}
.contact-list .ico svg { width: 100%; height: 100%; }
.contact-list .k { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.contact-list .v { font-weight: 600; color: var(--text-light); }

/* Form */
.quote-form {
  background: var(--navy-700);
  border: 1px solid rgba(201,162,78,0.2);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px; /* compensa o cabeçalho fixo ao ancorar */
}
.quote-form h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.35rem; text-transform: uppercase; margin-bottom: 6px;
}
.quote-form .form-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.72rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold-400); margin-bottom: 8px; font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select option { color: #000; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* impede que campos (ex.: select com opção longa) estourem a largura no mobile */
.contact-grid > * { min-width: 0; }
.quote-form, .contact-info, .field, .field-row > .field { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.quote-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.form-status {
  margin-top: 16px; padding: 14px; border-radius: 8px;
  font-size: 0.9rem; text-align: center; display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(46,160,90,0.15); color: #7ee0a4; border: 1px solid rgba(46,160,90,0.4); }
.form-status.err { background: rgba(200,60,60,0.15); color: #f0a0a0; border: 1px solid rgba(200,60,60,0.4); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy-900);
  padding: 54px 0 26px;
  border-top: 1px solid rgba(201,162,78,0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .brand { margin-bottom: 16px; }
.footer-about p { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; }
.footer h5 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 18px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-list li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; }
.footer-list .ico { width: 20px; height: 20px; color: var(--gold-500); flex: 0 0 auto; }
.footer-list a:hover { color: var(--gold-400); }
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-700);
  border: 1px solid rgba(201,162,78,0.25);
  color: var(--gold-500);
  transition: all 0.2s;
}
.socials a:hover { background: var(--gold-500); color: var(--navy-900); }
.socials a svg { width: 18px; height: 18px; }
.footer-bottom {
  text-align: center;
  padding-top: 22px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  z-index: 90;
  animation: wa-pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; color: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   IMAGENS  (basta colocar os ficheiros em assets/images/ com estes nomes;
   enquanto não existirem, mostra o degradé azul como fundo)
   ========================================================================== */
.hero-media {
  background: url('images/hero.jpg') center/cover no-repeat,
              linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.about-media {
  background: url('images/about.jpg') center/cover no-repeat,
              linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.project-tile[data-img="proj1"] { background: url('images/proj1.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.project-tile[data-img="proj2"] { background: url('images/proj2.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.project-tile[data-img="proj3"] { background: url('images/proj3.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.project-tile[data-img="proj4"] { background: url('images/proj4.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.project-tile[data-img="proj5"] { background: url('images/proj5.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.project-tile[data-img="proj6"] { background: url('images/proj6.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.project-tile[data-img="proj7"] { background: url('images/proj7.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.project-tile[data-img="proj8"] { background: url('images/proj8.jpg') center/cover no-repeat, linear-gradient(135deg, var(--navy-700), var(--navy-900)); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-media { grid-column: 1 / -1; height: 300px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--navy-900); padding: 24px; gap: 18px;
    border-bottom: 1px solid rgba(201,162,78,0.2);
  }
  .menu-toggle { display: flex; }
  .hero-media { width: 100%; opacity: 0.28; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.6rem); }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-left { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 34px; }
  .quote-form { padding: 26px 20px; }
  .contact-info h2 { font-size: 1.6rem; }
  .contact-info .script { font-size: 1.9rem; }
  .cta-left h3 { font-size: 1.3rem; }
  .about-text h2 { font-size: 1.7rem; }
  .brand-logo { height: 58px; }
  .footer .brand-logo { height: 92px; }
  /* barra de garantias: empilhar ícone + texto, centralizado (quadro 2x2) */
  .trust-grid { gap: 28px 16px; }
  .trust-item { flex-direction: column; text-align: center; gap: 12px; }
  .trust-item h4 { font-size: 0.88rem; }
}
