/* Melior Advisors — faithful reproduction (pass 2, matched against live site via browser inspection) */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap');

:root {
  --gold: #ffd500;        /* brand gold, exact */
  --brand-grey: #6f8690;   /* brand blue-grey, exact (buttons, labels, carousel bg) */
  --body-text: #555555;
  --footer-bg: #e9edee;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--body-text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 400; }

p { margin: 0 0 1em; }

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 1250px;
}

/* Header — overlays the hero, not sticky, transparent */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 14px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo img {
  height: 100px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
}

/* Hero — image + heading only, cropped short (~55vh), image has a subtle parallax drift */
.hero {
  position: relative;
  color: #fff;
  background: #14181a;
  height: 55vh;
  min-height: 380px;
  max-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Landing "pop" — matches the live site's Tatsu on-load pulse (measured: 0.65s ease,
     scale 1 -> 1.1 -> 1, plays once). Applied to the whole hero section so the banner
     image and heading pop together as one unit, same as the original. */
  animation: heroPulse 0.65s ease 1;
}

@keyframes heroPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 122%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.4);
}

.hero .inner {
  position: relative;
  z-index: 2;
  max-width: 870px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: 50px;
  font-weight: 200;
  line-height: 55px;
  color: #fff;
  margin: 0;
}

/* Intro — subheading / body / CTA / button sit on plain white below the hero image */
.intro {
  text-align: center;
  padding: 40px 24px 19px;
}

.intro .wrap-narrow {
  max-width: 870px;
  margin: 0 auto;
}

.intro p {
  font-size: 16px;
  line-height: 30px;
  color: var(--body-text);
}

.intro .lede,
.intro .cta {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--brand-grey);
}

.btn-outline {
  display: inline-block;
  margin-top: 12px;
  padding: 15px 20px;
  background: #fff;
  border: 1px solid var(--brand-grey);
  color: var(--brand-grey);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-outline:hover {
  background: var(--brand-grey);
  color: #fff;
}

/* Page hero — shorter banner used on interior pages (Approach, Services, Contact, etc.) */
.page-hero {
  position: relative;
  color: #fff;
  background: #14181a;
  height: 37vh;
  min-height: 260px;
  max-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 122%;
  object-fit: cover;
  object-position: center bottom;
  will-change: transform;
}

/* Approach and Services now share the same source photo (Home02.jpg) —
   Approach shows the upper portion, Services keeps the original lower crop. */
#approachHeroBg {
  object-position: center top;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.4);
}

.page-hero .inner {
  position: relative;
  z-index: 2;
  max-width: 870px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 50px;
  font-weight: 200;
  line-height: 55px;
  color: #fff;
  margin: 0;
}

/* Interior page body copy — used on Approach, Services, etc. */
.page-content {
  padding: 64px 0 56px;
}

.page-content .wrap-copy {
  max-width: 696px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content h2.lede {
  font-size: 30px;
  font-weight: 300;
  line-height: 35px;
  color: var(--brand-grey);
  text-align: left;
  margin: 0 0 30px;
}

.page-content p {
  font-size: 16px;
  line-height: 30px;
  color: var(--body-text);
  text-align: left;
  margin: 0 0 30px;
}

.page-content p a {
  color: var(--brand-grey);
  text-decoration: underline;
}

.page-content ul {
  margin: 0 0 30px;
  padding-left: 21px;
  list-style: disc;
}

.page-content ul li {
  font-size: 16px;
  line-height: 30px;
  color: var(--body-text);
  text-align: left;
  margin-bottom: 10px;
}

.page-content .wrap-copy.wrap-contact {
  max-width: 1160px;
}

.contact-columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contact-columns .contact-form-col {
  flex: 0 0 46%;
}

.contact-columns .contact-call {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--brand-grey);
  margin: 0 0 4px;
}

.contact-columns .contact-call a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-columns .contact-call a:hover {
  border-bottom-color: var(--brand-grey);
}

.contact-columns .contact-or {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--brand-grey);
  margin: 0 0 24px;
}

.contact-columns .contact-map {
  flex: 1;
  align-self: stretch;
}

