@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --navy: #071421;
  --navy-2: #0b1d2c;
  --navy-3: #122b3e;
  --orange: #f36b2b;
  --orange-light: #ff8d52;
  --ink: #102332;
  --muted: #5d6a74;
  --line: #dbe2e7;
  --paper: #f4f6f7;
  --white: #fff;
  --heading: "Barlow Condensed", sans-serif;
  --body: "Manrope", sans-serif;
  --shadow: 0 24px 64px rgba(7, 20, 33, .14);
  --soft: 0 14px 38px rgba(7, 20, 33, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(244, 246, 247, .78), rgba(255,255,255,0) 420px), var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 112px 0; }
.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; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: var(--heading);
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 { max-width: 820px; margin-bottom: 28px; color: var(--white); font-size: clamp(4.2rem, 7.2vw, 7.45rem); text-shadow: 0 20px 54px rgba(0,0,0,.34); }
h2 { margin-bottom: 24px; font-size: clamp(3rem, 5vw, 5rem); }
h3 { margin-bottom: 16px; font-size: 1.7rem; }
h4 { margin: 0 0 12px; font-size: 1.25rem; }

.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: #aebdca; font-size: .71rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.eyebrow.dark { color: #697984; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0 25px;
  border: 1px solid transparent;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--orange); }
.button-primary:hover { background: var(--orange-light); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.03); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(7, 20, 33, .08); backdrop-filter: blur(16px); }
.nav-wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 178px; height: 76px; object-fit: contain; }
.main-nav { height: 100%; display: flex; align-items: center; gap: 34px; }
.main-nav a { position: relative; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color .25s ease, transform .25s ease; }
.main-nav a:hover { color: var(--orange); transform: translateY(-1px); }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--orange); transition: width .25s; }
.main-nav > a:hover::after, .main-nav > a.active::after { width: 100%; }
.main-nav .nav-cta { height: 42px; display: flex; align-items: center; padding: 0 18px; border: 1px solid #b9c6ce; }
.main-nav .nav-cta:hover { border-color: var(--orange); color: var(--white); background: var(--orange); }
.menu-toggle, .mobile-menu-fallback { display: none; }

.page-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,20,33,.94) 0%, rgba(7,20,33,.78) 46%, rgba(7,20,33,.48) 100%), url("assets/services-hero.jpg") center 52% / cover no-repeat;
  opacity: .94;
}
.hero-grid { position: absolute; inset: 0; z-index: 2; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to right, transparent 8%, black 60%, transparent); }
.hero-glow { position: absolute; z-index: 2; top: 132px; right: -140px; width: 640px; height: 640px; border: 1px solid rgba(243,107,43,.15); border-radius: 50%; box-shadow: inset 0 0 100px rgba(243,107,43,.04), 0 0 120px rgba(24,99,135,.12); }
.page-hero-inner { position: relative; z-index: 3; display: grid; align-content: center; min-height: 620px; padding-top: 112px; }
.page-lead { max-width: 760px; margin-bottom: 34px; color: #d3e0e8; font-size: 1.06rem; line-height: 1.8; }
.hero-actions, .hero-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { margin-top: 34px; gap: 23px; color: #9db1c0; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-tags span { position: relative; padding-left: 14px; }
.hero-tags span::before { content: ""; position: absolute; top: 8px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 58px; }
.section-top h2 { margin-bottom: 0; }
.section-top > p { max-width: 430px; margin: 0 0 3px; color: var(--muted); }
.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: start; }
.intro-copy p { color: var(--muted); }
.intro-copy p:first-child { color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-height: 142px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--soft); }
.stat-card strong { display: block; color: var(--orange); font-family: var(--heading); font-size: 2.6rem; line-height: 1; }
.stat-card span { display: block; margin-top: 10px; color: #53636d; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.cards-section { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { position: relative; min-height: 330px; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--soft); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.service-card::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(243,107,43,.42); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scaleX(1); }
.service-number { position: absolute; top: 28px; right: 30px; color: #a3afb7; font-family: var(--heading); font-size: .9rem; }
.service-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 44px; border: 1px solid #d3dde3; border-radius: 7px; color: var(--orange); }
.service-icon svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card p, .service-card li { color: var(--muted); font-size: .88rem; }
.service-card ul, .check-list { margin: 18px 0 0; padding: 0; list-style: none; }
.service-card li, .check-list li { position: relative; margin: 8px 0; padding-left: 18px; }
.service-card li::before, .check-list li::before { content: ""; position: absolute; top: .74em; left: 0; width: 6px; height: 2px; background: var(--orange); }

.dark-section { color: var(--white); background: var(--navy-2); background-image: radial-gradient(circle at 88% 18%, rgba(243,107,43,.16), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.dark-section .section-top > p, .dark-section p, .dark-section li { color: #a9bac5; }
.deliverables-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: 70px; align-items: start; }
.deliverables-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14); }
.deliverable-item { min-height: 122px; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 20px; padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.deliverable-item span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(243,107,43,.55); color: var(--orange); font-family: var(--heading); font-size: 1.05rem; }
.deliverable-item strong { color: #dce7ee; font-family: var(--heading); font-size: 1.3rem; line-height: 1.05; text-transform: uppercase; }

.process-section { background: var(--white); }
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; padding-top: 18px; }
.process::before { content: ""; position: absolute; top: 43px; right: 0; left: 0; height: 1px; background: var(--line); }
.process-step { position: relative; min-width: 0; padding-top: 54px; }
.process-step span { position: absolute; top: 0; left: 0; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); background: var(--white); box-shadow: var(--soft); font-family: var(--heading); font-size: 1.1rem; }
.process-step p { color: var(--muted); font-size: .88rem; }

.split-section { background: var(--paper); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { padding: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--soft); }
.panel-image { min-height: 440px; background: linear-gradient(180deg, rgba(7,20,33,.18), rgba(7,20,33,.62)), url("assets/software-ne-view.png") center / cover no-repeat; }
.autospool-page .panel-image { background-image: linear-gradient(180deg, rgba(7,20,33,.1), rgba(7,20,33,.62)), url("assets/software-crude-exchanger.png"); }
.visual-panel { overflow: hidden; padding: 0; }
.visual-panel img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: top center; }
.bulletin-section { background: var(--paper); }
.bulletin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bulletin-page { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--soft); transition: transform .25s ease, box-shadow .25s ease; }
.bulletin-page:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bulletin-page img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.bulletin-page figcaption { padding: 16px 18px 18px; color: #53636d; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.benefit-grid, .industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mini-card { min-height: 132px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--soft); }
.mini-card strong { display: block; color: var(--ink); font-family: var(--heading); font-size: 1.3rem; line-height: 1.08; text-transform: uppercase; }
.mini-card p { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }

.contact-band { padding: 70px 0; color: var(--white); background: #102a3c; background-image: radial-gradient(circle at 88% 18%, rgba(243,107,43,.16), transparent 28%); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.contact-band h2 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 4.5vw, 4.5rem); }
.contact-band .eyebrow { margin-bottom: 17px; }
.site-footer { color: var(--muted); background: var(--white); box-shadow: 0 -18px 42px rgba(7,20,33,.06); }
.footer-main { display: grid; grid-template-columns: 200px 1fr auto; gap: 34px; align-items: center; padding: 46px 0 30px; }
.footer-main p { margin: 0; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.footer-links a:hover { color: var(--orange); }
.footer-offices { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 45px; padding: 28px 0; border-top: 1px solid var(--line); }
.footer-offices div { display: flex; flex-direction: column; gap: 5px; }
.footer-offices strong { color: var(--ink); text-transform: uppercase; }
.footer-offices a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: .74rem; }
.whatsapp { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: #16ba63; box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: .72rem; font-weight: 800; }

@media (max-width: 1100px) {
  .main-nav { position: fixed; inset: 0; height: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 70px 34px; color: var(--white); background: rgba(7,20,33,.98); transform: translateX(100%); transition: transform .25s ease; }
  .menu-open .main-nav { transform: translateX(0); }
  .main-nav a, .main-nav .nav-cta { color: var(--white); font-size: .95rem; }
  .menu-toggle, .mobile-menu-fallback { position: fixed; z-index: 120; top: 16px; right: 18px; width: 58px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--white); box-shadow: 0 10px 24px rgba(7,20,33,.12); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
}

@media (max-width: 900px) {
  .section { padding: 78px 0; }
  .section-top, .contact-band-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .intro-grid, .deliverables-layout, .split-grid { grid-template-columns: 1fr; gap: 38px; }
  .service-grid, .benefit-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulletin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process::before { display: none; }
  .footer-main, .footer-offices { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 780px) {
  .container { width: calc(100% - 32px); }
  .page-hero, .page-hero-inner { min-height: 520px; }
  .page-hero-inner { padding-top: 120px; padding-bottom: 58px; }
  h1 { max-width: 100%; font-size: clamp(2.4rem, 11vw, 3.25rem); overflow-wrap: anywhere; }
  h2 { font-size: clamp(2.1rem, 9vw, 2.9rem); overflow-wrap: anywhere; }
  .page-lead, .section-top > p { max-width: 100%; font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-grid, .service-grid, .deliverables-grid, .benefit-grid, .industry-grid, .process { grid-template-columns: 1fr; }
  .bulletin-grid { grid-template-columns: 1fr; }
  .panel { padding: 28px; }
  .panel-image { min-height: 300px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}


/* Stress service clarity updates: light sections and unchanged, full-picture display. */
.stress-page .dark-section {
  color: var(--ink);
  background: var(--white);
  background-image: none;
}
.stress-page .dark-section .eyebrow { color: #697984; }
.stress-page .dark-section .section-top > p,
.stress-page .dark-section p,
.stress-page .dark-section li { color: var(--muted); }
.stress-page .dark-section .deliverables-grid {
  border-top-color: var(--line);
  border-left-color: var(--line);
}
.stress-page .dark-section .deliverable-item {
  border-right-color: var(--line);
  border-bottom-color: var(--line);
  background: #f8fafb;
}
.stress-page .dark-section .deliverable-item strong { color: var(--ink); }
.stress-page .visual-panel,
.stress-picture-card,
.stress-bulletin-card {
  background: var(--white);
}
.stress-page .visual-panel img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: var(--white);
}
.stress-picture-section { background: var(--paper); }
.stress-picture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stress-picture-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft);
  overflow: hidden;
}
.stress-picture-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: var(--white);
}
.stress-picture-card figcaption {
  min-height: 58px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  color: #53636d;
  background: #f8fafb;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.stress-page .bulletin-page img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 8px;
  background: var(--white);
}
@media (max-width: 900px) {
  .stress-picture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .stress-picture-grid { grid-template-columns: 1fr; }
  .stress-picture-card img { height: auto; max-height: none; }
}
