/* =============================================
   X-Way Construções — Azul & Branco
   ============================================= */

:root {
  --blue-900: #0a1f3d;
  --blue-800: #0f2d52;
  --blue-700: #1a4480;
  --blue-600: #1e56a0;
  --blue-500: #2563b8;
  --blue-100: #e8f0fb;
  --blue-50:  #f4f8fd;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text:     #1e293b;
  --text-light: #64748b;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1140px;
  --header: 72px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(10, 31, 61, 0.06), 0 8px 24px rgba(10, 31, 61, 0.08);
  --shadow-lg: 0 4px 6px rgba(10, 31, 61, 0.04), 0 20px 48px rgba(10, 31, 61, 0.1);
  --ease: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease), background var(--ease), border-color var(--ease); }
ul { list-style: none; }

.wrap {
  width: min(var(--wrap), 90vw);
  margin-inline: auto;
}

/* ---- Typography ---- */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.6rem;
}

.label--light { color: rgba(255,255,255,0.7); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: 0.5rem;
}

.section-sub--light { color: rgba(255,255,255,0.75); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.btn--blue {
  background: var(--blue-700);
  color: var(--white);
}

.btn--blue:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 68, 128, 0.3);
}

.btn--outline {
  background: transparent;
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.btn--outline:hover {
  background: var(--blue-50);
}

.btn--white {
  background: var(--white);
  color: var(--blue-800);
}

.btn--white:hover {
  background: var(--blue-50);
}

.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img { height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-700);
}

.nav-cta {
  background: var(--blue-700) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--blue-800) !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: all var(--ease);
}

.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero {
  padding-top: var(--header);
  background: var(--white);
  overflow: hidden;
}

.hero__wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: calc(100vh - var(--header));
  align-items: center;
  gap: 3rem;
}

.hero__text {
  padding: 4rem 0;
}

.hero__text h1 strong {
  color: var(--blue-700);
}

.hero__slogan {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--blue-600);
  margin: 0.75rem 0 1.25rem;
}

.hero__desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__media {
  position: relative;
  height: 100%;
  min-height: 480px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__media-shape {
  position: absolute;
  top: 0; left: 0;
  width: 35%;
  height: 100%;
  background: var(--blue-800);
  clip-path: polygon(0 0, 100% 0, 30% 100%, 0 100%);
  z-index: -1;
}

/* ---- Sections ---- */
.section {
  padding: 5.5rem 0;
}

.section--gray { background: var(--gray-50); }

.section--blue {
  background: var(--blue-800);
  color: var(--white);
}

.section--blue h2,
.section--blue h3 { color: var(--white); }

.section-head {
  margin-bottom: 3rem;
}

.section-head--light { text-align: center; }
.section-head--light .section-sub { margin-inline: auto; }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-text strong { color: var(--text); }

.about-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-box h3 {
  color: var(--blue-800);
  margin-bottom: 1.25rem;
}

.about-box li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.about-box li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--blue-600);
  border-radius: 50%;
}

/* ---- Features ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background var(--ease);
}

.feature:hover {
  background: rgba(255,255,255,0.12);
}

.feature__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.feature p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ---- Services ---- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 1.5rem;
}

.service-card__body h3 {
  margin-bottom: 0.4rem;
}

.service-card__body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.service-card__body a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-600);
}

.service-card__body a:hover { color: var(--blue-800); }

/* ---- Split (terceirização) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.split__text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.split__text .tags {
  font-size: 0.88rem;
  color: var(--blue-600);
  font-weight: 500;
  margin-top: 1rem;
}

.split__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.split__imgs img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 200px;
  box-shadow: var(--shadow);
}

.split__imgs img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 280px;
}

.benefits {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.benefits h3 {
  text-align: center;
  color: var(--blue-800);
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.benefits__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---- Budget ---- */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.budget-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.budget-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.budget-card__body {
  padding: 1.5rem;
}

.budget-card__body h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.budget-card__body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 0.75rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery__main {
  grid-row: span 2;
  height: 100%;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 { color: var(--white); }

.contact-info__desc {
  color: rgba(255,255,255,0.75);
  margin: 1rem 0 2rem;
  font-size: 1rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}

.contact-item a,
.contact-item span {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-item a:hover { color: var(--blue-100); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 184, 0.12);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 90px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2rem;
}

.form-ok {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  color: #065f46;
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Footer ---- */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer img { margin-bottom: 0.5rem; opacity: 0.9; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__links a:hover { color: var(--white); }

.footer__legal p { margin-bottom: 0.2rem; }

/* ---- WhatsApp ---- */
.wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--ease);
}

.wa svg { width: 28px; height: 28px; color: #fff; }
.wa:hover { transform: scale(1.08); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero__wrap,
  .about-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__wrap { min-height: auto; }

  .hero__text { padding: 3rem 0 1rem; }

  .hero__media {
    min-height: 320px;
    order: -1;
  }

  .hero__media img {
    clip-path: none;
    border-radius: var(--radius);
  }

  .hero__media-shape { display: none; }

  .features,
  .services,
  .budget-grid,
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery__main { grid-row: span 1; height: 220px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    top: var(--header);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--ease);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav-cta { margin-left: 0 !important; margin-top: 0.5rem; }

  .menu-btn { display: flex; }

  .features,
  .services,
  .budget-grid,
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .field-row { grid-template-columns: 1fr; }

  .split__imgs { grid-template-columns: 1fr; }
  .split__imgs img:first-child { grid-row: span 1; min-height: 200px; }

  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 200px; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { align-items: center; }

  .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
