/*
Theme Name: AN8 Ventures
Theme URI: https://an8.co.nz/
Author: AN8 Ventures
Author URI: https://an8.co.nz/
Description: A purpose-built, responsive WordPress theme for AN8 Ventures Ltd.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: an8-ventures
*/

:root {
  --ink: #35312c;
  --ink-soft: #4d4942;
  --paper: #f3efe8;
  --paper-bright: #fffdf9;
  --copper: #9c6842;
  --copper-dark: #70462e;
  --ground: #756b5c;
  --line: rgba(37, 35, 31, 0.15);
  --muted: #686157;
  --radius: 0.3rem;
  --shadow: 0 24px 70px rgba(16, 32, 43, 0.12);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  margin: 0;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  color: #fff;
  background: var(--ink);
}

.site-shell { overflow: hidden; }
.container { width: min(calc(100% - 2.5rem), var(--content)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; scroll-margin-top: 1rem; }
.section--light { background: var(--paper-bright); }
.section--dark { background: var(--ink); color: #fff; }
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.15rem;
  color: var(--copper);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.section-kicker::before,
.eyebrow::before { content: ""; width: 2.3rem; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7.5vw, 6.7rem); max-width: 12ch; }
h2 { font-size: clamp(2.35rem, 5vw, 4.25rem); max-width: 13ch; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.25rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: var(--ink-soft); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.section-intro > p { color: var(--muted); max-width: 40rem; margin: 0; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: var(--ink);
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
body:not(.home) .site-header { position: relative; background: var(--paper-bright); }
.header-inner { min-height: 6.2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 2.25rem; height: 4rem; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1; }
.brand-name { font-weight: 850; letter-spacing: .07em; font-size: 1rem; }
.brand-name em { color: var(--copper); font-style: normal; }
.brand-descriptor { margin-top: .38rem; color: var(--muted); font-size: .66rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.3rem); }
.main-nav-list { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.3rem); padding: 0; margin: 0; list-style: none; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 650; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--copper-dark); }
.nav-contact { padding: .68rem 1rem; border: 1px solid var(--line); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: .6rem; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after {
  display: block; width: 1.6rem; height: 2px; background: currentColor; position: relative;
}
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -.5rem; }
.menu-toggle-lines::after { top: .5rem; }

