/* --------- CSS STRUCTURE --------

-- General styles
  ---- variables
      ------ colors
      ------ z-index list
  ---- tag styles 
  ---- common components
      ------ .section
      ------ .base-container
      ------ .back-to-top
      ------ .contact-info (links with icon and text)

* in DOM order *

-- Top Bar
-- Header
-- Navigation Menu
-- Hero - intro section
-- Activități 
-- Contributori
-- Doneaza
-- Contact
  ---- Form Styles
-- Footer

-- /***** RESPONSIVE STYLES *****/

/* -------------------------------- */

/*--------------------------------------------------------------
--- General styles
--------------------------------------------------------------*/

:root {
  --primary: #ff6529;
  --hover: #9c2762;
  --highlight: #ea0b45;
  --focus-outline: #bbb;
  --light-gray: #e9e9e9;
  --gray-mid: #555;

  --z-index-header: 10;
  --z-index-meniu-overlay: 15;
  --z-index-mobile-nav: 20;
  --z-index-menu-btn: 25;
  --z-index-modal-overlay: 50;
  --z-index-modal-close: 55;

  --brand-font: 'Chakra Petch', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

/* ------------------ tag styles ------------------ */

body {
  background: #fff;
  color: #333333;
  font-family: var(--body-font);
  font-size: 16px;
}

a {
  color: var(--primary);
  transition: 0.5s;
}

a:hover,
a:active {
  color: var(--hover);
  text-decoration: none;
}

a:focus,
button:focus {
  outline: 1px dashed var(--focus-outline);
  border-radius: 3px;
}

p {
  padding: 0;
  margin: 0 0 20px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--brand-font);
  font-weight: 500;
  margin: 0 0 20px 0;
  padding: 0;
  line-height: 1.25;
}

h1 {
  font-size: 2.3em;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1.1em;
}

h5 {
  font-size: 1em;
}

img {
  margin: 0;
  width: 100%;
  height: auto;
}

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

li {
  margin-bottom: 6px;
}

/* ------------------ common / base components ------------------ */

/* ------- container */

.base-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-sb-c {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------- section */

.section {
  padding: 60px 0;
}

/* child elements */
.section__title {
  font-family: var(--brand-font);
  font-size: 1.8em;
  color: var(--highlight);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.section__title::before {
  content: '';
  position: absolute;
  display: block;
  width: 100px;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
}

/* modifiers */

.section--bg-primary {
  background-color: var(--primary);
  color: white;
}

.section--bg-primary .section__title {
  color: white;
}

.section--bg-primary .section__title::before {
  background-color: var(--gray-mid);
}

/* ------- subsection */
.subsection__title {
  font-size: 1.4em;
  margin: 20px 0;
}

/* ------- Back to top button */

.back-to-top {
  position: fixed;
  display: none;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px 9px 12px;
  font-size: 16px;
  border-radius: 2px;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
}

.back-to-top:hover {
  background: var(--hover);
  color: #fff;
}

/* ------- highlighted text, like titles, key words, etc. */

.highlight-text {
  font-family: var(--brand-font);
  color: var(--highlight);
}

/* ------- contact info links with icons */

.contact-info {
  color: var(--gray-mid);
  display: flex;
  align-items: center;
}

.contact-info i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.25em;
}

.contact-info i.fa-envelope {
  font-size: 1.05em;
}

.contact-info p {
  margin-bottom: 0;
}

/* hover styles */
.contact-info:hover {
  color: var(--gray-mid);
}

.contact-info:hover span {
  color: var(--primary);
  text-decoration: underline;
}

.contact-info__title {
  font-family: var(--brand-font);
  font-size: 1.4em;
  color: #999;
  margin-bottom: 20px;
}

/********************* in DOM order *******************/

/*--------------------------------------------------------------
--- Top Bar ---
--------------------------------------------------------------*/

.top-bar {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.top-bar__contact-info-container {
  display: flex;
}

.top-bar .contact-info {
  margin: 0 10px;
  padding: 0 10px;
  border-left: 1px solid var(--light-gray);
}

.top-bar .contact-info:first-child {
  margin-left: 0;
  border-left: none;
}

.top-bar__hospital-link {
  margin-right: 10px;
  display: block;
}

/*--------------------------------------------------------------
--- Header ---
--------------------------------------------------------------*/

.header {
  background: #fff;
  z-index: var(--z-index-header);
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  left: 0;
  box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.06);
}

.logo-container {
  height: 80px; /* header height only depends on height of this item */
  display: flex;
  align-items: center;
  position: relative;
}

.logo {
  height: 90%;
  width: auto;
}

/*--------------------------------------------------------------
--- Navigation Menu ---
--------------------------------------------------------------*/

/* Nav Menu Essentials */

.nav-menu,
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu ul {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
}

.nav-menu li {
  position: relative;
  white-space: nowrap;
}

.nav-menu > li {
  float: left;
}

.nav-menu li:hover > ul,
.nav-menu li.sfHover > ul {
  display: block;
}

.nav-menu ul ul {
  top: 0;
  left: 100%;
}

.nav-menu ul li {
  min-width: 180px;
}

/* Nav Menu Arrows */

.sf-arrows .sf-with-ul {
  padding-right: 22px;
}

.sf-arrows .sf-with-ul:after {
  content: '\f107';
  position: absolute;
  right: 8px;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
}

.sf-arrows ul .sf-with-ul:after {
  content: '\f105';
}

/* Nav Meu Container */

#nav-menu-container {
  float: right;
  margin: 0;
}

