/* Apiservicepath — premium consulting theme */
:root {
  --ink: #142018;
  --forest: #1a3a34;
  --forest-deep: #0f2622;
  --mist: #eef3f1;
  --paper: #f7f5f0;
  --sand: #d9cbb3;
  --brass: #b08d57;
  --brass-deep: #8f7040;
  --text: #1e2a28;
  --muted: #5a6b66;
  --line: rgba(26, 58, 52, 0.14);
  --danger: #9b3b32;
  --ok: #1f6b4f;
  --radius: 6px;
  --shadow-soft: 0 18px 40px rgba(15, 38, 34, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(176, 141, 87, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 58, 52, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 48%, var(--paper) 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brass-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  color: var(--forest-deep);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 240, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest-deep);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 4px;
  background:
    linear-gradient(145deg, var(--brass), #c9ae7a 45%, var(--forest) 46%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--forest);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  background: var(--forest);
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bar {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(247, 245, 240, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: drop 0.3s var(--ease);
  }

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-2 {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--forest);
  color: #f4f8f6;
}

.btn-primary:hover {
  background: var(--forest-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(26, 58, 52, 0.35);
  color: var(--forest-deep);
}

.btn-secondary:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.btn-brass {
  background: linear-gradient(180deg, #c4a574, var(--brass));
  color: #1a2018;
}

.btn-brass:hover {
  color: #111;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */
.hero-bleed {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #f4f8f6;
  overflow: hidden;
}

.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 38, 34, 0.25) 0%, rgba(15, 38, 34, 0.55) 45%, rgba(10, 24, 22, 0.88) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
  animation: ken 18s var(--ease) infinite alternate;
  z-index: 0;
}

@keyframes ken {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-1.5%); }
}

.hero-bleed .hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  width: 100%;
}

.hero-bleed .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: #f7f5f0;
  max-width: 12ch;
  animation: rise 0.9s var(--ease) both;
}

.hero-bleed .hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  max-width: 28rem;
  color: rgba(244, 248, 246, 0.92);
  margin: 0;
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero-bleed .hero-support {
  margin-top: 1rem;
  max-width: 32rem;
  color: rgba(232, 240, 237, 0.82);
  animation: rise 0.9s 0.22s var(--ease) both;
}

.hero-bleed .btn-row {
  animation: rise 0.9s 0.32s var(--ease) both;
}

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

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: #f4f8f6;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 38, 34, 0.35), rgba(10, 24, 22, 0.88)),
    var(--hero-image) center / cover no-repeat;
  z-index: 0;
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  width: 100%;
}

.page-hero h1 {
  color: #f7f5f0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.page-hero p {
  color: rgba(232, 240, 237, 0.88);
  max-width: 38rem;
  margin: 0;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Panels / media */
.panel {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
}

.media-frame {
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.04);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--brass);
  margin: 0;
}

/* Stats */
.stat-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--forest);
  font-weight: 550;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Course / blog grids — interaction containers */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.item-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 58, 52, 0.35);
  color: inherit;
}

.item-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.item-card .item-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.item-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.item-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.item-meta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--brass-deep);
  font-weight: 600;
}

/* Pricing */
.price-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.price-tier {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--radius) + 4px);
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  background: linear-gradient(165deg, rgba(26, 58, 52, 0.95), var(--forest-deep));
  color: #eef3f1;
  border-color: transparent;
}

.price-tier.featured h3,
.price-tier.featured .price {
  color: #f7f5f0;
}

.price-tier.featured p,
.price-tier.featured li {
  color: rgba(238, 243, 241, 0.86);
}

.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0.5rem 0 1rem;
  color: var(--forest);
}

.price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-tier.featured .price small {
  color: rgba(238, 243, 241, 0.7);
}

.price-tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  flex: 1;
}

.price-tier li + li {
  margin-top: 0.45rem;
}

/* Testimonials */
.review-list {
  display: grid;
  gap: 1.5rem;
}

.review {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.review blockquote {
  margin: 0 0 1rem;
  font-size: 1.08rem;
}

.review footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.stars {
  color: var(--brass-deep);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid rgba(26, 58, 52, 0.25);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(176, 141, 87, 0.55);
  outline-offset: 1px;
  border-color: var(--brass);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(31, 107, 79, 0.12);
  color: var(--ok);
  border: 1px solid rgba(31, 107, 79, 0.3);
}

.form-status.is-error {
  display: block;
  background: rgba(155, 59, 50, 0.1);
  color: var(--danger);
  border: 1px solid rgba(155, 59, 50, 0.28);
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: rgba(155, 59, 50, 0.1);
  color: var(--danger);
  border: 1px solid rgba(155, 59, 50, 0.28);
  border-radius: var(--radius);
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--forest-deep);
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.45);
}

.legal th {
  background: rgba(26, 58, 52, 0.08);
}

/* Modules */
.module-list {
  counter-reset: mod;
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-list li {
  counter-increment: mod;
  padding: 1.15rem 0 1.15rem 3rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--brass-deep);
  font-size: 1.1rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-left: auto;
  background: rgba(247, 245, 240, 0.97);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.35rem;
  animation: rise 0.45s var(--ease);
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--forest);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--forest-deep);
  color: rgba(238, 243, 241, 0.88);
  padding: 3.5rem 1.25rem 1.5rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #f7f5f0;
  margin: 0 0 0.75rem;
}

.footer-tag {
  color: rgba(238, 243, 241, 0.72);
  max-width: 22rem;
}

.footer-heading {
  font-weight: 700;
  color: #f7f5f0;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: rgba(238, 243, 241, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sand);
}

.footer-address {
  font-style: normal;
  margin-bottom: 0.75rem;
  color: rgba(238, 243, 241, 0.78);
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(238, 243, 241, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Misc */
.prose h2 {
  margin-top: 2rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(176, 141, 87, 0.45);
}

.instructor {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(26, 58, 52, 0.94), rgba(15, 38, 34, 0.92)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80") center / cover;
  color: #eef3f1;
  border-radius: calc(var(--radius) + 6px);
  padding: 2.5rem 1.75rem;
}

.cta-band h2 {
  color: #f7f5f0;
  margin-top: 0;
}

.cta-band p {
  color: rgba(238, 243, 241, 0.84);
  max-width: 36rem;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.case-study {
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--brass);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
}

.case-study h3 {
  margin-top: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 700;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  font-size: 1.55rem;
  margin-top: 2.25rem;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0;
  color: var(--forest);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
