/* ═══════════════════════════════════════════
   8thElement Media Site — styles
   Design system matches www.8thelement.ai exactly
   Font: Outfit (weight 100–700)
   Palette: --black #000 · --orange #E8742C · --peach-pale #FDF6F0
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700&display=swap');

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

:root {
  --black:        #000000;
  --white:        #ffffff;
  --orange:       #E8742C;
  --orange-hover: #D4661F;
  --orange-light: #F2A96B;
  --peach:        #F5DCC8;
  --peach-light:  #FBF0E8;
  --peach-pale:   #FDF6F0;
  --grey:         rgba(0,0,0,.5);
  --grey-light:   rgba(0,0,0,.25);
  --grey-border:  rgba(0,0,0,.08);
  --font:         'Outfit', Helvetica, Arial, sans-serif;
  --wrap:         1200px;
  --ease:         cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-family: var(--font); color: var(--black); background: var(--white); overflow-x: hidden; font-size: 16px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

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

/* ── TYPOGRAPHY — matches main site weight-100 headings ── */
h1, h2, h3, h4 { font-weight: 100; letter-spacing: -.04em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 200; letter-spacing: -.02em; }
h4 { font-size: .92rem; font-weight: 500; letter-spacing: 0; }
p  { margin-bottom: 1em; color: var(--grey); font-weight: 300; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

.em { color: var(--orange); }

/* Label — matches .label from main site */
.label {
  font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ''; width: 20px; height: 1px; background: var(--orange); }

/* ── BUTTONS — exact match to main site ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 32px;
  border-radius: 4px; font-size: .88rem; font-weight: 500; font-family: var(--font);
  cursor: pointer; border: none; transition: all .35s var(--ease); text-decoration: none;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--orange); color: var(--white); }
.btn-ghost { background: none; color: var(--black); padding: 15px 16px; opacity: .6; }
.btn-ghost:hover { opacity: 1; color: var(--orange); }
.btn-outline {
  background: none; border: 1px solid var(--grey-border); color: var(--black);
  padding: 10px 20px; font-size: .8rem;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── NAV — exact match to main site ── */
.site-header {
  position: sticky; top: 0; z-index: 103;
  padding: 20px 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--grey-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand img { height: 27px; width: auto; object-fit: contain; }
.nav__links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; padding: 0; margin: 0;
}
.nav__links a {
  font-size: .8rem; font-weight: 400; opacity: .5;
  transition: opacity .3s; color: var(--black);
}
.nav__links a:hover { opacity: 1; }
.nav__links a.active { opacity: 1; font-weight: 600; }
.nav-cta {
  opacity: 1 !important;
  background: var(--black); color: var(--white) !important;
  padding: 10px 24px; border-radius: 4px; font-weight: 500 !important;
  transition: background .3s !important;
}
.nav-cta:hover { background: var(--orange) !important; }

/* ── HERO — peach-pale bg, thin heading ── */
.hero {
  padding: 120px 0 80px;
  background: var(--peach-pale);
  border-bottom: 1px solid var(--grey-border);
}
.hero h1 { max-width: 16ch; margin-bottom: 20px; }
.hero p.lede {
  font-size: 1.1rem; font-weight: 300; color: var(--grey);
  max-width: 58ch; margin-bottom: 32px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── SECTIONS ── */
section { padding: 100px 0; }
.section--peach { background: var(--peach-pale); border-top: 1px solid var(--grey-border); border-bottom: 1px solid var(--grey-border); }
.section--black { background: var(--black); color: var(--white); }
.section--black h2, .section--black h3, .section--black h4 { color: var(--white); }
.section--black p { color: rgba(255,255,255,.55); }

.section-head { max-width: 600px; margin-bottom: 48px; }
.section-head h2 { margin-top: 20px; margin-bottom: 12px; }
.section-head p { font-size: 1rem; font-weight: 300; color: var(--grey); line-height: 1.75; }

/* ── CARDS — match main site card style ── */
.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: border-color .4s;
}
.card:hover { border-color: var(--orange); }
.card h3 { font-size: .92rem; font-weight: 500; letter-spacing: 0; margin-bottom: 10px; color: var(--black); }
.card h4 { font-size: .88rem; font-weight: 500; margin-bottom: 8px; color: var(--orange); }
.card p { font-size: .85rem; font-weight: 300; color: var(--grey); line-height: 1.6; margin: 0; }

/* ── GRID ── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── MEDIA KIT LOGO TILES ── */
.logo-tile {
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  display: flex; flex-direction: column;
  transition: border-color .4s;
}
.logo-tile:hover { border-color: var(--orange); }
.logo-tile__preview {
  padding: 34px 26px;
  display: grid; place-items: center; min-height: 140px;
}
.logo-tile__preview img { max-height: 70px; width: auto; }
.pv-light  { background: var(--white); }
.pv-cream  { background: var(--peach-pale); }
.pv-dark   { background: var(--black); }
.logo-tile__footer {
  border-top: 1px solid var(--grey-border);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-tile__name { font-size: .78rem; font-weight: 500; color: var(--black); }
.logo-tile__dl {
  font-size: .72rem; font-weight: 500; color: var(--orange);
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap .3s;
}
.logo-tile__dl:hover { gap: 9px; }

/* ── DOWNLOAD ROW ── */
.dl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--grey-border);
  gap: 20px;
}
.dl-row:first-child { border-top: 1px solid var(--grey-border); }
.dl-meta { display: flex; flex-direction: column; gap: 3px; }
.dl-name { font-size: .88rem; font-weight: 400; color: var(--black); }
.dl-type { font-size: .72rem; font-weight: 500; color: var(--grey-light); letter-spacing: .06em; text-transform: uppercase; }
.dl-btn {
  flex-shrink: 0;
  font-size: .78rem; font-weight: 500; color: var(--orange);
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--grey-border); border-radius: 4px;
  padding: 8px 14px; transition: border-color .3s, color .3s;
}
.dl-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ── NEWS CARDS ── */
.news-card {
  border: 1px solid var(--grey-border); border-radius: 8px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .4s;
}
.news-card:hover { border-color: var(--orange); }
.news-date {
  font-size: .68rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grey-light);
}
.news-tag {
  display: inline-block; font-size: .62rem; font-weight: 600;
  padding: 4px 9px; border-radius: 3px;
  background: rgba(232,116,44,.08); border: 1px solid rgba(232,116,44,.18);
  color: var(--orange); letter-spacing: .04em; text-transform: uppercase;
}
.news-title { font-size: 1.05rem; font-weight: 400; color: var(--black); line-height: 1.35; letter-spacing: -.01em; }
.news-excerpt { font-size: .85rem; font-weight: 300; color: var(--grey); line-height: 1.6; }
.news-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; font-size: .85rem; font-weight: 500; color: var(--orange);
  transition: gap .3s;
}
.news-link:hover { gap: 10px; }

