/* PentaC Solutions landing page
   Brand palette from the brochure: deep blue + science green */
:root {
  --blue-900: #0a2f5c;
  --blue-800: #0d3f78;
  --blue-700: #11519a;
  --blue-600: #1763b8;
  --green: #3bb54a;
  --green-dark: #2e9a3c;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #e3e9f1;
  --tint: #f4f7fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 63, 120, .08);
  --shadow-lg: 0 20px 50px rgba(13, 63, 120, .16);
  --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--blue-900); letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .85em 1.6em; border-radius: 999px;
  font-weight: 500; font-size: .95rem; border: 2px solid transparent;
  background: var(--blue-700); color: var(--white);
  transition: background .2s, transform .2s, box-shadow .2s, color .2s, border-color .2s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-sm { padding: .6em 1.3em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark);
  margin-bottom: .9rem; position: relative; padding-left: 26px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 2px;
  background: currentColor;
}
.eyebrow.light { color: #8fe39a; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(13,63,120,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand span { font-family: "Rosarivo", Georgia, serif; font-size: 1.45rem; color: #3a3a3a; letter-spacing: .01em; }
.brand-light span { color: var(--white); }
.brand-light img { background: var(--white); border-radius: 10px; padding: 4px 6px; height: 48px; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--green); transition: width .25s;
}
.menu a:not(.btn):hover::after, .menu a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-800); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/microscope.jpg") right center / cover no-repeat;
  opacity: .12; mix-blend-mode: luminosity;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32V66' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
}
.dna { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: #8fe39a; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-visual { position: relative; height: 440px; }
.hex { position: absolute; clip-path: var(--hex); overflow: hidden; }
.hex img { width: 100%; height: 100%; object-fit: cover; }
.hex-lg { width: 330px; height: 290px; right: 70px; top: 0; background: var(--white); padding: 0; }
.hex-md { width: 240px; height: 210px; right: 0; top: 215px; }
.hex-solid { background: var(--blue-900); }
.hex-sm { width: 120px; height: 105px; left: 20px; top: 290px; }
.hex-green { background: var(--green); }
.hex-xs { width: 80px; height: 70px; left: 70px; top: 70px; opacity: .9; }
.hex-lg, .hex-md { filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }

.stats {
  position: relative; list-style: none; margin: 3.5rem 0 0; padding: 1.6rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); backdrop-filter: blur(6px);
}
.stats li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 3px solid var(--green); }
.stats strong { font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.stats span { font-size: .88rem; color: rgba(255,255,255,.75); }

/* ---------- Locations ---------- */
.locations { background: var(--blue-900); color: var(--white); padding: 1rem 0; }
.locations .container { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.loc-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8fe39a; font-weight: 600; }
.locations ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.locations li { font-size: .92rem; font-weight: 500; padding: 0 1.1rem; border-left: 1px solid rgba(255,255,255,.25); }
.locations li:first-child { border-left: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-tight { padding: 4rem 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head.light h2 { color: var(--white); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.cert-inline {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem;
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.cert-inline img { width: 64px; height: 64px; }
.cert-inline strong { display: block; color: var(--green-dark); font-weight: 600; }
.cert-inline span { font-size: .88rem; color: var(--muted); }

.vm { display: grid; gap: 1.5rem; }
.vm-card {
  padding: 1.8rem; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.vm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.vm-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.vm-head svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vm-head h3 { margin: 0; font-size: 1.35rem; color: var(--blue-900); }
.vm-card p:last-child { margin-bottom: 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: .9rem; color: var(--ink); }
.steps li::before {
  content: counter(s); flex: 0 0 30px; height: 34px; display: grid; place-items: center;
  background: var(--green); color: var(--white); font-weight: 600; font-size: .85rem; clip-path: var(--hex);
}

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 60px; height: 54px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); clip-path: var(--hex);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; color: var(--blue-900); }
.card p { font-size: .93rem; }
.ticks { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1rem; margin-top: 2.5rem; }
.also > span { font-weight: 600; color: var(--blue-900); font-size: .95rem; }
.also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.also li { padding: .4em 1em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ---------- Brands ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.tabs button {
  font-family: inherit; font-size: .92rem; font-weight: 500; cursor: pointer;
  padding: .65em 1.3em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--muted); transition: all .2s;
}
.tabs button:hover { color: var(--blue-700); border-color: var(--blue-700); }
.tabs button[aria-selected="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.tab-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sub { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); text-align: center; margin: 0 0 1.2rem; }
.logos + .sub { margin-top: 2.5rem; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.logos figure { margin: 0; text-align: center; flex: 0 1 172px; }
.logos img, .logos .wordmark {
  height: 110px; width: 100%; object-fit: contain; padding: 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, transform .25s;
}
.logos figure:hover img, .logos figure:hover .wordmark { box-shadow: var(--shadow); transform: translateY(-3px); }
.logos figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.wordmark {
  display: grid; place-items: center; font-weight: 700; font-size: 1.15rem;
  letter-spacing: .04em; color: var(--blue-800);
}
.wordmark small { font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: 0; }

.brand-list { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
.brand-list.two-col { grid-template-columns: 1fr 1fr; max-width: none; }
.brand-row {
  display: flex; align-items: center; gap: 1.2rem; padding: .9rem 1.2rem .9rem .9rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, border-color .25s;
}
.brand-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.brand-logo {
  flex: 0 0 110px; height: 64px; display: grid; place-items: center;
  border-radius: 10px; background: var(--tint); padding: .5rem;
}
.brand-logo img { max-height: 100%; width: auto; object-fit: contain; }
.brand-logo .wordmark { font-size: .95rem; }
.brand-row strong { display: block; color: var(--blue-900); font-weight: 600; font-size: .98rem; }
.brand-row span { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ---------- Clients ---------- */
.section-blue { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: var(--white); overflow: hidden; }
.hex-pattern {
  position: absolute; inset: 0; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32V66' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
}
.section-blue .container { position: relative; }
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.clients li {
  display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center;
  padding: 1.8rem 1rem; border-radius: var(--radius); font-weight: 500;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: background .25s, transform .25s;
}
.clients li:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.clients svg { width: 38px; height: 38px; fill: none; stroke: #8fe39a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Credentials ---------- */
.creds {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center;
  padding: 2.5rem; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.creds-intro { display: flex; gap: 1.4rem; align-items: center; }
.creds-intro img { flex: 0 0 96px; }
.creds-intro h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.creds-intro p { margin: 0; font-size: .93rem; }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.cred-list li { position: relative; padding-left: 1.6rem; font-weight: 500; font-size: .95rem; }
.cred-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 13px;
  background: var(--green); clip-path: var(--hex);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci {
  flex: 0 0 48px; height: 44px; display: grid; place-items: center;
  background: var(--blue-700); clip-path: var(--hex);
}
.ci svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { font-weight: 500; color: var(--blue-800); }
.contact-list a:hover { color: var(--green-dark); }

.form { background: var(--white); padding: 2.2rem; border-radius: 20px; box-shadow: var(--shadow-lg); display: grid; gap: 1rem; }
.form h3 { font-size: 1.3rem; color: var(--blue-900); margin: 0 0 .3rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; padding: .75em .95em; border-radius: 10px;
  border: 1px solid var(--line); background: var(--tint); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue-600); background: var(--white); box-shadow: 0 0 0 4px rgba(23,99,184,.12);
}
.form .invalid { border-color: #d64545; }
.form-error { color: #c43c3c; font-size: .88rem; margin: 0; }
.form-note { font-size: .8rem; text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: #071f3d; color: rgba(255,255,255,.7); padding: 4rem 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer p { color: rgba(255,255,255,.6); margin-top: 1rem; max-width: 22rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a:not(.brand) { display: block; margin-bottom: .5rem; transition: color .2s; }
.footer-grid a:not(.brand):hover { color: #8fe39a; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; font-size: .85rem;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 380px; transform: scale(.88); transform-origin: right center; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 16px 1.2rem;
    box-shadow: 0 20px 30px rgba(13,63,120,.08); display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid, .about-grid, .contact-grid, .creds { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 1.4rem; row-gap: 1.4rem; }
  .about-grid, .contact-grid { gap: 2.5rem; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .brand-list.two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand span { font-size: 1.2rem; }
  .brand img { height: 38px; }
  .cards { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
  .form .row { grid-template-columns: 1fr; }
  .cred-list { grid-template-columns: 1fr; }
  .creds { padding: 1.6rem; }
  .creds-intro { flex-direction: column; align-items: flex-start; }
  .logos { gap: .8rem; }
  .logos figure { flex-basis: calc(50% - .4rem); }
  .logos img, .logos .wordmark { height: 90px; padding: .8rem; }
  .brand-row { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .brand-logo { flex-basis: auto; width: 120px; }
  .locations li { padding: 0 .6rem; font-size: .85rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
}
