/* Zoe J Strategy — site stylesheet
   Tokens pulled directly from the brand guide's :root variables. */

:root {
  --cream: #F3F1EB;
  --ink: #1C1A17;
  --navy: #16233E;
  --oxblood: #6E2430;
  --dusty: #7089A3;
  --brass: #9C7B47;
  --rule: rgba(28, 26, 23, 0.14);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --max-width: 1080px;
  --gutter: clamp(24px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.6;
}

.eyebrow.navy {
  color: var(--navy);
  opacity: 1;
  font-weight: 700;
}

/* ---------- header ---------- */

.site-header {
  padding: 26px 0 24px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oxblood);
  display: inline-block;
  transform: translateY(-3px);
  flex-shrink: 0;
}

.wordmark span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.68;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-accent {
  background: var(--oxblood);
  color: var(--cream);
}

.btn-accent:hover {
  opacity: 0.88;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- hero ---------- */

.hero {
  padding: 40px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: 0.002em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--oxblood);
}

.hero p {
  font-size: 16.5px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 460px;
  margin: 0 0 32px;
}

.hero-photo {
  justify-self: center;
}

.hero-photo img {
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- page header (non-home pages) ---------- */

.page-header {
  padding: 40px 0 56px;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 50px);
  line-height: 1.15;
  margin: 18px 0 0;
  max-width: 720px;
}

.page-header h1 em {
  font-style: italic;
  color: var(--oxblood);
}

/* ---------- sections ---------- */

section {
  padding: 64px 0;
}

section.tight {
  padding: 44px 0;
}

h2.section-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 28px;
}

/* ---------- about layout ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.about-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 26px;
}

.about-copy h1 em {
  font-style: italic;
  color: var(--oxblood);
}

.about-copy p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.75;
  opacity: 0.85;
}

.about-copy p strong {
  color: var(--ink);
  font-weight: 700;
}

.about-copy .personal-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--navy);
  margin: 32px 0;
}

/* ---------- metric ticker ---------- */

.metric-ticker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.metric {
  padding: 32px 12px;
  text-align: center;
  border-right: 1px solid var(--rule);
}

.metric:last-child {
  border-right: none;
}

.metric-value {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 50px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--oxblood);
  margin: 0 0 10px;
}

.metric-label {
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.45;
  opacity: 0.68;
  margin: 0;
}

@media (max-width: 780px) {
  .metric-ticker {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2n) {
    border-right: none;
  }

  .metric:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
  }
}

/* ---------- industries ---------- */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.industry-card {
  background: var(--cream);
  padding: 32px 30px;
}

.industry-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--oxblood);
  margin: 0 0 10px;
}

.industry-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 10px;
}

.industry-card p {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.8;
  margin: 0;
}

.industries-tagline {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.65;
}

@media (max-width: 780px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- how I work ---------- */

.how-i-work {
  max-width: 760px;
  border-top: 1px solid var(--rule);
}

.how-i-work-row {
  display: flex;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.how-i-work-row .k {
  width: 170px;
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  padding-top: 2px;
}

.how-i-work-row .v {
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0.85;
}

@media (max-width: 780px) {
  .how-i-work-row {
    flex-direction: column;
    gap: 6px;
  }

  .how-i-work-row .k {
    width: auto;
  }
}

/* ---------- example projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
}

.project-card {
  padding: 30px 26px;
  border-right: 1px solid var(--rule);
}

.project-card:last-child {
  border-right: none;
}

.project-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.project-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 18px;
}

.project-mandate {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  margin: 0 0 16px;
}

.project-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-card li {
  font-size: 13.5px;
  line-height: 1.6;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  opacity: 0.85;
}

.project-card li:first-child {
  border-top: none;
}

@media (max-width: 780px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .project-card:last-child {
    border-bottom: none;
  }
}

/* ---------- testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.testimonial {
  padding: 30px 26px;
  border-right: 1px solid var(--rule);
}

.testimonial:last-child {
  border-right: none;
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

.testimonial cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- services page ---------- */

.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.fit-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15.5px;
  line-height: 1.6;
}

.fit-list .mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(3px);
}

.service-pillar {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.service-pillar:last-child {
  border-bottom: 1px solid var(--rule);
}

.service-pillar h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--oxblood);
  margin: 0;
}

.service-pillar p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.75;
  opacity: 0.85;
}

.service-pillar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-pillar li {
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  color: var(--navy);
  font-weight: 500;
}

.service-pillar li:first-of-type {
  border-top: none;
}

/* ---------- contact ---------- */

.contact-block {
  text-align: left;
  max-width: 560px;
}

.contact-block h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 20px;
}

.contact-block h1 em {
  font-style: italic;
  color: var(--oxblood);
}

.contact-block p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 32px;
}

.contact-email {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.contact-email:hover {
  border-color: var(--navy);
}

.contact-meta {
  margin-top: 36px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.contact-meta a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.65;
}

.contact-meta a:hover {
  opacity: 1;
}

/* ---------- cta band ---------- */

.cta-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 56px 0;
  text-align: center;
}

.cta-band p.eyebrow {
  margin: 0 0 16px;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 28px;
}

.cta-band h2 em {
  font-style: italic;
  color: var(--oxblood);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 32px 0 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

.site-footer .footer-links {
  display: flex;
  gap: 18px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 0.8;
}

/* ---------- responsive ---------- */

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 18px;
    box-shadow: 0 12px 28px rgba(28, 26, 23, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 10px 0;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    width: 220px;
    height: 220px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .testimonial {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .testimonial:last-child {
    border-bottom: none;
  }

  .service-pillar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-meta {
    flex-wrap: wrap;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