.contact-columns .contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Legal pages (Privacy Policy, Terms & Conditions) — short decorative banner strip,
   no heading on the image; the page title sits in the plain white content below. */
.legal-banner {
  position: relative;
  height: 120px;
  background: #14181a;
  overflow: hidden;
}

.legal-banner .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.legal-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.35);
}

.legal-content .wrap-copy {
  max-width: 754px;
  text-align: left;
}

.legal-content h1 {
  font-size: 50px;
  font-weight: 200;
  line-height: 55px;
  color: #90a3aa;
  text-align: left;
  margin: 0 0 20px;
}

.legal-content h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 35px;
  color: var(--brand-grey);
  text-align: left;
  margin: 0 0 20px;
}

.form-hidden-field {
  position: absolute;
  left: -9999px;
}

.contact-form .form-row {
  margin-bottom: 22px;
}

.contact-form label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--brand-grey);
  margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body-text);
  padding: 12px 14px;
  border: 1px solid #d5dadc;
  border-radius: 3px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: #aab2b6;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-grey);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  border: 1px solid var(--brand-grey);
  cursor: pointer;
}

.page-content h5 {
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  color: var(--brand-grey);
  text-align: left;
  margin: 0 0 15px;
}

/* Selected experience */
.experience {
  padding: 19px 0 56px;
  text-align: center;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 12px;
}

.client-logos .cell {
  width: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logos img {
  width: auto;
  max-width: 100%;
}

/* Exact sizes measured from the live site (each logo is a different natural size) */
.logo-astrazeneca { height: 57px; position: relative; top: -11px; }
.logo-landsecurities { height: 47px; }
.logo-shell { height: 78px; }
.logo-prudential { height: 92px; }
.logo-bain { height: 28px; }
.logo-rsa { height: 61px; position: relative; top: -11px; }
.logo-schroders { height: 32px; }
.logo-canaccord { height: 56px; position: relative; top: 4px; }
.logo-citi { height: 67px; }
.logo-jll { height: 54px; }
.logo-ubs { height: 63px; }
.logo-swissre { height: 42px; }
.logo-greenhill { height: 44px; }
.logo-eqt { height: 41px; }
.logo-kkr { height: 35px; }

/* Principles carousel */
.principles {
  position: relative;
  background: var(--brand-grey);
  color: #fff;
  text-align: center;
  padding: 64px 24px 40px;
  overflow: hidden;
}

.principles .viewport {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.principles .track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.principles .slide {
  flex: 0 0 100%;
  min-height: 90px;
}

.principles h3 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.principles p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
}

.dots button.is-active {
  background: var(--gold);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 44px 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand img { height: 90px; }

.footer-brand address {
  font-style: normal;
  font-size: 15px;
  color: var(--brand-grey);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 15px;
  color: var(--brand-grey);
}

.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  font-size: 13px;
  color: #999;
}

@media (max-width: 860px) {
  .client-logos .cell { width: 180px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header .logo img { height: 60px; }
  .hero { height: 60vh; min-height: 320px; }
  .hero h1 { font-size: 40px; line-height: 45px; }
  .intro { padding: 32px 20px 48px; }
  .intro .lede, .intro .cta { font-size: 19px; }
  .client-logos { gap: 28px 12px; }
  .client-logos .cell { width: 45%; }
  .footer-brand img { height: 60px; width: auto; flex-shrink: 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
  .page-hero { height: 30vh; min-height: 200px; }
  .page-hero h1 { font-size: 40px; line-height: 45px; }
  .page-content { padding: 40px 0 40px; }
  .contact-columns { flex-direction: column; }
  .contact-columns .contact-form-col { flex: none; }
  .contact-columns .contact-map { align-self: auto; }
  .contact-columns .contact-map iframe { height: 320px; min-height: 320px; }
  .contact-columns .contact-call,
  .contact-columns .contact-or { font-size: 19px; }
  .legal-banner { height: 80px; }
  .legal-content h1 { font-size: 34px; line-height: 38px; }
  .legal-content h2 { font-size: 24px; line-height: 28px; }
}
