/*
Theme Name: Elix Capital
Theme URI: https://elixcapital.gr/
Author: Elix Capital
Description: Bespoke single-page corporate website for Elix Capital.
Version: 1.0.0
Text Domain: elix-capital
*/

:root {
  --font-sans: "Manrope";
  --font-display: "Playfair Display";
  --ink: #102b3e;
  --blue: #315c80;
  --steel: #708ca5;
  --mist: #dfe6ec;
  --paper: #f5f4f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans), Arial, sans-serif;
}

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

.site-header {
  height: 84px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.brand, .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 700;
}

.brand img, .footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: top;
  background: white;
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: 34px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  right: 100%;
  bottom: -7px;
  background: white;
  transition: right .25s ease;
}

.nav a:hover::after, .nav a:focus-visible::after {
  right: 0;
}

.menu-button {
  display: none;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  padding: 130px 8vw 80px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,35,53,.98) 0%, rgba(16,43,62,.88) 43%, rgba(16,43,62,.18) 75%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0 0 0 42%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  opacity: .76;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(720px, 62vw);
}

.eyebrow {
  margin: 0 0 26px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 700;
}

h1, h2 {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(64px, 8.2vw, 124px);
  line-height: .9;
  margin: 0;
}

.hero-intro {
  max-width: 590px;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.7;
  color: rgba(255,255,255,.76);
  margin: 38px 0 34px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 700;
}

.primary-link span {
  font-size: 20px;
}

.hero-index {
  position: absolute;
  z-index: 4;
  right: 5vw;
  bottom: 34px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-orbit {
  position: absolute;
  border: 50px solid rgba(103,141,174,.33);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.orbit-one {
  width: 560px;
  height: 560px;
  left: -370px;
  top: -290px;
}

.orbit-two {
  width: 340px;
  height: 340px;
  left: -205px;
  bottom: -220px;
}

.section {
  padding: 125px 6vw;
}

.section-label {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-label span {
  color: var(--steel);
}

.about {
  display: grid;
  grid-template-columns: .65fr 1.4fr .8fr;
  gap: 6vw;
  align-items: start;
  background: var(--paper);
}

.about-copy h2, .services-heading h2, .record-heading h2 {
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 1.05;
  margin: 0 0 42px;
}

.about-copy p {
  max-width: 670px;
  font-size: 16px;
  line-height: 1.9;
  color: #526472;
}

.about-visual {
  min-height: 470px;
  position: relative;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .45;
}

.year {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: white;
  background: var(--blue);
}

.year strong {
  display: block;
  font-family: var(--font-display), Georgia, serif;
  font-size: 54px;
  font-weight: 500;
}

.year span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.services {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: .65fr 2.25fr;
  gap: 6vw;
}

.section-label.light span {
  color: #9db2c4;
}

.services-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 75px;
}

.services-heading h2 {
  max-width: 750px;
  margin: 0;
}

.services-heading p {
  max-width: 270px;
  margin: 0 0 10px;
  color: rgba(255,255,255,.58);
  line-height: 1.7;
  font-size: 13px;
}

.service-list {
  grid-column: 2;
  border-top: 1px solid rgba(255,255,255,.18);
}

.service {
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 34px 0 38px;
}

.service-top {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: start;
}

.service-top > span:first-child {
  font-size: 11px;
  color: #91aabd;
  letter-spacing: .12em;
}

.service h3 {
  font-size: clamp(25px, 3vw, 42px);
  margin: 0;
  font-weight: 400;
  letter-spacing: -.03em;
}

.service-arrow {
  font-size: 26px;
  text-align: right;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  padding: 26px 40px 0 70px;
  color: rgba(255,255,255,.64);
  font-size: 13px;
  line-height: 1.75;
}

.service-detail p {
  margin: 0;
}

.service-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  margin-bottom: 7px;
}

.service-detail li::before {
  content: "—";
  margin-right: 10px;
  color: #9db2c4;
}

.record {
  display: grid;
  grid-template-columns: .65fr 2.25fr;
  gap: 6vw;
  background: #e8ecef;
}

.record-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 45px;
}

.record-heading h2 {
  margin: 0;
}

.record-heading p {
  color: #596b77;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 10px;
}

.record-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 65px;
  border-top: 1px solid #bdc8d0;
  border-left: 1px solid #bdc8d0;
}

.metric {
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #bdc8d0;
  border-bottom: 1px solid #bdc8d0;
}

.metric strong {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.metric span {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  color: #5a6d79;
}

.closing {
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.closing > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .28;
}

.closing-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent, rgba(9,29,43,.75));
}

.closing-copy {
  position: relative;
  z-index: 2;
}

.closing h2 {
  font-size: clamp(50px, 7vw, 92px);
  line-height: 1;
  margin: 0 0 42px;
}

.light-link {
  margin-top: 10px;
}

footer {
  padding: 35px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0b2131;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-brand {
  color: white;
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
  }

  .menu-button {
    display: flex;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    padding: 10px 0;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    z-index: 2;
  }

  .menu-button span {
    display: block;
    width: 27px;
    height: 1px;
    background: white;
  }

  .nav {
    position: absolute;
    inset: 0;
    height: 100svh;
    background: #102b3ef7;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 15px;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: 780px;
    padding: 135px 6vw 70px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(11,34,50,.82), rgba(11,34,50,.96));
  }

  .hero-image {
    inset: 0;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(58px, 17vw, 84px);
  }

  .section {
    padding: 85px 6vw;
  }

  .about, .services, .record {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-visual {
    min-height: 360px;
  }

  .services-heading {
    display: block;
    padding-bottom: 40px;
  }

  .services-heading p {
    margin-top: 25px;
  }

  .service-list, .record-grid {
    grid-column: 1;
  }

  .record-heading {
    grid-template-columns: 1fr;
  }

  .record-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .hero-index {
    display: none;
  }

  .service-top {
    grid-template-columns: 42px 1fr 30px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 24px 0 0 42px;
    gap: 18px;
  }

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

  .metric {
    min-height: 155px;
  }

  .closing {
    min-height: 540px;
    padding: 40px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
