:root {
  color-scheme: light;
  /* Santo Cristo palette: #000000, #B1935A, #816B43, #1D394B, #D9BF83, #FCF9F0 */
  --background: 45 67% 96%;
  --foreground: 0 0% 0%;
  --muted: 42 53% 68%;
  --muted-foreground: 203 44% 20%;
  --card: 45 67% 96%;
  --card-foreground: 0 0% 0%;
  --border: 39 32% 38%;
  --input: 39 32% 38%;
  --primary: 39 36% 52%;
  --primary-foreground: 45 67% 96%;
  --secondary: 203 44% 20%;
  --secondary-foreground: 0 0% 100%;
  --accent: 39 32% 38%;
  --ring: 39 36% 52%;
  --radius: 8px;
  --shadow: 0 22px 70px hsl(0 0% 0% / 0.18);
}

:root.dark {
  color-scheme: dark;
  --background: 0 0% 0%;
  --foreground: 45 67% 96%;
  --muted: 203 44% 14%;
  --muted-foreground: 40 44% 79%;
  --card: 203 44% 11%;
  --card-foreground: 45 67% 96%;
  --border: 39 32% 38%;
  --input: 39 32% 38%;
  --primary: 39 36% 52%;
  --primary-foreground: 0 0% 0%;
  --secondary: 203 44% 20%;
  --secondary-foreground: 45 67% 96%;
  --accent: 42 53% 68%;
  --ring: 39 36% 52%;
  --shadow: 0 22px 70px hsl(0 0% 0% / 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 16px 20px auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 12px 14px 12px 18px;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: var(--radius);
  background: hsl(var(--background) / 0.84);
  box-shadow: 0 10px 28px hsl(222 47% 11% / 0.08);
  backdrop-filter: blur(18px);
  transition:
    min-height 220ms ease,
    padding 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  padding-block: 8px;
  background: hsl(var(--background) / 0.94);
  box-shadow: 0 12px 36px hsl(0 0% 0% / 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  color: hsl(var(--primary-foreground));
  font-weight: 850;
  transition:
    width 220ms ease,
    height 220ms ease;
}

.site-header.is-scrolled .brand-mark {
  width: 48px;
  height: 48px;
}

.brand-mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.brand small {
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 6px;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  font-weight: 650;
  padding: 9px 12px;
}

.nav-links a:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 12px 30px hsl(var(--primary) / 0.24);
}

.button-secondary {
  border-color: hsl(0 0% 100% / 0.25);
  background: hsl(0 0% 100% / 0.13);
  color: white;
}

.icon-button {
  width: 44px;
  height: 44px;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.moon,
:root.dark .sun {
  display: none;
}

:root.dark .moon {
  display: block;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px 0 86px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, hsl(210 68% 8% / 0.9), hsl(210 68% 8% / 0.55) 46%, hsl(210 68% 8% / 0.05)),
    linear-gradient(0deg, hsl(210 68% 8% / 0.72), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-left: max(20px, calc((100% - 1140px) / 2));
  color: white;
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 7px 11px;
}

.hero .badge,
.badge-outline {
  border-color: hsl(0 0% 100% / 0.28);
  background: hsl(0 0% 100% / 0.12);
  color: white;
}

.eyebrow {
  color: hsl(var(--accent));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero p {
  max-width: 660px;
  color: hsl(210 40% 94%);
  font-size: 1.1rem;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.metric {
  padding: 28px 24px;
  border-right: 1px solid hsl(var(--border));
}

.metric:last-child {
  border-right: 0;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.metric span {
  margin-top: 8px;
  color: hsl(var(--muted-foreground));
  font-size: 0.94rem;
}

.section {
  padding: 96px 0;
}

.intro-section,
.equipment-section,
.projects-section {
  background: hsl(var(--muted));
}

.split,
.company-layout,
.equipment-layout,
.cta-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.split p,
.intro-copy p,
.section-heading p,
.equipment-layout p,
.company-item p,
.card p,
.project-row p,
.cta-content p {
  color: hsl(var(--muted-foreground));
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.intro-copy {
  display: grid;
  gap: 24px;
}

.intro-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: var(--shadow);
}

.intro-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.card,
.company-item,
.contact-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px hsl(222 47% 11% / 0.04);
}

.card {
  min-height: 260px;
  padding: 24px;
}

.card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 38px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-weight: 850;
}

.card-icon svg,
.location-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.equipment-panel {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: var(--shadow);
}

.equipment-panel img {
  width: 100%;
  height: 380px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: hsl(var(--muted));
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: hsl(var(--muted-foreground));
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid hsl(var(--accent));
  border-bottom: 2px solid hsl(var(--accent));
  transform: rotate(-45deg);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid hsl(var(--border));
}

.spec-grid span {
  padding: 18px;
  border-right: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.spec-grid span:nth-child(even) {
  border-right: 0;
}

.spec-grid span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.spec-grid strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 1.15rem;
}

.company-copy {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.company-list {
  display: grid;
  gap: 14px;
}

.company-item {
  padding: 22px;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.project-row article {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}

.project-row img {
  width: 100%;
  height: 260px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: hsl(var(--muted));
}

.project-row h3,
.project-row p {
  padding-inline: 20px;
}

.project-row h3 {
  margin-top: 20px;
}

.project-row p {
  padding-bottom: 22px;
}

@media (min-width: 1200px) {
  .container {
    width: min(1320px, calc(100% - 80px));
  }

  .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .project-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .card {
    padding: 20px;
  }

  .card h3,
  .project-row h3 {
    font-size: 1rem;
  }
}

.cta-section {
  padding: 96px 0;
  background:
    linear-gradient(90deg, hsl(210 68% 8% / 0.94), hsl(210 68% 8% / 0.78)),
    url("assets/construction-hauling.webp") center / cover;
  color: white;
}

.cta-content {
  align-items: center;
}

.cta-content h2 {
  max-width: 720px;
}

.cta-content p {
  color: hsl(210 40% 88%);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.location-card {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border: 1px solid hsl(0 0% 100% / 0.18);
  border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.1);
  backdrop-filter: blur(10px);
}

.location-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 6px;
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
}

.location-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-card h3 {
  color: white;
}

.location-card p {
  margin-bottom: 14px;
  color: hsl(45 48% 92%);
  font-size: 0.93rem;
}

.location-card a {
  color: hsl(var(--primary));
  font-weight: 850;
}

.location-card-empty {
  border-style: dashed;
  opacity: 0.86;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: hsl(var(--foreground));
}

.contact-card label {
  display: grid;
  gap: 7px;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid hsl(var(--input));
  border-radius: 6px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 12px 13px;
  outline: none;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.22);
}

.form-note {
  margin: 0;
  font-size: 0.84rem;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.footer-content p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    inset: 10px 10px auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    min-height: 74px;
    padding: 8px 10px;
  }

  .menu-toggle {
    display: flex;
    grid-column: 2;
  }

  .nav-links {
    position: fixed;
    top: 86px;
    left: 10px;
    right: 10px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background) / 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
    backdrop-filter: blur(18px);
  }

  body.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 14px;
    color: hsl(var(--foreground));
    font-size: 1rem;
  }

  .hero {
    min-height: 760px;
    padding-top: 128px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, hsl(210 68% 8% / 0.92), hsl(210 68% 8% / 0.72)),
      linear-gradient(0deg, hsl(210 68% 8% / 0.82), hsl(210 68% 8% / 0.2) 52%);
  }

  .trust-strip,
  .card-grid,
  .project-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .company-layout,
  .equipment-layout,
  .cta-content {
    grid-template-columns: 1fr;
  }

  .company-copy {
    position: static;
  }
}

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

  .site-header {
    min-height: 66px;
    padding: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand small {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .button {
    display: none;
  }

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

  .site-header.is-scrolled .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .hero {
    min-height: 680px;
    padding: 128px 0 58px;
  }

  .hero-media img {
    object-position: 50% center;
  }

  .hero-content {
    margin-inline: 14px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .button {
    white-space: normal;
  }

  .trust-strip,
  .card-grid,
  .project-row,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .card-icon {
    margin-bottom: 24px;
  }

  .equipment-panel img,
  .project-row img {
    height: 230px;
    aspect-ratio: 3 / 2;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .spec-grid span {
    border-right: 0;
  }

  .metric {
    border-bottom: 1px solid hsl(var(--border));
  }

  .metric:last-child,
  .spec-grid span:last-child {
    border-bottom: 0;
  }

  .section,
  .cta-section {
    padding: 70px 0;
  }
}

@media (max-width: 380px) {
  .site-header {
    inset: 8px 8px auto;
  }

  .brand strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 2.25rem;
  }
}
