/* CNP Engineering Services: site styles */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(../fonts/source-serif-4.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(../fonts/source-serif-4-italic.woff2) format("woff2"); }
:root {
  --teal: #3c9090;
  --teal-deep: #1e4f50;
  --teal-night: #163b3c;
  --teal-light: #6fc0c6;
  --mist: #e9f1f1;
  --paper: #fbfcfc;
  --ink: #242424;
  --ink-soft: #4b5555;
  --rule: #c5d3d3;
  --white: #ffffff;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 68ch; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-stretch: 80%;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; font-stretch: 90%; line-height: 1.15; }
h4 { font-size: 1.1rem; font-stretch: 100%; font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 200px; }
.nav { display: flex; gap: 4px; align-items: center; font-family: var(--head); font-size: 1rem; }
.nav a { text-decoration: none; color: var(--ink); padding: 10px 14px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--teal-deep); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal-deep); }
.nav .btn { margin-left: 10px; padding: 10px 18px; color: var(--white); border-bottom: 1.5px solid var(--teal-deep); }
.nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--white); background: var(--teal); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); font-family: var(--head); font-size: 0.95rem; padding: 8px 14px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px var(--gut) 20px; border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); box-shadow: inset 3px 0 0 var(--teal); padding-left: 12px; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
  .brand img { width: 160px; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; padding: 14px 22px; border: 1.5px solid var(--teal-deep);
  background: var(--teal-deep); color: var(--white); transition: background .15s, color .15s;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn.ghost { background: transparent; color: var(--teal-deep); }
.btn.ghost:hover { background: var(--teal-deep); color: var(--white); }
.on-dark .btn { background: var(--white); color: var(--teal-night); border-color: var(--white); }
.on-dark .btn:hover { background: var(--teal-light); border-color: var(--teal-light); }
.on-dark .btn.ghost { background: transparent; color: var(--white); }
.on-dark .btn.ghost:hover { background: var(--white); color: var(--teal-night); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Title block: CNP drawing title block used as a caption */
.tb { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--white); font-family: var(--head); }
.tb > div { padding: 8px 12px 10px; border-left: 1px solid var(--ink); min-width: 0; }
.tb > div:first-child { border-left: 0; }
.tb dt, .tb .k { display: block; font-size: 0.75rem; color: var(--ink-soft); line-height: 1.3; margin-bottom: 2px; }
.tb dd, .tb .v { display: block; margin: 0; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.tb .wide { grid-column: 1 / -1; border-left: 0; border-bottom: 1px solid var(--ink); }
.tb .wide .v { font-size: 1.15rem; font-stretch: 85%; }
@media (max-width: 560px) { .tb { --cols: 1 !important; } .tb > div { border-left: 0; border-top: 1px solid var(--ink); } .tb > div:first-child { border-top: 0; } .tb .wide { border-bottom: 0; } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero .lede { font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); max-width: 34ch; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 1.5px solid var(--ink); border-bottom: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .lede { max-width: none; } }

/* Sections */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band.mist { background: var(--mist); }
.band.tight { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--ink-soft); }
.intro { font-size: 1.3rem; line-height: 1.6; max-width: 46ch; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.pillar { border-top: 3px solid var(--teal); padding-top: 20px; }
.pillar p { font-size: 1.05rem; color: var(--ink-soft); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.project { margin: 0; display: flex; flex-direction: column; }
.project .img { background: var(--white); border: 1.5px solid var(--ink); border-bottom: 0; aspect-ratio: 16 / 11; overflow: hidden; display: grid; place-items: center; }
.project .img img { width: 100%; height: 100%; object-fit: cover; }
.project .img.model img { object-fit: contain; padding: 10px; }
.project .tb { --cols: 2; flex: 1; align-content: start; }
.project .tb > div:nth-child(4) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

/* Condition survey rows */
.surveys { display: grid; gap: 20px; }
.survey { display: grid; grid-template-columns: 300px 1fr; border: 1.5px solid var(--ink); background: var(--white); }
.survey img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-right: 1.5px solid var(--ink); }
.survey > div { padding: 20px 24px; }
.survey h3 { margin-bottom: 6px; }
.survey .where { font-family: var(--head); font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.survey p { margin: 0; font-size: 1.05rem; }
@media (max-width: 700px) { .survey { grid-template-columns: 1fr; } .survey img { border-right: 0; border-bottom: 1.5px solid var(--ink); max-height: 220px; } }

/* Feature (marine) */
.feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.feature .main img { width: 100%; border: 1.5px solid var(--ink); border-bottom: 0; }
.feature .side { display: grid; gap: 20px; align-content: start; }
.feature .side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid var(--ink); }
.feature .side img.model { object-fit: contain; background: var(--white); }
.feature-copy { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .feature, .feature-copy { grid-template-columns: 1fr; } }

/* Dark band: NDT laboratory, with drawing grid */
.on-dark { background-color: var(--teal-night); color: #e6efef; }
.on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark a { color: var(--teal-light); }
.grid-bg {
  background-image:
    linear-gradient(rgba(111,192,198,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,192,198,.09) 1px, transparent 1px),
    linear-gradient(rgba(111,192,198,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,192,198,.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.ndt { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.ndt .intro { color: #d5e4e4; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; font-family: var(--head); font-size: 1.15rem; }
.checks li { padding: 10px 0 10px 30px; border-top: 1px solid rgba(111,192,198,.3); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; background: var(--teal-light); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.equip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(111,192,198,.5); }
.equip > div { padding: 20px; border-left: 1px solid rgba(111,192,198,.5); }
.equip > div:first-child { border-left: 0; }
.equip h3 { font-size: 1.25rem; padding-bottom: 12px; border-bottom: 1px solid rgba(111,192,198,.5); }
.equip h4 { color: var(--teal-light); font-size: 0.85rem; margin: 14px 0 4px; }
.equip p { font-size: 1rem; line-height: 1.55; margin: 0; }
@media (max-width: 1000px) { .ndt { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .equip { grid-template-columns: 1fr; } .equip > div { border-left: 0; border-top: 1px solid rgba(111,192,198,.5); } .equip > div:first-child { border-top: 0; } }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.cap-group { padding: 24px 28px 28px 0; }
.cap-group + .cap-group { padding-left: 28px; border-left: 1px solid var(--rule); }
.cap-group ul { list-style: none; padding: 0; margin: 0; }
.cap-group li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.cap-group li::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; background: var(--teal); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
@media (max-width: 860px) { .caps { grid-template-columns: 1fr; } .cap-group, .cap-group + .cap-group { padding: 24px 0; border-left: 0; } }

/* Service blocks */
.service { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 64px); padding: 40px 0; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 1.5px solid var(--ink); }
.service h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-stretch: 80%; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 8px; } }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); background: var(--white); }
.creds > div { padding: 24px; border-left: 1px solid var(--ink); }
.creds > div:first-child { border-left: 0; }
.creds h3 { font-size: 1.2rem; margin-bottom: 8px; }
.creds p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .creds { grid-template-columns: 1fr; } .creds > div { border-left: 0; border-top: 1px solid var(--ink); } .creds > div:first-child { border-top: 0; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person { border-top: 3px solid var(--teal); padding-top: 16px; }
.person h3 { margin-bottom: 2px; font-size: 1.3rem; }
.person .role { font-family: var(--head); font-size: 0.95rem; color: var(--teal-deep); font-weight: 600; margin-bottom: 4px; }
.person .quals { font-family: var(--head); font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.person p { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.team.core .person { border-top-width: 1.5px; border-top-color: var(--ink); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* Page heads */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-head p { font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); max-width: 50ch; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.contact .tb { --cols: 1; }
.contact .tb > div { border-left: 0; border-top: 1px solid var(--ink); padding: 14px 18px; }
.contact .tb > div:first-child { border-top: 0; }
.contact .tb .v { font-size: 1.1rem; }
.contact .tb a { color: var(--ink); }
.map { border: 1.5px solid var(--ink); width: 100%; min-height: 420px; height: 100%; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .map { min-height: 320px; } }

/* CTA */
.cta { text-align: left; }
.cta h2 { max-width: 20ch; }
.cta p { font-size: 1.2rem; color: #d5e4e4; }

/* Footer */
.site-foot { padding-bottom: 80px; background: var(--ink); color: #c9d1d1; font-family: var(--head); font-size: 0.95rem; padding: 56px 0 28px; }
.site-foot a { color: #e8eeee; text-decoration: none; }
.site-foot a:hover { color: var(--teal-light); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { background: var(--white); padding: 12px 14px; display: inline-block; }
.foot-logo img { width: 170px; }
.site-foot h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid #3c4444; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp quick button */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: #1f7a4d; color: #fff; font-family: var(--head); font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 12px 16px; border: 1.5px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.wa:hover { background: #17633e; color: #fff; }
