/* YAMASTRO — yamastrohq.css
   Namespace: .yam- (BEM prefix from class_names)
   Fonts: Inter + Space Grotesk
   Accent: #7c3aed | Secondary: #b45309
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --accent: #7c3aed;
  --accent-on-dark: #a78bfa;
  --secondary: #b45309;
  --text-body: #1e1135;
  --text-muted: #6b7280;
  --text-muted-on-dark: #94a3b8;
  --bg-dark: #0f172a;
  --bg-dark2: #1e293b;
  --bg-alt: #f8f5ff;
  --bg-white: #ffffff;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.c-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
}
.c-btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.c-btn--primary:hover { opacity: 0.9; color: #ffffff; }
.c-btn--outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(226,232,240,0.35);
}
.c-btn--outline:hover { border-color: #e2e8f0; color: #ffffff; }
.c-btn--sm { padding: 8px 16px; font-size: 14px; }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.c-section-header { text-align: center; margin-bottom: 56px; }
.c-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.c-section-title {
  font-size: 36px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.c-section-title--dark { color: var(--text-body); }
.c-section-desc {
  font-size: 17px;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.c-section-desc--dark { color: var(--text-muted); }

/* =========================================================
   PAGE HERO (non-index pages)
   ========================================================= */
.c-page-hero {
  background: var(--bg-dark);
  padding: 100px 0 56px;
  border-bottom: 1px solid #1e293b;
}
.c-page-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.c-page-hero__title {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  margin-bottom: 12px;
}
.c-page-hero__lede {
  font-size: 17px;
  color: #94a3b8;
  max-width: 560px;
  line-height: 1.7;
}

/* =========================================================
   NAV — c-yama-nav (inherits c-nav base from nav.css inline)
   ========================================================= */
