/* ============================================================
   F. LIMA — Franlima Construções · Stylesheet
   Dark theme + orange accent · 2026
   ============================================================ */

:root {
  /* Paleta — navy institucional alinhado ao logo F. LIMA (#0b3a66) */
  --brand-navy:   #0b3a66;          /* azul do logo, referência exata */
  --bg:           #08172b;          /* navy mais escuro pro fundo */
  --bg-2:         #0d1f3a;
  --surface:      #102544;
  --surface-2:    #15315a;
  --border:       rgba(255,255,255,.08);
  --border-hi:    rgba(255,255,255,.16);
  --txt:          #e6ecf5;
  --txt-mid:      #93a8c4;
  --txt-dim:      #5d7392;
  --accent:       #f5a623;          /* laranja construção — combo clássico azul+laranja */
  --accent-2:     #ff8a00;
  --accent-soft:  rgba(245,166,35,.14);
  --good:         #10b981;

  /* Tipografia */
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaços */
  --wrap: 1240px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
  --sh-md: 0 10px 25px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.25);
  --sh-glow: 0 0 30px rgba(245,166,35,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Helpers */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.grad {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: .75rem 1rem;
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 9999; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: -.01em;
  transition: transform .15s ease, background .2s ease, box-shadow .25s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1a0e00;
  box-shadow: 0 6px 18px rgba(245,166,35,.35);
}
.btn--cta:hover { box-shadow: 0 10px 28px rgba(245,166,35,.5), 0 0 0 1px rgba(255,255,255,.08) inset; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--txt);
  border-color: var(--border-hi);
}
.btn--ghost:hover { background: rgba(255,255,255,.04); border-color: var(--accent); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8,23,43,.55);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}
.nav.is-scrolled {
  background: rgba(8,23,43,.88);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .65rem;
}
.brand { display: inline-flex; align-items: center; color: var(--txt); }
.brand__logo {
  display: block;
  height: 84px;
  width: auto;
  transition: transform .25s ease, filter .25s ease;
}
.brand:hover .brand__logo { transform: translateY(-1px); filter: drop-shadow(0 2px 10px rgba(245,166,35,.4)); }
@media (max-width: 720px) {
  .brand__logo { height: 60px; }
}

.menu { margin-left: auto; display: flex; gap: 1.5rem; }
.menu a {
  font-size: .92rem; color: var(--txt-mid); position: relative;
  transition: color .15s;
}
.menu a:hover { color: var(--txt); }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.menu a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  background: transparent; border: 1px solid var(--border-hi);
  border-radius: 8px; padding: .5rem;
  flex-direction: column; gap: 4px;
}
.burger span { width: 22px; height: 2px; background: var(--txt); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========================= HERO ========================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% 100%, rgba(11,58,102,.45) 0%, transparent 60%),
    radial-gradient(1200px 600px at 70% 0%, #15315a 0%, #08172b 60%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .45;
  animation: float 12s ease-in-out infinite;
}
.hero__blob--a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(245,166,35,.6), transparent 70%);
  top: -120px; right: -80px;
}
.hero__blob--b {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,138,0,.45), transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

.hero__inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--txt-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .45rem .9rem;
  border-radius: 999px;
  letter-spacing: .01em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
  50%      { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 1.4rem 0 1.2rem;
  max-width: 16ch;
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--txt-mid);
  max-width: 60ch;
  margin: 0 0 2rem;
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: .9rem;
}
.hero__scroll {
  margin-top: 4rem;
  display: inline-flex; align-items: center; gap: .8rem;
  color: var(--txt-dim);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero__scroll span {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
  animation: dash 2s ease-in-out infinite;
}
@keyframes dash {
  0%, 100% { transform: scaleX(.4); transform-origin: left; }
  50% { transform: scaleX(1); }
}

/* ========================= STATS ========================= */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 2.2rem;
}
.stat {
  text-align: center;
  padding-inline: 1rem;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px;
  background: var(--border);
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--txt);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat__lbl {
  display: block;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--txt-mid);
}

/* ========================= SECTIONS ========================= */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 3rem;
}
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.section__head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.section__head p {
  color: var(--txt-mid);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  margin: 0;
}

