:root {
  --brand-orange: #ff9000;
  --brand-orange-hover: #ffab33;
  --brand-navy: #000045;
  --deep-blue: #082743;
  --deep-blue-2: #0d4670;
  --deep-blue-3: #13395b;
  --cyan: #31c4ff;
  --ice: #f6f8fb;
  --white: #ffffff;
  --ink: #111130;
  --muted: #5f6b7a;
  --line: #dde6ef;
  --sand: #f7f4ee;
  --shadow: 0 22px 55px rgba(3, 24, 41, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; background: #fff; color: #000; padding: 10px 14px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 28, 48, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--white); text-decoration: none; }
.brand-logo-link { height: 58px; width: 254px; overflow: visible; position: relative; flex: 0 0 auto; }
.brand-logo {
  position: static;
  width: 254px;
  height: 58px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.footer-brand.brand-logo-link { height: 72px; width: 315px; }
.footer-brand .brand-logo { width: 315px; height: 72px; }
.site-nav { display: flex; align-items: center; gap: 26px; color: #e2eef6; font-size: 14px; }
.site-nav > a { text-decoration: none; font-weight: 600; }
.site-nav > a:hover { color: var(--white); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; padding: 10px 14px; border-radius: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 999px; padding: 14px 22px; font-weight: 780; transition: .2s ease; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 11px 18px; font-size: 13px; }
.btn-primary { background: var(--brand-orange); color: #171000; box-shadow: 0 12px 28px rgba(255,144,0,.24); }
.btn-primary:hover { background: var(--brand-orange-hover); }
.btn-ghost { border-color: rgba(255,255,255,.38); color: var(--white); background: rgba(255,255,255,.06); }
.btn-header-cta { background: var(--brand-orange); color: #181100; box-shadow: 0 12px 28px rgba(255,144,0,.22); }
.btn-header-cta:hover { background: var(--brand-orange-hover); color: #181100; }
.btn-light { background: #fff; color: var(--brand-navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }

.hero { min-height: 760px; position: relative; color: var(--white); display: grid; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('chancay-terminal-peru.jpg'); background-size: cover; background-position: center; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,24,46,.9) 0%, rgba(8,39,67,.75) 40%, rgba(14,72,114,.34) 100%), linear-gradient(180deg, rgba(2,13,28,.20) 0%, rgba(2,13,28,.42) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 76px; align-items: center; padding-block: 112px 96px; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 850; letter-spacing: .18em; color: #ffb347; }
.eyebrow.dark { color: var(--deep-blue-2); }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(44px, 6vw, 78px); line-height: .99; letter-spacing: -.045em; }
.hero-lead { max-width: 700px; font-size: clamp(18px, 2.2vw, 23px); color: #deebf4; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; font-size: 13px; color: #c9d9e4; }
.hero-proof span::before { content: '✓'; color: var(--brand-orange); font-weight: 900; margin-right: 7px; }
.quote-card { background: rgba(255,255,255,.97); color: var(--ink); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-kicker { font-size: 11px; letter-spacing: .17em; font-weight: 900; color: var(--deep-blue-3); margin: 0 0 8px; }
.quote-card h2 { font-size: 28px; line-height: 1.1; margin: 0 0 14px; }
.quote-card p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li { border-top: 1px solid var(--line); padding: 10px 0; font-weight: 700; }
.check-list li::before { content: '→'; color: var(--deep-blue-2); margin-right: 8px; }
.text-link { color: #0f63b4; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.text-link:hover { text-decoration: underline; }

.trust-strip { background: linear-gradient(90deg, #0a2e4f 0%, #113f66 100%); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 25px 20px; border-right: 1px solid rgba(255,255,255,.09); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid strong { display: block; color: #ff9800; font-size: 20px; }
.trust-grid span { color: #c4d8e6; font-size: 13px; }

.section { padding: 104px 0; }
.two-col { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: start; }
.section h2 { margin: 0; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.07; letter-spacing: -.035em; }
.rich-copy p { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.section-heading { max-width: 780px; text-align: center; margin: 0 auto 48px; }
.section-heading.left { text-align: left; margin-left: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }

.services { background: var(--ice); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; min-height: 265px; transition: .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(8,40,67,.08); }
.service-no { font-size: 21px; letter-spacing: .14em; font-weight: 900; color: var(--deep-blue-2); }
.service-card h3 { font-size: 23px; line-height: 1.15; margin: 44px 0 12px; color: #ff9800; }
.service-card p { color: var(--muted); margin-bottom: 0; }

.feature-section { background: linear-gradient(135deg, #082743 0%, #0f4c79 100%); color: #fff; }
.feature-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 74px; align-items: center; }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 500px; background: #0b2b45; box-shadow: var(--shadow); }
.feature-media img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.feature-media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); border-radius: inherit; pointer-events: none; }
.image-note { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(4,19,33,.76); color: rgba(255,255,255,.82); padding: 7px 10px; border-radius: 8px; font-size: 10px; }
.feature-copy p { color: #d8e6ef; font-size: 18px; }
.feature-copy .eyebrow { color: #ff9800; font-size: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); margin-top: 34px; }
.mini-grid div { background: rgba(4, 28, 50, .82); padding: 22px; }
.mini-grid strong { display: block; color: #ff9800; font-size: 13px; margin-bottom: 4px; }
.mini-grid span { color: #e3edf2; font-weight: 700; }

.experience { background: var(--sand); }
.experience-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 80px; align-items: center; }
.experience-grid > div > p { color: var(--muted); font-size: 18px; }
.case-card { background: #fff; border-left: 4px solid var(--deep-blue-2); padding: 26px 28px; margin: 30px 0 24px; box-shadow: 0 12px 30px rgba(25,44,57,.06); }
.case-tag { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .16em; color: var(--deep-blue-2); margin-bottom: 8px; }
.case-card h3 { margin: 0 0 8px; font-size: 26px; }
.case-card p { margin: 0; color: var(--muted); }
.small-note { font-size: 13px !important; padding-top: 10px; }
.feature-media.tall, .feature-media.tall img { min-height: 590px; }

.why-us { background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-grid article { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid h3 { font-size: 20px; line-height: 1.2; margin-top: 0; color: #0f4c79; }
.why-grid p { color: var(--muted); margin-bottom: 0; }

.faq { background: var(--ice); }
.faq-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.faq-list { border-top: 1px solid #cbdbe4; }
details { border-bottom: 1px solid #cbdbe4; padding: 0; }
summary { cursor: pointer; list-style: none; font-size: 19px; font-weight: 800; padding: 22px 44px 22px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 19px; font-size: 26px; color: var(--deep-blue-2); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: -6px 0 24px; padding-right: 42px; }

.cta-section { background: linear-gradient(120deg, #082743 0%, #104c79 100%); color: #fff; padding: 78px 0; }
.cta-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 50px; }
.cta-section h2 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.035em; }
.cta-section p { color: #d9ebf5; max-width: 700px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.contact-location {
  margin-top: 54px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 46px;
  align-items: center;
}
.location-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
}
.location-copy p:not(.eyebrow) {
  margin: 0;
  color: #d9ebf5;
  font-size: 16px;
}
.map-wrap {
  overflow: hidden;
  border-radius: 20px;
  min-height: 330px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}

.site-footer { background: #041625; color: #b3c6d2; padding: 62px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; }
.footer-grid h2 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a { color: #e4f1f8; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid p { overflow-wrap: anywhere; }
.footer-brand { margin-bottom: 18px; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.09); padding-top: 20px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr) auto; align-items: center; gap: 30px; font-size: 11px; color: #7d95a2; }
.footer-bottom > span:nth-child(2) { text-align: center; }
.footer-social { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.social-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff !important; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); text-decoration: none !important; transition: background .2s ease, color .2s ease, transform .2s ease; }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover { background: #ff9800; color: #101820 !important; transform: translateY(-2px); text-decoration: none !important; }

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
}
.quick-contact a { text-decoration: none; color: var(--deep-blue); }
.quick-contact a:hover { text-decoration: underline; }

.milestone-section {
  background: linear-gradient(115deg, #082743 0%, #0d4670 100%);
  color: #fff;
  padding: 76px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.milestone-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 42px;
  align-items: start;
}
.milestone-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-orange);
  color: #161000;
  font-weight: 950;
  font-size: 30px;
  box-shadow: 0 14px 36px rgba(255,144,0,.24);
}
.milestone-section h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.milestone-section p:not(.eyebrow) {
  max-width: 900px;
  color: #d9e8f1;
  font-size: 18px;
}
.milestone-link {
  display: inline-block;
  margin-top: 8px;
  color: #ffd18b;
  font-weight: 800;
  text-decoration: none;
}
.milestone-link:hover { text-decoration: underline; }

.case-stack { display: grid; gap: 14px; margin: 30px 0 24px; }
.case-stack .case-card { margin: 0; }

.btn-whatsapp-light {
  background: #25D366;
  color: #07130a;
}
.btn-whatsapp-light:hover { background: #49df80; }

.whatsapp-float {
  position: fixed;
  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 100;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  border: 2px solid rgba(255,255,255,.9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
}
.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 76px; flex-direction: column; align-items: stretch; background: rgba(7, 28, 48, .98); padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .two-col, .feature-grid, .experience-grid, .faq-wrap, .cta-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; padding-block: 86px 70px; }
  .hero { min-height: auto; }
  .quote-card { max-width: 620px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .feature-grid, .experience-grid, .faq-wrap { gap: 42px; }
  .milestone-grid { grid-template-columns: 84px 1fr; gap: 28px; }
  .contact-location { grid-template-columns: 1fr; }
  .milestone-badge { width: 74px; height: 74px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 74px 0; }
  .hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-lead { font-size: 18px; }
  .quote-card { padding: 26px; }
  .trust-grid, .service-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); padding-left: 0; }
  .mini-grid { grid-template-columns: 1fr; }
  .feature-media, .feature-media img, .feature-media.tall, .feature-media.tall img { min-height: 360px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom > span:nth-child(2) { text-align: left; }
  .footer-social { justify-content: flex-start; }
  .brand-logo-link { width: 214px; height: 49px; }
  .brand-logo { width: 214px; height: 49px; }
  .footer-brand.brand-logo-link { width: 244px; height: 55px; }
  .footer-brand .brand-logo { width: 244px; height: 55px; }
  .milestone-grid { grid-template-columns: 1fr; }
  .contact-location { margin-top: 42px; padding-top: 38px; gap: 28px; }
  .map-wrap, .map-wrap iframe { min-height: 280px; height: 280px; }
  .milestone-badge { width: 64px; height: 64px; font-size: 22px; }
  .whatsapp-float { left: 14px; right: auto; bottom: 14px; width: 58px; height: 58px; min-height: 58px; padding: 0; justify-content: center; }
  .whatsapp-float svg { width: 30px; height: 30px; }
}

/* Final multi-page additions */
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]:not(.btn) { position: relative; }
.site-nav a[aria-current="page"]:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 99px;
}

.subhero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.subhero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.015); }
.subhero-bg.services-bg { background-image: url('services-chancay-port-peru.jpg'); background-position: center 44%; }
.subhero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,24,46,.94) 0%, rgba(8,39,67,.78) 46%, rgba(15,76,121,.34) 100%), linear-gradient(180deg, rgba(3,17,31,.10), rgba(3,17,31,.42));
}
.subhero-content { position: relative; padding: 112px 0 100px; max-width: 920px; margin-left: max(0px, calc((100% - 1180px) / 2)); }
.subhero-content h1 { margin: 0; max-width: 900px; font-size: clamp(46px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; }
.subhero-content > p:not(.eyebrow) { max-width: 790px; margin: 26px 0 0; color: #deebf4; font-size: clamp(18px, 2.1vw, 22px); }

.services-intro { align-items: center; }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  min-height: 330px;
  box-shadow: 0 10px 30px rgba(8,40,67,.035);
}
.service-detail-card h3 { margin: 32px 0 12px; font-size: 26px; line-height: 1.14; color: #0f4c79; }
.service-detail-card p { color: var(--muted); margin: 0 0 18px; }
.service-detail-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-detail-card li { position: relative; padding-left: 20px; color: #354657; }
.service-detail-card li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-orange); font-weight: 900; }

.port-hybrid-section { background: linear-gradient(135deg, #082743 0%, #0f4c79 100%); color: #fff; }
.port-hybrid-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.port-feature-image, .port-feature-image img { min-height: 470px; }
.port-hybrid-copy h2 { margin: 0 0 22px; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
.port-hybrid-copy p { color: #d7e7f0; font-size: 18px; }
.port-hybrid-copy .milestone-link { color: #ffd18b; }

.workflow-section { background: #fff; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.workflow-grid article { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-grid strong { display: block; color: var(--brand-orange); font-size: 13px; letter-spacing: .12em; margin-bottom: 28px; }
.workflow-grid h3 { margin: 0 0 10px; font-size: 21px; color: #0f4c79; }
.workflow-grid p { margin: 0; color: var(--muted); }
.compact-cta { padding: 70px 0; }

.contact-hero { background: linear-gradient(120deg, #071e35 0%, #0d4f7f 100%); color: #fff; padding: 100px 0 86px; }
.contact-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 80px; align-items: center; }
.contact-hero h1 { margin: 0; max-width: 760px; font-size: clamp(46px, 6vw, 74px); line-height: 1; letter-spacing: -.045em; }
.contact-hero p:not(.eyebrow) { color: #dbeaf3; max-width: 720px; font-size: 20px; }
.contact-quick-card {
  background: rgba(255,255,255,.97);
  color: var(--ink);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 7px;
}
.contact-quick-card span { font-size: 10px; letter-spacing: .15em; font-weight: 900; color: #657586; margin-top: 10px; }
.contact-quick-card span:first-child { margin-top: 0; }
.contact-quick-card a { text-decoration: none; font-size: 18px; font-weight: 850; color: #0f4c79; overflow-wrap: anywhere; }
.contact-quick-card a:hover { text-decoration: underline; }

.contact-page-section { background: #f6f8fb; }
.contact-page-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 54px; align-items: start; }
.rfq-panel, .contact-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(7,31,53,.07);
}
.rfq-panel { padding: 38px; }
.rfq-panel h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); }
.form-intro { color: var(--muted); margin: 14px 0 28px; }
.form-intro a { color: #0f63b4; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 800; color: #23384a; }
.form-field label span { color: #c94d27; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #cbd8e2;
  background: #fff;
  color: #172a3a;
  border-radius: 11px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #0f71b8; box-shadow: 0 0 0 3px rgba(15,113,184,.12); }
.form-submit-row { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.form-submit-row p { margin: 0; color: #6e7d89; font-size: 12px; line-height: 1.45; }
.form-submit { min-width: 170px; cursor: pointer; }
.form-alert { border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; font-size: 14px; }
.form-alert strong { display: block; margin-bottom: 3px; }
.form-alert ul { margin: 8px 0 0 18px; padding: 0; }
.form-success { background: #eaf8ef; border: 1px solid #b8e3c5; color: #155c31; }
.form-error { background: #fff1ed; border: 1px solid #f1c2b6; color: #812b18; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-side { display: grid; gap: 24px; }
.contact-info-card { padding: 30px; }
.contact-info-card h2 { margin: 0 0 16px; font-size: 32px; }
.contact-info-card > p:not(.eyebrow) { color: var(--muted); }
.contact-list { margin: 24px 0 0; display: grid; gap: 0; }
.contact-list > div { padding: 13px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-size: 10px; letter-spacing: .13em; font-weight: 900; color: #71818e; text-transform: uppercase; }
.contact-list dd { margin: 4px 0 0; font-weight: 780; color: #20384c; overflow-wrap: anywhere; }
.contact-list a { color: #0f63b4; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-map, .contact-map iframe { min-height: 390px; height: 390px; }
.contact-bottom-strip { background: #082743; color: #fff; }
.contact-bottom-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.contact-bottom-grid > div { padding: 28px 26px; border-right: 1px solid rgba(255,255,255,.11); }
.contact-bottom-grid > div:first-child { padding-left: 0; }
.contact-bottom-grid strong { display: block; color: #ff9800; font-size: 16px; }
.contact-bottom-grid span { display: block; color: #c5d7e3; font-size: 12px; margin-top: 3px; }

@media (max-width: 980px) {
  .subhero-content { margin-left: 0; }
  .service-detail-grid, .port-hybrid-grid, .contact-hero-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-quick-card { max-width: 620px; }
  .contact-side { grid-template-columns: 1fr 1fr; }
  .contact-map, .contact-map iframe { height: auto; min-height: 100%; }
}

@media (max-width: 640px) {
  .site-nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .subhero { min-height: auto; }
  .subhero-content { padding: 80px 0 70px; }
  .subhero-content h1 { font-size: clamp(40px, 13vw, 57px); }
  .service-detail-grid, .workflow-grid, .contact-side, .contact-bottom-grid { grid-template-columns: 1fr; }
  .service-detail-card { min-height: auto; padding: 26px; }
  .port-feature-image, .port-feature-image img { min-height: 340px; }
  .contact-hero { padding: 76px 0 62px; }
  .contact-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .contact-hero p:not(.eyebrow) { font-size: 18px; }
  .rfq-panel { padding: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .form-submit { width: 100%; }
  .contact-map, .contact-map iframe { height: 300px; min-height: 300px; }
  .contact-bottom-grid > div { padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
}


/* Authentic Chancay operation photography */
.operations-gallery-section { background: #f6f8fb; }
.operations-heading { max-width: 820px; }
.operations-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.operations-gallery figure, .operations-wide { margin: 0; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(8,40,67,.07); }
.operations-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.operations-wide { margin-top: 22px; }
.operations-wide img { width: 100%; aspect-ratio: 16 / 8.7; object-fit: cover; object-position: center; }
.operations-gallery figcaption, .operations-wide figcaption { padding: 14px 18px 16px; color: var(--muted); font-size: 13px; }

/* Contact social link */
.contact-social { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-social > p { margin: 0 0 10px; color: #657586; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.linkedin-contact-link { display: inline-flex; align-items: center; gap: 10px; color: #0f4c79; text-decoration: none; font-weight: 800; }
.linkedin-contact-link svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }
.linkedin-contact-link:hover { color: #ff9800; }

/* 404 page */
.error-page { min-height: 100vh; background: #061a2d; color: #fff; }
.error-page .site-header { position: relative; }
.error-main { position: relative; min-height: calc(100vh - 82px); display: grid; align-items: center; overflow: hidden; }
.error-bg { position: absolute; inset: 0; background-image: url('mooring-ropes-chancay-port-peru.jpg'); background-size: cover; background-position: center; }
.error-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,24,46,.96) 0%, rgba(8,39,67,.88) 52%, rgba(15,76,121,.52) 100%), linear-gradient(180deg, rgba(3,17,31,.15), rgba(3,17,31,.45)); }
.error-content { position: relative; z-index: 2; max-width: 860px; padding: 96px 0 110px; }
.error-number { margin: 0 0 10px; font-size: clamp(92px, 16vw, 178px); line-height: .8; font-weight: 950; letter-spacing: -.07em; color: #ff9800; }
.error-content h1 { margin: 0; max-width: 790px; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -.045em; }
.error-lead { max-width: 700px; margin: 26px 0 0; color: #d9e8f1; font-size: 18px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 640px) {
  .operations-gallery { grid-template-columns: 1fr; }
  .operations-gallery img { aspect-ratio: 4 / 5; }
  .operations-wide img { aspect-ratio: 4 / 3; }
  .error-content { padding: 72px 0 84px; }
  .error-actions { flex-direction: column; }
  .error-actions .btn { width: 100%; }
}


/* ==========================================================
   FINAL POLISH — Services photography, Contact hero, CTA hover
   ========================================================== */

/* A stronger, clearly interactive hover for the WhatsApp CTA in hero areas. */
.hero-actions .btn-ghost:hover {
  background: #25D366;
  border-color: #25D366;
  color: #06270f;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .28);
  transform: translateY(-2px);
}

/* Services: one authentic, wide Chancay image instead of an oversized gallery. */
.port-hybrid-section {
  background: linear-gradient(135deg, #082743 0%, #0f4c79 100%);
  color: #fff;
}
.port-experience-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 42px;
}
.port-experience-grid h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.port-experience-copy p {
  margin: 0 0 18px;
  color: #d7e7f0;
  font-size: 18px;
}
.port-experience-copy .milestone-link {
  color: #ffd18b;
}
.chancay-wide-photo {
  width: min(100%, 1080px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #061b30;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255,255,255,.12);
}
.chancay-wide-photo img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center 46%;
}
.chancay-wide-photo figcaption {
  padding: 12px 16px 14px;
  color: #cbdde8;
  font-size: 12px;
  background: rgba(4, 22, 39, .76);
}

/* Contact: use a real OM Chancay operation as the hero background. */
.contact-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(5, 24, 46, .97) 0%, rgba(8, 39, 67, .91) 42%, rgba(10, 52, 86, .70) 66%, rgba(10, 52, 86, .46) 100%),
    url('services-chancay-port-peru-2.jpg') center 43% / cover no-repeat;
  color: #fff;
  padding: 100px 0 86px;
}
.contact-hero-grid {
  position: relative;
  z-index: 1;
}

/* Keep footer's longer nationwide service line readable and aligned. */
.footer-bottom > span:nth-child(2) {
  line-height: 1.55;
}

@media (max-width: 980px) {
  .port-experience-grid { grid-template-columns: 1fr; gap: 28px; }
  .chancay-wide-photo { width: 100%; }
  .contact-hero {
    background:
      linear-gradient(90deg, rgba(5, 24, 46, .96) 0%, rgba(8, 39, 67, .88) 58%, rgba(10, 52, 86, .64) 100%),
      url('services-chancay-port-peru-2.jpg') center 38% / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .port-experience-copy p { font-size: 16px; }
  .chancay-wide-photo img { aspect-ratio: 4 / 3; }
  .contact-hero {
    background:
      linear-gradient(180deg, rgba(5, 24, 46, .93) 0%, rgba(8, 39, 67, .88) 100%),
      url('services-chancay-port-peru-2.jpg') center 30% / cover no-repeat;
  }
}

/* Cloudflare Turnstile */
.turnstile-wrap {
  width: 100%;
  margin-top: 18px;
  min-height: 65px;
}
.turnstile-wrap .cf-turnstile {
  width: 100%;
  max-width: 100%;
}
