:root {
  --ink: #111827;
  --navy: #172033;
  --navy-2: #253045;
  --slate: #5b6574;
  --muted: #7a8492;
  --paper: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eceff3;
  --line: #dde2e8;
  --accent: #d99022;
  --accent-2: #f2b138;
  --success: #1f9d55;
  --shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 70%, var(--accent) 70%, var(--accent) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  color: var(--paper);
  background: var(--navy);
  box-shadow: inset 0 -4px 0 var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.brand-text {
  font-size: 1.04rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  color: var(--slate);
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.primary-nav a:hover {
  color: var(--navy);
  background: var(--surface);
}

.primary-nav a.active {
  color: var(--navy);
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(100deg, rgba(23, 32, 51, 0.98), rgba(23, 32, 51, 0.9)),
    var(--navy);
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 48px;
  padding: 66px 0 62px;
}

.hero h1,
.page-hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.05rem, 3.05vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.lead {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
  max-width: 680px;
}

.page-hero p,
.lead {
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 650px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-meta div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  color: var(--accent-2);
  font-size: 0.98rem;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--navy);
  background: var(--accent-2);
  box-shadow: 0 12px 24px rgba(217, 144, 34, 0.22);
}

.btn-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.hero-visual {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.98;
}

.section,
.page-hero {
  padding: 86px 0;
}

.page-hero {
  background:
    linear-gradient(180deg, #f9fafb, #ffffff);
  border-bottom: 1px solid var(--line);
}

.section-muted {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-intro-section {
  padding-top: 46px;
}

.about-page-hero {
  padding-bottom: 46px;
}

.section-kicker {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  max-width: none;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.28;
}

p {
  margin: 0 0 16px;
}

.service-grid,
.project-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.project-card,
.detail-card,
.info-panel,
.contact-info {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: none;
}

.service-card {
  position: relative;
  min-height: 205px;
  padding: 24px 24px 22px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 144, 34, 0.55);
  box-shadow: var(--shadow);
}

.service-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 42px;
  height: 3px;
  background: var(--accent);
}

.service-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  opacity: 0.82;
}

.service-card p,
.project-card p,
.detail-card p,
.contact-info p {
  color: var(--slate);
}

.split-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 54px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-list div {
  position: relative;
  min-height: 70px;
  padding: 18px 18px 16px 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
}

.feature-list div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
}

.project-card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.project-card div {
  padding: 20px 20px 22px;
}

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

.reference-card img {
  aspect-ratio: 4 / 3;
}

.reference-card div {
  padding: 18px 20px 20px;
}

.reference-card h3 {
  margin-bottom: 0;
}

.page-references {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.detail-card,
.info-panel {
  padding: 28px;
}

.detail-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 300px;
  padding: 30px 30px 26px;
  border-left: 0;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(217, 144, 34, 0));
}

.detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 144, 34, 0.45);
  box-shadow: var(--shadow);
}

.detail-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.detail-card p {
  margin-bottom: 0;
}

.detail-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--slate);
  list-style: none;
}

.detail-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
}

.detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 2px;
  background: var(--accent);
}

.info-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--slate);
}

.cta-band {
  padding: 58px 0;
  color: var(--paper);
  background: var(--navy);
}

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

.cta-inner h2 {
  max-width: 720px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: 24px;
  align-items: stretch;
}

.contact-info,
.map-panel {
  padding: 30px;
}

.contact-info h2 {
  margin-bottom: 22px;
}

.contact-info div {
  display: grid;
  gap: 4px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info strong {
  color: var(--navy);
}

.contact-info span {
  color: var(--slate);
}

.map-panel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.map-frame {
  overflow: hidden;
  height: 100%;
  min-height: 430px;
  background: var(--surface);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

.map-actions {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
  gap: 34px;
  padding: 52px 0 36px;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--paper);
}

.site-footer .brand-mark {
  background: var(--paper);
  color: var(--navy);
}

.site-footer h3 {
  color: var(--paper);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

.whatsapp-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  background: var(--success);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 12px;
  }

  .primary-nav a.active::after {
    left: 12px;
    right: auto;
    width: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-layout,
  .contact-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    display: grid;
  }

  .service-grid,
  .project-grid,
  .detail-grid,
  .page-projects,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .primary-nav {
    top: 72px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero-grid,
  .section,
  .page-hero {
    padding: 54px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .service-grid,
  .project-grid,
  .detail-grid,
  .page-projects,
  .footer-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .map-panel,
  .detail-card,
  .info-panel {
    padding: 22px;
  }

  .map-frame iframe {
    height: 300px;
  }

  .map-frame {
    min-height: 300px;
  }

  .whatsapp-button {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}
