/*
Theme Name:  Orvol
Theme URI:   https://orvol.com
Author:      Orvol
Description: Custom theme for Orvol competitive intelligence service.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: orvol
*/

/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  --bg:            oklch(97%  0.006 75);
  --bg-alt:        oklch(93%  0.009 75);
  --bg-doc:        oklch(99%  0.004 75);

  --ink:           oklch(16%  0.015 255);
  --ink-mid:       oklch(42%  0.012 255);
  --ink-muted:     oklch(60%  0.008 255);

  --accent:        oklch(33%  0.110 148);
  --accent-hover:  oklch(27%  0.100 148);
  --accent-tint:   oklch(93%  0.040 148);

  --rule:          oklch(87%  0.007 255);

  --font-display:  'EB Garamond', Georgia, serif;
  --font-sans:     'Chivo', system-ui, sans-serif;

  --s-4:   4px;
  --s-8:   8px;
  --s-10:  10px;
  --s-12:  12px;
  --s-16:  16px;
  --s-20:  20px;
  --s-24:  24px;
  --s-28:  28px;
  --s-32:  32px;
  --s-40:  40px;
  --s-48:  48px;
  --s-64:  64px;
  --s-96:  96px;
  --s-128: 128px;

  --radius-sm: 3px;
  --radius:    6px;
  --ease:      200ms ease;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ─── Layout ──────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-48);
}

/* ─── Navigation ──────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), backdrop-filter var(--ease);
  padding: var(--s-24) 0;
}

.site-nav.scrolled {
  border-bottom-color: var(--rule);
  backdrop-filter: blur(14px);
  background: oklch(97% 0.006 75 / 0.92);
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: var(--s-48);
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}

/* wp_nav_menu primary nav */
.nav-links { display: flex; align-items: center; }

.nav-links ul {
  list-style: none;
  display: flex;
  gap: var(--s-32);
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links ul li { margin: 0; }

.nav-links ul li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color var(--ease);
}

.nav-links ul li a:hover,
.nav-links ul li.current-menu-item > a { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-8);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease);
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  background: var(--accent);
  color: oklch(97% 0.006 75);
  padding: var(--s-12) var(--s-24);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--ease);
  white-space: nowrap;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-sm {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  text-decoration: none;
  background: var(--accent);
  color: oklch(97% 0.006 75);
  padding: var(--s-8) var(--s-16);
  border-radius: var(--radius-sm);
  transition: background var(--ease);
  white-space: nowrap;
}

.btn-sm:hover { background: var(--accent-hover); }

.btn-ghost {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color var(--ease);
}

.btn-ghost:hover { color: var(--ink); }

/* ─── Section Labels ──────────────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-16);
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 100px);
}

.hero .container { max-width: 940px; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-32);
  animation: heroIn 0.7s ease 0s both;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 90px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--s-32);
  animation: heroIn 0.7s ease 0.1s both;
}

.hero-headline em { font-style: italic; }

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 620px;
  margin-bottom: var(--s-48);
  animation: heroIn 0.7s ease 0.22s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-32);
  animation: heroIn 0.7s ease 0.36s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Report Section ──────────────────────────────────────────────── */
.report-section {
  padding: clamp(56px, 9vw, 112px) 0;
  background: var(--bg-alt);
}

.report-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-96);
  align-items: start;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.14;
  margin-bottom: var(--s-16);
}

.report-desc {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: var(--s-32);
  max-width: 44ch;
}

.coverage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.coverage-list li {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  padding: var(--s-16) 0;
  border-top: 1px solid var(--rule);
}

.coverage-cat {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

/* ─── Report Document ─────────────────────────────────────────────── */
.report-doc {
  background: var(--bg-doc);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 3px   oklch(16% 0.015 255 / 0.05),
    0 6px 20px  oklch(16% 0.015 255 / 0.08),
    0 20px 56px oklch(16% 0.015 255 / 0.06);
  overflow: hidden;
}

.report-doc-header {
  border-bottom: 2px solid var(--ink);
  padding: var(--s-24) var(--s-32);
  background: var(--bg-doc);
}

.report-doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-12);
}

.report-wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.report-confidential {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.report-doc-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-16);
}

.report-doc-title .rdt-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}

.report-doc-title .rdt-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.report-doc-body {
  padding: var(--s-32);
  display: flex;
  flex-direction: column;
  gap: var(--s-28);
}