/* ── ARTICLE PAGE ── */
.article-hero {
  padding: 120px 0 64px;
  background: var(--peach-pale);
  border-bottom: 1px solid var(--grey-border);
}
.article-hero h1 { max-width: 22ch; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.article-body { max-width: 720px; margin: 0 auto; padding: 72px 32px; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 16px; }
.article-body h3 { font-size: 1.15rem; font-weight: 400; margin: 32px 0 12px; }
.article-body p { font-size: 1rem; font-weight: 300; color: var(--grey); line-height: 1.8; margin-bottom: 20px; }
.article-body strong { font-weight: 600; color: var(--black); }
.article-body a { color: var(--orange); font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--orange); padding: 16px 24px;
  background: var(--peach-pale); border-radius: 0 6px 6px 0; margin: 32px 0;
}
.article-body blockquote p { color: var(--black); font-weight: 400; font-style: italic; margin: 0; }

/* ── CONTACT / CTA BAND ── */
.cta-band { padding: 100px 0; background: var(--black); text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.5); max-width: 480px; margin: 0 auto 32px; font-size: 1rem; font-weight: 300; }

/* ── COLOUR SWATCHES (media kit) ── */
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.swatch { border-radius: 8px; overflow: hidden; border: 1px solid var(--grey-border); }
.swatch__block { height: 80px; }
.swatch__label { padding: 10px 14px; background: var(--white); }
.swatch__name { font-size: .78rem; font-weight: 500; color: var(--black); }
.swatch__hex { font-size: .68rem; font-weight: 400; color: var(--grey); letter-spacing: .04em; }

/* ── FOOTER — exact match to main site ── */
footer { background: var(--black); color: var(--white); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { font-size: .85rem; font-weight: 300; color: rgba(255,255,255,.6); line-height: 1.7; margin-top: 16px; }
.fcol h5 { font-size: .65rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.fcol ul { list-style: none; }
.fcol li { margin-bottom: 10px; }
.fcol a { font-size: .85rem; font-weight: 300; color: rgba(255,255,255,.4); transition: color .3s; }
.fcol a:hover { color: var(--orange-light); }
.footer-offices { margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.35) !important; font-weight: 300; }
.footer-line { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-line p { font-size: .7rem; color: rgba(255,255,255,.5); font-weight: 300; margin: 0; }
.footer-line-right { display: flex; align-items: center; gap: 16px; }
.footer-social { color: rgba(255,255,255,.4); transition: color .3s; display: flex; align-items: center; }
.footer-social:hover { color: var(--orange); }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 100px 0 64px; }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-line { flex-direction: column; align-items: center; text-align: center; }
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 80px 0 48px; }
  .article-body { padding: 48px 20px; }
}
