/* ===== Design tokens ===== */
:root {
  --teal: #005c55;
  --teal-dark: #004a44;
  --gold: #f3c80c;
  --gold-hover: #e5bc0a;
  --text: #2d3640;
  --text-muted: #616c79;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f7f8fa;
  --gray-200: #eff0f6;
  --corpfin-blue: #1a5fb4;
  --shadow-card: 0 2px 7px rgba(20, 20, 43, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(20, 20, 43, 0.12);
  --radius: 10px;
  --container: 1280px;
  --header-h: 88px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

/* Desktop-first corporate layout */
.site-desktop {
  min-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding-left: 1.25rem;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ===== Reveal on scroll (Webflow-style) ===== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 10%, 0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Anchor scroll offset below fixed header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  overflow: visible;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header--transparent {
  background: transparent;
}

.site-header--solid {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: visible;
}

.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.site-nav > li {
  position: relative;
}

.site-nav > li > a,
.site-nav .nav-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nav-item--dropdown.is-open .nav-chevron,
.nav-item--dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.site-header--transparent .site-nav > li > a,
.site-header--transparent .nav-parent-link {
  color: var(--white);
}

.site-header--solid .site-nav > li > a,
.site-header--solid .nav-parent-link,
.site-header--legal .site-nav > li > a,
.site-header--legal .nav-parent-link {
  color: var(--text);
}

.site-header--solid .site-nav > li > a:hover,
.site-header--legal .site-nav > li > a:hover,
.site-header--solid .nav-parent-link:hover,
.site-header--legal .nav-parent-link:hover,
.nav-item--dropdown.is-open > .nav-parent-link {
  color: var(--teal);
  background: rgba(0, 92, 85, 0.06);
}

.site-header--transparent .site-nav > li > a:hover,
.site-header--transparent .nav-parent-link:hover,
.site-header--transparent .nav-item--dropdown.is-open > .nav-parent-link {
  background: rgba(255, 255, 255, 0.12);
}

.site-header--transparent .nav-item--dropdown.is-open > .nav-parent-link,
.site-header--transparent .nav-item--dropdown:hover > .nav-parent-link {
  color: var(--white);
}

/* Dropdown panel */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 280px;
  margin: 0;
  padding: 12px 0 10px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(20, 20, 43, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  z-index: 1100;
}

/* Invisible bridge so cursor can reach menu without losing hover */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown--wide {
  min-width: 340px;
}

.nav-dropdown__label {
  display: block;
  padding: 10px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  pointer-events: none;
}

.nav-dropdown__label:not(:first-child) {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}

.nav-dropdown li:not(.nav-dropdown__label) {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  color: var(--text) !important;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--gray-100);
  color: var(--teal) !important;
  outline: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-header--legal {
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  font-family: inherit;
}

.btn:hover {
  transform: translate3d(0, -3px, 0.01px);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
}

.btn--teal:hover {
  background: var(--teal-dark);
}

.btn--gold {
  background: var(--gold);
  color: var(--text);
}

.btn--gold:hover {
  background: var(--gold-hover);
}

.btn--black {
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  padding: 16px 36px;
  border-radius: 0;
}

.btn--black:hover {
  background: #222;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

.da-hero__heading {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 24px;
}

/* ===== Corpfin hero — Ken Burns + parallax (Squarespace stretch-page-thumbnail) ===== */
.corpfin-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corpfin-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.corpfin-hero__bg {
  position: absolute;
  inset: -15%;
  will-change: transform;
  transform-origin: center center;
}

.corpfin-hero__bg-inner {
  width: 100%;
  height: 100%;
  animation: kenBurns 28s ease-out forwards;
  will-change: transform;
}

.corpfin-hero__bg-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.corpfin-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

.corpfin-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 80px;
  max-width: 900px;
}

.corpfin-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.875rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  line-height: 1.15;
  opacity: 0;
  animation: heroTextIn 1.2s ease 0.3s forwards;
}

.corpfin-hero__subtitle {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  opacity: 0;
  animation: heroTextIn 1.2s ease 0.6s forwards;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Floating background decor (D Analytic) ===== */
.bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-decor__shape {
  position: absolute;
  opacity: 0.12;
}

.bg-decor__shape--1 {
  width: 420px;
  height: 420px;
  left: -12%;
  bottom: -18%;
  animation: floatShape1 18s ease-in-out infinite;
}

.bg-decor__shape--2 {
  width: 380px;
  height: 380px;
  right: -8%;
  top: 10%;
  transform: rotate(140deg);
  animation: floatShape2 22s ease-in-out infinite;
}

.bg-decor__dot {
  position: absolute;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.15;
}

@keyframes floatShape1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(24px, -18px) rotate(6deg);
  }
}

@keyframes floatShape2 {
  0%,
  100% {
    transform: rotate(140deg) translate(0, 0);
  }
  50% {
    transform: rotate(148deg) translate(-20px, 16px);
  }
}

/* ===== D Analytic hero section ===== */
.da-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.da-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.da-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 24px;
}

