/* ================================
   Font Files
================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900; /* Variable range */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Italic.ttf") format("truetype");
  font-weight: 100 900; /* Same range for italic */
  font-style: italic;
  font-display: swap;
}

/* ROOT STYLES */

:root{
  --brand: #0d6efd; /* update to your brand primary */
  --brand-ink: #00307E; /* dark text */
  --brand-subtle: #6b7280; /* secondary text */
  --radius-xl:1.25rem;
  --blue-highlight:  #0089DE;
  --blue-light: #00307E;
  --blue-mid:  #00307E;
  --blue-dark:  #071642;
  --grey-light: #F5F5F5;
  --grey-mid: #D9D9D9;
}

.btn-brand{background:var(--brand);border-color:var(--brand)}
.btn-brand:hover{filter:brightness(0.95)}
.rounded-xl{border-radius:var(--radius-xl)}
.shadow-soft{box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.08)}

.container {
	padding-right: 20px;
	padding-left: 20px;
	max-width: 1080px;
}

.inner {
  width:100%;                 
  margin:0 auto;
  padding: 70px 0 !important;         
}

a,
a:link {
  color: var(--blue-light-blue, #006BAD) !important;
  text-underline-offset: 2px !important;
  transition: color .15s ease !important;
  text-decoration: none;
}

a:visited {
  color: var(--blue-mind-blue, #00307E) !important; /* darker “visited” tone */
}

a:hover,
a:focus {
  color: var(--blue-highlight, #0089DE) !important;
}

a:active {
  color: var(--blue-highlight, #0089DE) !important;
}

#news a, #news a:visited {
	color: #fff !important;
}

/* Mobile portrait tweak */
@media (max-width: 575.98px) and (orientation: portrait){
	.inner {
	  padding: 50px 0 !important;         
	}
}

.clearfix {clear: both;}

.dark-blue-background {
	background-color: var(--blue-dark);
}

.light-grey-background {
	background-color: var(--grey-light);
}

/* Mobile-first: image above text, full width */
.img-float-left{
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1em 0 3rem 0;           /* space below image on mobile */
  float: none;                    /* no float on mobile */
}

/* Tablet (md ≥ 768px): start floating + rein in size so it’s not huge on iPad */
@media (min-width: 768px){
  .img-float-left{
    float: left;
    margin: 0 2rem 2rem 0;        /* spacing beside text */
    width: clamp(280px, 42vw, 520px);  /* keeps tablet size reasonable */
  }

  /* If you use the 40% helper class, make it kick in from md instead of lg */
  .img-float-left.img-40{
    width: 40%;
  }
}

/* Desktop (lg ≥ 992px): you can keep or further adjust spacing */
@media (min-width: 992px){
  .img-float-left{
    margin: 0 3rem 3rem 0;
  }
}


/* ================================
   Global Typography Defaults
================================= */

html {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #000; 
}

/* Use Inter everywhere (Bootstrap-aware) */
:root {
  --bs-body-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  /* Optional: make headings use Inter too (Bootstrap falls back to body if not set) */
  --bs-heading-font-family: var(--bs-body-font-family);
}

/* Global defaults */
html, body {
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  line-height: 1.5;
  font-optical-sizing: auto;           /* great with Inter variable */
  -webkit-font-smoothing: antialiased; /* nicer rendering */
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure form controls use the same font */
button, input, select, textarea {
  font: inherit;
}

/* Headings (optional tweaks) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--bs-heading-font-family);
}

h1 {
	font-size: 32px;
    margin:0 0 8px;
	color: var(--blue-dark);
    font-weight: 700 !important;
}

h2 {
	font-size: 32px;
    margin:0 0 8px;
	color: var(--blue-dark);
    font-weight: 700 !important;
}
	
h3 {
	font-size: 24px;
	margin:0 0 24px;
    font-weight: 600 !important;
}
	
.about-intro p{
 	font-size:16px;    
 	margin:0 0 10px;
}

/* Keep code elements monospace (change to inherit later for Inter too) */
code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

/* ================================
   Navbar
================================= */
/* ====== Navbar scaling variables ====== */
:root{
	--nav-h: 96px;
	--nav-logo-h: 44px;
	--nav-link-fs: 1rem;
	--nav-h-scrolled: calc(var(--nav-h)*.7);
	--nav-logo-h-scrolled: calc(var(--nav-logo-h)*.7);
	--nav-link-fs-scrolled: calc(var(--nav-link-fs)*1);
}

/* slightly offset jump down nav for legibility */
:where(section, [id]) {
  scroll-margin-top: calc(var(--nav-h, 96px) + 0px);
}

/* Push content below fixed navbar (JS will keep this in sync too) */
body { padding-top: var(--nav-h); }

/* ====== Navbar base ====== */
.navbar-elev{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #fff;
  padding: 0;
  z-index: 1040;
  box-shadow: 0 4px 4px rgba(0,0,0,.25); /* 25% black, blur 4px */
  transition: height .25s ease, padding .25s ease, box-shadow .2s ease;
}
.navbar-elev .container{ height: 100%; }
.navbar-elev .navbar-brand{ display:flex; align-items:center; }

/* PNG logo scales smoothly */
.navbar-elev .navbar-brand img.logo{
  height: var(--nav-logo-h);
  width: auto;
  display: block;
  transition: height .25s ease;
}

/* Links: black default, bold-ish like mock */
.navbar-elev .nav-link{
  color: #000 !important;
  font-weight: 600;
  font-size: var(--nav-link-fs);
  padding: .25rem 0;                  /* tidy vertical rhythm */
  transition: color .15s ease, font-size .25s ease;
}
.navbar-elev .nav-link:hover,
.navbar-elev .nav-link:focus{
  color: var(--blue-highlight) !important;
}

/* Center the navbar logo on mobile portrait only */
@media (max-width: 575.98px) and (orientation: portrait){
  .navbar-elev .container{ position: relative; }

  /* place brand in the horizontal center, keep it vertically centered */
  .navbar-elev .navbar-brand{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: 0;               /* remove default brand padding on small screens */
    line-height: 1;
  }

  /* keep the burger on the right */
  .navbar-elev .navbar-toggler{
    margin-left: auto;
    position: relative;
    z-index: 2;               /* ensure it sits above the centered brand */
  }
}

/* Desktop spacing */
.navbar-elev .navbar-nav{ gap: 28px; }
.navbar-elev .navbar-toggler{ margin-left: auto; }

/* ====== Shrink on scroll ====== */
.navbar-elev.is-scrolled{ height: var(--nav-h-scrolled); }
.navbar-elev.is-scrolled .navbar-brand img.logo{ height: var(--nav-logo-h-scrolled); }
.navbar-elev.is-scrolled .navbar-nav{ gap: 20px; }
.navbar-elev.is-scrolled .nav-link{ font-size: var(--nav-link-fs-scrolled); }

/* ====== Mobile dropdown (collapse) ======
   Make it overlay below the bar so clicking burger doesn't move the bar.
   Right-aligned, white background, subtle shadow. */
@media (max-width: 991.98px){
  .navbar-elev .navbar-collapse{
    position: absolute;
    top: 100%;
    right: 0;              /* align the dropdown to the right */
    left: auto;
    width: min(320px, 92vw);
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    padding: .75rem 1rem;
  }
  .navbar-elev .navbar-nav{ gap: 0; }
  .navbar-elev .nav-link{ display: block; padding: .5rem 0; }
}

/* Optional: prevent layout shift on toggler focus */
.navbar-elev .navbar-toggler{
  outline: none;
  box-shadow: none !important;
}

/* Remove border & focus ring from mobile burger */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.25rem; /* optional: tighten the hit area */
}

/* Make the "hamburger" icon bolder */
.navbar-light .navbar-toggler-icon {
  background-image: none; /* remove default SVG */

/* Custom thicker icon using CSS */
  width: 28px;
  height: 3px;
  background-color: #000; /* burger color */
  position: relative;
  transition: background-color 0.2s ease;
}

/* Create the top and bottom lines */
.navbar-light .navbar-toggler-icon::before,
.navbar-light .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: background-color 0.2s ease;
}

/* Position lines */
.navbar-light .navbar-toggler-icon::before { top: -8px; }
.navbar-light .navbar-toggler-icon::after { top: 8px; }


/* ===========================
   HERO (background image)
   =========================== */

/* ===== Hero config ===== */
:root{
  --hero-img-mobile:  url("../images/Elevara-Medicines-Hero-Mobile.jpg");
  --hero-img-desktop: url("../images/Elevara-Medicines-Hero-Desktop.jpg");
  --hero-pos-mobile:  center bottom 35%;
  --hero-pos-desktop: 80% center;
  --hero-h-desktop:   452px;
  --hero-minh-mobile: 40vh;
  --hero-max-line:    40ch;
  --hero-shadow:      0 0 8px rgba(0,0,0,.20);
}

/* ===== Mobile-first ===== */
#hero .container {
	padding: 0px 10px;
}

#hero.hero{
  color: #fff;
  display: flex;
  align-items: flex-start;                   /* text at top on mobile */
  text-align: center;                        /* centered text on mobile */
  /* MORE space above the text */
  padding-block-start: clamp(3.5rem, 8vw, 3rem);
  /* EVEN MORE space below the text to reveal the image focus */
  padding-block-end:   clamp(15rem, 16vw, 8rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  min-height: var(--hero-minh-mobile);
  background-image: var(--hero-img-mobile);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--hero-pos-mobile);
}