/* Nav Meu Styling */

.nav-menu a {
  padding: 10px 8px;
  text-decoration: none;
  display: inline-block;
  color: var(--gray-mid);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.nav-menu li:active > a,
.nav-menu .menu-active > a {
  color: var(--primary);
}

.nav-menu > li {
  margin-left: 10px;
}

.nav-menu ul {
  margin: 4px 0 0 0;
  padding: 10px;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  background: #fff;
}

.nav-menu ul li {
  transition: 0.3s;
}

.nav-menu ul li a {
  padding: 10px;
  color: #333;
  transition: 0.3s;
  display: block;
  font-size: 13px;
  text-transform: none;
}

.nav-menu ul li:hover > a {
  color: var(--primary);
}

.nav-menu ul ul {
  margin: 0;
}

/* Mobile Nav Toggle */

#mobile-nav-toggle {
  position: fixed;
  right: 0;
  top: 0;
  z-index: var(--z-index-menu-btn);
  margin: 60px 20px 0 0;
  border: 0;
  background: none;
  font-size: 24px;
  display: none;
  transition: all 0.4s;
  outline: none;
  cursor: pointer;
}

#mobile-nav-toggle i {
  color: var(--gray-mid);
}

/* Mobile Nav Styling */

#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  padding-top: 18px;
  padding-left: 20px;
  bottom: 0;
  z-index: var(--z-index-mobile-nav);
  background: rgba(255, 101, 41, 0.9);
  right: -260px;
  width: 260px;
  overflow-y: auto;
  transition: 0.4s;
}

#mobile-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#mobile-nav ul li {
  position: relative;
}

#mobile-nav ul li a {
  color: #fff;
  font-size: 16px;
  overflow: hidden;
  padding: 10px 22px 10px 15px;
  position: relative;
  text-decoration: none;
  width: 100%;
  display: block;
  outline: none;
}

#mobile-nav ul li a:hover {
  color: #fff;
}

#mobile-nav ul li li {
  padding-left: 30px;
}

#mobile-nav ul .menu-has-children i {
  position: absolute;
  right: 0;
  z-index: 99;
  padding: 15px;
  cursor: pointer;
  color: #fff;
}

#mobile-nav ul .menu-has-children i.fa-chevron-up {
  color: var(--primary);
}

#mobile-nav ul .menu-item-active {
  color: var(--primary);
}

#mobile-body-overly {
  width: 100%;
  height: 100%;
  z-index: var(--z-index-meniu-overlay);
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(255, 101, 41, 0.6);
  display: none;
}

/* Mobile Nav body classes */

body.mobile-nav-active {
  overflow: hidden;
}

body.mobile-nav-active #mobile-nav {
  right: 0;
}

body.mobile-nav-active #mobile-nav-toggle {
  color: #fff;
  z-index: var(--z-index-menu-btn);
}

/*--------------------------------------------------------------
--- Hero - intro section
--------------------------------------------------------------*/

.hero {
  position: relative;
  width: 100vw;
  overflow: hidden;
  background-color: #fff4f4;
  color: var(--gray-mid);
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.hero-content__image {
  width: 42%;
  position: relative;
  min-height: 300px;
}

.hero-content__image img {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: auto;
}

.hero-content__image img.mobile-image {
  display: none;
}

.hero-content__text {
  width: 45%;
  position: relative;
}

.hero-content__text::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: -1;
}

.hero-content__text h2 {
  font-family: var(--body-font);
  margin-bottom: 60px;
  font-size: 24px;
  line-height: 1.33;
}

.hero-content__text h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

.hero-content__text ul {
  list-style: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
}
.hero-content__text li {
  margin-bottom: 15px;
}

.hero-content__text li:last-child {
  margin-bottom: 0;
}

.hero-content__text i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--highlight);
}

/*--------------------------------------------------------------
--- Servicii
--------------------------------------------------------------*/

