/* ============================================================
   E5 Capital Limited — corporate stylesheet
   ============================================================ */

:root {
  --navy: #0d1e36;
  --navy-deep: #091426;
  --navy-soft: #16294a;
  --ink: #131a24;
  --body: #2e3743;
  --muted: #5c6774;
  --paper: #ffffff;
  --mist: #f4f6f9;
  --line: #dee4ec;
  --line-dark: rgba(255, 255, 255, .14);
  --accent: #3f6ea6;
  --accent-soft: #9db6d4;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}

.wrap { width: min(1180px, 90vw); margin: 0 auto; }

.section { padding: 104px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.eyebrow.centered { justify-content: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 15px 36px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}

.btn i { font-size: 17px; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

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

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--mist); }

.btn-ghost-light { border-color: var(--line-dark); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow .3s;
}

.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(6, 12, 24, .35); }

.header-inner {
  width: min(1320px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.brand img { width: 44px; }

.brand .brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand .brand-name span { color: var(--accent-soft); }

.primary-nav { display: flex; align-items: center; gap: 38px; }

.primary-nav a {
  color: #d8dfe9;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: color .25s;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--accent-soft);
  transition: right .3s var(--ease);
}

.primary-nav a:hover, .primary-nav a.is-active { color: #fff; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { right: 0; }

.primary-nav .nav-cta {
  border: 1px solid var(--line-dark);
  padding: 10px 22px;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { border-color: #fff; }

.menu-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 26px;
  padding: 4px;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 24px 6vw 40px;
  transform: translateY(-102%);
  transition: transform .5s var(--ease);
}

.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-menu .top img { width: 44px; }

.mobile-menu .menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.mobile-menu nav a {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 560;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-menu nav a:last-child { border-bottom: none; }

.mobile-menu .menu-foot {
  margin-top: auto;
  color: #9aa7b8;
  font-size: 14px;
  line-height: 1.8;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 220px 0 130px;
  overflow: hidden;
  isolation: isolate;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
}

/* photographic backgrounds for dark bands */
.hero .hero-photo,
.page-hero .hero-photo,
.cta-band .hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::before,
.page-hero::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, rgba(9, 20, 38, .96) 32%, rgba(9, 20, 38, .74));
}

.hero .eyebrow { color: var(--accent-soft); }
.hero .eyebrow::before { background: var(--accent-soft); }

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 66px);
  max-width: 880px;
}

.hero .lede {
  max-width: 640px;
  margin-top: 30px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.8;
  color: #cfd8e4;
}

.hero .cta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 44px; }

.hero-facts {
  margin-top: 90px;
  padding-top: 34px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.hero-facts .fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 560;
  color: #fff;
  margin-bottom: 6px;
}

