/* ==========================================================================
   ChinaIPMark - main stylesheet
   Design system: deep navy + restrained gold + ivory.
   Corner radii: buttons pill, cards 16px, inputs 12px (documented rule).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0a1326;
  --navy-800: #0d1b3e;
  --navy-700: #12254f;
  --navy-600: #1b3166;
  --gold: #c9a227;
  --gold-light: #e3c76a;
  --gold-deep: #8f7015;
  --ivory: #f5efe3;
  --ivory-soft: #fbf8f0;
  --white: #ffffff;
  --ink: #16213a;
  --ink-soft: #4a5570;
  --line: rgba(13, 27, 62, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(13, 27, 62, 0.12);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1400px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory-soft);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy-800);
}

::selection {
  background: var(--gold-light);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-light {
  background: var(--ivory-soft);
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: var(--navy-800);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-top: 0.9rem;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 64ch;
}

.section-head.center p {
  margin-inline: auto;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.on-navy .eyebrow,
.hero .eyebrow {
  color: var(--gold-light);
}

.gold-word {
  color: var(--gold-deep);
}

.on-navy .gold-word,
.hero .gold-word {
  color: var(--gold-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.85rem 1.65rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn .ri-arrow-right-line {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn:hover .ri-arrow-right-line {
  transform: translateX(3px);
}

.btn-ivory {
  background: var(--ivory);
  color: var(--navy-800);
}

.btn-ivory:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--ivory);
}

.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.btn-ghost-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-ghost-dark {
  border: 1px solid rgba(13, 27, 62, 0.28);
  color: var(--navy-800);
}

.btn-ghost-dark:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--navy-800);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(13, 27, 62, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 34px rgba(4, 10, 24, 0.28);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 199, 106, 0.65);
  border-radius: 12px;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--gold-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.2s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold-light);
  transition: width 0.25s ease;
}

.nav-list a:hover {
  color: var(--white);
}

.nav-list a:hover::after,
.nav-list .current-menu-item a::after,
.nav-list .current_page_item a::after {
  width: 100%;
}

.nav-cta {
  padding: 0.68rem 1.35rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
}

.nav-toggle-open,
.nav-toggle-open::before,
.nav-toggle-open::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-open {
  top: 21px;
}

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

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

body.nav-open .nav-toggle-open {
  background: transparent;
}

body.nav-open .nav-toggle-open::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (front page) ---------- */
.hero {
  position: relative;
  min-height: min(100dvh, 940px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 19, 38, 0.5) 0%, rgba(10, 19, 38, 0.62) 48%, rgba(10, 19, 38, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 130px;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.75rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  margin-top: 1rem;
  max-width: 19ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}

.hero-lead {
  margin-top: 1.3rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.hero .eyebrow {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-lead {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero-actions {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy-800);
  border-top: 1px solid rgba(227, 199, 106, 0.28);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-block: 2.4rem;
}

.trust-item .num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-item .label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  margin-top: 0.5rem;
  max-width: 24ch;
}

.trust-item .src {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(13, 27, 62, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 19, 38, 0.72));
}

.service-card-tag {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  z-index: 2;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.service-card-body {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.service-card-body h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.service-card-body > p {
  color: var(--ink-soft);
}

.service-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.service-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink);
}

.service-list .ri-check-line {
  color: var(--gold-deep);
  margin-top: 0.2rem;
}

.service-card-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 600;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-link:hover {
  color: var(--gold-deep);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.feature-item .ri- {
  font-size: 1.6rem;
}

.feature-item > i {
  font-size: 1.6rem;
  color: var(--gold-deep);
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.feature-item p {
  color: var(--ink-soft);
  margin-top: 0.55rem;
  font-size: 0.98rem;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.7), rgba(201, 162, 39, 0.08));
}

.process-step {
  position: relative;
}

.process-num {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-light);
  border: 1px solid rgba(227, 199, 106, 0.45);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.process-step h3 {
  font-size: 1.2rem;
}

.process-step p {
  color: var(--ink-soft);
  margin-top: 0.5rem;
  font-size: 0.96rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.pricing-card .tier {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.pricing-card .price {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy-800);
  line-height: 1;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.pricing-card .price-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.pricing-list {
  display: grid;
  gap: 0.6rem;
  margin-block: 0.4rem 0.8rem;
}

.pricing-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.pricing-list .ri-check-line {
  color: var(--gold-deep);
  margin-top: 0.2rem;
}

.pricing-card.is-featured {
  background: var(--navy-800);
  border-color: rgba(227, 199, 106, 0.55);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(13, 27, 62, 0.32);
}

.pricing-card.is-featured .tier {
  color: var(--gold-light);
}

.pricing-card.is-featured .price,
.pricing-card.is-featured h3 {
  color: var(--white);
}

.pricing-card.is-featured .price span,
.pricing-card.is-featured .price-note,
.pricing-card.is-featured .pricing-list li {
  color: rgba(255, 255, 255, 0.82);
}

.pricing-card.is-featured .pricing-list .ri-check-line {
  color: var(--gold-light);
}

.pricing-footnote {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Posts ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.post-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.post-card time {
  font-size: 0.82rem;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.post-card h3 {
  font-size: 1.15rem;
}

.post-card h3 a:hover {
  color: var(--gold-deep);
}

.post-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.post-card .more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.post-card .more:hover {
  color: var(--gold-deep);
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 840px;
  margin-inline: auto;
}

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

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--navy-800);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding-bottom: 1.3rem;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 19, 38, 0.9) 0%, rgba(10, 19, 38, 0.72) 100%);
}

.cta-band-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  text-align: center;
  max-width: 820px;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.cta-band p {
  margin: 1.1rem auto 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem;
}

.brand-light {
  color: var(--white);
}

.footer-brand > p {
  margin-top: 1.1rem;
  max-width: 40ch;
  font-size: 0.96rem;
}

.footer-contact {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-contact i {
  color: var(--gold-light);
}

.footer-heading {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
}

.footer-bottom-inner {
  display: grid;
  gap: 0.6rem;
}

.footer-bottom p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-note {
  max-width: 90ch;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 19, 38, 0.55) 0%, rgba(10, 19, 38, 0.85) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 170px;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-top: 0.9rem;
  max-width: 19ch;
  margin-inline: auto;
}

.page-hero .hero-lead {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 62ch;
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 1.4rem;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.crumb-sep {
  color: var(--gold-light);
}

/* ---------- Two column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-body h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.split-body p {
  color: var(--ink-soft);
  margin-top: 1rem;
}

.split-body .check-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.split-body .check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.split-body .check-list .ri-check-line {
  color: var(--gold-deep);
  margin-top: 0.2rem;
}

/* ---------- Materials ---------- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
}

.material-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.material-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.material-card ul {
  display: grid;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.material-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.material-card .ri-check-line {
  color: var(--gold-deep);
  margin-top: 0.2rem;
}

/* ---------- Tables ---------- */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.fee-table th,
.fee-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.fee-table th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fee-table tr:last-child td {
  border-bottom: 0;
}

.fee-table td.amt {
  font-weight: 700;
  color: var(--navy-800);
  white-space: nowrap;
}

.fee-table .note-row td {
  color: var(--ink-soft);
  font-size: 0.86rem;
  background: var(--ivory-soft);
}

/* ---------- Contact form ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

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

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(13, 27, 62, 0.22);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(74, 85, 112, 0.6);
}

.form-success {
  display: none;
  background: var(--ivory-soft);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--navy-800);
}

.form-success.show {
  display: block;
}

.form-error {
  border-color: rgba(176, 58, 46, 0.45);
  background: #fdf3f1;
  color: #8e2f2a;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-consent input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--gold-deep);
}

.form-consent a {
  color: var(--gold-deep);
  text-decoration: underline;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: none;
  background: var(--navy-900);
  border: 1px solid rgba(227, 199, 106, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(4, 10, 24, 0.4);
  color: rgba(255, 255, 255, 0.86);
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.92rem;
  max-width: 68ch;
}

.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-accept {
  padding: 0.6rem 1.2rem;
  font-size: 0.92rem;
}

.contact-info-card {
  background: var(--navy-800);
  border-radius: var(--radius);
  color: var(--white);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.3rem;
}

.contact-info-card a,
.contact-info-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

.contact-info-card a:hover {
  color: var(--gold-light);
}

.contact-line {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.contact-line i {
  color: var(--gold-light);
  margin-top: 0.2rem;
}

/* ---------- Blog ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.article .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--gold-deep);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.article h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.article .lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-top: 1.1rem;
}

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

.article h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}

.article p,
.article ul,
.article ol {
  margin-top: 1rem;
  color: var(--ink);
}

.article ul {
  list-style: disc;
  padding-left: 1.3rem;
}

.article ol {
  list-style: decimal;
  padding-left: 1.3rem;
}

.article .featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.6rem 0 0.4rem;
}

.article blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin-top: 1.4rem;
  color: var(--navy-800);
  font-weight: 600;
}

.article-trustbox {
  margin-top: 2.4rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--ivory-soft);
}

.article-trustbox h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.article-trustbox p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.article-trustbox a {
  color: var(--gold-deep);
  text-decoration: underline;
}

/* ---------- Post navigation ---------- */
.post-navigation {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
  height: 100%;
}

.post-navigation .nav-next a {
  align-items: flex-end;
  text-align: right;
}

.post-navigation a:hover {
  border-color: var(--gold);
  background: var(--ivory-soft);
}

.post-navigation .post-nav-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.post-navigation .post-nav-title {
  font-weight: 600;
  color: var(--navy-800);
  overflow-wrap: break-word;
  font-size: 0.98rem;
  line-height: 1.4;
}

/* ---------- Pagination ---------- */
.pagination {
  margin-top: 3rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-800);
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pagination .page-numbers.current {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.pagination .page-numbers:hover:not(.current) {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ---------- Category nav ---------- */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.cat-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cat-nav-link:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.cat-nav-link.is-current {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--ivory);
}

/* ---------- Post card category label ---------- */
.post-card-cat {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.post-card-cat:hover {
  text-decoration: underline;
}

/* ---------- Table of contents ---------- */
.toc {
  background: var(--ivory-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.35rem;
}

.toc a {
  color: var(--navy-800);
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

/* ---------- Page updated line ---------- */
.page-updated {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.4rem;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.sidebar-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.sidebar-card ul {
  display: grid;
  gap: 0.6rem;
}

.sidebar-card a {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.sidebar-card a:hover {
  color: var(--gold-deep);
}

/* ---------- 404 ---------- */
.error-404-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 8rem 4rem;
}

.error-404-wrap .code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.04em;
  line-height: 1;
}

.error-404-wrap h1 {
  margin-top: 0.5rem;
}

.error-404-wrap p {
  color: var(--ink-soft);
  margin: 1rem auto 2rem;
  max-width: 46ch;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid,
  .post-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.4rem;
  }

  .process-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: rgba(10, 19, 38, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.2rem 1.5rem 1.6rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  body.nav-open .site-nav {
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-list a {
    display: block;
    padding: 0.8rem 0.4rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin-top: 1rem;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid,
  .split,
  .materials-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .feature-grid,
  .post-grid,
  .pricing-grid,
  .process-grid,
  .trust-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100svh;
  }

  .page-hero {
    min-height: 380px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.95rem 1.6rem;
    font-size: 1.02rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
    animation: none;
  }
}