.bullet-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.bullet-list li::before {
  content: '\25EF'; /* \2022 unicode for a circle */
  color: var(--primary);
  position: absolute;
  top: 5px;
  left: 0;
  display: block;
  font-size: 11px;
  line-height: inherit;
}

/*--------------------------------------------------------------
--- Diagnostice 
--------------------------------------------------------------*/

.multicol {
  position: relative;
  column-width: 300px;
  column-gap: max(40px, 6%);
  column-rule: 1px dashed var(--primary);
}

.multicol--diagnostice {
  margin: 40px 0;
}

.bullet-list--red li::before {
  color: var(--highlight);
}

/*--------------------------------------------------------------
--- Activități 
--------------------------------------------------------------*/

.box {
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 10px 10px 15px rgba(73, 78, 92, 0.1);
  background: #fff;
  transition: 0.4s;
}

.box:hover {
  box-shadow: 0px 0px 30px rgba(73, 78, 92, 0.15);
  transform: translateY(-10px);
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
}

.box .icon {
  float: left;
}

.box .icon i {
  color: #444;
  font-size: 64px;
  transition: 0.5s;
  line-height: 0;
  margin-top: 34px;
}

.box .icon i:before {
  background: var(--hover);
  background: linear-gradient(45deg, var(--primary) 0%, var(--highlight) 100%);
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.box h4 {
  margin-left: 100px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 22px;
}

.box h4 a {
  color: #444;
}

.box p {
  font-size: 14px;
  margin-left: 100px;
  margin-bottom: 0;
  line-height: 24px;
}

/* Echipa
--------------------------------*/

.team-members-container {
  display: flex;
  margin-bottom: 40px;
}

.team-member {
  padding: 20px;
  margin: 20px;
  text-align: center;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  height: 92%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member__image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--light-gray);
  margin: 20px;
  flex-shrink: 0;
}

.team-member__name {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: var(--highlight);
}

.team-member__position {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.team-member__description {
  margin: 30px 0 20px;
}

.owl-stage {
  display: flex;
}

.owl-f,
.owl-dots {
  margin-bottom: 15px;
  text-align: center;
}

.owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd !important;
}

.owl-dot.active {
  background-color: var(--primary) !important;
}

/* echipa - colaboratori */

.bullet-list--colaborators li::before {
  color: #999;
}

.colaborator {
  font-size: 18px;
  color: var(--highlight);
  margin-bottom: 16px;
}

.colaborator__speciality {
  display: block;
  font-style: italic;
  font-size: 16px;
  color: var(--gray-mid);
}

/* Colaborari
--------------------------------*/

.flex {
  display: flex;
}

.flex .subsection + .subsection {
  margin-left: 90px;
}

.colaborators-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.colaborators-logos img {
  margin: 40px;
  height: auto;
  width: auto;
  max-height: 120px;
  max-width: 320px;
}

.logo-colaborari {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  height: 60%;
}

.logo-colaborari-rare-liver {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  height: 60%;
}

.logo-colaborari-ircpss {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 65%;
  height: 60%;
}

/* Doneaza
--------------------------------*/

.donations-container {
  align-items: flex-start;
}

.cta-block-link {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-block-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 4px 4px rgba(0, 0, 0, 0.06);
}

.cta-block-link__title {
  display: block;
  font-family: var(--brand-font);
  color: white;
  margin-bottom: 28px;
  text-align: center;
}

.cta-block-link__image {
  max-height: 238px;
  max-width: 300px;
  height: auto;
  width: auto;
}

/* modal */

.modal {
  background-color: rgba(255, 101, 41, 0.5); /* Black w/ opacity */
}

.modal__image {
  width: 100%;
  height: auto;
}

.modal__close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5em;
  color: black;
  z-index: var(--z-index-modal-close);
  opacity: 0.8;
  text-shadow: none;
}

/* Contact
--------------------------------*/
.section--contact__contact-info-container {
  display: flex;
  justify-content: space-evenly;
  padding-top: 20px;
}

.vertical-separator {
  width: 1px;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: var(--light-gray);
}

.section--contact .contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  text-align: center;
}

.no-wrap {
  display: inline-block;
}

.section--contact .contact-info a {
  color: var(--gray-mid);
}

.section--contact .contact-info i {
  font-size: 2.4em;
  margin-right: 0;
  height: 44px;
  width: auto;
  margin-bottom: 10px;
}

.section--contact .contact-info i.fa-envelope {
  font-size: 2.1em;
  display: flex;
  align-items: center;
}

.map-container {
  margin: 40px auto 60px;
}

/* ------- Form Styles ------------------------------ */

.form-container {
  width: 80%;
  max-width: 900px;
}

.form #sendmessage {
  color: var(--primary);
  border: 1px solid var(--primary);
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