.hero {
  position: relative;
  min-height: min(900px, 94vh);
  display: grid;
  align-items: end;
  padding: 11rem 0 clamp(5rem, 10vw, 8.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 76% 28%, rgba(184,111,63,.32), transparent 31%),
    linear-gradient(127deg, #191815 0%, #29251f 58%, #3c3329 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to left, #000, transparent 78%);
}
.hero::after {
  content: "8";
  position: absolute;
  right: -2vw;
  top: 8%;
  color: rgba(255,255,255,.035);
  font-size: min(66vw, 46rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.12em;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 4rem; align-items: end; }
.hero .eyebrow { color: #f18259; }
.hero-intro { margin: 2rem 0 2.5rem; max-width: 43rem; color: rgba(255,255,255,.76); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.45rem;
  padding: .9rem 1.35rem;
  border: 1px solid transparent;
  background: var(--copper);
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--copper-dark); }
.button--ghost { border-color: rgba(255,255,255,.45); background: transparent; }
.button--ghost:hover, .button--ghost:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.hero-note { padding-left: 1.4rem; border-left: 2px solid var(--copper); color: rgba(255,255,255,.7); font-size: .92rem; }
.hero-note strong { display: block; margin-bottom: .4rem; color: #fff; font-size: 1.05rem; }

.proof-strip { background: var(--copper); color: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 1.7rem clamp(1rem, 2vw, 2rem); border-right: 1px solid rgba(255,255,255,.24); }
.proof-item:last-child { border-right: 0; }
.proof-value { display: block; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 850; line-height: 1.1; }
.proof-label { display: block; margin-top: .4rem; font-size: .8rem; color: rgba(255,255,255,.8); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 20rem; padding: clamp(2rem, 4vw, 3.25rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.3); }
.service-number { display: block; margin-bottom: 3.5rem; color: var(--copper); font-size: .77rem; font-weight: 850; letter-spacing: .12em; }
.service-card p { max-width: 31rem; margin: 1rem 0 0; color: var(--muted); }
.service-card::after { content: "↘"; position: absolute; right: 2rem; top: 2rem; color: var(--ground); font-size: 1.45rem; }

.about-grid { display: grid; grid-template-columns: minmax(18rem, .75fr) minmax(0, 1.25fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.profile-panel { position: relative; padding: 2.7rem; min-height: 31rem; background: #e2dbcf; color: var(--ink); box-shadow: var(--shadow); }
.profile-panel::before { content: "AN8"; position: absolute; right: 1.2rem; bottom: .5rem; color: rgba(53,49,44,.07); font-size: 6rem; font-weight: 900; letter-spacing: -.08em; }
.profile-mark { width: 5.2rem; height: 8.6rem; object-fit: contain; margin-bottom: 4.4rem; }
.profile-panel h3 { max-width: 10ch; font-size: 2rem; }
.profile-panel p { position: relative; max-width: 24rem; margin-top: 1.3rem; color: var(--muted); }
.profile-panel .bio-role { margin-top: .65rem; color: var(--copper-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.about-copy .lede { margin-bottom: 2rem; }
.about-copy > p:not(.lede) { color: var(--muted); }
.principles { margin-top: 2.7rem; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.principle span { color: var(--copper); font-weight: 800; }
.principle strong { font-size: 1.02rem; }
.principle p { margin: .35rem 0 0; color: var(--muted); font-size: .94rem; }

.sector-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.sector-layout h2 { color: #fff; }
.sector-list { border-top: 1px solid rgba(255,255,255,.2); }
.sector-item { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1.45rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.sector-item span:first-child { color: #f18259; font-size: .76rem; font-weight: 800; }
.sector-item strong { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.sector-item span:last-child { color: rgba(255,255,255,.4); }

.clients-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.client-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 10rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--paper-bright);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.client-card:hover, .client-card:focus-visible { transform: translateY(-3px); border-color: var(--copper); box-shadow: 0 18px 45px rgba(53,49,44,.1); }
.client-card img { width: min(100%, 20rem); max-height: 5rem; object-fit: contain; object-position: left center; }
.client-arrow { color: var(--copper-dark); font-size: 1.4rem; }
.client-card--kerigreen { background: #173d2d; border-color: #173d2d; }
.client-card--kerigreen:hover, .client-card--kerigreen:focus-visible { background: #1d4936; border-color: #9c6842; }
.client-card--kerigreen .client-arrow { color: #d8c3a5; }

.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.approach-step { padding: clamp(2rem, 4vw, 3rem); background: var(--paper-bright); }
.approach-step span { display: block; color: var(--ground); font-size: 2.7rem; font-weight: 300; line-height: 1; }
.approach-step h3 { margin-top: 3rem; }
.approach-step p { margin: 1rem 0 0; color: var(--muted); }

.contact { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; background: var(--copper); color: #fff; scroll-margin-top: 1rem; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 55%, rgba(16,32,43,.13) 55%); }
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.contact h2 { max-width: 13ch; }
.contact p { max-width: 40rem; margin-top: 1.4rem; color: rgba(255,255,255,.8); font-size: 1.1rem; }
.contact .button { min-width: 12rem; background: var(--ink); }
.contact .button:hover { background: #fff; color: var(--ink); }

.site-footer { padding: 2.2rem 0; background: #181713; color: rgba(255,255,255,.58); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.76); text-decoration: none; }

.content-page { min-height: 70vh; padding: 10rem 0 6rem; background: var(--paper-bright); }
.content-page article { max-width: 780px; }
.content-page h1 { max-width: 14ch; margin-bottom: 2rem; font-size: clamp(2.7rem, 6vw, 5rem); }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.5rem; }
.entry-content a { color: var(--copper-dark); }
.content-page + .site-footer { margin-top: 0; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    inset: 6.2rem 0 auto;
    display: none;
    padding: 1.4rem max(1.25rem, calc((100vw - var(--content)) / 2));
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    background: var(--paper-bright);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(53,49,44,.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .8rem 0; }
  .main-nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-contact { padding-inline: 0; border: 0; }
  .hero { min-height: 820px; }
  .hero-inner, .about-grid, .sector-layout { grid-template-columns: 1fr; }
  .hero-note { max-width: 26rem; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.24); }
  .section-intro, .contact-inner { grid-template-columns: 1fr; align-items: start; }
  .approach-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 2rem), var(--content)); }
  .header-inner { min-height: 5.4rem; }
  .brand-descriptor { display: none; }
  .main-nav { top: 5.4rem; }
  .hero { min-height: 760px; padding-top: 9rem; }
  .hero-inner { gap: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .profile-panel { min-height: 25rem; padding: 2rem; }
  .profile-mark { margin-bottom: 4rem; }
  .sector-item { grid-template-columns: 2.3rem 1fr; }
  .sector-item span:last-child { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
