/* ==========================================================================
   Medventures — site styles
   Design reference: Medventures_Website_V2 (1920px desktop artboard)
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   General Sans (Indian Type Foundry / Fontshare), supplied by the client.
   One variable file covers every weight (200–700).
   Weights used: 400 body, 500 subheadings, 600 headings.                  */
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --ink: #020921;          /* main text + dark sections */
  --white: #ffffff;
  --navy: #000d4d;         /* card: Pragmatic Efficiency */
  --orange: #ffa12a;       /* card: Vision & Stewardship */
  --mist: #e8f0ff;         /* card: Uncompromising Quality */
  --lime: #c2fb51;         /* card: Integrity First */
  --lime-bright: #d4fc61;  /* Contact heading */
  --rule: #08132d;

  --font-sans: "General Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --w-regular: 400;
  --w-sub: 500;      /* subheadings: Medium */
  --w-medium: 600;   /* headings: Semibold */

  --gutter: clamp(20px, 6.25vw, 120px);
  --max: 1920px;

  /* Type scale: design size at 1920px, fluid down to mobile */
  --fs-nav: clamp(15px, 1.05vw, 20px);
  --fs-hero: clamp(26px, 2.35vw, 45px);   /* sized to match the logo lettering */
  --fs-display: clamp(40px, 4.7vw, 90px);
  --fs-lead: clamp(18px, 1.56vw, 30px);
  --fs-card-title: clamp(24px, 2.05vw, 40px);
  --fs-card-text: clamp(16px, 0.95vw, 18px);
  --fs-sector-title: clamp(22px, 1.67vw, 32px);
  --fs-sector-text: clamp(16px, 0.95vw, 18px);
  --fs-contact: clamp(18px, 1.56vw, 30px);
  --fs-contact-note: clamp(17px, 1.4vw, 27px);

  --radius-lg: clamp(20px, 2.1vw, 40px);
  --radius-xl: clamp(28px, 3.2vw, 60px);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h, 90px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
address { font-style: normal; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 1560px; margin-inline: auto; }
.center { text-align: center; }

.h-display {
  font-size: var(--fs-display);
  font-weight: var(--w-medium);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.43;
  letter-spacing: -0.02em;
  margin-top: clamp(16px, 1.6vw, 30px);
  text-wrap: pretty;
}
.dark { background: var(--ink); color: var(--white); }

/* --- Header -------------------------------------------------------------- */
/* Sticky header: stays at the top while scrolling; gains a hairline once the page moves */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(2, 9, 33, .08), 0 8px 24px rgba(2, 9, 33, .06); }
.header-inner {
  display: flex; align-items: last baseline; justify-content: space-between;
  padding-block: clamp(14px, 1.45vw, 28px);
}
.logo { color: var(--ink); display: block; width: clamp(136px, 11.5vw, 220px); }
.logo svg { width: 100%; height: auto; }

