/* =========================================================
   Veridice Digital Solutions — Static brochure site
   Design tokens & global styles
   ========================================================= */

:root {
  /* Brand */
  --accent: #35e681;          /* Veridice brand green */
  --accent-strong: #2bd673;
  --accent-hover: #29d76e;

  /* Surfaces */
  --black: #000000;
  --navy: #00060f;            /* deep navy sections */
  --header-bg: #00060f;       /* sticky header */

  /* Text */
  --text-on-dark: #f2f4f7;
  --text-muted-dark: #aab2c0;
  --text-on-light: #1b2230;
  --text-muted-light: #5c6470;

  /* Layout */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 72px;

  /* Type */
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Lexend", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-on-dark);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent { color: var(--accent); }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.footer-brand .logo img { height: 56px; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--text-on-dark);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: #8aa0ff; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  padding: 8px;
  color: #fff;
}
.menu-toggle svg { width: 100%; height: 100%; }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #1c2433;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18vh;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-family: var(--font-body);
  font-size: 28px;
  color: #f2f4f7;
}
.mobile-menu a:hover { color: var(--accent); }
.menu-close {
  position: absolute;
  top: 22px; right: 28px;
  background: none; border: 0;
  color: #fff;
  width: 40px; height: 40px;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: #06321d;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }

/* ----------------------------- Sections ----------------------------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--black { background: var(--black); }
.section--navy  { background: var(--navy); }
.section--white { background: #fff; color: var(--text-on-light); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 18px;
}
.section-title {
  color: var(--accent);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  margin-bottom: 28px;
}

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; background: var(--black); overflow: hidden; }
.hero-inner { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 70px); }
.hero h1 {
  color: #fff;
  font-size: clamp(44px, 8.5vw, 92px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-top: 4px;
}
.hero-graphic {
  position: relative;
  margin: clamp(20px, 4vw, 48px) auto 0;
  max-width: 860px;
  width: 100%;
}
.chevron-link { display: block; position: relative; }
.hero-graphic .chevron-label {
  position: absolute;
  left: 64%;
  top: 72%;
  transform: translate(-50%, -50%) rotate(-33deg);
  transform-origin: center;
  color: #eafff4;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
}

/* Service list under hero */
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 64px);
}
.service-list li {
  list-style: none;
  position: relative;
  padding-left: 16px;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 17px);
  color: #f2f4f7;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 4px; height: 1.7em;
  border-radius: 4px;
  background: var(--accent);
}
.service-list ul { margin: 0; padding: 0; }