#hero .container{
  width: 100%;
}

.hero-title{
  margin-inline: auto;               /* centers inside container (mobile) */
  max-width: var(--hero-max-line);
  line-height: 1.15;
  font-size: clamp(2rem, 3.8vw + .6rem, 3rem);
  text-shadow: var(--hero-shadow);   /* subtle black glow for legibility */
}

.hero h1 {
	color: #fff;
}

/* ===== Desktop and up ===== */
@media (min-width: 992px){
  #hero.hero{
    align-items: center;                   /* vertical center on desktop */
    text-align: left;                      /* left-aligned text */
    padding-block: 0;                      /* fixed height handles spacing */
    height: var(--hero-h-desktop);         /* ~452px */
    min-height: 0;
    background-image: var(--hero-img-desktop);
    background-position: var(--hero-pos-desktop);
	padding-inline: 0;
	padding-bottom: 20px;
  }

  .hero-title{
    margin: 0;                             /* flush left */
    max-width: 18ch;                       /* tighter lines like mock */
    font-size: clamp(2.25rem, 2.6vw + .8rem, 3.25rem);
  }
}


/* ===========================
   About Area
   =========================== */

/* ABOUT intro */
.about-intro{
  color: #fff;
  line-height:1.4;
}

.about-inner h2 {
	color: #fff;
}

