/* ========================================
   CVI Ltd — Agency Aesthetic v3
   Nendo-inspired: white, bold, editorial
   ======================================== */

:root {
  --primary: #0B3D2E;
  --primary-light: #14785A;
  --gold: #C8963E;
  --gold-light: #f5e6cc;
  --dark: #111111;
  --body: #333333;
  --gray: #666666;
  --light: #f7f7f7;
  --white: #ffffff;
  --red: #C1292E;
  --green: #2E7D32;
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1100px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.75;
  color: var(--body); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Type --- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; color: var(--dark); }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; }

/* Gold underline on key words — the Nendo-style highlight */
.highlight {
  background-image: linear-gradient(transparent 60%, var(--gold-light) 60%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 2px;
}
.undermark {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

.label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; display: block;
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; }
.text-center { text-align: center; }
.bg-light { background: var(--light); }
.bg-cream { background: #faf6ef; }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-green { background: var(--primary); color: var(--white); }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.85rem 2.2rem;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.btn-black { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-black:hover { background: #333; border-color: #333; }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-sm { padding: 0.6rem 1.6rem; font-size: 0.82rem; }

/* --- Nav — light, editorial --- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); height: var(--nav-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo a { display: flex; flex-direction: column; color: var(--dark); line-height: 1.1; }
.nav-logo .logo-main { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.03em; }
.nav-logo .logo-sub { font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--body); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.nav-cta .btn { padding: 0.45rem 1.2rem; font-size: 0.8rem; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column; padding: 2rem 1.5rem; gap: 0;
    transform: translateX(100%); transition: transform 0.35s;
    border-top: 1px solid #eee;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 1rem 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
  .nav-cta { margin-top: 1.5rem; }
  .nav-cta .btn { width: 100%; display: block; }
  .hamburger { display: flex; }
}

main { padding-top: var(--nav-h); }

/* --- Hero — white, bold, editorial --- */
.hero {
  padding: 8rem 0 6rem; position: relative;
}
.hero-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem; align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.15rem; color: var(--gray); margin-bottom: 2.5rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero illustration area */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-visual img { max-height: 500px; width: auto; }

@media (max-width: 768px) {
  .hero { padding: 6rem 0 3rem; }
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual img { max-height: 280px; max-width: 80%; margin: 0 auto; }
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 8rem 0 3.5rem; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: var(--gray); font-size: 1.1rem; max-width: 560px; }

/* --- Responsive images --- */
@media (max-width: 768px) {
  .page-hero { padding: 6.5rem 0 2.5rem; }
  section img[loading] { max-width: 100%; height: auto; }
}

/* --- Two Column --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

/* --- Narrative --- */
.narrative { max-width: 680px; }
.narrative p { font-size: 1.05rem; line-height: 1.85; color: var(--gray); }
.narrative.wide { max-width: 800px; }

/* --- Accent Cards --- */
.accent-card {
  border-left: 4px solid var(--gold); padding: 1.5rem 1.75rem;
  background: #faf6ef; border-radius: 0 4px 4px 0;
  font-size: 1.05rem; line-height: 1.6;
}
.accent-card.dark {
  background: var(--dark); color: var(--white); border-left-color: var(--gold);
}
.accent-card strong { color: var(--dark); }
.accent-card.dark strong { color: var(--gold); }

/* --- Stats --- */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; text-align: center; }
.stat .num {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700; color: var(--dark); display: block; margin-bottom: 0.3rem;
}
.stat .desc { font-size: 0.88rem; color: var(--gray); line-height: 1.5; }
@media (max-width: 768px) { .stat-row { grid-template-columns: 1fr; gap: 2.5rem; } }

/* --- Service Grid (homepage) --- */
.service-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem;
}
.service-grid-item { padding: 0; }
.service-grid-item h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.service-grid-item p { font-size: 0.92rem; color: var(--gray); }
.service-grid-item .read-more { color: var(--dark); font-weight: 600; font-size: 0.85rem; display: inline-block; margin-top: 0.5rem; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.service-grid-item .read-more:hover { color: var(--gold); }
.service-grid-item .divider { width: 40px; height: 3px; background: var(--gold); margin-bottom: 1.25rem; border-radius: 2px; }

@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* --- Service Blocks (detail page) --- */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start; padding: 5rem 0;
  border-bottom: 1px solid #eee;
}
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) > *:first-child { order: 2; }
.service-block:nth-child(even) > *:last-child { order: 1; }
.service-block h3 { margin-bottom: 0.75rem; }
.service-block p { color: var(--gray); font-size: 0.95rem; }
.service-visual {
  background: var(--light); border-radius: 12px; padding: 2.5rem;
  min-height: 240px; display: flex; flex-direction: column; justify-content: center;
}
.service-visual.dark { background: var(--dark); color: var(--white); }
.service-includes li {
  padding: 0.4rem 0 0.4rem 1.2rem; position: relative;
  font-size: 0.92rem; color: var(--gray);
}
.service-includes li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
@media (max-width: 768px) {
  .service-block { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0; }
  .service-block:nth-child(even) > * { order: unset !important; }
}