.site-nav ul { display: flex; align-items: center; gap: clamp(24px, 3.6vw, 70px); }
.site-nav a {
  font-size: var(--fs-nav);
  text-decoration: none;
  letter-spacing: -0.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
  padding-block: 4px;
}
.site-nav a:hover, .site-nav a:focus-visible { background-size: 100% 1px; }
/* Language dropdown (globe + code + chevron, per the EN/TR design) */
.site-nav { margin-left: auto; }
.lang { position: relative; margin-left: clamp(24px, 3.6vw, 70px); }
.lang__btn {
  display: inline-flex; align-items: baseline; gap: .35em;
  font: inherit; font-size: var(--fs-nav); font-weight: var(--w-medium); letter-spacing: -0.01em;
  color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer;
}
.lang__globe { width: 1.25em; height: 1.25em; align-self: center; }
.lang__chev { width: .85em; height: .85em; align-self: center; transition: transform .2s ease; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: -24px; top: calc(100% + 14px); z-index: 30;
  display: block;
  min-width: clamp(190px, 11.8vw, 228px);
  background: var(--white); border-radius: 18px; padding: 6px 22px;
  box-shadow: 0 10px 30px rgba(2, 9, 33, .14), 0 1px 3px rgba(2, 9, 33, .08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__menu li + li { border-top: 1px solid #e3e6ee; }
.lang__menu a {
  color: inherit; text-decoration: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; font-size: calc(var(--fs-nav) * .87); background: none;
}
.lang__menu a:hover span, .lang__menu a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.lang__check { width: 1.15em; height: 1.15em; flex: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin-inline: auto;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; align-self: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav a { font-size: 22px; display: inline-block; padding-block: 10px; }
  .header-inner { align-items: center; }
  .lang { margin-left: auto; margin-right: 6px; }
  .lang__btn { font-size: 15px; padding: 10px 4px; }
  .lang__menu { right: -8px; top: calc(100% + 6px); min-width: 170px; }
  .lang__menu a { font-size: 16px; padding: 12px 0; }
}

/* --- Hero / slider ------------------------------------------------------- */
.hero { padding-inline: clamp(12px, 4.32vw, 83px); }
.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1758 / 880;
  background: #cfd9e6;
  isolation: isolate;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide--1 img { object-position: 50% 30%; }
.hero__slide--2 img { object-position: 50% 40%; }
.hero__slide--3 img { object-position: 60% 50%; }

.hero__copy {
  position: absolute; z-index: 2;
  top: clamp(28px, 3.7vw, 70px);
  right: clamp(22px, 3.7vw, 70px);
  left: clamp(22px, 3.7vw, 70px);
  text-align: right;
  pointer-events: none;
}
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__l1, .hero__l2 { display: block; }
.hero__l1 { font-weight: var(--w-regular); }
.hero__l2 { font-weight: var(--w-medium); }

.hero__dots {
  position: absolute; z-index: 2;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(14px, 2vw, 38px);
  display: flex; gap: 0;
}
.hero__dot {
  width: 22px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero__dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(2,9,33,.18);
  transition: background .25s ease, transform .25s ease;
}
.hero__dot[aria-current="true"]::before { background: var(--white); transform: scale(1.25); }
.hero__dot:focus-visible { outline-color: var(--white); }

@media (max-width: 760px) {
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__slide--1 img { object-position: 60% 50%; }
  .hero__slide--3 img { object-position: 72% 50%; }
  .hero__copy { text-align: left; }
  .hero h1 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.15; }
}

/* --- Divider ------------------------------------------------------------- */
.rule {
  border: 0; height: 1px; background: var(--rule);
  margin: clamp(36px, 3.6vw, 69px) 0 0;
}

/* --- Vision -------------------------------------------------------------- */
.vision { padding-top: clamp(64px, 6.3vw, 122px); }
.vision .lead { max-width: 1000px; margin-inline: auto; }
.vision__photo { display: block; margin-top: clamp(56px, 5.6vw, 108px); }
.vision__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 628;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
@media (max-width: 760px) {
  .vision__photo img { aspect-ratio: 16 / 10; object-position: 50% 75%; border-radius: 28px 28px 0 0; }
}

/* --- Who We Are ---------------------------------------------------------- */
.who { padding-block: clamp(56px, 4.2vw, 80px) clamp(72px, 7.7vw, 148px); }
.who .lead { max-width: 1580px; margin-inline: auto; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.45vw, 28px);
  max-width: 1610px;
  margin: clamp(48px, 5.3vw, 102px) auto 0;
}
.card {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 1.8vw, 34px);
  padding-top: clamp(30px, 3.4vw, 64px);
  min-height: clamp(360px, 24.8vw, 477px);
  display: flex; flex-direction: column;
  color: var(--ink);
}
.card--orange { background: var(--orange); }
.card--light  { background: var(--mist); }
.card--navy   { background: var(--navy); color: var(--white); }
.card--lime   { background: var(--lime); }
.card__icon { height: clamp(40px, 2.6vw, 50px); width: auto; align-self: flex-start; }
.card__title {
  font-size: var(--fs-card-title);
  font-weight: var(--w-medium);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: clamp(24px, 2.1vw, 40px);
}
.card__text {
  font-size: var(--fs-card-text);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-top: clamp(18px, 1.6vw, 30px);
  max-width: 34ch;
}
@media (max-width: 1180px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { min-height: 340px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}

/* --- Where We Invest ----------------------------------------------------- */
.where { padding-block: clamp(64px, 5.3vw, 101px) clamp(80px, 9.6vw, 185px); }
.where .lead { max-width: 1580px; margin-inline: auto; }
.sectors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(56px, 10vw, 192px);
}
.sector {
  padding-inline: clamp(20px, 1.6vw, 30px);
  border-left: 1px solid var(--ink);
}
.sector:first-child { border-left: 0; padding-left: 0; }
.sector__icon { height: clamp(44px, 3.1vw, 60px); width: auto; max-width: none; }
.sector__title {
  font-size: var(--fs-sector-title);
  font-weight: var(--w-sub);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-top: clamp(32px, 2.8vw, 54px);
}
.sector__text {
  font-size: var(--fs-sector-text);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-top: clamp(16px, 1.6vw, 30px);
  max-width: 26ch;
}
@media (max-width: 1180px) {
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .sector:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .sector:nth-child(3n+1) { border-left: 1px solid var(--ink); padding-left: clamp(20px, 1.6vw, 30px); }
  .sector:nth-child(2n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .sectors { grid-template-columns: 1fr; row-gap: 0; }
  .sector, .sector:nth-child(n) {
    border-left: 0; padding-inline: 0;
    border-top: 1px solid var(--ink); padding-block: 32px;
  }
  .sector:first-child { border-top: 0; padding-top: 0; }
  .sector__text { max-width: none; }
}

/* --- Contact ------------------------------------------------------------- */
.contact { padding-top: clamp(72px, 7.5vw, 145px); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(780px);
  column-gap: 40px;
}
.contact__title { color: var(--lime-bright); grid-column: 1 / -1; }
.contact address {
  grid-column: 1; grid-row: 2;
  font-size: var(--fs-contact); line-height: 1.35; letter-spacing: -0.015em;
  margin-top: clamp(12px, 1vw, 20px);
}
.contact address p + p { margin-top: clamp(28px, 2.6vw, 50px); }
.contact address a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.contact address a:hover, .contact address a:focus-visible { background-size: 100% 1px; }
.contact__note {
  grid-column: 2; grid-row: 2;
  font-size: var(--fs-contact-note); line-height: 1.35; letter-spacing: -0.015em;
  margin-top: clamp(0px, 0.6vw, 12px);
  line-height: 1.55;
}
.footer-line {
  margin-top: clamp(72px, 7.5vw, 145px);
  padding-block: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
  color: rgba(255,255,255,.6);
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__note { grid-column: 1; grid-row: 3; margin-top: 40px; }
}
