/*--------------------------------------------------------------
# Arwil Engenharia — folha de estilos principal
# Paleta: laranja #feb900 + navy #1c2841
--------------------------------------------------------------*/
:root {
  --navy: #1c2841;
  --navy-dark: #111a2c;
  --amber: #feb900;
  --amber-text: #a97a00;
  --whatsapp: #22c15e;
  --bg-alt: #f7f5f1;
  --text: #26303f;
  --muted: #5b6472;
  --muted-light: #8a93a3;
  --line: #e8e4dc;
  --font-body: 'Barlow', Arial, Helvetica, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--amber-text);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: #7d5a00;
}

h1,
h2,
h3 {
  margin: 0;
}

p {
  margin: 0;
}

section {
  scroll-margin-top: 84px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/*--------------------------------------------------------------
# Botões
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
}

.btn-lg {
  font-size: 16px;
  padding: 17px 32px;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}

.btn-primary:hover {
  background: #e5a700;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  border-radius: 6px;
  padding: 16px 28px;
  font-size: 16px;
  max-width: 320px;
  margin-top: 8px;
}

.btn-whatsapp:hover {
  background: #1ba34f;
  color: #ffffff;
}

.btn-block {
  width: 100%;
  padding: 17px 24px;
  font-size: 16px;
  border-radius: 6px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/*--------------------------------------------------------------
# Kicker (rótulo de seção)
--------------------------------------------------------------*/
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber-text);
}

.kicker-bar {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--amber);
}

.kicker-light {
  color: var(--amber);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  padding: 18px 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: rgba(28, 40, 65, 0.97);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 0;
}

.site-nav ul a:hover,
.site-nav ul a.active {
  color: #ffffff;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.3s;
}

.site-nav ul a:hover::after,
.site-nav ul a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 12px 22px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle .icon-close {
  display: none;
}

body.nav-open .nav-toggle .icon-open {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 22, 38, 0.92) 8%, rgba(15, 22, 38, 0.55) 48%, rgba(15, 22, 38, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 90px;
  padding-bottom: 60px;
}

.hero h1 {
  max-width: 700px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.hero h1 span {
  color: var(--amber);
}

.hero p {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

/*--------------------------------------------------------------
# Estatísticas
--------------------------------------------------------------*/
.stats {
  background: var(--navy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 52px;
  padding-bottom: 52px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat+.stat {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--amber);
}

.stat-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/*--------------------------------------------------------------
# Seções
--------------------------------------------------------------*/
.section {
  padding: 96px 0;
  overflow: hidden;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 48px;
}

.section-head .kicker {
  margin-bottom: 14px;
}

.section-head h2,
.about-content h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy);
}

.section-lead {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/*--------------------------------------------------------------
# Serviços
--------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(28, 40, 65, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/*--------------------------------------------------------------
# Sobre
--------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: center;
}

.about-media {
  position: relative;
  padding: 0 0 32px 32px;
}

.about-media-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  background: var(--amber);
  border-radius: 6px;
}

.about-media img {
  position: relative;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.about-badge {
  position: absolute;
  right: -16px;
  bottom: 0;
  background: var(--navy);
  color: #ffffff;
  border-radius: 6px;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-badge-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--amber);
}

.about-badge-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.checklist svg {
  flex-shrink: 0;
  color: var(--amber);
}

/*--------------------------------------------------------------
# Projetos
--------------------------------------------------------------*/
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid #e0dbd2;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(28, 40, 65, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(28, 40, 65, 0.12);
}

.project-card.hidden {
  display: none;
}

.project-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--navy);
  cursor: pointer;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
}

.project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
}

.project-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}

.project-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted-light);
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #efece6;
}

.project-count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted-light);
}

.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-text);
  cursor: pointer;
  transition: color 0.25s, gap 0.25s;
}

.project-link:hover {
  color: #7d5a00;
  gap: 10px;
}

/*--------------------------------------------------------------
# Clientes
--------------------------------------------------------------*/
.clients {
  padding: 72px 0;
}

.clients-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.clients-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted-light);
}

.clients-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 64px;
}

.clients-row img {
  height: 52px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}

.clients-row img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/*--------------------------------------------------------------
# Contato
--------------------------------------------------------------*/
.contact {
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info h2 {
  color: #ffffff;
}

.contact-lead {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-row a {
  color: rgba(255, 255, 255, 0.9);
}

.contact-row a:hover {
  color: var(--amber);
}

.contact-row-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
}

.contact-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--amber);
}

.contact-jobs {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-jobs h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.contact-jobs p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.contact-jobs a {
  color: var(--amber);
}

/* Formulário */
.contact-form-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 40px 38px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  color: var(--navy);
}

.form-lead {
  margin: 6px 0 20px;
  font-size: 14px;
  color: var(--muted-light);
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #f6f4f0;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field textarea {
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a3a9b4;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(254, 185, 0, 0.2);
}

#notice {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
}

#notice.success {
  display: block;
  background: #e8f7ee;
  border: 1px solid #b5e3c6;
  color: #14683a;
}

#notice.error {
  display: block;
  background: #fdeeee;
  border: 1px solid #f2c4c4;
  color: #9c2121;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding-top: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  align-self: flex-start;
}

.footer-brand p {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bar .dot {
  color: var(--amber);
}

.footer-domain {
  color: rgba(255, 255, 255, 0.35);
}

/*--------------------------------------------------------------
# Botão flutuante de WhatsApp
--------------------------------------------------------------*/
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #ffffff;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.25s;
}

.whatsapp-fab:hover {
  background: #1ba34f;
  color: #ffffff;
  transform: scale(1.08);
}

/*--------------------------------------------------------------
# Responsivo
--------------------------------------------------------------*/
@media (max-width: 1024px) {

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 998;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: rgba(17, 26, 44, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 26px;
  }

  .site-nav ul a {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 999;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-media {
    max-width: 560px;
  }

  .projects-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .stat-number {
    font-size: 34px;
  }

  .stat-label {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .projects-grid,
  .services-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-media img {
    height: 300px;
  }

  .about-badge {
    right: 0;
  }

  .contact-form-card {
    padding: 28px 22px;
  }

  .clients-row {
    gap: 36px;
  }

  .clients-row img {
    height: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