/* ===== Desktop and up ===== */
@media (min-width: 992px){
	.about-inner{
	  width: 90%;
	  margin:0 0 0px 0;
	}
}

/* ===========================
   Callout blocks
   =========================== */

.callout-block {
	margin-top: 40px;
	padding: 60px !important;
	clear: both;
}
	
.start-synergy-img {
	margin: -20px 0 40px -60px;
	max-width: 100%;
}

/* Mobile portrait tweak */
@media (max-width: 700px) {
	.callout-block {
		margin-top: 0px;
		padding: 30px !important;
	}
	
	.start-synergy-img {
		margin: 0px 0 40px -30px;
	}
}

/* ===== Desktop and up ===== */
@media (min-width: 700px){
	.start-synergy-img {
		max-width: 450px;
		padding-top: 10px;
	}
}


/* ===========================
   Directors / board
   =========================== */

#board {
	margin-top: -120px;
	padding-bottom: 60px;
}

h3.leaders {
	margin-bottom: 60px;
}

/* Shared people grid */
.people-grid .col { display: flex; }            /* equal height cards */
.person-card { display: flex; flex-direction: column; }

/* Square photo, cover, rounded corners */
.person-photo { width: 168px; max-width: 70%; aspect-ratio: 4 / 5;} /* responsive cap */
.person-photo .img-cover{
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* Body uses grid to lock the divider baseline across cards */
/* Body uses grid to lock the divider baseline across cards */
.person-body{
  display: grid;
  /* name | spacer | divider | role (spacer stretches) */
  grid-template-rows: var(--nameH, auto) 1fr auto auto;
  gap: .5rem;
  padding-top: 12px;
}

/* Explicit grid row placement so we don't need extra markup */
.person-name { grid-row: 1; }
.person-sep  { grid-row: 3; }
.person-role { grid-row: 4; }

.person-name{
  font-size: 1.2rem !important;
  font-weight: 800;
  color: var(--blue-mid);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .02em;
  align-self: center;        /* centers within the grid row height */
  margin: 0;                 /* make sure margins don't push it */
  line-height: 1.2;          /* tidy multi-line caps */
  text-wrap: balance;
  hyphens: auto;
}

.person-sep{
  border: 0;
  height: 3px;
  width: 100%;                         /* consistent width across cards */
  background: var(--grey-mid);
  justify-self: center;
  margin: 0;                           /* no extra gaps */
}

.person-role{
  font-size: 1.2rem !important;
  color: #4b5563;                      /* subtle gray */
  margin: 0;
}

/* Spacing & layout tweaks */
.person-card { padding: 0 8px; }
.person-photo { margin: 0 auto; }      /* center the image */
.people-grid { text-align: center; }

/* Board variant: no photo, but same divider alignment still works */
.person-card.no-photo .person-photo { display: none; }
.person-card.no-photo .person-body { padding-top: 0; }

/* Responsive type and image sizing */
@media (min-width: 576px){
  .person-photo { width: 184px; }
}
@media (min-width: 992px){
  .person-photo { width: 200px; }
  .person-name { font-size: 1rem; }
  .person-role { font-size: 1rem; }
}


/* ===========================
   News
   =========================== */

/* Thumb ratios: 3:4 on mobile (top), 1:1 on desktop */
.news-thumb{
  aspect-ratio: 4 / 3;        /* mobile */
  background: #e9ecef;
}
@media (min-width: 992px){
  .news-thumb{ aspect-ratio: 1 / 1; }  /* desktop */
}

.news-card {
	background: #fff;
    border-radius: .5rem;
	padding: 30px 30px 30px 50px !important;
}

/* Mobile portrait tweak */
@media (max-width: 700px) {
	.news-card {
		background: #fff;
	    border-radius: .5rem;
		padding: 20px !important;
	}
}

/* Make images cover the box cleanly */
.object-cover{ object-fit: cover; object-position: center; }

/* Button styles: blue-light → hover blue-highlight */
.btn-news{
  --btn-bg: var(--blue-light); /* supports either var name */
  --btn-hover: var(--blue-highlight);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--btn-bg);
  color: #fff;
  border: 0;
  padding: .75rem 1rem;
  font-weight: 700;
}
.btn-news:hover,
.btn-news:focus{
  background: var(--btn-hover);
  color: #fff;
}