.hero-facts .fact span { font-size: 14px; color: #9aa7b8; letter-spacing: .02em; }

/* inner-page hero */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 190px 0 90px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero .eyebrow { color: var(--accent-soft); }
.page-hero .eyebrow::before { background: var(--accent-soft); }

.page-hero h1 { color: #fff; font-size: clamp(34px, 4.2vw, 56px); max-width: 820px; }

.page-hero .lede { max-width: 660px; margin-top: 24px; font-size: 18px; line-height: 1.8; color: #cfd8e4; }

/* ============================================================
   Content sections
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.split h2 { font-size: clamp(28px, 3vw, 42px); }

.split .lead-col p + p { margin-top: 18px; }

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

.split-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: 36px;
}

/* photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
}

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

.photo-grid figure:hover img { transform: scale(1.05); }

.photo-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 20px 14px;
  background: linear-gradient(transparent, rgba(9, 20, 38, .85));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.intro-note {
  max-width: 820px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.85;
  color: var(--body);
}

/* service cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 60px;
}

.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 46px 42px;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}

.svc-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(13, 30, 54, .08);
}

.svc-card .icon {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 26px;
  margin-bottom: 28px;
}

.svc-card h3 { font-size: 24px; margin-bottom: 14px; }

.svc-card > p { font-size: 15.5px; color: var(--muted); margin-bottom: 22px; }

.svc-card ul li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 16px;
  border-bottom: 1px solid var(--mist);
}

.svc-card ul li:last-child { border-bottom: none; }

.svc-card ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 7px; height: 7px;
  background: var(--accent);
}

.svc-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

.svc-card .more:hover { color: var(--accent); }

/* checklist (why choose us) */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
  margin-top: 50px;
}

.check-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.check-item i { font-size: 24px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.check-item h4 { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }

.check-item p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.step { border-top: 2px solid var(--navy); padding-top: 24px; }

.step .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 12px;
}

.step h4 { font-family: var(--serif); font-size: 21px; font-weight: 560; color: var(--ink); margin-bottom: 10px; }

.step p { font-size: 15.5px; color: var(--muted); }

/* leadership */
.director-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(34px, 4vw, 60px);
}

.director-mark {
  width: 200px; height: 200px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.director-mark span {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 560;
  color: #fff;
  letter-spacing: .02em;
}

.director-card h3 { font-size: 30px; }

.director-card .role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 10px 0 18px;
}

.director-card p { color: var(--body); }

.director-card .meta { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* company info table */
.info-table { border: 1px solid var(--line); background: var(--paper); }

.info-table .row {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--line);
}

.info-table .row:last-child { border-bottom: none; }

.info-table .k {
  padding: 18px 26px;
  background: var(--mist);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-table .v { padding: 18px 26px; font-size: 16px; color: var(--ink); }

/* dark CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 46px); max-width: 700px; }

.cta-band p { color: #cfd8e4; max-width: 620px; margin-top: 18px; }

.cta-band .btn { margin-top: 36px; }

/* image band */
.image-band {
  position: relative;
  min-height: 420px;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.image-band img.bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(9, 20, 38, .93) 30%, rgba(9, 20, 38, .55));
}

.image-band .inner { color: #fff; padding: 90px 0; }

.image-band h2 { color: #fff; font-size: clamp(26px, 3vw, 40px); max-width: 640px; }

.image-band p { color: #cfd8e4; max-width: 620px; margin-top: 18px; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.contact-card { border: 1px solid var(--line); background: var(--paper); padding: 40px; }

.contact-card h3 { font-size: 22px; margin-bottom: 22px; }

.contact-card .line {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--mist);
}

.contact-card .line:last-child { border-bottom: none; }

.contact-card .line i { font-size: 21px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.contact-card .line a:hover { color: var(--accent); }

/* legal pages */
.legal-body { max-width: 820px; }

.legal-body h2 { font-size: 26px; margin: 48px 0 16px; }

.legal-body p, .legal-body li { font-size: 16px; color: var(--body); }

.legal-body p + p { margin-top: 14px; }

.legal-body ul { list-style: disc; padding-left: 24px; margin-top: 10px; }

.legal-body ul li { padding: 4px 0; }

.legal-body .updated { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: #b9c3d2;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(34px, 4vw, 70px);
  padding-bottom: 60px;
}

.footer-brand img { width: 56px; margin-bottom: 22px; }

.footer-brand p { font-size: 14.5px; line-height: 1.75; max-width: 320px; }

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 22px;
}

.footer-col a, .footer-col span {
  display: block;
  font-size: 15px;
  padding: 5px 0;
  color: #b9c3d2;
}

.footer-col a:hover { color: #fff; }

.footer-col .addr { line-height: 1.7; }

.footer-doc {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 20px !important;
  border: 1px solid rgba(157, 182, 212, .4);
  color: var(--accent-soft) !important;
  font-size: 13.5px !important;
  font-weight: 600;
  transition: background .3s, color .3s;
}

.footer-doc:hover { background: rgba(157, 182, 212, .12); color: #fff !important; }

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
  font-size: 13.5px;
  color: #8b97a8;
}

.footer-legal .wrap p + p { margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #8b97a8;
}

.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-bottom .links a:hover { color: #fff; }

/* ============================================================
   AOS fallback
   ============================================================ */

html:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .menu-trigger { display: block; }

  .hero { padding: 170px 0 90px; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 24px; }

  .split, .card-grid, .check-grid, .contact-grid { grid-template-columns: 1fr; }

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

  .director-card { grid-template-columns: 1fr; }
  .director-mark { width: 140px; height: 140px; }
  .director-mark span { font-size: 44px; }

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

@media (max-width: 620px) {
  body { font-size: 16px; }

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

  .section { padding: 76px 0; }

  .brand .brand-name { font-size: 16px; }

  .hero-facts { grid-template-columns: 1fr; }

  .info-table .row { grid-template-columns: 1fr; }
  .info-table .k { padding-bottom: 6px; }
  .info-table .v { padding-top: 6px; }

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

  .hero .cta-row .btn { width: 100%; justify-content: center; }
}
