/* ===================================================================
   Castello — Engenharia e Pré-Moldados
   Paleta conservadora: carvão + concreto neutro + latão fosco
=================================================================== */

:root {
  --charcoal:   #22272e;   /* texto e seções escuras */
  --charcoal-2: #2d343d;
  --slate:      #4a525c;   /* texto secundário */
  --concrete:   #f4f3f0;   /* fundo claro */
  --concrete-2: #eceae4;   /* fundo alternado */
  --line:       #e2e0d9;   /* divisórias */
  --brass:      #a87c3d;   /* acento fosco (latão) */
  --brass-dk:   #8c6630;
  --white:      #ffffff;

  --maxw: 1140px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(34,39,46,.06), 0 1px 2px rgba(34,39,46,.04);
  --shadow-md: 0 12px 32px rgba(34,39,46,.10);
  --ease: cubic-bezier(.22,.61,.36,1);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--concrete);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px;
  letter-spacing: .01em; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn-accent { background: var(--brass); color: var(--white); }
.btn-accent:hover { background: var(--brass-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(34,39,46,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { background: var(--charcoal); border-bottom-color: rgba(255,255,255,.1); box-shadow: 0 4px 18px rgba(0,0,0,.28); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 8px;
  background: var(--brass); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 24px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; letter-spacing: .02em; color: var(--white); }
.brand-text em { font-style: normal; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #aeb4bb; }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: #c9ced4; position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brass); transition: width .25s var(--ease); }
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header-cta { padding: 10px 20px; font-size: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; background: var(--charcoal); border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); }
.mobile-nav.open { max-height: 360px; }
.mobile-nav a { padding: 15px 24px; border-top: 1px solid rgba(255,255,255,.08); font-weight: 500; color: #c9ced4; }

/* ===== Hero ===== */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(180deg, rgba(34,39,46,.86), rgba(34,39,46,.93)),
    radial-gradient(120% 120% at 80% 0%, #353c45 0%, #22272e 60%);
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin: 0 0 18px; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.08; margin: 0 0 22px; letter-spacing: -.01em; }
.hero-title span { color: #d8c9ae; }
.hero-lead { font-size: 1.18rem; color: #cdd2d8; max-width: 580px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; margin: 52px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font-size: 1.4rem; font-family: var(--serif); font-weight: 600; color: var(--white); }
.hero-badges span { font-size: 13px; color: #aab1b9; letter-spacing: .03em; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--concrete-2); }
.section-head { max-width: 720px; margin: 0 0 52px; }
.section-tag { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dk); font-weight: 700; margin: 0 0 14px; }
.section-tag.light { color: var(--brass); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--slate); }
.lead.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .lead.center { max-width: 620px; }
p { margin: 0 0 16px; }

.grid-2 { display: grid; grid-template-columns: 1.2fr .9fr; gap: 56px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ===== Cards ===== */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.empresa-intro, .split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin: 0 0 48px; }
.empresa-intro .section-title, .split-head .section-title { margin: 0; }
.empresa-intro .lead, .split-head .lead { margin: 0; }
.owner-card { padding: 36px 40px; display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.owner-photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--brass), var(--shadow-sm); }
.owner-main { min-width: 0; }
.owner-role { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dk); font-weight: 700; margin: 0 0 6px; }
.owner-name { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin: 0 0 8px; }
.owner-bio { color: var(--slate); font-size: 1rem; margin: 0; }
.owner-facts { list-style: none; margin: 0; padding: 0 0 0 40px; border-left: 1px solid var(--line); display: grid; gap: 14px; }
.owner-facts li { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--brass); font-size: .98rem; }
.owner-facts span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }

.service-card { padding: 34px 30px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d6d3c9; }
.service-icon { width: 54px; height: 54px; border-radius: 10px; background: var(--concrete-2); color: var(--brass-dk); display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 10px; }
.service-card p { color: var(--slate); font-size: 1rem; margin: 0; }

/* ===== Produtos ===== */
.product-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.product-grid li {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 20px; font-weight: 500; position: relative; padding-left: 46px;
  transition: border-color .2s, transform .2s;
}
.product-grid li::before {
  content: ""; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 2px; background: var(--brass);
}
.product-grid li:hover { border-color: var(--brass); transform: translateX(2px); }

/* ===== Galeria ===== */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.g-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--concrete-2); min-width: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(26,30,35,.82), rgba(26,30,35,0));
  color: var(--white); font-size: .98rem; font-weight: 500; line-height: 1.35;
}
.g-item figcaption span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #e2c48f; font-weight: 700; margin-bottom: 3px; }
.g-feature { grid-column: span 8; height: 460px; }
.g-side { grid-column: span 4; height: 460px; }
.g-piece { grid-column: span 3; height: 340px; }
.g-muro img { object-position: 50% 52%; }
.g-piece.g-carga img { object-position: 50% 45%; }
.g-piece img { object-position: 50% 55%; }
.inline-link { color: var(--brass-dk); font-weight: 600; white-space: nowrap; }
.inline-link:hover { text-decoration: underline; }

/* ===== Atendimento ===== */
.region-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.region-list li { padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-weight: 500; position: relative; padding-left: 44px; }
.region-list li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 12px;
  border: 2px solid var(--brass); border-radius: 50% 50% 50% 0; transform: translateY(-60%) rotate(45deg);
}
.region-list em { font-style: normal; color: var(--slate); font-weight: 400; font-size: .9em; }

/* ===== Contato ===== */
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .22s var(--ease), border-color .22s, background .22s;
}
.contact-card:not(.static):hover { transform: translateY(-3px); border-color: var(--brass); background: #333a43; }
.contact-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.contact-value { font-size: 1.12rem; font-weight: 600; }
.contact-cta { font-size: .92rem; color: #aab1b9; margin-top: auto; }

/* ===== Footer ===== */
.site-footer { background: #1a1e23; color: #aab1b9; padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--white); font-size: 1rem; display: block; }
.footer-brand p { margin: 4px 0 0; font-size: .9rem; font-style: italic; }
.footer-note { font-size: .85rem; text-align: right; margin: 0; line-height: 1.7; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .g-item img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .empresa-intro, .split-head { grid-template-columns: 1fr; gap: 18px; }
  .owner-card { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .owner-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .region-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-list li:first-child { grid-column: 1 / -1; }
  .g-feature { grid-column: 1 / -1; height: 380px; }
  .g-side { grid-column: 1 / -1; height: 380px; }
  .g-piece { grid-column: span 1; height: 300px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-badges { gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .region-list { grid-template-columns: 1fr; }
  .g-feature, .g-side, .g-piece { grid-column: 1 / -1; height: 320px; }
  .owner-card { grid-template-columns: 1fr; justify-items: start; padding: 28px 24px; }
  .owner-photo { width: 120px; height: 120px; }
  .owner-facts { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
}
