/* Z Group Holdings — site styles */

:root {
  --navy: #0f1f3a;
  --navy-mid: #173049;
  --ink: #1a1a1a;
  --charcoal: #2c2c2c;
  --muted: #5c5c5c;
  --subtle: #8a8a8a;
  --line: #e3e0d6;
  --line-strong: #cfcbbd;
  --paper: #f6f5f0;
  --cream: #faf9f6;
  --white: #ffffff;
  --accent: #8a734d;
  --accent-soft: #c4b496;
  --on-navy: #f6f5f0;
  --on-navy-muted: #c5c1b6;
  --header-h: 4.75rem;
  --container: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-none: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.site-footer a:focus-visible {
  outline-color: var(--on-navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.6rem;
  color: var(--on-navy);
  outline-color: var(--accent-soft);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: calc(44rem + var(--gutter) * 2);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--navy);
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.brand--on-dark .brand-name,
.brand--on-dark:hover .brand-name {
  color: var(--on-navy);
}

.brand--on-dark .brand-tag {
  color: var(--on-navy-muted);
}

.brand--on-dark .brand-mark {
  box-shadow: inset 0 0 0 1px rgba(246, 245, 240, 0.22);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--charcoal);
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--navy);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
}

.nav-toggle-line {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: clamp(4rem, 10vw, 8.5rem) 0 clamp(3.5rem, 8vw, 7rem);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.hero-lead {
  max-width: 36rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 1.5rem 0 2.25rem;
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--on-navy);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--on-navy);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: var(--on-navy);
}

.btn--light {
  background: transparent;
  border-color: var(--on-navy);
  color: var(--on-navy);
}

.btn--light:hover {
  background: var(--on-navy);
  color: var(--navy);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section--paper {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--navy {
  background: var(--navy);
  color: var(--on-navy);
}

.section--navy h2,
.section--navy h3 {
  color: var(--on-navy);
}

.section-label {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 46rem;
}

.section-head h2 {
  margin: 0;
}

.section-intro {
  color: var(--muted);
  margin: 0;
}

/* Brand cards */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.65rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.85rem;
}

.card p {
  color: var(--muted);
  flex: 1;
}

.card-link {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--navy);
}

.card-link:hover {
  color: var(--accent);
}

.card-link::after {
  content: " →";
  font-weight: 400;
}

/* Principles */

.principle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
}

@media (min-width: 720px) {
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .principle-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.75rem;
  }
}

.principle {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.principle-index {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.principle h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.principle p {
  color: var(--muted);
  font-size: 1rem;
}

/* Mission band */

.mission-band .mission-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--on-navy);
  margin: 0 0 1.75rem;
  max-width: 46rem;
}

.mission-band .section-label {
  color: var(--accent-soft);
}

/* Page header (interior) */

.page-header {
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
}

.page-header h1 {
  margin: 0;
}

.page-header .lede {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-header--tight {
  padding-bottom: 0;
}

/* About */

.mission-block {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission-block .section-label {
  margin-bottom: 1.25rem;
}

.mission-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}

.cta-row {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cta-row p {
  margin: 0;
  color: var(--muted);
}

/* Legal */

.legal {
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.legal-meta {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-body {
  max-width: 44rem;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.legal-body h2 {
  font-size: 1.65rem;
  margin-top: 2.25em;
  margin-bottom: 0.6em;
}

.legal-body h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 1.5em;
  margin-bottom: 0.45em;
}

.legal-body p,
.legal-body li {
  color: var(--charcoal);
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 1.1em 1.2em;
}

.legal-body li {
  margin: 0 0 0.45em;
}

.legal-body a {
  text-decoration: underline;
}

.legal-notice {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--cream);
  margin: 1.5rem 0 1.75rem;
}

.legal-notice h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

/* 404 */

.not-found {
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: left;
}

.not-found h1 {
  margin-bottom: 0.6rem;
}

.not-found p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding: clamp(2.75rem, 5vw, 4rem) 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 245, 240, 0.14);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 22rem;
  margin: 0;
}

.footer-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.9rem;
  line-height: 1.3;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li + li,
.footer-contact p + p {
  margin-top: 0.4rem;
}

.site-footer a {
  color: var(--on-navy);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}

/* Reveals — hidden only when JS is available (progressive enhancement) */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Mobile nav */

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -0.4rem;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.25rem var(--gutter) 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav li {
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js .reveal,
  .reveal-stagger > .reveal,
  .js .reveal-stagger > .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-toggle-line {
    transition: none;
  }
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section--flush-top {
  padding-top: 0;
}

.brands-section {
  padding-top: 2.75rem;
}

.approach-follow {
  margin-top: 3rem;
}