/* ----------------------------- We Solve Problems ----------------------------- */
.problems { position: relative; background: #fff; color: var(--text-on-light); }
.problems-banner {
  position: relative;
  background: var(--black);
  text-align: center;
  padding-top: clamp(36px, 6vw, 70px);
}
.outline-title {
  display: block;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  overflow: visible;
  /* the second word overlaps the black/white boundary */
  position: relative;
  z-index: 2;
  transform: translateY(50%);
}
/* Pre-unioned vector outlines (generated) — no internal contour seams */
.ot-text {
  fill: none;
  stroke-width: 1.6;          /* px, kept constant via non-scaling-stroke */
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ot-light { stroke: rgba(255, 255, 255, 0.92); }  /* over black banner */
.ot-dark  { stroke: rgba(12, 19, 34, 0.92); }     /* over white body */
/* room for the bottom half of the title, which overflows the black banner */
.problems-body { padding-top: clamp(80px, 20vw, 200px); text-align: center; }
.problems-lead {
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  font-size: clamp(17px, 1.7vw, 20px);
  color: #2b3445;
}

.gem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.gem-card { text-align: center; }
.gem-card .gem { width: clamp(86px, 9vw, 120px); margin: 0 auto 22px; }
.gem-card h3 {
  color: var(--accent-strong);
  font-size: clamp(16px, 1.6vw, 19px);
  margin-bottom: 14px;
}
.gem-card p {
  margin: 0;
  font-size: 15px;
  color: #2b3445;
}

/* ----------------------------- Expertise ----------------------------- */
.expertise-lead { max-width: 620px; }
.expertise-lead p { margin: 0 0 18px; color: var(--text-muted-dark); }
.expertise-lead p strong { color: #fff; font-weight: 700; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-block: 1px solid rgba(43, 224, 140, 0.55);
}
.expertise-col {
  padding: 30px clamp(20px, 2.5vw, 36px) 56px;
}
.expertise-col + .expertise-col { border-left: 1px solid rgba(43, 224, 140, 0.55); }
.expertise-badge {
  display: inline-block;
  background: var(--accent);
  color: #06321d;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 34px;
}
.expertise-col ul { list-style: none; margin: 0; padding: 0; }
.expertise-col li {
  padding: 14px 0;
  font-size: 15px;
  color: var(--text-muted-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.expertise-col li:last-child { border-bottom: 0; }
.expertise-cta { text-align: center; margin-top: clamp(48px, 6vw, 80px); }

/* ----------------------------- Mission ----------------------------- */
.mission { background: #fff; color: var(--text-on-light); }
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}
.mission-text p { margin: 0 0 26px; line-height: 1.5; }
.mission-text p strong { display: block; color: #0c1322; font-weight: 700; }
.mission-text .faded { display: block; color: #aeb6c2; }
.mission-cube { max-width: 320px; margin-inline: auto; }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  position: relative;
  background: #fff;
  color: var(--text-on-light);
  padding-top: clamp(40px, 6vw, 70px);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  position: relative;
  z-index: 2;
}
.footer-brand .logo { margin-bottom: 28px; }
.footer-brand address {
  font-style: normal;
  color: #2b3445;
  line-height: 1.7;
  font-size: 15px;
}
.footer-brand a { text-decoration: underline; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #0c1322;
  margin-bottom: 28px;
}
.footer-col a {
  display: block;
  color: #2b3445;
  font-size: 15px;
  margin-bottom: 22px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent-strong); }
.footer-beams {
  position: relative;
  margin-top: clamp(30px, 5vw, 50px);
}
.footer-beams svg { width: 100%; height: 100%; }
.footer-beams img { width: 100%; height: auto; display: block; }

/* ----------------------------- Contact page ----------------------------- */
.contact { position: relative; background: var(--black); overflow: hidden; min-height: calc(100vh - var(--header-h)); }
.contact-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact-title { font-size: clamp(40px, 7vw, 64px); margin-bottom: clamp(40px, 6vw, 70px); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 5vw, 70px);
}
.contact-info .info-block { margin-bottom: 30px; }
.contact-info h3 { color: var(--accent); font-size: 17px; margin-bottom: 4px; }
.contact-info p { margin: 0; color: #e6e9ee; font-size: 16px; }

/* Form */
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label {
  display: block;
  font-size: 14px;
  color: #cfd5de;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: 14px; color: #cfd5de; min-height: 1.2em; }
.form-status--ok { color: var(--accent); }
.form-status--error { color: #ff7a7a; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ----------------------------- Careers page ----------------------------- */
.careers { position: relative; background: var(--black); overflow: hidden; }
.careers .container { position: relative; z-index: 1; }
.careers-title { text-align: center; font-size: clamp(40px, 7vw, 64px); margin-bottom: clamp(36px, 5vw, 56px); }
.careers-body { max-width: 620px; margin-inline: auto; }
.careers-body p { color: var(--text-muted-dark); margin: 0 0 22px; }
.careers-body ul { margin: 0 0 22px; padding-left: 24px; }
.careers-body li { color: var(--text-muted-dark); margin-bottom: 10px; }
.careers-body .highlight { color: var(--accent); }
.careers-body a { color: var(--accent); text-decoration: underline; }

/* ----------------------------- About page ----------------------------- */
.about { background: #fff; color: var(--text-on-light); }
.about .section-title,
.about-body,
.about-gems { max-width: 680px; margin-inline: auto; }
.about-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #0c1322;
  margin: 0 0 6px;
}
.about-body h3:not(:first-child) { margin-top: 34px; }
.about-body p { margin: 0 0 16px; color: #5c6470; line-height: 1.55; }
.about-gems {
  grid-template-columns: repeat(3, 1fr);
  margin-block: clamp(40px, 5vw, 60px);
}
.about-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 80px);
}
.about-tags span {
  position: relative;
  padding-left: 16px;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 17px);
  color: #1b2230;
}
.about-tags span::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 4px; height: 1.7em;
  border-radius: 4px;
  background: var(--accent);
}

/* ----------------------------- Reveal on scroll ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
  .expertise-grid { grid-template-columns: 1fr; border: 0; }
  .expertise-col { border-left: 0 !important; border-top: 1px solid rgba(43,224,140,0.55); }
  .expertise-col:first-child { border-top: 0; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-cube { grid-row: 1; max-width: 240px; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .gem-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .service-list { grid-template-columns: 1fr; }
  .gem-grid { grid-template-columns: 1fr; }
  .about-tags { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
