/* Ballastone Capital — institutional private commercial finance */

:root {
  --navy: #0B1C33;
  --navy-deep: #06101F;
  --navy-mid: #1A3A5C;
  --blue: #3A7BB8;
  --blue-light: #5B9BD5;
  --charcoal: #1A1A1A;
  --slate: #5A6570;
  --silver: #C8CED6;
  --mist: #F2F4F7;
  --white: #FFFFFF;
  --max: 1180px;
  --header-h: 84px;
  --font-serif: "Guardian Egyptian", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Guardian Sans", "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: "Guardian Sans", "Manrope", "Segoe UI", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.section-title, .page-title, .hero-brand,
.section-label, .eyebrow {
  font-family: "Guardian Egyptian", "Cormorant Garamond", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 28, 51, 0.08);
  transition: box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(11, 28, 51, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
}

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

.nav a {
  position: relative;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(11, 28, 51, 0.18);
  overflow: hidden;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  color: var(--slate);
  transition: background 0.25s, color 0.25s;
}

.lang-toggle button.is-active {
  background: var(--navy);
  color: var(--white);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(11, 28, 51, 0.15);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* —— Typography —— */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

h1,
.h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h2,
.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.2;
  color: var(--navy);
}

h3,
.h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--navy);
}

.lede {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 38rem;
}

/* Language visibility — !important beats .legal-box / .hero-sub span display rules */
.zh-text,
.zh-block {
  display: none !important;
}

html[lang="zh"] .en-text,
html[lang="zh"] .en-block {
  display: none !important;
}

html[lang="zh"] span.zh-text {
  display: inline !important;
}

html[lang="zh"] .zh-block,
html[lang="zh"] div.zh-text {
  display: block !important;
}

html[lang="zh"] .legal-box.zh-block,
html[lang="zh"] .legal-box.zh-text {
  display: grid !important;
}

.en-block {
  display: block;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(11, 28, 51, 0.28);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-arrow::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--navy);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 5rem);
  color: var(--white);
}

.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero-sub > .en-text > span,
.hero-sub > .zh-text > span,
.hero-sub > .zh-block > span {
  display: block;
}

