/* Apex Media Brands — site styles. No external fonts or scripts. */
:root {
  --ink: #0f1724;
  --ink-soft: #3c4657;
  --muted: #6b7587;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --navy: #0d1a2b;
  --navy-2: #13253c;
  --blue: #4495ee;
  --blue-dark: #2b78cc;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 34px; height: 34px; }
.logo-text { display: flex; align-items: baseline; gap: 0.42em; line-height: 1; white-space: nowrap; font-size: 17px; letter-spacing: 0.12em; }
.logo-text strong { font-weight: 800; }
.logo-text span { font-weight: 500; }
.logo--light { color: #fff; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.nav-cta { background: var(--ink); color: #fff; }
.nav a.nav-cta:hover { background: var(--navy-2); }

/* Hero */
.hero {
  background: radial-gradient(1100px 500px at 85% -10%, rgba(68, 149, 238, 0.28), transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 104px 0 112px;
  overflow: hidden;
}
.hero--page { padding: 80px 0 72px; }
/* Home hero: manufacturing photo faded under the navy, strongest on the right, behind the text it's nearly hidden. */
.hero--home {
  background:
    linear-gradient(90deg, rgba(13, 26, 43, 0.97) 0%, rgba(13, 26, 43, 0.9) 42%, rgba(15, 30, 50, 0.7) 100%),
    radial-gradient(1100px 500px at 85% -10%, rgba(68, 149, 238, 0.28), transparent 60%),
    url("hero-bottles.jpg") center right / cover no-repeat,
    var(--navy);
}
/* About hero: same treatment, weightlifting photo. Subject sits to the right of the text. */
.hero--about {
  background:
    linear-gradient(90deg, rgba(13, 26, 43, 0.97) 0%, rgba(13, 26, 43, 0.9) 42%, rgba(15, 30, 50, 0.7) 100%),
    radial-gradient(1100px 500px at 85% -10%, rgba(68, 149, 238, 0.28), transparent 60%),
    url("hero-about.jpg") 75% 8% / cover no-repeat,
    var(--navy);
}
/* Careers hero: same treatment, man at a computer (image mirrored so he sits right, facing the text). */
.hero--careers {
  background:
    linear-gradient(90deg, rgba(13, 26, 43, 0.97) 0%, rgba(13, 26, 43, 0.9) 42%, rgba(15, 30, 50, 0.7) 100%),
    radial-gradient(1100px 500px at 85% -10%, rgba(68, 149, 238, 0.28), transparent 60%),
    url("hero-careers.jpg") 80% 20% / cover no-repeat,
    var(--navy);
}
/* Contact hero: same treatment, the office building photo (not mirrored; it's a real building). */
.hero--contact {
  background:
    linear-gradient(90deg, rgba(13, 26, 43, 0.97) 0%, rgba(13, 26, 43, 0.9) 42%, rgba(15, 30, 50, 0.7) 100%),
    radial-gradient(1100px 500px at 85% -10%, rgba(68, 149, 238, 0.28), transparent 60%),
    url("office.jpg") center 80% / cover no-repeat,
    var(--navy);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 62px); line-height: 1.06; letter-spacing: -0.025em;
  margin: 18px 0 22px; max-width: 16ch; font-weight: 800;
}
.hero--page h1 { max-width: 20ch; font-size: clamp(32px, 5vw, 50px); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: #c9d4e3; max-width: 58ch; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 14px; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; font-weight: 750; letter-spacing: -0.01em; }
.section-head p, .prose p { color: var(--ink-soft); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.card p { margin: 0; color: var(--ink-soft); }
.card .num {
  display: inline-flex; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center;
  background: rgba(68, 149, 238, 0.12); color: var(--blue-dark); font-weight: 800; margin-bottom: 18px;
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }

.feature {
  border-radius: 20px; padding: 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.feature h2 { color: #fff; }
.feature p { color: #c9d4e3; max-width: 60ch; }
.feature .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(68, 149, 238, 0.18); color: #9ccaf8; padding: 6px 10px; border-radius: 999px;
}
.feature-mark { position: absolute; right: -40px; bottom: -60px; width: 300px; opacity: 0.08; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { padding-left: 34px; position: relative; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(68, 149, 238, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232b78cc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checklist strong { color: var(--ink); }

/* About: orbit of partner disciplines around the brand mark.
   Node positions are % of the box: 6 points at 60° steps on a circle
   with radius 23% of width (20% on mobile). Box is width × 0.78 tall. */
.orbit {
  position: relative; width: 100%; aspect-ratio: 1 / 0.78;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 36, 0.04), 0 16px 40px rgba(15, 23, 36, 0.06);
}
.orbit-ring, .orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%;
}
.orbit-ring { width: 46%; aspect-ratio: 1; border: 1px solid #d5dfeb; }
.orbit-ring--inner { width: 27%; border-color: #eaeff5; }
.orbit-core {
  width: 76px; height: 76px; display: flex; align-items: center; justify-content: center;
  background: #f3f7fc;
}
.orbit-core img { width: 42px; height: 42px; }
.orbit-node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; line-height: 1;
}
.orbit-node.is-right { transform: translate(0, -50%); padding-left: 16px; }
.orbit-node.is-left { transform: translate(-100%, -50%); padding-right: 16px; }
.orbit-node::before {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d5dfeb;
}
.orbit-node.is-right::before { left: -4.5px; }
.orbit-node.is-left::before { right: -4.5px; }

.cta-band { text-align: center; }
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }
.cta-band .actions { justify-content: center; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.office-photo {
  aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden;
  /* Drop the building photo in as assets/office.jpg. The gradient shows until then. */
  background: url("office.jpg") center / cover no-repeat,
              url("apex-icon.svg") center / 96px no-repeat,
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.contact-details { display: grid; gap: 34px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(68, 149, 238, 0.12); color: var(--blue-dark);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-label {
  margin: 2px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.contact-details address { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.contact-details address strong { color: var(--ink); font-weight: 700; }
.nowrap { white-space: nowrap; }
.contact-email { font-size: 17px; font-weight: 700; text-decoration: none; word-break: break-all; }
.contact-email:hover { text-decoration: underline; }
.map { margin-top: 56px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

address { font-style: normal; }

/* Legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose ul { color: var(--ink-soft); padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy); color: #b6c3d4; padding: 64px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #d8e2ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-about p { margin: 18px 0 0; max-width: 36ch; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #8899ae;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .map { margin-top: 40px; height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero--home { background-position: 0 0, 0 0, 30% center; }
  .hero--about { background-position: 0 0, 0 0, 50% 20%; }
  .hero--careers { background-position: 0 0, 0 0, 70% 20%; }
  .orbit-ring { width: 40%; }
  .orbit-ring--inner { width: 23%; }
  .orbit-core { width: 60px; height: 60px; }
  .orbit-core img { width: 34px; height: 34px; }
  .orbit-node { left: calc(var(--xm) * 1%); top: calc(var(--ym) * 1%); font-size: 12px; }
  .orbit-node.is-right { padding-left: 12px; }
  .orbit-node.is-left { padding-right: 12px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 8px 8px; font-size: 14.5px; }
  .hero { padding: 72px 0 80px; }
  .hero--page { padding: 56px 0 52px; }
  section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .feature { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
