/* arua — shared design system */

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

:root {
  --ink:          #1a1908;
  --caramel:      #3d2b1f;
  --caramel-mid:  #5a3e2e;
  --sage:         #6b7b5e;
  --sage-light:   #dce6d4;
  --sand:         #f5f0e8;
  --cream:        #faf8f4;
  --white:        #ffffff;
  --muted:        #8a8780;
  --border:       rgba(26,25,8,0.10);
  --font-serif:   'Libre Baskerville', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --pill:         100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── UTILITY ── */
.btn {
  border-radius: var(--pill);
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  line-height: 1;
}
.btn-ink    { background: var(--ink);     color: var(--white); }
.btn-white  { background: var(--white);   color: var(--ink);   }
.btn-caramel{ background: var(--caramel); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(26,25,8,0.28);
}
.btn:hover { opacity: 0.82; }

.tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--caramel-mid);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--pill);
  padding: 4px 11px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 60px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  font-family: var(--font-serif); font-size: 19px; font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 13px; font-weight: 400; color: var(--ink);
  text-decoration: none; opacity: 0.55; transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 54% 46%;
  min-height: 100vh; padding-top: 60px;
}
.hero-left {
  background: var(--ink);
  padding: 72px 60px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 700; color: var(--white);
  line-height: 1.07; letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero-sub   { font-size: 15px; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.55; margin-bottom: 6px; }
.hero-sub-2 { font-size: 14px; color: rgba(255,255,255,0.38); font-weight: 300; margin-bottom: 44px; }

/* Netlify form — hero */
.hero-form {
  display: flex; max-width: 400px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--pill);
  padding: 4px 4px 4px 20px;
  align-items: center; gap: 8px; margin-bottom: 14px;
}
.hero-form input[type="email"] {
  flex: 1; border: none; outline: none;
  background: transparent; color: var(--white);
  font-family: var(--font-sans); font-size: 13px; font-weight: 300;
  min-width: 0;
}
.hero-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.hero-form button { white-space: nowrap; padding: 9px 18px; font-size: 12px; }
.hero-fine { font-size: 11px; color: rgba(255,255,255,0.28); font-weight: 300; max-width: 360px; }

.hero-stats {
  display: flex; gap: 48px;
  padding-top: 48px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}
.stat-n { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--white); display: block; line-height: 1; margin-bottom: 5px; }
.stat-l { font-size: 11px; color: rgba(255,255,255,0.38); font-weight: 300; letter-spacing: 0.01em; }

.hero-right {
  background: var(--sand); position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 500px;
}
/* Replace the background-image URL below with your actual photo */
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover; background-position: center 30%;
  /* Fallback colour while image loads or if missing: */
  background-color: #c8bda8;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,25,8,0.55) 0%, transparent 55%);
}
.hero-caption {
  position: relative; z-index: 1; padding: 32px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.5;
}

/* ── WHO WE ARE ── */
.section-who {
  padding: 88px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: start; border-bottom: 0.5px solid var(--border);
}
.who-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 20px;
}
.who-body {
  font-size: 15px; color: var(--muted); font-weight: 300;
  line-height: 1.75; margin-bottom: 36px;
}
.trust-row { display: flex; flex-direction: column; }
.trust-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-top: 0.5px solid var(--border);
}
.trust-item:last-child { border-bottom: 0.5px solid var(--border); }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-top: 5px; flex-shrink: 0; }
.t-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.t-desc { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.5; }

.who-right {
  background: var(--caramel); border-radius: 4px;
  padding: 48px; display: flex; flex-direction: column; gap: 36px;
}
.pull-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; font-weight: 400; color: var(--white);
  line-height: 1.45; letter-spacing: -0.01em;
}
.stats-pair { display: flex; gap: 40px; }
.sp-n { font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 6px; }
.sp-l { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 300; line-height: 1.4; }