.da-hero__lead {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.da-hero__illus img {
  width: 100%;
}

/* ===== Sections common ===== */
.section {
  padding: 80px 0;
  position: relative;
}

.section--gray {
  background: var(--gray-100);
}

.section__label {
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.section__title--center {
  text-align: center;
}

.section__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--text-muted);
}

.section hr.divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* ===== Corpfin intro ===== */
.corpfin-intro {
  padding: 100px 0;
  text-align: left;
}

.corpfin-intro h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 16px;
}

.corpfin-intro h2.emphasis {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  margin: 0 0 24px;
}

.corpfin-intro .lead-block {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

/* ===== Services grids ===== */
.services-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.services-3 h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.services-3 p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== D Analytic cards ===== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  color: inherit;
}

.service-card:hover {
  transform: scale(0.98);
  box-shadow: var(--shadow-card-hover);
}

.service-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 24px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 16px;
}

.service-card__link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== About split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ===== Values / approach cards ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.values-card {
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-100);
}

.values-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.values-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.contact-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-item__value--address {
  font-size: 1.2rem;
}

/* ===== News cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: block;
  color: inherit;
}

.news-card__img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16/10;
  background: var(--gray-100);
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__tag {
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.news-card__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  color: inherit;
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-item__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.contact-item__value {
  font-size: 1.35rem;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  box-shadow: var(--shadow-card);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--teal);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-grid h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
  opacity: 0.9;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a:hover {
  opacity: 0.8;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

.footer-address {
  font-size: 14px;
  opacity: 0.9;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px 0;
}

.footer-legal__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal__links a {
  font-size: 14px;
  opacity: 0.95;
}

.footer-legal__links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.site-footer--compact {
  padding-top: 0;
}

.site-footer--compact .footer-grid {
  display: none;
}

/* ===== Legal pages ===== */
.legal-page .site-header {
  position: relative;
}

.legal-content {
  padding: 140px 0 80px;
  min-height: 60vh;
}

.legal-content .container {
  max-width: 820px;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 17px;
}

.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}

.legal-back {
  margin-top: 48px;
}

.legal-back a {
  font-weight: 600;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* ===== Regulatory / compliance notice ===== */
.compliance-notice {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  padding: 28px 0;
}

.compliance-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 960px;
}

.compliance-notice strong {
  color: var(--text);
}

/* ===== Inner pages (placeholder content) ===== */
.page-shell {
  padding: 80px 0 120px;
  min-height: 40vh;
}

.page-shell__placeholder {
  min-height: 200px;
}

.page-hero .corpfin-hero__content {
  padding-bottom: 48px;
}

.legal-page__body {
  padding: 64px 0 96px;
}

.legal-page__body h1 {
  font-size: 36px;
  margin: 0 0 12px;
}

.legal-page__body .legal-updated {
  color: var(--text-muted);
  margin-bottom: 32px;
}