/* Arrow icon sizing */
.btn-news .btn-arrow{
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Spacing polish */
.news-card:first-child{ margin-top: -20px;}
.news-card:last-child{ border-bottom: 0;}


/* ===========================
   Investors logos
   =========================== */

/* Center content and let logos scale down smoothly */
.investors-grid { text-align: center; padding: 30px;}

/* Logos: shrink on tablets/landscape, stack to one-per-row on mobile */
.investor-logo{
  max-height: 70px;
  width: auto;
}

/* Optional: a little vertical breathing room if needed */
#investors .inner { padding-block: 24px; }


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

/* Footer base */
#site-footer{
  background: var(--blue-dark);
  color: #fff;
  padding: 10px 20px; /* matches your side padding rule */
}

/* Logo sizing (shrinks a bit on smaller screens) */
.footer-logo{
  width: clamp(180px, 22vw, 200px);
  height: auto;
  display: block;
}

/* Type */
.footer-heading{
  font-size: 1.125rem; /* ~18px */
  font-weight: 700;
  margin: 0 0 .25rem;
}
#site-footer p{ margin: 0 0 .5rem; line-height: 1.4; }

/* Links */
.footer-link{
  color: var(--blue-highlight);
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover,
.footer-link:focus{
  color: var(--blue-highlight);
  text-decoration: underline;
}

/* Layout behavior:
   - Desktop (≥992px): 3 columns
   - Smaller devices: columns stack (middle above legal), then all stack on mobile by default
*/
@media (max-width: 991.98px){
  #site-footer .row > [class*="col-"]{
    /* ensure neat vertical spacing when stacked */
    margin-bottom: .25rem;
  }
  .footer-logo{
    margin: 0 auto;
  }
  #site-footer h3, #site-footer p, .text-lg-end{ text-align: center !important; } /* legal aligns left when stacked */
}


	
