/* ==========================================================================
   Jyochan Consulting — design system
   Palette: cobalt (brand/hero) + copper (accent) + paper (surface) + navy ink
   Type: Lora (display/logo) / IBM Plex Sans (body, labels)
   ========================================================================== */

:root {
  --cobalt: #0955C5;
  --cobalt-dark: #073F94;
  --copper: #D98A44;
  --copper-dark: #B8702F;
  --paper: #F4F1EA;
  --paper-border: #E0DACB;
  --navy: #0E1B33;
  --ink: #16233D;
  --ink-muted: #5B6472;
  --white: #FFFFFF;

  --font-display: 'Lora', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-logo: 'Lora', serif;

  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-muted); }

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* -- kicker / eyebrow label, mono, small-caps feel -------------------- */
.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--copper-dark);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75em;
}

/* -- caption label under headings -------------------------------------- */
.dim-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.5em 0 1.5em;
}
.dim-line > span:not(.dim-line-label) { display: none; }
.dim-line-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* -- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}
.btn-primary:hover { background: var(--cobalt-dark); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--copper);
}
.btn-outline-light:hover { background: rgba(217, 138, 68, 0.12); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-border);
}
.btn-outline:hover { border-color: var(--copper); color: var(--copper-dark); }

/* -- top nav -------------------------------------------------------------- */
.site-header {
  background: var(--cobalt);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo-mark {
  display: flex;
  align-items: stretch;
  gap: 10px;
  color: var(--white);
}
.logo-mark .bar { width: 3px; background: var(--white); }
.logo-mark .word {
  font-family: var(--font-logo);
  font-size: 0.95rem;
  line-height: 1.2;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.nav-links a { color: rgba(255,255,255,0.75); }
.nav-links a:hover,
.nav-links a.active { color: var(--white); text-decoration: none; }

.nav-toggle { display: none; }

/* -- hero ------------------------------------------------------------- */
.hero {
  background: var(--cobalt);
  color: var(--white);
  padding: 64px 0 56px;
}
.hero h1 { color: var(--white); max-width: 620px; }
.hero p.lede {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  font-size: 1.05rem;
}
.hero .dim-line-label { color: #F0C89A; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; }

/* -- trusted-by strip --------------------------------------------------- */
.trusted-strip {
  background: var(--paper);
  border-top: 1px solid var(--paper-border);
  border-bottom: 1px solid var(--paper-border);
  padding: 22px 0;
}
.trusted-row {
  display: flex;
  align-items: center;
  gap: 28px;
}
.trusted-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.logo-marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--paper), rgba(244, 241, 234, 0));
}
.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--paper), rgba(244, 241, 234, 0));
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
}
.logo-card {
  background: var(--white);
  border: 1px solid var(--paper-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 56px;
  flex-shrink: 0;
}
.logo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* -- section blocks ------------------------------------------------------ */
.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.7); }

.section-head { max-width: 640px; margin-bottom: 40px; }

/* -- service cards --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--paper-border);
  padding: 28px 24px;
}
.service-card .num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--copper-dark);
  display: block;
  margin-bottom: 10px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-muted);
  border: 1px solid var(--paper-border);
  padding: 3px 8px;
  border-radius: 3px;
}
.service-card a.card-link {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--cobalt);
}

/* -- accreditation cards --------------------------------------------------- */
.accreditation-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-bottom: 16px;
}
.accreditation-logo img {
  max-width: 100%;
  max-height: 100%;
}
.accreditation-logo-dark {
  background: var(--navy);
  padding: 10px 16px;
  border-radius: var(--radius);
}
.accreditation-card p { font-size: 0.92rem; }

/* -- process steps ------------------------------------------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.process-step .num {
  font-family: var(--font-body);
  color: var(--copper-dark);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 12px;
}

/* -- footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--copper); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* -- responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cobalt-dark);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: block; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
  }
  .site-header { position: relative; }
  .hero { padding: 40px 0 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .trusted-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logo-marquee { width: 100%; }
}