/* ── ARTICLES ── */
.section-articles { padding: 88px 56px; background: var(--cream); }
.articles-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}
.articles-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 6px;
}
.articles-sub { font-size: 13px; color: var(--muted); font-weight: 300; }

/* Featured */
.article-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: 4px; margin-bottom: 2px;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s;
  overflow: hidden;
}
.article-featured:hover { border-color: rgba(26,25,8,0.25); }
.feat-img {
  /* Replace with: background-image: url('images/article-ed.jpg'); */
  background-color: #c0b49a;
  background-size: cover; background-position: center;
  min-height: 300px;
}
.feat-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feat-tag-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.read-time { font-size: 11px; color: var(--muted); font-weight: 300; }
.feat-title {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.feat-excerpt { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.65; margin-bottom: 20px; }
.feat-pull {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--caramel-mid); font-weight: 400;
  border-left: 2px solid var(--sage); padding-left: 16px;
  line-height: 1.5; margin-bottom: 28px;
}
.read-link { font-size: 13px; color: var(--sage); font-weight: 400; }

/* Grid */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
  border: 0.5px solid var(--border);
}
.art-card {
  background: var(--white); padding: 28px 28px 24px;
  text-decoration: none; color: inherit;
  transition: background 0.18s; display: block;
}
.art-card:hover { background: var(--sand); }
.art-img {
  width: 100%; aspect-ratio: 3/2; border-radius: 2px;
  margin-bottom: 18px; background-size: cover; background-position: center;
}
/* Fallback colours — replace with background-image: url('images/...') */
.art-img-1 { background-color: #c8bfa8; }
.art-img-2 { background-color: #b8c4b0; }
.art-img-3 { background-color: #c4bba8; }
.art-img-4 { background-color: #b0bcc4; }
.art-img-5 { background-color: #c4b8a4; }
.art-img-6 { background-color: #c0c4b0; }
.art-tag-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.art-title {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
  line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 8px;
  transition: opacity 0.2s;
}
.art-card:hover .art-title { opacity: 0.6; }
.art-excerpt { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.6; margin-bottom: 14px; }
.art-arrow   { font-size: 12px; color: var(--sage); font-weight: 400; }
.art-img-7 { background-color: #b0bcc4; }
.art-img-8 { background-color: #c4b8a4; }
.art-img-9 { background-color: #c0c4b0; }

/* ── EMAIL CAPTURE ── */
.section-capture {
  padding: 96px 56px; background: var(--sand);
  text-align: center; border-top: 0.5px solid var(--border);
}
.cap-eyebrow { font-size: 11px; color: var(--sage); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; }
.cap-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 16px;
}
.cap-sub { font-size: 15px; color: var(--muted); font-weight: 300; margin-bottom: 36px; }

/* Netlify form — bottom capture */
.cap-form {
  display: flex; max-width: 500px; margin: 0 auto 12px;
  background: var(--white);
  border: 1px solid rgba(26,25,8,0.15);
  border-radius: var(--pill);
  padding: 4px 4px 4px 24px;
  align-items: center; gap: 8px;
}
.cap-form input[type="email"] {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 14px; font-weight: 300;
  color: var(--ink); min-width: 0;
}
.cap-form input[type="email"]::placeholder { color: var(--muted); }
.cap-form button { white-space: nowrap; }
.cap-fine { font-size: 11px; color: var(--muted); font-weight: 300; margin-bottom: 52px; }

.trust-marks { display: flex; justify-content: center; gap: 48px; padding-top: 40px; border-top: 0.5px solid var(--border); }
.trust-mark  { font-size: 12px; color: var(--muted); font-weight: 300; }

/* ── SUCCESS STATE ── */
.form-success {
  display: none;
  font-size: 14px; color: var(--sage); font-weight: 400;
  margin-top: 12px;
}

/* ── FOOTER ── */
footer {
  padding: 32px 56px; background: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo { font-family: var(--font-serif); font-size: 15px; color: rgba(255,255,255,0.7); }
.footer-links { display: flex; gap: 28px; }
.footer-link { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-link:hover { color: rgba(255,255,255,0.6); }
.footer-note { font-size: 11px; color: rgba(255,255,255,0.2); font-weight: 300; width: 100%; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 300px; }
  .hero-left { padding: 56px 24px 48px; }
  .section-who { grid-template-columns: 1fr; padding: 56px 24px; gap: 40px; }
  .section-articles { padding: 56px 24px; }
  .article-featured { grid-template-columns: 1fr; }
  .feat-img { min-height: 220px; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .section-capture { padding: 64px 24px; }
  .trust-marks { flex-direction: column; gap: 12px; align-items: center; }
  footer { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .stats-pair { flex-direction: column; gap: 24px; }
  .articles-head { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ── TICKER ── */
.ticker-wrap{overflow:hidden;height:44px;display:flex;align-items:center;background:var(--ink);}
.ticker-track{display:flex;white-space:nowrap;animation:ticker 32s linear infinite;}
.ticker-track:hover{animation-play-state:paused;}
.ticker-item{display:inline-flex;align-items:center;gap:20px;padding:0 28px;font-size:12px;font-weight:400;color:rgba(255,255,255,0.65);letter-spacing:.02em;}
.ticker-dot{width:4px;height:4px;border-radius:50%;background:var(--sage);flex-shrink:0;}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ── STAT COUNTERS ── */
.stats-band{background:var(--caramel);padding:48px 56px;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;}
.stat-cell{padding:32px 24px;text-align:center;}
.stat-cell:not(:last-child){border-right:.5px solid rgba(255,255,255,0.12);}
.stat-big{font-family:var(--font-serif);font-size:52px;font-weight:700;color:var(--white);line-height:1;display:block;margin-bottom:8px;letter-spacing:-.04em;}
.stat-desc{font-size:12px;color:rgba(255,255,255,0.4);font-weight:300;line-height:1.5;max-width:160px;margin:0 auto;}

/* ── FADE IN ON SCROLL ── */
.fade-in{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease;}
.fade-in.visible{opacity:1;transform:translateY(0);}
.fade-in:nth-child(2){transition-delay:.1s;}
.fade-in:nth-child(3){transition-delay:.2s;}
.fade-in:nth-child(4){transition-delay:.1s;}
.fade-in:nth-child(5){transition-delay:.2s;}
.fade-in:nth-child(6){transition-delay:.3s;}
.fade-in:nth-child(7){transition-delay:.15s;}
.fade-in:nth-child(8){transition-delay:.25s;}
.fade-in:nth-child(9){transition-delay:.35s;}

/* ── CARD HOVER LIFT ── */
.art-card{transition:background .18s,border-color .2s ease;}
.art-card:hover{background:var(--sand);border-color:rgba(26,25,8,0.2);}
.art-arrow{transition:transform .2s;}
.art-card:hover .art-arrow{transform:translateX(4px);}
.article-featured{transition:border-color .2s;}
.article-featured:hover{border-color:rgba(26,25,8,0.25);}

/* ── NAV ACTIVE STATE ── */
.nav-link{position:relative;padding-bottom:3px;}
.nav-link::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:1.5px;background:var(--ink);transform:scaleX(0);transition:transform .25s ease;transform-origin:left;}
.nav-link.nav-active{opacity:1;}
.nav-link.nav-active::after{transform:scaleX(1);}

/* ── EMAIL FOCUS ── */
.hero-form:focus-within{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.13);box-shadow:0 0 0 3px rgba(107,123,94,0.2);}
.hero-form{transition:border-color .25s,background .25s,box-shadow .25s;}

/* ── CAROUSEL ── */
.carousel-section{background:var(--cream);padding:0 56px 88px;}
.carousel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;padding-top:0;}
.carousel-title{font-family:var(--font-serif);font-size:20px;font-weight:700;letter-spacing:-.025em;color:var(--ink);}
.carousel-controls{display:flex;gap:8px;}
.carousel-btn{width:36px;height:36px;border-radius:50%;border:.5px solid var(--border);background:var(--white);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s;font-size:14px;color:var(--ink);font-family:var(--font-sans);}
.carousel-btn:hover{background:var(--ink);color:var(--white);border-color:var(--ink);}
.carousel-viewport{overflow:hidden;}
.carousel-track{display:flex;gap:16px;transition:transform .45s cubic-bezier(.4,0,.2,1);}
.c-card{flex:0 0 calc(33.33% - 11px);background:var(--white);border:.5px solid var(--border);border-radius:4px;padding:24px;text-decoration:none;color:inherit;display:block;transition:transform .2s ease,border-color .2s,box-shadow .2s;}
.c-card:hover{transform:translateY(-3px);border-color:rgba(26,25,8,0.2);box-shadow:0 6px 18px rgba(26,25,8,0.07);}
.carousel-dots{display:flex;gap:6px;justify-content:center;margin-top:20px;}
.c-dot{width:6px;height:6px;border-radius:50%;background:var(--border);border:.5px solid rgba(26,25,8,0.15);cursor:pointer;transition:background .2s;}
.c-dot.active{background:var(--ink);}

@media(max-width:900px){
  .stats-band{grid-template-columns:1fr;padding:40px 24px;}
  .stat-cell:not(:last-child){border-right:none;border-bottom:.5px solid rgba(255,255,255,0.12);}
  .carousel-section{padding:0 24px 64px;}
  .c-card{flex:0 0 calc(80% - 8px);}
}


/* ══ MOBILE IMPROVEMENTS ══ */

/* Nav — hamburger for small screens */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: .5px solid var(--border);
  padding: 24px 24px 28px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: .5px solid var(--border);
  opacity: .8;
}
.nav-drawer a:last-child { border-bottom: none; margin-top: 16px; }
.nav-drawer .btn {
  text-align: center;
  padding: 14px 24px;
  font-size: 14px;
}

@media (max-width: 768px) {
  /* Show hamburger, hide desktop links */
  .nav-hamburger { display: flex; }
  .nav-right { display: none; }

  /* Hero — better mobile proportions */
  .hero-headline { font-size: clamp(32px, 8vw, 48px); margin-bottom: 20px; }
  .hero-left { padding: 48px 24px 40px; }
  .hero-right { min-height: 240px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-n { font-size: 22px; }

  /* Email form — full width on mobile */
  .hero-form { max-width: 100%; }
  .hero-form input[type="email"] { font-size: 16px; } /* prevents iOS zoom */

  /* Who section */
  .who-right { padding: 32px 24px; }
  .pull-quote { font-size: 17px; }
  .stats-pair { flex-direction: column; gap: 24px; }
  .sp-n { font-size: 28px; }

  /* Articles */
  .section-articles { padding: 48px 20px; }
  .feat-body { padding: 28px 24px; }
  .feat-title { font-size: 20px; }
  .feat-pull { display: none; }

  /* Capture section */
  .cap-title { font-size: clamp(28px, 8vw, 40px); }
  .cap-form { max-width: 100%; }
  .cap-form input[type="email"] { font-size: 16px; }

  /* Ticker — slightly slower on mobile */
  .ticker-track { animation-duration: 22s; }

  /* Stats band */
  .stat-big { font-size: 40px; }

  /* Footer */
  footer { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-links { gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .hero-headline { font-size: 30px; }
  .hero-form { flex-wrap: wrap; border-radius: 12px; padding: 12px; gap: 10px; }
  .hero-form button { width: 100%; border-radius: var(--pill); padding: 12px; }
  .cap-form { flex-wrap: wrap; border-radius: 12px; padding: 12px; gap: 10px; }
  .cap-form button { width: 100%; border-radius: var(--pill); padding: 12px; }
}
