/* =====================================================
   The Jovanis Group — Production CSS (v2, design-refined)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --navy: #1b3966;
  --navy-deep: #132b4d;
  --navy-card: #22467a;
  --green: #52ac49;
  --blue: #1fa9e1;
  --subhead: #c5d0e0;
  --charcoal: #2b2f36;
  --body: #4a4f58;
  --sage-bg: #f2f6ef;
  --white: #ffffff;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --edge: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--green); color: #fff; }

.inner { max-width: var(--edge); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 20px; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .logo-track { animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 64px; background: #fff;
  border-bottom: 1px solid #e7e9ee;
  position: sticky; top: 0; z-index: 100;
}
.logo-lockup { line-height: 0.95; display: flex; flex-direction: column; }
.logo-lockup .l1 { font: 400 26px var(--font-body); font-weight: 800; letter-spacing: 1px; color: var(--navy); }
.logo-lockup .l2 { font: 700 12px var(--font-body); letter-spacing: 5px; color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a.nav-link { font-size: 15px; font-weight: 600; color: var(--navy); padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { border-bottom-color: var(--green); }

.btn-angle {
  display: inline-block; font: 800 14px var(--font-body); color: #fff;
  background: var(--green); padding: 15px 32px;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  cursor: pointer; border: none;
}
.btn-angle:hover { background: #468f3e; }
.btn-angle.on-green { color: var(--navy-deep); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy);
  padding: 104px 64px 0; overflow: hidden;
}
.hero .angle-shape {
  position: absolute; top: 0; right: 0; width: 46%; height: 100%;
  background: var(--navy-deep);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.hero .hero-inner {
  position: relative; z-index: 2; max-width: var(--edge); margin: 0 auto; padding-bottom: 96px;
}
.hero h1 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  color: #fff; font-size: 64px; line-height: 1.02; max-width: 920px; margin: 0 0 28px;
}
.hero h1 .accent { color: var(--blue); }
.hero .hero-sub {
  font-size: 19px; line-height: 1.65; color: var(--subhead); max-width: 500px; margin: 0 0 36px;
}

/* ---------- Section scaffolding ---------- */
section.pad { padding: 88px 64px; }
section.pad-tight { padding: 72px 64px; }

.marker-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.marker-num {
  width: 34px; height: 34px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 800 15px var(--font-body);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}
.marker-label {
  font: 800 13px var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--navy); margin: 0;
}
.eyebrow {
  font: 800 13px var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--navy); margin: 0 0 18px;
}
.lede-strong {
  font-size: 21px; line-height: 1.6; color: var(--navy); font-weight: 700; max-width: 740px; margin: 0 0 20px;
}
.para {
  font-size: 16.5px; line-height: 1.85; color: var(--body); max-width: 740px; margin: 0 0 18px;
}
.para:last-child { margin-bottom: 0; }

h2.anton {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 32px; margin: 0 0 44px;
}
h2.anton.navy { color: var(--navy); }
h2.anton.white { color: #fff; }
h2.anton.tight-below { margin-bottom: 24px; }

/* ---------- Roles grid ---------- */
.roles { background: var(--navy); }
.roles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.role-card {
  background: var(--navy-card); padding: 24px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 90% 100%, 0 100%);
}
.role-card .num { font: 800 24px var(--font-body); color: var(--green); margin-bottom: 16px; }
.role-card h3 { font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.role-card p { font-size: 13px; color: var(--subhead); line-height: 1.55; margin: 0; }

/* ---------- Logo marquee ---------- */
.logo-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logo-track { display: flex; width: max-content; animation: logo-marquee 28s linear infinite; }
.logo-track:hover { animation-play-state: paused; }
@keyframes logo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-slot {
  flex: 0 0 200px; background: var(--sage-bg); height: 100px;
  display: flex; align-items: center; justify-content: center; padding: 24px; margin-right: 16px;
}
.logo-slot img { max-height: 40px; max-width: 80%; width: auto; object-fit: contain; }

/* ---------- Testimonials ---------- */
.tstimonials { background: var(--sage-bg); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: #fff; padding: 30px; border-left: 5px solid var(--green); }
.tcard .quote { font-size: 15px; line-height: 1.65; color: var(--charcoal); margin: 0 0 18px; font-style: italic; }
.tcard cite { font-style: normal; font-size: 14px; font-weight: 800; color: var(--navy); }

/* ---------- Closer ---------- */
.closer {
  position: relative; background: var(--navy); padding: 96px 64px; text-align: center; overflow: hidden;
}
.closer .top-rule { position: absolute; top: 0; left: 0; width: 100%; height: 10px; background: var(--green); }
.closer h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; color: #fff; font-size: 38px; margin: 0 0 22px; }
.closer p { font-size: 17px; color: var(--subhead); line-height: 1.7; max-width: 640px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--subhead); padding: 56px 64px 32px; font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; }
.footer-col a, .footer-col p { display: block; color: var(--subhead); margin: 0 0 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; color: rgba(197,208,224,.7); font-size: 13px; }
.footer-brand .l1 { font-weight: 800; letter-spacing: 1px; color: #fff; font-size: 18px; }

/* ---------- Page hero (About/Connect) ---------- */
.page-hero { position: relative; background: var(--navy); padding: 72px 64px; overflow: hidden; }
.page-hero .angle-shape { position: absolute; top: 0; right: 0; width: 40%; height: 100%; background: var(--navy-deep); clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero h1 { position: relative; z-index: 2; max-width: var(--edge); margin: 0 auto; font-family: var(--font-display); text-transform: uppercase; font-weight: 400; color: #fff; font-size: 44px; }

/* ---------- About body ---------- */
.about-lede { font-family: var(--font-body); font-weight: 800; font-size: 26px; color: var(--navy); max-width: 720px; margin: 0 0 28px; }
.about-body { max-width: 760px; }
.about-body .para { max-width: none; }
.about-body::after { content: ""; display: block; clear: both; }
.subhead-anton { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; color: var(--navy); font-size: 26px; margin: 40px 0 20px; }
.headshot {
  width: 240px; height: 290px; object-fit: cover; object-position: top center;
  box-shadow: 0 16px 36px rgba(27,57,102,.18);
}
.headshot.right { float: right; margin: 4px 0 20px 32px; }
.headshot.left { float: left; margin: 4px 32px 20px 0; }
@media (max-width: 620px) {
  .headshot.right, .headshot.left { float: none; margin: 8px 0 24px; width: 200px; height: 242px; }
}

/* ---------- Connect form ---------- */
.connect-grid { max-width: 640px; }
.form-box { background: var(--sage-bg); padding: 36px; border-left: 5px solid var(--green); }
.form-box label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin: 18px 0 6px; }
.form-box label .opt { font-weight: 400; color: #8a909a; }
.form-box input, .form-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d3d8e0; border-radius: 4px;
  font-family: var(--font-body); font-size: 15px; color: var(--charcoal); background: #fff;
}
.form-box textarea { min-height: 120px; resize: vertical; }
.form-box .btn-angle { margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 760px) {
  .site-header { padding: 18px 24px; position: relative; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 24px 24px;
    border-bottom: 1px solid #e7e9ee; box-shadow: 0 12px 24px rgba(0,0,0,.08); z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 24px 0; }
  .hero .angle-shape { display: none; }
  .hero h1 { font-size: 34px; }
  section.pad, section.pad-tight, .closer { padding: 56px 24px; }
  .page-hero { padding: 56px 24px; }
  .page-hero .angle-shape { display: none; }
  .roles-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 48px 24px 28px; }
  .footer-grid { flex-direction: column; }
}