.c-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.c-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}
.c-nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800;
  text-decoration: none;
  color: inherit;
}
.c-nav__logo-img { height: 32px; width: auto; display: none; }
.c-nav__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.c-nav__links a {
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s;
}
.c-nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 8px;
}
.c-nav__cta:hover { opacity: 0.9; color: #fff !important; }
.c-nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.c-nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; transition: 0.3s; background: #f1f5f9; }

/* Nav dark theme */
.c-nav[data-nav-theme="dark"] { background: transparent; }
.c-nav[data-nav-theme="dark"].scrolled {
  background: rgba(15,23,42,0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.c-nav[data-nav-theme="dark"] .c-nav__logo { color: #f1f5f9; }
.c-nav[data-nav-theme="dark"] .c-nav__logo-img--dark { display: inline; }
.c-nav[data-nav-theme="dark"] .c-nav__logo-img--light { display: none; }
.c-nav[data-nav-theme="dark"] .c-nav__links a { color: #94a3b8; }
.c-nav[data-nav-theme="dark"] .c-nav__links a:hover,
.c-nav[data-nav-theme="dark"] .c-nav__links a.active { color: #f1f5f9; }
.c-nav[data-nav-theme="dark"] .c-nav__toggle span { background: #f1f5f9; }

/* Nav light theme (non-dark pages) */
.c-nav[data-nav-theme="light"] {
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.c-nav[data-nav-theme="light"] .c-nav__logo { color: #0f172a; }
.c-nav[data-nav-theme="light"] .c-nav__logo-img--light { display: inline; }
.c-nav[data-nav-theme="light"] .c-nav__logo-img--dark { display: none; }
.c-nav[data-nav-theme="light"] .c-nav__links a { color: #334155; }
.c-nav[data-nav-theme="light"] .c-nav__links a:hover,
.c-nav[data-nav-theme="light"] .c-nav__links a.active { color: #0f172a; }
.c-nav[data-nav-theme="light"] .c-nav__toggle span { background: #0f172a; }

/* Dropdown */
.c-nav__item { position: relative; }
.c-nav__item--dropdown .c-nav__submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #1e293b;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  z-index: 100;
}
.c-nav__item--dropdown:hover .c-nav__submenu { display: block; }
.c-nav__submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #94a3b8 !important;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.c-nav__submenu a:hover { background: rgba(124,58,237,0.12); color: #f1f5f9 !important; }

/* Responsive nav */
@media (max-width: 768px) {
  .c-nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #0f172a;
    padding: 16px;
    border-top: 1px solid #1e293b;
    align-items: flex-start;
    gap: 4px;
  }
  .c-nav[data-nav-theme="light"] .c-nav__links {
    background: #ffffff;
    border-top-color: rgba(15,23,42,0.08);
  }
  .c-nav[data-nav-theme="light"] .c-nav__links a { color: #0f172a; }
  .c-nav__links.open { display: flex; }
  .c-nav__toggle { display: block; }
  .c-nav__item--dropdown .c-nav__submenu { position: static; box-shadow: none; background: rgba(255,255,255,0.05); }
  .c-nav__item--dropdown:hover .c-nav__submenu { display: none; }
  .c-nav__item--dropdown.open .c-nav__submenu { display: block; }
  .c-nav__cta { margin-left: 0 !important; }
}

/* =========================================================
   HERO — c-yama-hero (D-full-bleed variant)
   ========================================================= */
.c-yama-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: #f1f5f9;
}
.c-yama-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.c-yama-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.c-yama-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,14,23,0.88) 0%, rgba(10,14,23,0.65) 55%, rgba(10,14,23,0.15) 100%);
}
.c-yama-hero__content {
  position: relative; z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.c-yama-hero__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: 20px;
}
.c-yama-hero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  max-width: 700px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.c-yama-hero__subtitle {
  font-size: 19px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 560px;
  margin-bottom: 36px;
}
.c-yama-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .c-yama-hero { min-height: 78vh; }
  .c-yama-hero__title { font-size: 34px; }
  .c-yama-hero__subtitle { font-size: 16px; }
  .c-yama-hero__overlay {
    background: linear-gradient(180deg, rgba(10,14,23,0.5) 0%, rgba(10,14,23,0.88) 100%);
  }
}

/* =========================================================
   STATS — c-yama-stats (A-bar)
   ========================================================= */
.c-yama-stats {
  background: #1e293b;
  padding: 48px 0;
}
.c-yama-stats__bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.c-yama-stats__item { padding: 16px 0; }
.c-yama-stats__number {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-on-dark);
  line-height: 1.2;
  font-family: var(--font-display);
}
.c-yama-stats__label {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .c-yama-stats__bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .c-yama-stats__number { font-size: 28px; }
}

/* =========================================================
   FEATURES — c-yama-features (C-alternating)
   ========================================================= */
.c-yama-features {
  padding: 96px 0;
  background: var(--bg-dark);
}
.c-yama-features__rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 0;
}
.c-yama-features__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.c-yama-features__row--alt .c-yama-features__content { order: 2; }
.c-yama-features__row--alt .c-yama-features__image { order: 1; }
.c-yama-features__image img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.c-yama-features__title {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.c-yama-features__body {
  font-size: 16px;
  line-height: 1.75;
  color: #94a3b8;
}
.c-yama-features__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .c-yama-features__row { grid-template-columns: 1fr; gap: 28px; }
  .c-yama-features__row--alt .c-yama-features__content,
  .c-yama-features__row--alt .c-yama-features__image { order: unset; }
}

/* =========================================================
   PROCESS — A-numbered
   ========================================================= */
.c-process {
  padding: 80px 0;
  background: #0a0d18;
}
.c-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.c-process__step {
  position: relative;
  padding: 32px 24px;
  background: #1e293b;
  border-radius: 12px;
  border-top: 2px solid transparent;
  transition: border-color 0.2s;
}
.c-process__step:hover { border-top-color: var(--accent); }
.c-process__num {
  display: inline-block;
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.c-process__name {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.c-process__text {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
}
@media (max-width: 992px) { .c-process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .c-process__steps { grid-template-columns: 1fr; } }

/* =========================================================
   TESTIMONIALS — B-stats
   ========================================================= */
.c-testimonials {
  padding: 80px 0;
  background: var(--bg-dark2);
}
.c-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.c-testimonials__card {
  background: #0f172a;
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid #334155;
}
.c-testimonials__stat {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-on-dark);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.c-testimonials__source {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.c-testimonials__text {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}
@media (max-width: 768px) { .c-testimonials__grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA BANNER — A-banner
   ========================================================= */
.c-cta {
  background: var(--accent);
  padding: 72px 0;
  text-align: center;
}
.c-cta__title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.c-cta__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.c-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.c-cta .c-btn--primary { background: #ffffff; color: var(--accent); }
.c-cta .c-btn--primary:hover { opacity: 0.92; }
.c-cta .c-btn--outline { border-color: rgba(255,255,255,0.4); color: #ffffff; }
.c-cta .c-btn--outline:hover { border-color: #ffffff; }

/* =========================================================
   FOOTER — c-yama-footer (A-4col, 5 columns)
   ========================================================= */
.c-yama-footer {
  background: #070b14;
  padding: 72px 0 0;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
}
.c-yama-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 56px;
}
.c-yama-footer__brand .c-yama-footer__logo img { height: 30px; width: auto; }
.c-yama-footer__tagline {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 240px;
}
.c-yama-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.c-yama-footer__social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #1e293b;
  color: #64748b;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.c-yama-footer__social a:hover { background: var(--accent); color: #ffffff; }
.c-yama-footer__grid > div h4 {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}
.c-yama-footer__grid > div ul { list-style: none; padding: 0; margin: 0; }
.c-yama-footer__grid > div ul li { margin-bottom: 10px; font-size: 14px; }
.c-yama-footer__grid > div ul a {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.c-yama-footer__grid > div ul a:hover { color: var(--accent-on-dark); }
.c-yama-footer__col--contact p { font-size: 14px; margin-bottom: 10px; line-height: 1.5; color: #94a3b8; }
.c-yama-footer__col--contact i { color: var(--accent-on-dark); width: 18px; font-size: 13px; margin-right: 6px; }
.c-yama-footer__col--contact a { color: #94a3b8; text-decoration: none; }
.c-yama-footer__col--contact a:hover { color: var(--accent-on-dark); }
.c-yama-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #475569;
}
.c-yama-footer__legal {
  display: flex;
  gap: 20px;
}
.c-yama-footer__legal a { color: #64748b; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.c-yama-footer__legal a:hover { color: #94a3b8; }
@media (max-width: 1024px) { .c-yama-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 768px) {
  .c-yama-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .c-yama-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* =========================================================
   COOKIE BANNER — A-generic
   ========================================================= */
.c-cookie {
  position: fixed;
  inset: auto 16px 16px 16px;
  max-width: 720px;
  margin-left: auto;
  z-index: 1080;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 20px 50px rgba(15,23,42,0.18);
  border-radius: 12px;
  padding: 16px 20px;
}
.c-cookie[hidden] { display: none !important; }
.c-cookie__inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.c-cookie__text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: #374151;
}
.c-cookie__text a { color: var(--accent); }
.c-cookie__actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.c-cookie .c-btn--outline {
  color: #1e293b;
  background: #ffffff;
  border-color: rgba(15,23,42,0.25);
}
.c-cookie .c-btn--outline:hover {
  background: #f1f5f9;
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 576px) {
  .c-cookie { inset: auto 8px 8px 8px; }
  .c-cookie__actions { width: 100%; justify-content: flex-end; }
}

/* =========================================================
   TEAM — c-yama-team (A-grid)
   ========================================================= */
.c-yama-team {
  padding: 96px 0;
  background: var(--bg-dark);
}
.c-yama-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.c-yama-team__card { text-align: center; }
.c-yama-team__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid #1e293b;
}
.c-yama-team__name {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.c-yama-team__title {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 10px;
}
.c-yama-team__bio {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* =========================================================
   CONTACT — c-yama-contact (A-split)
   ========================================================= */
.c-yama-contact {
  padding: 80px 0;
  background: var(--bg-dark);
}
.c-yama-contact__grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 72px;
}
.c-yama-contact__form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
}
.c-yama-contact__form input,
.c-yama-contact__form select,
.c-yama-contact__form textarea {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}
.c-yama-contact__form input:focus,
.c-yama-contact__form select:focus,
.c-yama-contact__form textarea:focus { border-color: var(--accent); outline: none; }
.c-yama-contact__form select option { background: #1e293b; }
.c-yama-contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.c-yama-contact__title {
  font-size: 28px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 32px;
  font-family: var(--font-display);
}
.c-yama-contact__offices { }
.c-yama-contact__office-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.c-yama-contact__office-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.c-contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #94a3b8;
}
.c-contact__info-item i { color: var(--accent-on-dark); font-size: 15px; margin-top: 2px; min-width: 18px; }
.c-contact__info-item a { color: #94a3b8; text-decoration: none; }
.c-contact__info-item a:hover { color: var(--accent-on-dark); }
@media (max-width: 768px) {
  .c-yama-contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .c-yama-contact__form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   BLOG GRID — C-magazine
   ========================================================= */
.c-yama-blog {
  padding: 80px 0;
  background: var(--bg-white);
}
.c-yama-blog .c-section-title { color: var(--text-body); }
.c-blog-magazine__layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
}
.c-blog-magazine__feature { position: relative; }
.c-blog-magazine__feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.c-blog-magazine__feature-img {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
  display: block;
}
.c-blog-magazine__feature-body {
  padding: 22px 24px 26px;
  background: #f8fafc;
  border-radius: 0 0 14px 14px;
}
.c-blog-magazine__feature-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
}
.c-blog-magazine__feature-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 10px;
  color: #0f172a;
  font-family: var(--font-display);
}
.c-blog-magazine__feature-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 14px;
}
.c-blog-magazine__feature-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}
.c-blog-magazine__secondary {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.c-blog-magazine__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s;
}
.c-blog-magazine__item:hover { background: #f8fafc; }
.c-blog-magazine__item-media { display: block; overflow: hidden; border-radius: 8px; }
.c-blog-magazine__item-media img { width: 100%; aspect-ratio: 11/7; object-fit: cover; display: block; }
.c-blog-magazine__item-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.c-blog-magazine__item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 5px 0 5px;
  color: #0f172a;
  font-family: var(--font-display);
}
.c-blog-magazine__item-title a { color: inherit; text-decoration: none; }
.c-blog-magazine__item-title a:hover { color: var(--accent); }
.c-blog-magazine__item-date { font-size: 12px; color: #94a3b8; }
.c-yama-blog__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.c-yama-blog__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.c-yama-blog__thumb { width: 100%; height: 200px; object-fit: cover; display: block; }
.c-yama-blog__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.c-yama-blog__category {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.c-yama-blog__date { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.c-yama-blog__title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 8px; line-height: 1.4; font-family: var(--font-display); }
.c-yama-blog__title a { color: inherit; text-decoration: none; }
.c-yama-blog__title a:hover { color: var(--accent); }
.c-yama-blog__excerpt { font-size: 14px; color: #64748b; line-height: 1.6; flex: 1; }
.c-yama-blog__read-more { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 12px; text-decoration: none; }
.c-yama-blog__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 768px) {
  .c-blog-magazine__layout { grid-template-columns: 1fr; }
  .c-yama-blog__list { grid-template-columns: 1fr; }
}

/* =========================================================
   ABOUT PAGE — founding story sections
   ========================================================= */
.c-about-story {
  padding: 96px 0;
  background: var(--bg-dark);
}
.c-about-story__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.c-about-story__lead {
  font-size: 22px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 32px;
  font-family: var(--font-display);
}
.c-about-story__body {
  font-size: 16px;
  line-height: 1.85;
  color: #94a3b8;
  margin-bottom: 20px;
}
.c-about-story__body + .c-about-story__body { margin-top: 0; }
.c-about-timeline {
  padding: 64px 0;
  background: #0a0d18;
}
.c-about-timeline__list {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.c-about-timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.c-about-timeline__year {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-on-dark);
  font-family: var(--font-display);
  padding-top: 2px;
}
.c-about-timeline__text {
  font-size: 15px;
  line-height: 1.7;
  color: #94a3b8;
  border-left: 2px solid #1e293b;
  padding-left: 20px;
}
.c-about-timeline__text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.c-about-mission {
  padding: 80px 0;
  background: var(--bg-dark2);
  text-align: center;
}
.c-about-mission__statement {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  font-family: var(--font-display);
  font-style: italic;
}
.c-about-values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.c-about-values__item {
  background: #0f172a;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  border: 1px solid #1e293b;
}
.c-about-values__item i {
  display: block;
  font-size: 20px;
  color: var(--accent-on-dark);
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .c-about-values { grid-template-columns: 1fr 1fr; }
  .c-about-timeline__item { grid-template-columns: 60px 1fr; gap: 14px; }
  .c-about-mission__statement { font-size: 20px; }
}

/* =========================================================
   PRODUCT PAGE — sections
   ========================================================= */
.c-product-overview {
  padding: 80px 0;
  background: var(--bg-dark);
}
.c-product-how {
  padding: 80px 0;
  background: #0a0d18;
}
.c-product-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.c-product-how__step {
  background: #1e293b;
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
}
.c-product-how__step-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-on-dark);
  margin-bottom: 10px;
}
.c-product-how__step h4 {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.c-product-how__step p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}
.c-product-integrations {
  padding: 60px 0;
  background: var(--bg-dark2);
  text-align: center;
}
.c-product-integrations__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.c-product-integrations__badge {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}
.c-product-target {
  padding: 64px 0;
  background: var(--bg-dark);
}
.c-product-target__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.c-product-target__col h4 {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.c-product-target__col ul { list-style: none; padding: 0; }
.c-product-target__col ul li {
  font-size: 15px;
  color: #94a3b8;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.c-product-target__col ul li i { color: var(--accent-on-dark); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.c-product-target__col ul li i.not { color: #ef4444; }
@media (max-width: 768px) {
  .c-product-how__steps { grid-template-columns: 1fr; }
  .c-product-target__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   404 PAGE
   ========================================================= */
.c-404 {
  min-height: 88vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.c-404__inner { max-width: 520px; margin: 0 auto; }
.c-404__code {
  font-size: 120px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  font-family: var(--font-display);
  margin-bottom: -20px;
}
.c-404__title {
  font-size: 28px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.c-404__text {
  font-size: 16px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 36px;
}
.c-404__back {
  font-size: 14px;
  color: #64748b;
  margin-top: 16px;
  display: block;
}
.c-404__back a { color: var(--accent-on-dark); text-decoration: underline; }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.c-legal {
  padding: 60px 0 100px;
  background: var(--bg-dark);
}
.c-legal__wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.c-legal__wrap h2 { font-size: 20px; font-weight: 700; color: #f1f5f9; margin: 36px 0 12px; font-family: var(--font-display); }
.c-legal__wrap h3 { font-size: 17px; font-weight: 700; color: #e2e8f0; margin: 24px 0 10px; font-family: var(--font-display); }
.c-legal__wrap p { font-size: 15px; line-height: 1.8; color: #94a3b8; margin-bottom: 16px; }
.c-legal__wrap ul { padding-left: 20px; margin-bottom: 16px; }
.c-legal__wrap ul li { font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 8px; }
.c-legal__wrap a { color: var(--accent-on-dark); text-decoration: underline; }

/* =========================================================
   BLOG INDEX / ARTICLE PAGES
   ========================================================= */
.c-yama-post {
  padding: 60px 0 80px;
  background: var(--bg-white);
}
.c-yama-post__header {
  max-width: 780px;
  margin: 0 auto 36px;
  padding: 0 24px;
}
.c-yama-post__title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.c-yama-post__meta { font-size: 14px; color: #94a3b8; margin-bottom: 32px; }
.c-yama-post__cover {
  max-width: 780px;
  margin: 0 auto 36px;
  padding: 0 24px;
}
.c-yama-post__cover img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.c-yama-post__body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}
.c-yama-post__body h2 { font-size: 24px; font-weight: 700; color: #0f172a; margin: 40px 0 14px; font-family: var(--font-display); }
.c-yama-post__body h3 { font-size: 20px; font-weight: 700; color: #0f172a; margin: 28px 0 10px; font-family: var(--font-display); }
.c-yama-post__body p { margin-bottom: 18px; }
.c-yama-post__body ul, .c-yama-post__body ol { padding-left: 24px; margin-bottom: 18px; }
.c-yama-post__body li { margin-bottom: 8px; }
.c-yama-post__body img { width: 100%; border-radius: 12px; margin: 24px 0 32px; }
.c-yama-related { padding: 60px 0; background: #f8fafc; }
.c-yama-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.c-yama-related__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}
.c-yama-related__img { width: 100%; height: 160px; object-fit: cover; display: block; }
.c-yama-related__body { padding: 16px; }
.c-yama-related__title { font-size: 15px; font-weight: 700; color: #1e293b; line-height: 1.4; font-family: var(--font-display); }
.c-yama-related__title a { color: inherit; text-decoration: none; }
.c-yama-related__title a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .c-yama-related__grid { grid-template-columns: 1fr; }
  .c-yama-post__title { font-size: 26px; }
}

/* =========================================================
   CASE STUDIES PAGE (industry-extra)
   ========================================================= */
.c-case-studies {
  padding: 80px 0;
  background: var(--bg-dark);
}
.c-case-studies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.c-case-studies__card {
  background: #1e293b;
  border-radius: 12px;
  padding: 32px 24px;
  border-left: 4px solid var(--accent);
}
.c-case-studies__industry {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 12px;
}
.c-case-studies__card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.c-case-studies__stat {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-on-dark);
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.c-case-studies__stat-label {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 14px;
}
.c-case-studies__card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}
@media (max-width: 768px) { .c-case-studies__grid { grid-template-columns: 1fr; } }

/* =========================================================
   UTILITY
   ========================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bg-dark { background: var(--bg-dark); }
.bg-dark2 { background: var(--bg-dark2); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.pt-64 { padding-top: 64px; }

/* ==== BLOG ARTICLE READING WIDTH (MANDATORY) ==== */
.c-article,
.c-article__container,
.c-post__body,
.c-post,
.c-blog-post,
.blog-article,
.blog-article-body,
.blog-article-content,
.blog-post,
.blog-post-body,
.article-body,
.article-content,
.post-content,
.post-body,
.container-narrow,
.reading-column,
.c-yama-post__body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Article body images: never exceed reading column */
.c-article img,
.c-article__container img,
.c-post__body img,
.blog-article-body img,
.blog-post img,
.article-body img,
.article-content img,
.post-content img,
.c-yama-post__body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 24px auto 32px;
}

/* Heading rhythm in article body */
.c-article h2,
.c-post__body h2,
.blog-article-body h2,
.blog-post h2,
.article-body h2,
.post-content h2,
.c-yama-post__body h2 { margin-top: 48px; margin-bottom: 20px; }

.c-article h3,
.c-post__body h3,
.blog-article-body h3,
.blog-post h3,
.article-body h3,
.post-content h3,
.c-yama-post__body h3 { margin-top: 36px; margin-bottom: 16px; }

/* ==== BLOG ARTICLE PAGE LAYOUT ==== */
.c-yama-post {
  padding: 56px 0 80px;
}
.c-yama-post__header {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
}
.c-yama-post__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 16px;
}
.c-yama-post__title {
  font-size: 36px;
  font-weight: 800;
  color: #1e1135;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}
.c-yama-post__meta {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.c-yama-post__cover {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 48px;
  border-radius: 16px;
  object-fit: cover;
  height: 480px;
}
.c-yama-related {
  background: #f8f5ff;
  padding: 64px 0;
  margin-top: 64px;
}
.c-yama-related__header {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.c-yama-related__grid {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.c-yama-related__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.c-yama-related__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.c-yama-related__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.c-yama-related__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
  margin-bottom: 8px;
}
.c-yama-related__title {
  font-size: 15px;
  font-weight: 600;
  color: #1e1135;
  line-height: 1.4;
  margin-bottom: 12px;
}
.c-yama-related__title a {
  color: inherit;
  text-decoration: none;
}
.c-yama-related__title a:hover { color: #7c3aed; }
@media (max-width: 768px) {
  .c-yama-post__title { font-size: 26px; }
  .c-yama-post__cover { height: 240px; }
  .c-yama-related__grid { grid-template-columns: 1fr; }
}
