/* Cavalcante Construções — estilo do site institucional */

:root {
  --navy: #0b1b2e;
  --navy-deep: #081422;
  --navy-soft: #12233a;
  --steel: #2e6fa3;
  --steel-light: #4d8bc0;
  --cream: #f4f2ed;
  --cream-alt: #ece8e0;
  --amber: #e5a94a;
  --amber-soft: rgba(229, 169, 74, 0.16);
  --silver: #b9c0c9;
  --text-dark: #1b222c;
  --text-muted: #5a6472;
  --text-on-navy: #eef1f5;
  --text-on-navy-muted: #a9b4c2;
  --radius: 4px;
  --shadow-card: 0 12px 28px -16px rgba(11, 27, 46, 0.35);
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

@media (min-width: 961px) {
  body {
    zoom: 0.9;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: #eeb95f;
  box-shadow: 0 10px 20px -10px rgba(229, 169, 74, 0.6);
}
.btn-ghost {
  background: transparent;
  border-color: currentColor;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 27, 46, 0.0);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: var(--navy);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  flex-shrink: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 3px;
  transition: height 0.25s ease;
}
.is-scrolled .brand-logo {
  height: 36px;
}
.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-on-navy);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  border-color: var(--amber);
}
.header-cta {
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-on-navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--text-on-navy);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.35) 0%, rgba(8, 20, 34, 0.2) 35%, rgba(8, 20, 34, 0.55) 100%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 120px 0 64px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 50%;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(8, 20, 34, 0.55);
}
.hero-lede {
  max-width: 50%;
  font-size: 1.05rem;
  color: var(--text-on-navy);
  text-shadow: 0 1px 10px rgba(8, 20, 34, 0.65);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}
.hero-actions .btn-ghost {
  color: var(--text-on-navy);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-dark {
  background: var(--navy);
  color: var(--text-on-navy);
  border-top: 4px solid var(--amber);
  box-shadow: 0 -6px 16px -6px rgba(229, 169, 74, 0.5);
}
.section-alt {
  background: var(--cream-alt);
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
  color: var(--navy);
}
.section-dark .section-title {
  color: var(--text-on-navy);
}
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Grid genérico ---------- */
.grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

/* ---------- Serviços ---------- */
.grid-services {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: #fff;
  border: 1px solid rgba(11, 27, 46, 0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--amber-soft);
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card--photo {
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card--photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 28px -16px rgba(1, 30, 72, 0.35);
}
.service-photo {
  width: 100%;
  height: 80%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.service-card--photo .service-body {
  height: 20%;
  flex-shrink: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--navy);
}
.service-card--photo .service-body h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-card--photo .service-body .card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.service-card--photo .service-body .card-link:hover {
  background: var(--amber);
  transform: translateX(2px);
}
.card-link-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.card-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--steel);
  border-bottom: 1px solid transparent;
}
.card-link:hover {
  border-color: var(--steel);
}

/* ---------- Diferenciais ---------- */
.grid-diff {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.diff-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 12px;
  transition: transform 0.25s ease;
}
.diff-item:hover {
  transform: translateY(-4px);
}
.diff-item h3 {
  font-size: 1.15rem;
  margin: 6px 0 0;
  max-width: 20ch;
}
.diff-item p {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-on-navy-muted, rgba(255, 255, 255, 0.7));
  margin: 0;
  max-width: 26ch;
}
.diff-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-soft);
}
.diff-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Processo ---------- */
.steps {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}
.step-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 2px solid var(--amber);
}
.step-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-number {
  display: inline-flex;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid var(--amber);
  margin-right: 10px;
}
.step h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
  max-width: 26ch;
}

/* ---------- Sobre nós ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: stretch;
}
.about-media {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content p {
  color: var(--text-muted);
}
.quote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--amber);
  background: var(--cream-alt);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
/* ---------- Galeria ---------- */
.grid-gallery {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item-tall {
  grid-row: span 2;
}
.gallery-toggle-wrap {
  display: none;
  justify-content: center;
  margin-top: 28px;
}
.gallery-toggle-wrap .btn-ghost {
  color: var(--text-on-navy);
}

/* ---------- Contato ---------- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(11, 27, 46, 0.1);
  padding-bottom: 12px;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
}
.contact-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-list a {
  font-weight: 600;
  color: var(--navy);
}
.contact-list a:hover {
  color: var(--steel);
}
.contact-form {
  display: grid;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(11, 27, 46, 0.08);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.contact-form-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid rgba(11, 27, 46, 0.18);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text-dark);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}
.contact-form button {
  margin-top: 20px;
  justify-self: start;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-navy-muted);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
}
.footer-logo {
  height: 40px;
  margin-bottom: 10px;
  border-radius: 3px;
}
.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: 0;
}
.footer-col-title {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-navy);
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-on-navy-muted);
}
.footer-nav a:hover {
  color: var(--amber);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
}
.footer-contact a,
.footer-contact > span:not(.footer-col-title) {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-navy-muted);
}
.footer-contact a:hover {
  color: var(--amber);
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--text-on-navy-muted);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact a:hover svg {
  stroke: var(--amber);
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-on-navy-muted);
  stroke-width: 1.6;
}
.footer-social a:hover svg {
  stroke: var(--amber);
}
.footer-social svg.footer-icon-wa {
  fill: var(--text-on-navy-muted);
  stroke: none;
}
.footer-social a:hover svg.footer-icon-wa {
  fill: var(--amber);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.footer-copy,
.footer-credit {
  margin: 0;
  font-size: 0.8rem;
}
.footer-credit a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover {
  color: #f0cb6b;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.45);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 34, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 40px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
@media (max-width: 720px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    max-height: calc(100svh - 100%);
    overflow-y: auto;
    background: var(--navy);
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    box-shadow: 0 16px 24px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .header-cta {
    display: none;
  }
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-diff {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .about-grid,
  .contato-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    order: -1;
    aspect-ratio: 16 / 10;
  }
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-nav,
  .footer-contact {
    align-items: center;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .hero h1,
  .hero-lede {
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 9vw, 3.6rem);
  }
  .hero-lede {
    font-size: 1.15rem;
  }
  .grid-services {
    grid-template-columns: 1fr;
  }
  .service-card--photo {
    aspect-ratio: 3 / 2;
  }
  .grid-diff {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .grid-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-item-tall {
    grid-row: span 1;
  }
  .grid-gallery .gallery-item:nth-child(n + 7) {
    display: none;
  }
  .grid-gallery.is-expanded .gallery-item {
    display: block;
  }
  .gallery-toggle-wrap {
    display: flex;
  }
  .hero-content {
    padding-top: 120px;
  }
}