html[lang="zh"] .hero-sub > .zh-text,
html[lang="zh"] .hero-sub > .zh-block {
  display: block !important;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.7s forwards;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(115deg, rgba(11, 28, 51, 0.55) 0%, rgba(11, 28, 51, 0.15) 35%, transparent 55%),
    linear-gradient(to top, rgba(6, 16, 31, 0.55), transparent 40%),
    url("https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&w=1600&q=80")
      left center / cover no-repeat;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease) forwards;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 16, 31, 0.35));
  pointer-events: none;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 3.5rem;
  background:
    linear-gradient(105deg, rgba(6, 16, 31, 0.92) 0%, rgba(11, 28, 51, 0.72) 48%, rgba(11, 28, 51, 0.45) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.page-hero.harbour {
  background:
    linear-gradient(105deg, rgba(6, 16, 31, 0.9) 0%, rgba(11, 28, 51, 0.65) 55%, rgba(11, 28, 51, 0.35) 100%),
    url("https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}

.page-hero.finance {
  background:
    linear-gradient(105deg, rgba(6, 16, 31, 0.9) 0%, rgba(11, 28, 51, 0.68) 50%, rgba(11, 28, 51, 0.4) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}

.page-hero.partners {
  background:
    linear-gradient(105deg, rgba(6, 16, 31, 0.9) 0%, rgba(11, 28, 51, 0.7) 55%, rgba(11, 28, 51, 0.4) 100%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}

.page-hero.contact {
  background:
    linear-gradient(105deg, rgba(6, 16, 31, 0.92) 0%, rgba(11, 28, 51, 0.7) 55%, rgba(11, 28, 51, 0.4) 100%),
    url("https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}

.page-hero.legal {
  background:
    linear-gradient(105deg, rgba(6, 16, 31, 0.92) 0%, rgba(11, 28, 51, 0.72) 55%, rgba(11, 28, 51, 0.4) 100%),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.75);
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 52rem;
  margin-bottom: 3rem;
}

h2 {
  overflow-wrap: normal;
  word-break: normal;
}

.section-head .lede {
  margin-top: 1rem;
}

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

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

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy .lede,
.section-navy p {
  color: rgba(255, 255, 255, 0.72);
}

.section-navy .eyebrow {
  color: var(--blue-light);
}

/* —— Service grid —— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(11, 28, 51, 0.12);
}

.service-item {
  padding: 2.25rem 1.75rem 2.5rem;
  border-right: 1px solid rgba(11, 28, 51, 0.12);
  border-bottom: 1px solid rgba(11, 28, 51, 0.12);
  transition: background 0.35s var(--ease);
}

.service-item:hover {
  background: rgba(11, 28, 51, 0.03);
}

.service-item:nth-child(4n) {
  border-right: 0;
}

.service-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.35rem;
  color: var(--navy);
}

.service-item h3 {
  margin-bottom: 0.7rem;
}

.service-item p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* —— Why / values —— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
}

.why-item {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(11, 28, 51, 0.12);
}

.why-item h3 {
  margin-bottom: 0.55rem;
}

.why-item p {
  color: var(--slate);
}

.philosophy-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.philosophy-item {
  padding: 2.25rem 1.75rem;
  background: var(--white);
  border-left: 3px solid var(--navy);
  box-shadow: 0 12px 40px rgba(11, 28, 51, 0.05);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}

.philosophy-item.is-in {
  transform: translateY(0);
  opacity: 1;
}

.philosophy-item .num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 1rem;
}

.philosophy-item h3 {
  margin-bottom: 0.4rem;
}

.philosophy-item p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* —— Loan solutions —— */
.loan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.loan-panel {
  padding: 2.25rem 1.85rem;
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: 0 14px 40px rgba(11, 28, 51, 0.06);
}

.loan-panel h3 {
  margin-bottom: 1.1rem;
}

.loan-panel .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.loan-panel li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.55rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.loan-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  background: var(--blue);
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.approach-list .mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--blue-light);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--blue-light);
  margin-top: 0.1rem;
}

/* —— Brokers —— */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.benefit-item {
  padding: 1.75rem 1.35rem;
  border: 1px solid rgba(11, 28, 51, 0.1);
  background: var(--white);
}

.benefit-item .check {
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
  color: var(--navy);
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.benefit-item p {
  color: var(--slate);
  font-size: 0.92rem;
}

.experience-band {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

/* —— Contact —— */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-item .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.contact-item .value {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--mist);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(11, 28, 51, 0.15);
  background: var(--white);
  padding: 0.85rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.25s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
}

/* —— Legal —— */
.legal-box {
  max-width: 46rem;
  display: grid;
  gap: 1.1rem;
}

.legal-box p {
  font-size: 1.05rem;
  color: var(--slate);
  padding-left: 1.1rem;
  border-left: 2px solid var(--silver);
}

/* —— CTA band —— */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  max-width: 35rem;
  /*flex: 1;*/
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  height: 72px;
  width: auto;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-brand p {
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  transition: color 0.25s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* —— Mobile —— */
@media (max-width: 1100px) {
  .nav a {
    padding: 0.5rem 0.45rem;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
  }

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

  .service-item:nth-child(2n) {
    border-right: 0;
  }

  .service-item:nth-child(4n) {
    border-right: 0;
  }

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

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(11, 28, 51, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    box-shadow: 0 16px 40px rgba(11, 28, 51, 0.1);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 0.85rem;
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(11, 28, 51, 0.06);
  }

  .nav a::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 48vw;
    clip-path: none;
    order: -1;
  }

  .loan-grid,
  .philosophy-row,
  .contact-layout,
  .experience-band,
  .footer-top,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .approach-list,
  .form-row,
  .benefit-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .hero-copy {
    padding: 3rem 1.5rem 3.5rem;
  }

  .brand img {
    height: 40px;
  }
}
