:root {
  --navy: #071f49;
  --ink: #0b1730;
  --muted: #586273;
  --line: #d7dde7;
  --wash: #f3f6fa;
  --white: #ffffff;
  --blue: #1c74d8;
  --green: #43a06b;
  --violet: #7a4bb5;
  --shadow: 0 18px 45px rgba(7, 31, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 10vw;
  border-bottom: 1px solid rgba(7, 31, 73, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy);
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-text strong {
  font-size: clamp(1.05rem, 1.8vw, 1.62rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text small {
  color: var(--ink);
  font-size: clamp(0.6rem, 0.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark {
  display: block;
  width: 146px;
  height: 44px;
  object-fit: contain;
}

.brand-mark.small {
  width: 96px;
  height: 30px;
}

.primary-nav {
  display: flex;
  gap: 34px;
  font-size: 1rem;
  font-weight: 600;
}

.primary-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: #8f2634;
  border-color: #8f2634;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.section-band {
  background: linear-gradient(180deg, #f6f8fb 0%, #edf1f7 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: min(680px, calc(100vh - 84px));
  place-items: center;
  padding: 120px 24px 135px;
  text-align: center;
}

.hero::before {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 32%;
  background-image: url("./Celestium_financial_logo.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  content: "";
  opacity: 0.09;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #8f2634;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

main > section[id] {
  scroll-margin-top: 112px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.12;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 34px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.button.secondary,
.button.fill {
  color: var(--white);
  background: linear-gradient(180deg, #0b3474, var(--navy));
  box-shadow: 0 10px 22px rgba(7, 31, 73, 0.16);
}

.button.fill {
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #287ce0, #1565c5);
}

.section-block,
.about,
.contact,
footer {
  padding-left: 10vw;
  padding-right: 10vw;
}

.service-card li,
.service-card p,
.about p,
.contact-card p,
.faq p {
  color: var(--muted);
  line-height: 1.5;
}

.line-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  margin: 0 0 22px;
  color: var(--navy);
  line-height: 1;
}

.line-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.line-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-block,
.about,
.blueprint-section,
.contact {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 36px;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1120px;
}

.service-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card ul {
  margin-top: 8px;
  margin-bottom: 32px;
  padding-left: 20px;
}

.service-card .button {
  margin-top: auto;
}

.note {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: stretch;
}

.about-intro {
  border-left: 4px solid var(--navy);
  padding-left: 28px;
}

.about-intro > .eyebrow {
  color: #8f2634 !important;
}

.about-intro p:last-child {
  max-width: 560px;
  font-size: 1.02rem;
}

.about-credential {
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
}

.about-principles {
  display: grid;
  gap: 22px;
}

.about-principles article {
  border: 1px solid rgba(7, 31, 73, 0.12);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.58);
}

.about-principles h3 {
  margin-bottom: 10px;
}

.process {
  margin-top: 58px;
  border-top: 1px solid rgba(7, 31, 73, 0.14);
  padding-top: 34px;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
}

.process-steps article {
  position: relative;
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.48);
}

.process-steps span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 0.9fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}

.featured-post img {
  width: 100%;
  aspect-ratio: 2.1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.blueprint-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding-left: 10vw;
  padding-right: 10vw;
  color: var(--ink);
  background: var(--white);
}

.blueprint-copy {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.blueprint-copy .eyebrow {
  color: #8f2634;
}

.blueprint-copy h2 {
  margin-bottom: 16px;
  color: var(--navy);
}

.blueprint-copy p:last-child {
  max-width: 880px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

.parameter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.parameter-grid article {
  position: relative;
  display: grid;
  grid-template-rows: 58px auto auto;
  min-height: 210px;
  align-content: start;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 34px 36px 32px;
  background: transparent;
  box-shadow: none;
}

.parameter-grid article:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--white);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.parameter-grid article:last-child {
  border-right: 0;
}

.parameter-icon {
  align-self: start;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.parameter-icon.solid {
  fill: var(--navy);
  stroke: none;
}

.parameter-grid strong {
  align-self: start;
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
}

.parameter-grid span {
  align-self: start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
}

.documentation-section {
  background: linear-gradient(180deg, #f6f8fb 0%, #edf1f7 100%);
}

.documentation-table {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.doc-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
}

.doc-row > * {
  display: grid;
  min-height: 68px;
  align-items: center;
  border-right: 1px solid rgba(7, 31, 73, 0.22);
  border-bottom: 1px solid rgba(7, 31, 73, 0.22);
  padding: 16px 22px;
}

.doc-row > *:last-child {
  border-right: 0;
}

.doc-head span {
  color: var(--white);
  background: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
}

.doc-head span:first-child {
  background: var(--navy);
}

.doc-row:not(.doc-head) span:first-child {
  color: var(--ink);
  background: #f8fafc;
  font-weight: 800;
}

.doc-row b,
.doc-row i {
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  font-size: 2rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.doc-row i {
  background:
    repeating-linear-gradient(135deg, #f6f8fb, #f6f8fb 4px, #e6ecf4 5px, #e6ecf4 8px);
  color: #5c6878;
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 4px 9px;
  color: var(--white);
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.blue {
  background: var(--blue);
}

.tag.green {
  background: var(--green);
}

.tag.violet {
  background: var(--violet);
}

.search-box {
  display: flex;
  align-items: center;
  width: min(300px, 100%);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--white);
}

.search-box input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  font: inherit;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.post-grid article {
  border-left: 3px solid var(--line);
  padding-left: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 0.9fr;
  gap: 44px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c7ced9;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

.contact-card {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.office-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: var(--white);
}

.office-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.office-tab.active {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(7, 31, 73, 0.16);
}

.map-tile {
  display: block;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.map-tile iframe {
  display: block;
  width: 100%;
  min-height: 220px;
  border: 0;
}

.map-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed #aeb8c7;
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
}

.map-placeholder strong {
  color: var(--navy);
}

.map-placeholder[hidden] {
  display: none;
}

.faq {
  margin-top: 52px;
}

.faq-item {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq p {
  display: none;
  max-width: 780px;
  margin: -6px 0 18px;
}

.faq p.open {
  display: block;
}

.faq p a {
  color: #8f2634;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

footer nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .section-block,
  .about,
  .blueprint-section,
  .contact,
  footer {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .service-grid,
  .about-shell {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .parameter-grid article,
  .parameter-grid article:nth-child(2),
  .parameter-grid article:nth-child(3) {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .parameter-grid article:last-child {
    border-bottom: 0;
  }

  .parameter-grid article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .process-steps {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 74px;
  }

  html {
    scroll-padding-top: 98px;
  }

  main > section[id] {
    scroll-margin-top: 98px;
  }

  .brand-text {
    max-width: 170px;
  }

  .brand-text small {
    font-size: 0.55rem;
    line-height: 1.25;
  }

  .brand-mark {
    width: 92px;
    height: 30px;
  }

  .hero::before {
    top: 22px;
    height: 26%;
    background-size: 150% auto;
    opacity: 0.08;
  }

  .menu-button {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 6vw;
    background: var(--white);
  }

  .primary-nav.open {
    display: flex;
  }

  .service-grid,
  .about-shell,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .about-intro {
    border-left: 0;
    border-top: 4px solid var(--navy);
    padding-top: 22px;
    padding-left: 0;
  }

  .section-heading.split,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }

  .doc-row,
  .doc-head {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .doc-row > * {
    min-height: 58px;
    padding: 12px;
    font-size: 0.82rem;
  }

  .doc-head span {
    font-size: 0.78rem;
  }

  .doc-row b {
    font-size: 1.35rem;
  }

  .doc-row i {
    font-size: 0.7rem;
  }
}

.form-success-message {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  animation: fadeIn 0.4s ease forwards;
}

.form-success-message h3 {
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.form-success-message p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

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

/* Legal Policy Layout and Typography */
.policy-body {
  max-width: 800px;
  margin: 0 auto;
}

.policy-body h3 {
  margin-top: 44px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.policy-body h4 {
  margin-top: 30px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 700;
}

.policy-body p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.policy-body ul {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.policy-body li {
  margin-bottom: 10px;
}

.policy-body li strong {
  color: var(--navy);
}

.policy-body a {
  color: #8f2634;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.policy-body a:hover {
  color: var(--navy);
}

.last-updated {
  margin-bottom: 36px;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 2px solid var(--navy);
  display: inline-block;
  padding-bottom: 4px;
}

.policy-effective {
  margin-top: 44px;
  font-style: italic;
  font-size: 0.95rem;
}

/* Legal Policy Table Styling */
.policy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 1rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.policy-body th,
.policy-body td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.policy-body th {
  background-color: var(--navy);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.policy-body tr:last-child td {
  border-bottom: none;
}

.policy-body td:first-child {
  font-weight: 800;
  color: var(--navy);
  background-color: var(--wash);
  width: 25%;
}

.policy-body td {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .policy-body table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
  
  .policy-body td:first-child {
    width: 35%;
  }
}