/* --- Process --- */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin: 3rem 0; }
.process-item { text-align: center; }
.process-item .step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark); color: var(--white);
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.process-item h4 { margin-bottom: 0.4rem; }
.process-item p { font-size: 0.85rem; color: var(--gray); }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* --- EHA --- */
.eha-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.eha-card { padding: 2rem; border-radius: 8px; }
.eha-card.evidence { background: #fef3e2; border-left: 4px solid #e65100; }
.eha-card.hypothesis { background: #e8f0fe; border-left: 4px solid #1565C0; }
.eha-card.action { background: #e6f4ea; border-left: 4px solid var(--green); }
.eha-card h4 { margin-bottom: 0.4rem; }
.eha-card p { font-size: 0.92rem; color: var(--gray); margin-bottom: 0; }
@media (max-width: 768px) { .eha-grid { grid-template-columns: 1fr; } }

/* --- Differentiators --- */
.diff-item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem 0; border-bottom: 1px solid #eee; }
.diff-item:last-child { border-bottom: none; }
.diff-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--dark); display: flex; align-items: center; justify-content: center;
}
.diff-icon svg { width: 20px; height: 20px; stroke: var(--white); fill: none; stroke-width: 2; }
.diff-item h4 { margin-bottom: 0.2rem; }
.diff-item p { font-size: 0.9rem; color: var(--gray); margin-bottom: 0; }

/* --- Case Cards --- */
.case-card {
  background: var(--white); border: 1px solid #eee; border-radius: 12px;
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.case-header { background: var(--dark); color: var(--white); padding: 2rem 2.5rem; }
.case-header h3 { color: var(--white); margin-bottom: 0.4rem; font-size: 1.25rem; }
.case-header .case-meta { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.case-body { padding: 2rem 2.5rem; }
.case-finding { padding: 0.7rem 0 0.7rem 1rem; border-left: 3px solid var(--gold); margin-bottom: 1rem; font-size: 0.92rem; color: var(--gray); }
.case-finding strong { color: var(--dark); }

.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.cards-grid-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) { .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; } }
.gap-stack > * + * { margin-top: 1.5rem; }

/* --- Insight Cards --- */
.insight-card { background: var(--white); border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: transform 0.25s; }
.insight-card:hover { transform: translateY(-3px); }
.insight-header { height: 130px; background: var(--dark); display: flex; align-items: center; justify-content: center; }
.insight-header .big-stat { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--gold); }
.insight-body { padding: 1.5rem; }
.insight-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.insight-body p { font-size: 0.88rem; color: var(--gray); }
.insight-body .meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: #aaa; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #eee; }
.read-more { color: var(--dark); font-weight: 600; font-size: 0.85rem; display: inline-block; margin-top: 0.5rem; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.read-more:hover { color: var(--gold); }

/* --- Featured Report --- */
.featured-report { background: #faf6ef; border-radius: 16px; padding: 3.5rem; display: flex; gap: 3rem; align-items: center; }
.featured-report-content { flex: 1; }
.report-visual {
  width: 180px; height: 240px; flex-shrink: 0; background: var(--dark);
  border-radius: 8px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: var(--white); padding: 1.5rem; text-align: center;
}
.report-visual h4 { color: var(--white); font-size: 0.9rem; margin: 0.5rem 0 0.25rem; }
.report-visual p { font-size: 0.7rem; opacity: 0.5; }
@media (max-width: 768px) { .featured-report { flex-direction: column; padding: 2rem; } .report-visual { width: 100%; height: 160px; } }

/* --- Founder --- */
.founder-section { display: grid; grid-template-columns: 180px 1fr; gap: 2.5rem; align-items: start; }
.founder-photo {
  width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
  background: var(--light); flex-shrink: 0;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-role { font-size: 0.88rem; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.founder-section p { font-size: 0.95rem; color: var(--gray); }
@media (max-width: 768px) { .founder-section { grid-template-columns: 1fr; text-align: center; } .founder-photo { margin: 0 auto; width: 140px; height: 140px; } }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.contact-sidebar { background: var(--light); border-radius: 12px; padding: 2.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item .c-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item .c-icon svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 2; }
.contact-item h4 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.contact-item p { font-size: 0.9rem; color: var(--gray); margin-bottom: 0; }
.map-box { width: 100%; height: 180px; border-radius: 12px; overflow: hidden; margin-top: 1.5rem; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--dark); }
input, select, textarea {
  width: 100%; padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 0.95rem;
  border: 1px solid #ddd; border-radius: 8px; background: var(--white); color: var(--dark); transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }

/* --- CTA Banner --- */
.cta-banner { background: var(--dark); color: var(--white); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.55); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Career Card --- */
.career-card {
  background: var(--white); border: 1px solid #eee; border-radius: 12px; padding: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  transition: box-shadow 0.2s;
}
.career-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.career-card h3 { margin-bottom: 0.3rem; }
.career-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 0.2rem; }
.career-loc { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
@media (max-width: 768px) { .career-card { flex-direction: column; align-items: flex-start; } }

/* --- Manifesto --- */
.manifesto {
  border-left: 4px solid var(--gold); padding: 3rem 3.5rem;
  max-width: 780px; background: var(--light); border-radius: 0 12px 12px 0;
}
.manifesto h2 { margin-bottom: 1.25rem; }
.manifesto p { font-size: 1.05rem; line-height: 1.85; color: var(--gray); }

/* --- Footer --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo-main { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.footer-brand .logo-sub { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.4; display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; padding: 0.3rem 0; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; }
.social-links { display: flex; gap: 1.25rem; }
.social-links a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.social-links a:hover { color: var(--gold); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* --- Sentiment Bars --- */
.sentiment-bar { height: 8px; border-radius: 4px; background: #eee; overflow: hidden; margin: 0.4rem 0; }
.sentiment-fill { height: 100%; border-radius: 4px; }
.sentiment-fill.pos { background: var(--green); }
.sentiment-fill.neg { background: var(--red); }
.sentiment-fill.mid { background: var(--gold); }

/* --- Logo Row --- */
.logo-row { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.logo-ph { width: 100px; height: 40px; background: #f0f0f0; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #ccc; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Utility --- */
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }
