:root {
  color-scheme: light;
  --navy: #041329;
  --gold: #e5a800;
  --ink: #102442;
  --muted: #52647b;
  --paper: #f5f7fa;
  --line: #dce3ec;
  --card-radius: 12px;
  --header-height: 94px;
  --header-radius: 24px;
  --button-radius: calc(var(--header-radius) - 8px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 12px); }
body { margin: 0; color: var(--ink); background: #fff; font-family: system-ui, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, .btn, .nav-cta { border-radius: var(--button-radius); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b47800; outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 70; padding: 12px; background: var(--gold); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 50; isolation: isolate; padding-block: 14px 8px; }
.nav {
  position: relative;
  min-height: calc(var(--header-height) - 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: clamp(14px, 2vw, 26px);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #f8fbff, #dce7f4);
  border: 1px solid #ffffffa6;
  border-radius: var(--header-radius);
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px #04132938;
  pointer-events: none;
}
.brand { width: 310px; flex-shrink: 1; }
.brand img { width: 100%; max-height: 68px; object-fit: contain; object-position: left center; }
.navlinks { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: .88rem; font-weight: 700; }
.navlinks a:hover { text-decoration: underline; }
.nav-cta { padding: 12px 16px; color: #fff; background: var(--navy); }
.menu-toggle { display: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--header-height)); padding-top: var(--header-height); color: #fff; background: var(--navy); border-bottom: 5px solid var(--gold); }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #041329 0%, #041329f5 20%, #041329d9 32%, #041329a6 45%, #04132952 58%, #04132917 74%, transparent 88%); }
.hero-inner { min-height: clamp(510px, 49vw, 740px); display: flex; align-items: center; padding-block: 64px; }
.hero-copy { max-width: 550px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 4.5vw, 4.6rem); margin-bottom: 20px; }
h1 em, .contact h2 em { color: var(--gold); font-style: normal; }
.hero p, .contact p { color: #d6e0ed; max-width: 45ch; line-height: 1.7; margin-bottom: 24px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 0; padding: 14px 19px; font-weight: 750; }
.hero .btn { padding: 15px 22px; }
.btn-gold { color: var(--navy); background: var(--gold); }
.btn-gold:hover { background: #f5c13b; }
.section, .contact { padding-block: clamp(56px, 8vw, 104px); }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 76px); align-items: center; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 18px; }
.eyebrow { margin-bottom: 12px; color: #815b00; font-size: .79rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow.light { color: #ffce52; }
.about-content p, .section-heading p { line-height: 1.7; color: var(--muted); }
.about-content .lead { font-size: 1.15rem; color: var(--ink); }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--card-radius); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.equipment {
  background:
    radial-gradient(ellipse at 12% 8%, #fff 0%, transparent 55%),
    radial-gradient(ellipse at 92% 40%, #d5e3f3 0%, transparent 62%),
    linear-gradient(155deg, #edf3fa, #e1eaf5);
}
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading p { max-width: 40ch; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.solution-card { border-radius: var(--card-radius); }
.equipment-card {
  overflow: hidden;
  background: linear-gradient(160deg, #fff, #e7eff9);
  border: 1px solid #fff;
  border-radius: var(--header-radius);
  box-shadow: 0 8px 24px #04132916;
}
.solution-card { background: #fff; border: 1px solid var(--line); }
.equipment-photo { overflow: hidden; }
.equipment-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.equipment-info { display: flex; flex-direction: column; padding: 20px; border-top: 1px solid #fff; }
.equipment-info h3 { margin-bottom: 6px; }
.equipment-info p, .solution-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.services-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; margin: 0; padding: 8px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.services-track::-webkit-scrollbar { display: none; }
.solution-card { min-height: 205px; padding: 24px; }
.solution-card h3 { margin: 8px 0; }
.service-icon { font-size: 1.9rem; color: #946b00; }
.contact { color: #fff; background: var(--navy); }
.contact-panel {
  background: linear-gradient(145deg, #ffffff1c, #ffffff06 65%), var(--navy);
  border: 1px solid #ffffff40;
  border-radius: var(--header-radius);
  box-shadow: inset 0 1px 0 #ffffff38, 0 14px 36px #00000042;
  padding: clamp(16px, 3vw, 30px);
}
.contact-row { padding: 12px 0; border-bottom: 1px solid #ffffff35; overflow-wrap: anywhere; }
.contact-row span { display: block; color: #ffce52; font-size: .75rem; font-weight: 750; margin-bottom: 6px; }
.contact-row a:hover { text-decoration: underline; }
.contact-whatsapp { width: 100%; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-block: 24px; }
.footer-brand { width: 230px; }
.footer-brand small, .footer-right small { color: var(--muted); }
.footer-right { display: grid; gap: 8px; }
.mobile-contact { display: none; }
@media (max-width: 900px) {
  .brand { width: 250px; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 700px) {
  :root { --header-height: 76px; }
  .container { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; gap: 0 12px; }
  .brand { width: min(64vw, 260px); }
  .brand img { max-height: 50px; }
  .menu-toggle { display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; background: #ffffffb8; border: 1px solid var(--line); border-radius: 50%; }
  .menu-toggle span { width: 21px; height: 2px; background: var(--navy); justify-self: center; }
  .navlinks { flex-basis: 100%; flex-wrap: wrap; padding: 10px 0; }
  .menu-toggle:not([hidden]) + .navlinks { display: none; }
  .menu-toggle:not([hidden]) + .navlinks.open { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 8px; padding: 12px; background: linear-gradient(180deg, #f8fbff, #dce7f4); border: 1px solid #ffffffa6; border-radius: 16px; box-shadow: inset 0 1px 0 #fff, 0 8px 24px #04132924; }
  .navlinks a { padding: 10px 12px; }
  .hero { display: grid; background: linear-gradient(110deg, #244461, var(--navy) var(--header-height)); }
  .hero::before { content: none; }
  .hero-image { position: static; order: 2; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: right center; }
  .hero-inner { min-height: 0; padding-block: 36px; }
  h1 { font-size: clamp(2.1rem, 8vw, 3.35rem); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { flex-wrap: wrap; }
  .equipment-grid { grid-template-columns: 1fr; }
  .services-track { grid-auto-columns: 86%; gap: 16px; }
  .footer-inner { flex-direction: column; align-items: start; padding-bottom: 76px; }
  .mobile-contact { display: block; border-radius: var(--button-radius) var(--button-radius) 0 0; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: 12px 16px; text-align: center; color: var(--navy); background: var(--gold); font-weight: 800; }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contact-panel {
    background: linear-gradient(145deg, #ffffff1c, #ffffff06 65%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
  }
  .equipment-card {
    background: linear-gradient(160deg, #ffffffed, #f3f8ff80);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
  }
  .nav::before,
  .menu-toggle:not([hidden]) + .navlinks.open {
    background: linear-gradient(180deg, #f8fbffdc, #dce7f4ad);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .contact-panel {
    background: linear-gradient(145deg, #ffffff1c, #ffffff06 65%), var(--navy);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .equipment-card {
    background: linear-gradient(160deg, #fff, #e7eff9);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav::before,
  .menu-toggle:not([hidden]) + .navlinks.open {
    background: linear-gradient(180deg, #f8fbff, #dce7f4);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .equipment-photo img { transition: transform 350ms ease-out; }
  .equipment-card:hover .equipment-photo img { transform: scale(1.025); }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-revealed:not(:focus-within) {
    animation: scroll-reveal 480ms ease-out;
  }

  .site-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--navy);
    color: #fff;
    pointer-events: none;
    animation: loader-exit .4s ease 1.2s both;
  }
  .site-loader img { object-fit: contain; animation: loader-enter .65s ease both; }
  .site-loader strong { font-size: 1.4rem; letter-spacing: .3em; }
  .site-loader span { color: var(--gold); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
  .site-loader .loader-line {
    width: 115px;
    height: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: loader-pulse 1s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader { display: none; }
}
@keyframes loader-enter { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes loader-pulse { 50% { opacity: .4; transform: scaleX(.65); } }
@keyframes loader-exit { to { opacity: 0; visibility: hidden; } }
@keyframes scroll-reveal {
  from { opacity: .68; transform: translateY(14px); }
}