.rsb {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.rsb-header {
  display: flex;
  align-items: baseline;
  gap: var(--s-12);
  padding-bottom: var(--s-10);
  border-bottom: 1px solid var(--rule);
}

.rsb-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.rsb-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
}

.rsb-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-10);
}

.rsb-items li {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-mid);
  padding-left: var(--s-16);
  position: relative;
}

.rsb-items li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

.report-finding {
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
  padding: var(--s-20) var(--s-24);
}

.rf-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-8);
}

.report-finding p {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

/* ─── Problem Section ─────────────────────────────────────────────── */
.problem-section {
  padding: clamp(72px, 11vw, 140px) 0;
}

.problem-inner { max-width: 780px; }

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: var(--s-32);
}

.problem-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
}

.problem-copy p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-mid);
  max-width: 65ch;
}

/* ─── Process Section ─────────────────────────────────────────────── */
.process-section {
  padding: clamp(72px, 11vw, 140px) 0;
  background: var(--bg-alt);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-48);
  margin-top: var(--s-48);
  padding-top: var(--s-48);
  border-top: 1px solid var(--rule);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
}

.step-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}

.step-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 32ch;
}

/* ─── Testimonials ────────────────────────────────────────────────── */
.testimonials-section {
  padding: clamp(72px, 11vw, 140px) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-64);
  padding-top: var(--s-48);
  border-top: 1px solid var(--rule);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--s-32);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.attr-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.attr-role {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ─── CTA Section ─────────────────────────────────────────────────── */
.cta-section {
  background: var(--ink);
  padding: clamp(72px, 11vw, 140px) 0;
}

.cta-section .section-label { color: var(--accent-tint); }

.cta-inner { max-width: 580px; }

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--bg);
  margin-bottom: var(--s-20);
}

.cta-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: oklch(68% 0.008 255);
  margin-bottom: var(--s-32);
  max-width: 52ch;
}

.cta-form {
  display: flex;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}

.cta-input {
  flex: 1;
  padding: var(--s-12) var(--s-16);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  background: oklch(24% 0.014 255);
  color: var(--bg);
  border: 1px solid oklch(34% 0.012 255);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--ease);
}

.cta-input::placeholder { color: oklch(52% 0.008 255); }
.cta-input:focus { border-color: oklch(58% 0.06 148); }

.cta-note {
  font-size: 12px;
  color: oklch(48% 0.008 255);
}

/* ─── Inner Pages ─────────────────────────────────────────────────── */
.page-content {
  padding: clamp(64px, 10vw, 128px) 0;
}

.page-article { max-width: 720px; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--s-48);
  padding-bottom: var(--s-32);
  border-bottom: 1px solid var(--rule);
}

.page-body {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-mid);
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--s-48) 0 var(--s-16);
}

.page-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--s-32) 0 var(--s-12);
}

.page-body p { margin-bottom: var(--s-20); max-width: 65ch; }

.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body ul, .page-body ol {
  padding-left: var(--s-24);
  margin-bottom: var(--s-20);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  padding: var(--s-48) 0;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--s-48);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}

/* wp_nav_menu footer nav */
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: var(--s-32);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer-nav ul li { margin: 0; }

.footer-nav ul li a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-nav ul li a:hover { color: var(--ink); }

.footer-legal {
  font-size: 12px;
  color: var(--ink-muted);
}

.footer-legal a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-legal a:hover { color: var(--ink); }

/* ─── Scroll Animations ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .report-layout {
    grid-template-columns: 1fr;
    gap: var(--s-48);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--s-40);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--s-48);
  }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--s-24); }

  .nav-links { display: none; }
  .site-nav .btn-sm { display: none; }
  .nav-toggle { display: flex; }

  .site-nav { position: relative; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: var(--s-24);
    border-bottom: 1px solid var(--rule);
    z-index: 99;
  }

  .nav-links.open ul {
    flex-direction: column;
    gap: var(--s-24);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-16);
  }

  .cta-form { flex-direction: column; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-24);
  }

  .footer-logo { margin-right: 0; }
  .footer-nav ul { gap: var(--s-16); }
}

@media (max-width: 480px) {
  .report-doc-title {
    flex-direction: column;
    gap: var(--s-4);
  }
}

/* ─── Reduced Motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-actions { animation: none; }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