/* ========================= CARDS (Especialidade) ========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,166,35,.0) 0%, rgba(245,166,35,.0) 100%);
  transition: background .3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,.4);
  box-shadow: var(--sh-glow);
}
.card:hover::before {
  background: linear-gradient(135deg, rgba(245,166,35,.06) 0%, rgba(245,166,35,0) 60%);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.015em;
  margin: 0 0 .6rem;
}
.card p { color: var(--txt-mid); font-size: .95rem; margin: 0 0 1rem; }
.card__tag {
  display: inline-block;
  font-size: .76rem;
  font-weight: 500;
  color: var(--txt-dim);
  letter-spacing: .02em;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px dashed var(--border-hi);
  text-transform: lowercase;
}

/* ========================= SEGMENTS (Obras) ========================= */
.segs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.seg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex; flex-direction: column;
  gap: .8rem;
  transition: transform .25s ease, border-color .25s ease, background .3s ease;
  color: var(--txt);
}
.seg--wide { grid-column: span 4; }
.seg:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
}
.seg__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: -.02em;
}
.seg h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: -.015em;
}
.seg p { color: var(--txt-mid); font-size: .94rem; margin: 0; flex-grow: 1; }
.seg__go {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
  transition: gap .2s;
}
.seg:hover .seg__go { letter-spacing: .02em; }

/* ========================= BENTO (Portfolio) ========================= */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.bento__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: transform .35s ease, border-color .25s ease;
}
.bento__item:hover {
  transform: scale(1.015);
  border-color: rgba(245,166,35,.4);
}
.bento__item--xl { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }

.ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: end start;
  padding: 1.4rem;
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: -.005em;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ph span {
  position: relative; z-index: 2;
  padding: .4rem .7rem;
  background: rgba(8,23,43,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,23,43,.6) 100%);
  z-index: 1;
}
/* Placeholders animados — substituir por fotos reais */
.ph--epoxi      { background: linear-gradient(135deg, #1b4373 0%, #0d2748 50%, #08172b 100%), repeating-linear-gradient(45deg, rgba(245,166,35,.04) 0 10px, transparent 10px 20px); }
.ph--porcelanato{ background: linear-gradient(120deg, #2c5286 0%, #112543 100%); }
.ph--fachada    { background: linear-gradient(135deg, #4a3a28 0%, #2a1f18 100%); }
.ph--reforma    { background: linear-gradient(160deg, #1b4373 0%, #3a2a1a 100%); }
.ph--madeira    { background: linear-gradient(140deg, #3a2a1a 0%, #5a3a20 100%); }
.ph--acm        { background: linear-gradient(135deg, #0d2748 0%, #1b4373 50%, #2c5286 100%); }

/* ========================= STEPS ========================= */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
}
.step__n {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 .55rem;
  letter-spacing: -.015em;
}
.step p { color: var(--txt-mid); font-size: .92rem; margin: 0; }

/* ========================= CONTATO ========================= */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contato .kicker { text-align: left; }
.contato h2 { text-align: left; margin-top: .6rem; }
.contato > .wrap > div > p { text-align: left; }

.contato__list {
  list-style: none;
  margin: 1.8rem 0 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 1.2rem;
}
.contato__list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}
.contato__list .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contato__list strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--txt-mid);
  margin-bottom: .25rem;
}
.contato__list a:hover { color: var(--accent); }
.contato__list small { color: var(--txt-dim); display: block; font-size: .82rem; margin-top: .15rem; }

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  gap: 1.1rem;
}
.form label { display: flex; flex-direction: column; gap: .4rem; }
.form label span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--txt-mid);
}
.form input, .form select, .form textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--txt);
  font: inherit;
  font-size: .95rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.form button { align-self: flex-start; }
.form__hint { color: var(--txt-dim); font-size: .82rem; }

/* ========================= FOOTER ========================= */
.foot {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
}
.foot__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
.foot__brand strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.foot__brand small { color: var(--txt-mid); font-size: .85rem; }
.foot__links {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  justify-content: flex-end;
}
.foot__links a { color: var(--txt-mid); font-size: .9rem; transition: color .15s; }
.foot__links a:hover { color: var(--accent); }
.foot__copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--txt-dim);
  text-align: center;
}

/* ========================= WHATSAPP FAB ========================= */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  z-index: 200;
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .5;
  animation: fabPulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ========================= REVEAL ANIMATIONS ========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .segs { grid-template-columns: repeat(2, 1fr); }
  .seg--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento__item--xl, .bento__item--wide { grid-column: span 2; }
  .bento__item--xl { grid-row: span 1; }
  .contato__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .menu { display: none; }
  .menu.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8,23,43,.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1rem var(--pad);
  }
  .menu.is-open a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .menu.is-open a:last-child { border-bottom: none; }
  .nav .btn--cta { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat + .stat::before { display: none; }
  .stat { padding-block: .8rem; border-bottom: 1px solid var(--border); }
  .stat:last-child, .stat:nth-last-child(2) { border-bottom: none; }
  .cards, .segs, .steps, .bento { grid-template-columns: 1fr; }
  .seg--wide { grid-column: auto; }
  .bento__item, .bento__item--xl, .bento__item--wide { grid-column: auto; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
  .hero { min-height: auto; padding-top: 7rem; }
}