.form #errormessage {
  color: red;
  display: none;
  border: 1px solid red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

.form #sendmessage.show,
.form #errormessage.show,
.form .show {
  display: block;
}

.form .validation {
  color: red;
  display: none;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
}

.form input,
.form textarea {
  padding: 10px 14px;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
}

.form button[type='submit'] {
  background: var(--primary);
  border: 0;
  border-radius: 3px;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  cursor: pointer;
}

.form button[type='submit']:hover {
  background: var(--hover);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.section--footer {
  background: #fff4f4;
}

.contact-info-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--footer .contact-info + .contact-info {
  margin-top: 10px;
}

.footer-logo {
  height: 80px;
}

.footer-logo img {
  height: 100%;
  width: auto;
}

.footer-logo--rhp {
  height: 90px;
  position: relative;
}

.footer-logo--rhp img {
  height: 160%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: 40px;
}

/********************* RESPONSIVE STYLES ********************/

/*--------- under 1200px ---------*/
@media (max-width: 1280px) {
  .base-container {
    padding: 0 40px;
  }
}

/*--------- under 1140px ---------*/
@media (max-width: 1140px) {
  .top-bar__hospital-link {
    display: none;
  }
}

/*--------- under 990px ---------*/
@media (max-width: 990px) {
  .top-bar {
    display: none;
  }

  #mobile-nav-toggle {
    display: block;
    margin: 20px 40px 0 0;
  }

  #nav-menu-container {
    display: none;
  }

  /* hero large tablet */

  .hero-content {
    padding: 60px 0;
  }

  .hero-content__image {
    width: 35%;
  }
  .hero-content__text {
    width: 55%;
  }
  .hero-content__text h2 {
    margin-bottom: 40px;
    font-size: 21px;
  }

  .hero-content__text h3 {
    margin-bottom: 20px;
    font-size: 21px;
  }

  /* contact section */
  .section--contact .contact-info {
    font-size: 14px;
  }
  .section--contact .contact-info i {
    font-size: 2.2em;
    height: 35px;
  }
  .section--contact .contact-info i.fa-envelope {
    font-size: 1.8em;
  }
  .contact-info__title {
    font-size: 1.3em;
  }

  /* footer */
  .footer-logo {
    height: 70px;
  }
  .footer-logo-container {
    height: 80px;
  }
}

/*--------- under 768px ---------*/
@media (max-width: 768px) {
  #mobile-nav-toggle {
    margin: 15px 20px 0 0;
  }
  .base-container {
    padding: 0 20px;
  }

  .back-to-top {
    bottom: 15px;
  }

  .logo-container {
    height: 70px;
  }

  #nav-menu-container {
    display: none;
  }

  /* hero tablet */

  .hero-content {
    flex-direction: column;
  }
  .hero-content__image {
    width: 50%;
  }
  .hero-content__image img {
    display: none;
  }
  .hero-content__image img.mobile-image {
    display: block;
    top: 45%;
  }

  .hero-content__text {
    width: 80%;
  }

  /* echipa */

  .team-member {
    padding: 40px;
  }

  /* colaboratori */

  .flex {
    display: block;
  }
  .flex .subsection + .subsection {
    margin: 40px 0;
  }

  .colaborators-logos img {
    margin: 20px;
    height: auto;
    width: auto;
    max-height: 100px;
    max-width: 280px;
  }

  /* contact */

  .section--contact__contact-info-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
  }

  .section--contact .contact-info {
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
  }
  .section--contact .contact-info * {
    margin-bottom: 0;
    margin-right: 10px;
  }
  .section--contact .contact-info i {
    margin-bottom: 0;
    margin-right: 20px;
  }
  .section--contact .contact-info .contact-info__title {
    margin-right: 30px;
  }

  .section--footer .flex-sb-c {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .footer-logo {
    margin-top: 80px;
    width: 50%;
    order: 2;
    display: flex;
    justify-content: center;
  }

  .footer-logo--rhp img {
    margin-left: 0;
  }

  .contact-info-footer {
    width: 100%;
    order: 1;
  }
}

/*--------- under 680px ---------*/
@media (max-width: 680px) {
  .hero-content__image {
    min-height: 250px;
  }

  .hero-content__text {
    width: 90%;
  }

  .donations-container {
    flex-direction: column;
    align-items: center;
  }

  .cta-block-link:last-child {
    margin-top: 20px;
  }

  .map-container {
    margin: 20px auto 40px auto;
  }

  .form-container {
    width: 90%;
  }
}

/*--------- under 576px ---------*/
@media (max-width: 576px) {
  .hero-content__image {
    min-height: 200px;
  }
  .hero-content__image img.mobile-image {
    top: 35%;
  }

  .form-container {
    width: 90%;
  }
}
