/*===== GOGGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");
/*===== VARIABLES SCSS =====*/
/*===== VARIABLES CSS =====*/
/*=== Colores ===*/
:root {
  --first-color: #0396A6;
  --dark-color: #000;
  --white-color: #F2F2F2;
}

/*=== Fuente y tipografia ===*/
:root {
  --body-font: 'Open Sans', sans-serif;
  --biggest-font-size: 3.5rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
}

@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 7rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
  }
}

/*=== z index ===*/
:root {
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/*===== BASE =====*/
*, ::before, ::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
}

h1, h2, h3, p {
  margin: 0;
}

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

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1200px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.l-header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-modal);
}

/*===== NAVBAR =====*/
.nav {
  height: 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    left: 0%;
    top: -100%;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 40%;
    padding: 2rem;
    text-align: center;
    z-index: var(--z-fixed);
    -webkit-transition: .3s;
    transition: .3s;
  }
}

.nav__logo {
  color: var(--white-color);
}

.nav__item {
  margin-bottom: 2rem;
}

.nav__link {
  color: var(--white-color);
}

.nav__toggle {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
}

/*=== Show menu ===*/
.show {
  top: 3rem;
}

/*===== HOME =====*/
.home {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.home__parallax {
  width: 100%;
  height: 100%;
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.home__parallax-img1 {
  background-image: url("/assets/img/imgm1.png");
  z-index: var(--z-normal);
}

.home__parallax-img2 {
  background-image: url("/assets/img/imgm2.png");
  z-index: var(--z-tooltip);
}

.home__parallax-img3 {
  background-image: url("/assets/img/imgm3.png");
  z-index: var(--z-fixed);
}

.home__parallax-img4 {
  background-image: url("/assets/img/imgm4.png");
  z-index: var(--z-fixed);
}

.home__title, .home__subtitle {
  position: absolute;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: var(--white-color);
}

.home__title {
  top: 32%;
  font-size: var(--biggest-font-size);
  z-index: var(--z-normal);
}

.home__subtitle {
  top: 44%;
  font-size: var(--h2-font-size);
  font-weight: bold;
  z-index: var(--z-tooltip);
}

.home__scroll {
  position: absolute;
  bottom: 2.5rem;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 1.5rem;
  z-index: var(--z-modal);
}

.home__scroll .bx-mouse {
  color: var(--white-color);
}

/*===== SECTION =====*/
.l-section {
  background-color: var(--dark-color);
}

.section {
  height: 100vh;
  max-width: 950px;
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 2rem 0;
  color: var(--white-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.section__data {
  margin-bottom: 3rem;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.section__img {
  width: 285px;
  border-radius: .5rem;
}

/*===== MEDIA QUERIES =====*/
@media screen and (min-width: 760px) {
  .nav {
    height: 4rem;
  }
  .nav__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .nav__item {
    margin-right: 3rem;
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .home__title {
    top: 27%;
  }
  .home__subtitle {
    top: 50%;
  }
  .section {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    margin-left: auto;
    margin-right: auto;
  }
  .section__text {
    padding-right: 4rem;
  }
  .section__img {
    width: 470px;
  }
}

@media screen and (min-width: 1200px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  border: none;
  font-family: inherit;
}

.contact-form button {
  padding: 0.75rem;
  font-weight: bold;
  background-color: var(--first-color);
  color: black;
  border: none;
  cursor: pointer;
}
.contact-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  background: #111;
  color: white;
  border: 1px solid #333;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.contact-form button {
  background: var(--first-color);
  color: black;
  font-weight: bold;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
}
.home__parallax-hero {
  /* background-image: url("../img/London.jpeg"); */
  background-image: url("../img/Edinburgh.jpeg");
  z-index: var(--z-normal);
}
.home__title {
  color: black;
}
/* ===== HERO + NAV COLOUR OVERRIDES ===== */

/* Top navigation: black */
.nav__logo,
.nav__link,
.nav__toggle {
  color: black;
}

/* Hero title: black */

.home__title {
  top: 60%;
  color: white;
}

.home__subtitle {
  top: calc(42% + 1.2em);
  color: white;
}



/* Scroll icon: force white */
.home__scroll .bx-mouse {
  color: white;
}
/* HERO TEXT FIX */

.home__hero-text {
  position: absolute;
  top: 42%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home__title {
  color: white;
  margin-bottom: 0.6em;
}

.home__subtitle {
  color: white;
  font-weight: bold;
}
/* ===== FINAL HERO TEXT FIX ===== */

.home__hero-text {
  position: absolute;
  top: 42%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: var(--z-tooltip);
}

/* reset old absolute positioning */
.home__hero-text .home__title,
.home__hero-text .home__subtitle {
  position: static;
}

/* visual styling */
.home__hero-text .home__title {
  color: white;
  margin-bottom: 0.6em;
}

.home__hero-text .home__subtitle {
  color: white;
  font-weight: bold;
}

/* =========================
   TEAM SECTION (CLEAN SLATE)
   ========================= */

#team {
  background-color: var(--dark-color);
  padding: 7rem 1rem;

}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Each person = one column, 3 fixed rows */
.team-column {
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: center;
}

/* Name + role */
.team-name h3 {
  margin: 0;
  color: var(--first-color);
  line-height: 1.25;
}

.team-name span {
  display: block;
  margin-top: 0.25rem;
  color: var(--white-color);
}

/* Bio row – shared height */
.team-bio {
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--white-color);
}

/* Image row – hard locked */
.team-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}

/* ===== TEAM INTERNAL SPACING ===== */

.team-name {
  margin-bottom: 1rem;
}

.team-bio {
  margin-bottom: 2rem;
}
.team-photo {
  margin-top: 0.5rem;
}
