/* ===========================================================
   Zynt Bio — shared stylesheet
   Palette sampled from the logo:
     navy  #041D53   teal #036C76   green #6D882D
   =========================================================== */

:root {
  --navy:        #041D53;
  --navy-deep:   #02143C;
  --navy-soft:   #123070;
  --teal:        #036C76;
  --teal-bright: #0A8C98;
  --green:       #6D882D;
  --green-soft:  #85A33C;

  --ink:         #1B2430;
  --body:        #3A4658;
  --muted:       #6B7A8F;
  --line:        #DFE5EC;
  --surface:     #F5F7F9;
  --white:       #FFFFFF;

  --nav-idle:    #A8B6C8;

  --wrap: 1180px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--surface);
  color: var(--body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); }

/* ---------- Header ---------- */

header {
  background-color: var(--navy);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--green);
  position: relative;
  z-index: 200;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: var(--white);
  width: 46px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  /* column: without this, flex lays the 3 bars out in a ROW and they
     collapse into what looks like a single line */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 2px; }
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  margin: 0;
  transition: transform .2s, opacity .2s;
}
header.open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.open .nav-toggle .bar:nth-child(2) { opacity: 0; }
header.open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav { display: flex; align-items: center; }

nav > a,
.dropdown-trigger {
  color: var(--nav-idle);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 600;
  font-size: 16px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s;
}
nav > a:hover,
nav > a.active,
.dropdown-trigger:hover,
.dropdown-trigger[aria-expanded="true"] { color: var(--green-soft); }
nav > a:focus-visible,
.dropdown-trigger:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 3px; border-radius: 3px; }

/* ---------- Dropdown ---------- */

.dropdown { position: relative; display: inline-block; }
.dropdown-trigger { padding: 10px 0; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 30px;
  min-width: 210px;
  background-color: var(--navy-deep);
  box-shadow: 0 12px 30px rgba(2,20,60,.35);
  border-top: 3px solid var(--green);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  z-index: 300;
}
.dropdown-menu a {
  color: var(--nav-idle);
  padding: 11px 22px;
  text-decoration: none;
  display: block;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible { background-color: var(--navy-soft); color: var(--white); }
.dropdown-menu a.active { color: var(--green-soft); }

/* Hover on pointer devices only — never on touch */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu { display: block; }
  .dropdown:hover .dropdown-trigger { color: var(--green-soft); }
}
/* Click/tap works everywhere */
.dropdown.open .dropdown-menu { display: block; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0A3D63 58%, var(--teal) 100%);
  color: var(--white);
  padding: 72px 32px;
  text-align: center;
  position: relative;
}
/* Hairline in the logo's green, separating header from hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: rgba(255,255,255,.12);
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.hero p { color: #B9C6D6; font-size: clamp(16px, 2vw, 19px); margin: 0 auto; max-width: 780px; }
.hero .subtitle {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--green-soft);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero--home { padding: 96px 32px; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--wrap);
  margin: -32px auto 64px;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(4,29,83,.06);
  position: relative;
  z-index: 10;
}

h2 {
  color: var(--navy);
  font-size: clamp(22px, 2.8vw, 28px);
  border-left: 4px solid var(--teal);
  padding-left: 16px;
  margin-top: 48px;
  margin-bottom: 18px;
  line-height: 1.3;
}
.container > h2:first-child { margin-top: 0; }

h3 { color: var(--navy); }

p { margin-bottom: 20px; font-size: 17px; color: var(--body); }

ul { padding-left: 22px; }
li { margin-bottom: 8px; color: var(--body); }

.note {
  background-color: var(--surface);
  padding: 26px 30px;
  border-radius: 10px;
  border-left: 4px solid var(--teal);
  margin-top: 32px;
}
.note p:last-child { margin-bottom: 0; }

.placeholder {
  background-color: var(--surface);
  padding: 40px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
}
.placeholder p { margin: 0; color: var(--muted); }

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }

.pillar-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.pillar-card h3 {
  margin-top: 0;
  font-size: 19px;
  border-bottom: 2px solid var(--surface);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.pillar-card p { font-size: 15.5px; margin: 0; color: var(--body); }

.sector-card {
  padding: 26px;
  background-color: var(--surface);
  border-radius: 10px;
  border-top: 3px solid var(--teal);
}
.sector-card h4 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.sector-card p { font-size: 15.5px; margin: 0; }

.service-block {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 28px;
}
.service-block h3 { margin-top: 0; font-size: 21px; }
.service-block p:last-child, .service-block ul:last-child { margin-bottom: 0; }

.step { margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.step h3 { color: var(--teal); margin-bottom: 8px; font-size: 20px; }

/* Lifecycle strip */
.lifecycle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}
.lifecycle li {
  flex: 1 1 180px;
  background: var(--surface);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
}
.lifecycle li span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }

/* ---------- Contact details ---------- */

.contact-details { list-style: none; padding: 0; margin: 0; }
.contact-details li { margin-bottom: 12px; }
.contact-details a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-details a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Form ---------- */

form {
  margin-top: 32px;
  background-color: var(--surface);
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
form h3 { margin-top: 0; font-size: 22px; margin-bottom: 18px; }

label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 15px; color: var(--navy); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #C6D0DC;
  border-radius: 8px;
  font-size: 16px;   /* 16px minimum stops iOS zoom-on-focus */
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(3,108,118,.14);
}
textarea { height: 130px; resize: vertical; }

button[type="submit"] {
  background-color: var(--teal);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  width: 100%;
  transition: background .2s;
}
button[type="submit"]:hover { background-color: var(--teal-bright); }
button[type="submit"]:focus-visible { outline: 3px solid var(--green-soft); outline-offset: 2px; }
button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* Honeypot — hidden from humans, visible to bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#form-status { margin: 16px 0 0; font-weight: 600; font-size: 16px; }
#form-status.success { color: var(--teal); }
#form-status.error   { color: #B4232A; }
#form-status:empty   { margin: 0; }

/* ---------- Footer ---------- */

footer {
  background-color: var(--navy-deep);
  color: var(--nav-idle);
  padding: 48px 32px 28px;
  font-size: 15.5px;
}
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo img { height: 54px; width: auto; margin-bottom: 16px; }
footer p { color: var(--nav-idle); font-size: 15.5px; margin: 5px 0; }
.footer-head { color: var(--white); font-weight: 600; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
footer li { margin: 0; }
footer a { color: var(--nav-idle); text-decoration: none; }
footer a:hover { color: var(--green-soft); text-decoration: underline; }
.footer-base {
  max-width: var(--wrap);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 14px;
  color: #7A8899;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 32px 24px; margin: -20px 16px 48px; }
  .hero, .hero--home { padding: 56px 24px; }
  header { padding: 12px 20px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-deep);
    border-bottom: 3px solid var(--green);
    padding: 8px 0 14px;
    box-shadow: 0 16px 32px rgba(2,20,60,.3);
  }
  header.open nav { display: flex; }

  nav > a,
  .dropdown-trigger {
    margin-left: 0;
    padding: 14px 24px;
    font-size: 17px;
    width: 100%;
    text-align: left;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .dropdown { display: block; width: 100%; }
  .dropdown-trigger { display: flex; justify-content: space-between; align-items: center; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: 0;
    border-radius: 0;
    min-width: 0;
    padding: 0;
    background: rgba(0,0,0,.22);
  }
  .dropdown-menu a { padding: 13px 24px 13px 40px; font-size: 16px; }

  footer { padding: 40px 24px 24px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 26px 18px; }
  .logo img { height: 38px; }
  form { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
