/* ============================================================
   SG Serralharia Civil — estilos base
   Paleta industrial: aço/grafite + acento laranja
   ============================================================ */

:root {
  --bg:        #0a1626;   /* navy profundo */
  --bg-alt:    #0e1d33;
  --surface:   #13263f;
  --border:    #214066;
  --text:      #eaf1f9;
  --text-mut:  #9db2cb;
  --primary:   #ff8a1e;   /* laranja quente "ferro em brasa" */
  --primary-d: #e2700f;
  --steel:     #3a7bc4;   /* azul-aço (acento secundário) */
  --steel-l:   #5aa0e6;
  --radius:    12px;
  --maxw:      1140px;
  --shadow:    0 10px 30px rgba(0, 0, 0, .4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .5px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #1a1205; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 58px;
  width: auto;
  display: block;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.logo-img--sm { height: 46px; padding: 5px 9px; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: var(--text-mut); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary { color: #1a1205; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* foto de fundo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../site/media/hero-soldador.jpg") center 35% / cover no-repeat;
  z-index: 0;
}
/* sobreposição navy para legibilidade do texto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 38, .90) 0%, rgba(10, 22, 38, .60) 40%, rgba(10, 22, 38, .12) 78%, rgba(10, 22, 38, 0) 100%),
    linear-gradient(0deg, rgba(10, 22, 38, .55) 0%, rgba(10, 22, 38, 0) 45%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero-lead { color: #d4deea; }
.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin-bottom: 1.2rem; }
.hero-lead { color: var(--text-mut); font-size: 1.15rem; max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== Secções ===== */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.section-sub { color: var(--text-mut); font-size: 1.05rem; }

/* ===== Cards de serviços ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card-icon {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--bg-alt);
  border-radius: 10px;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card p { color: var(--text-mut); }

/* ===== Galeria / Portefólio ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-ph {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--text-mut);
  font-size: .95rem;
  background:
    repeating-linear-gradient(45deg, #1a2029 0 12px, #1c222b 12px 24px);
}
.gallery-item figcaption {
  padding: .9rem 1.1rem;
  font-weight: 500;
  font-size: .95rem;
  border-top: 1px solid var(--border);
}

/* ===== Sobre ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.about-text p { color: var(--text-mut); margin-bottom: 1.4rem; }
.check-list { list-style: none; display: grid; gap: .7rem; }
.check-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--primary);
  font-weight: 700;
}
.about-stats { display: grid; gap: 1rem; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  color: var(--primary);
  line-height: 1;
}
.stat-label { color: var(--text-mut); font-size: .92rem; }

/* ===== Contactos ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}
.contact-box .contact-list { margin-bottom: auto; }
.contact-box .btn-whatsapp { margin-top: 1.8rem; }
.contact-map {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
}
/* camada de fallback (visível se o mapa não carregar) */
.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
}
.map-fallback .map-pin { font-size: 2rem; }
.map-fallback small { color: var(--text-mut); font-weight: 400; font-size: .85rem; }
.map-fallback:hover { color: var(--primary); }
.contact-map iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  background: transparent;
  filter: grayscale(.2) contrast(1.05);
}
.contact-list { list-style: none; display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list a:hover { color: var(--primary); }

/* botão WhatsApp na secção */
.btn-whatsapp {
  width: 100%;
  background: #25d366;
  color: #06351c;
}
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-whatsapp svg { width: 22px; height: 22px; }

/* botão flutuante WhatsApp (acompanha o scroll) */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37, 211, 102, .5); }
.whatsapp-float svg { width: 34px; height: 34px; }

@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand p { color: var(--text-mut); font-size: .92rem; }
.footer-legal { text-align: right; }
.footer-copy { color: var(--text-mut); font-size: .88rem; }
.footer-credit { color: var(--text-mut); font-size: .82rem; margin-top: .25rem; }
.footer-credit::before { content: "—  "; color: var(--primary); }

/* ===== Portefólio: brevemente ===== */
.coming-soon {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.coming-soon__badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.4rem;
  color: var(--primary);
  padding: .5rem 1.4rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.coming-soon p { color: var(--text-mut); }

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 24px 1.5rem;
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav a.btn-primary { margin-top: .8rem; border: 0; }
  .nav-toggle { display: flex; }
  .about-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .whatsapp-float { width: 54px; height: 54px; right: 22px; bottom: 26px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
  .footer-legal { text-align: left; }
}
