/*
 * Site styles, on top of Bootstrap 4.0.0-beta.
 * Based on Start Bootstrap - Agency v4.0.0-beta (MIT,
 * https://github.com/BlackrockDigital/startbootstrap-agency/blob/master/LICENSE)
 */

:root {
  --accent: #79D2D2;
  --accent-hover: #79D2D3;
  --heading-font: 'Century Gothic', 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif-font: 'Century Gothic', 'Droid Serif', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---- Global ---------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  font-family: 'Century Gothic', 'Roboto Slab', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: var(--accent);
}

p {
  line-height: 1.75;
}

a {
  color: var(--accent);
}

a.active, a:active, a:focus, a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-family: var(--heading-font);
  text-transform: uppercase;
}

section {
  padding: 100px 0;
}

section h2.section-heading {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 15px;
}

section h3.section-subheading {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 75px;
  text-transform: none;
  font-family: var(--serif-font);
}

/* Anchor targets land just below the sticky navbar; site.js keeps
   --nav-height equal to its real height. */
[id] {
  scroll-margin-top: calc(var(--nav-height, 70px) + 10px);
}

@media (min-width: 768px) {
  section {
    padding: 150px 0;
  }
}

::selection {
  background: var(--accent);
  text-shadow: none;
}

img::selection {
  background: transparent;
}

/* ---- Header ----------------------------------------------------------------- */
/* Desktop: the drawing with the big logo sits at the top of the page and
   scrolls away; the menu bar below it then sticks to the top and the small
   logo slides in next to the name. Phones: no drawing, bar always on top. */

.masthead {
  display: none;
  height: 260px;
  background: url("../img/logo_imagen2.png") no-repeat center bottom / auto 100%;
}

#mainNav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: white;
  border: none;
}

/* Logo + name on the left; on small screens the Menu button sits on the right. */
#mainNav .navbar-top {
  display: flex;
  align-items: center;
  min-width: 0;
}

#mainNav .navbar-logo {
  display: block;
  flex-shrink: 0;
  width: 36px;
  margin-right: 12px;
}

#mainNav .navbar-logo img {
  display: block;
  width: 100%;
  height: auto;
}

#mainNav .navbar-brand {
  margin-bottom: 0;
  font-size: 1em;
  color: black;
  font-family: 'Century Gothic', 'Helvetica Neue', Helvetica, Arial, cursive;
}

#mainNav .navbar-toggler {
  font-size: 12px;
  padding: 13px;
  color: white;
  border: 0;
  background-color: var(--accent);
  font-family: var(--heading-font);
  text-transform: uppercase;
  cursor: pointer;
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-size: 90%;
  font-weight: 400;
  padding: 0.75em 0;
  letter-spacing: 1px;
  color: black;
  font-family: var(--heading-font);
  text-transform: uppercase;
}

#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--accent);
}

#mainNav .navbar-nav .nav-social .fa {
  font-size: 1.4em;
  vertical-align: -0.15em;
}

#portfolio {
  padding-top: 50px;
}

@media (max-width: 991.98px) {
  #mainNav .navbar-top {
    width: 100%;
  }

  #mainNav .navbar-toggler {
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  #mainNav .navbar-brand {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .masthead {
    display: block;
  }

  #mainNav .navbar-logo {
    width: 0;
    margin-right: 0;
    opacity: 0;
    transform: scale(0.4) translateX(-20px);
    transition: width 0.3s, margin-right 0.3s, opacity 0.3s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  #mainNav.navbar-stuck {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  }

  #mainNav.navbar-stuck .navbar-logo {
    width: 44px;
    margin-right: 14px;
    opacity: 1;
    transform: none;
  }

  #mainNav .navbar-brand {
    font-size: 1.25em;
    padding: 12px 0;
  }

  #mainNav .navbar-nav .nav-item .nav-link {
    padding: 1.1em 0.6em !important;
  }

  /* Name and menu share one row. When space runs out the name breaks into
     two lines ("Andrea Estalayo" / "/ Interior Architect") and, as a last
     resort, the menu wraps - they never overlap. */
  #mainNav .navbar-top {
    flex: 1 10 auto;
    min-width: 0;
  }

  #mainNav .navbar-collapse {
    flex: 0 1 auto;
    min-width: 0;
  }

  #mainNav .navbar-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #mainNav .navbar-brand {
    white-space: normal;
  }

  #mainNav .navbar-brand b,
  #mainNav .navbar-brand span {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    padding: 1.1em 0.85em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mainNav .navbar-logo {
    transition: none;
  }
}

/* ---- Portfolio grid --------------------------------------------------------- */

#portfolio * {
  z-index: 2;
}

#portfolio .portfolio-item {
  right: 0;
  margin: 0 0 15px;
}

#portfolio .portfolio-item .portfolio-link {
  position: relative;
  display: block;
  max-width: 400px;
  margin: 0 auto;
  cursor: pointer;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all ease 0.5s;
  opacity: 0;
  background: rgba(192, 192, 192, 0.85);
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover:hover {
  opacity: 1;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content {
  font-size: 20px;
  position: absolute;
  top: 50%;
  width: 100%;
  height: 20px;
  margin-top: -12px;
  text-align: center;
  color: white;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content i {
  margin-top: -12px;
}

#portfolio .portfolio-item .portfolio-caption {
  max-width: 400px;
  margin: 0 auto;
  padding: 25px;
  text-align: center;
  background-color: white;
}

#portfolio .portfolio-item .portfolio-caption h4 {
  margin: 0;
  text-transform: none;
}

#portfolio .portfolio-item .portfolio-caption p {
  font-size: 16px;
  font-style: italic;
  margin: 0;
  font-family: 'Droid Serif', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Video thumbnails are 16:9; grey bands make them match the 4:3 photo cards. */
.portfolio-video {
  display: block;
  padding: 0;
  border-top: 32px solid lightgrey;
  border-bottom: 33px solid lightgrey;
}

@media (min-width: 767px) {
  #portfolio .portfolio-item {
    margin: 0 0 30px;
  }
}

/* ---- Project gallery (modal on the home page, or standalone page) ----------- */

.portfolio-modal .modal-dialog {
  max-width: none;
  height: 100%;
  margin: 0;
}

.portfolio-modal .modal-content {
  min-height: 100%;
  padding: 20px 0;
  text-align: center;
  border: none;
  border-radius: 0;
  background-clip: border-box;
  box-shadow: none;
}

.portfolio-modal .modal-content p {
  margin-bottom: 30px;
}

.portfolio-modal .modal-content img {
  margin-bottom: 30px;
}

.portfolio-modal .close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  display: block;
  width: 75px;
  height: 75px;
  cursor: pointer;
  background-color: transparent;
}

.portfolio-modal .close-modal:hover {
  opacity: 0.3;
}

.portfolio-modal .close-modal .lr {
  z-index: 1051;
  width: 1px;
  height: 75px;
  margin-left: 35px;
  transform: rotate(45deg);
  background-color: #222222;
}

.portfolio-modal .close-modal .lr .rl {
  z-index: 1052;
  width: 1px;
  height: 75px;
  transform: rotate(90deg);
  background-color: #222222;
}

.project-header {
  margin: 0 auto 3rem;
}

.project-header img {
  display: block;
  margin: 0 auto;
}

.portfolio-modal .modal-content .project-header img {
  margin-bottom: 0;
}

.project-loading {
  padding: 30vh 0;
  color: #999;
}

.project .card-columns {
  column-count: 1;
}

@media (min-width: 976px) {
  .project .card-columns {
    column-count: 2;
  }
}

.project .card {
  border: none;
  border-radius: 0;
}

.project .card-columns .card {
  margin-bottom: 0;
}

.project .project-text {
  margin-bottom: 30px;
}

.project .project-caption {
  text-align: left;
}

/* ---- About timeline --------------------------------------------------------- */

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1.5px;
  content: '';
  background-color: #f1f1f1;
}

.timeline > li {
  position: relative;
  min-height: 50px;
  margin-bottom: 50px;
}

.timeline > li:after,
.timeline > li:before {
  display: table;
  content: ' ';
}

.timeline > li:after {
  clear: both;
}

.timeline > li .timeline-panel {
  position: relative;
  float: right;
  width: 100%;
  padding: 0 20px 0 100px;
  text-align: left;
}

.timeline > li .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 80px;
  height: 80px;
  margin-left: 0;
  text-align: center;
  color: white;
  border: 7px solid #f1f1f1;
  border-radius: 100%;
  background-color: var(--accent);
}

.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
  padding: 0 20px 0 100px;
  text-align: left;
}

.timeline > li:last-child {
  margin-bottom: 0;
}

.timeline .timeline-heading h4 {
  margin-top: 0;
  color: inherit;
}

.timeline .timeline-heading h4.subheading {
  text-transform: none;
}

.timeline .timeline-body > ul,
.timeline .timeline-body > p {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .timeline:before {
    left: 50%;
  }

  .timeline > li {
    min-height: 100px;
    margin-bottom: 100px;
  }

  .timeline > li .timeline-panel {
    float: left;
    width: 41%;
    padding: 0 20px 20px 30px;
    text-align: right;
  }

  .timeline > li .timeline-image {
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
  }

  .timeline > li.timeline-inverted > .timeline-panel {
    float: right;
    padding: 0 30px 20px 20px;
    text-align: left;
  }
}

@media (min-width: 992px) {
  .timeline > li {
    min-height: 150px;
  }

  .timeline > li .timeline-panel {
    padding: 0 20px 20px;
  }

  .timeline > li .timeline-image {
    width: 150px;
    height: 150px;
    margin-left: -75px;
  }

  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 20px 20px;
  }
}

@media (min-width: 1200px) {
  .timeline > li {
    min-height: 170px;
  }

  .timeline > li .timeline-panel {
    padding: 0 20px 20px 100px;
  }

  .timeline > li .timeline-image {
    width: 170px;
    height: 170px;
    margin-left: -85px;
  }

  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 100px 20px 20px;
  }
}

/* Work experience: one entry per role, separated by thin lines. */
.experience {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.experience li {
  padding: 16px 0;
  border-top: 1px solid #e9ecef;
}

.experience li:first-child {
  padding-top: 6px;
  border-top: 0;
}

.experience-dates {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--heading-font);
}

.timeline .experience-role {
  margin: 4px 0 2px;
  font-size: 16px;
  text-transform: none;
  color: #212529;
}

.timeline .experience-company {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6c757d;
}

/* ---- Contact ---------------------------------------------------------------- */

section#contact {
  background-color: white;
}

section#contact .section-heading {
  color: black;
}

.contact-link {
  margin-bottom: 30px;
}

.contact-link .btn .fa {
  margin-right: 8px;
}

.contact-link p {
  margin-top: 15px;
  font-style: italic;
  font-family: 'Droid Serif', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

footer {
  padding: 25px 0;
  text-align: center;
}

footer span.copyright {
  font-size: 90%;
  line-height: 40px;
  font-family: var(--heading-font);
  text-transform: uppercase;
}

ul.social-buttons {
  margin-bottom: 0;
}

ul.social-buttons li a {
  font-size: 20px;
  line-height: 40px;
  display: block;
  width: 40px;
  height: 40px;
  transition: all 0.3s;
  color: white;
  border-radius: 100%;
  outline: none;
  background-color: #222222;
}

ul.social-buttons li a:active,
ul.social-buttons li a:focus,
ul.social-buttons li a:hover {
  background-color: var(--accent);
}

/* ---- Buttons ---------------------------------------------------------------- */

.btn-primary,
.btn-xl {
  font-weight: 700;
  color: white;
  font-family: var(--heading-font);
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary {
  border-color: var(--accent);
  background-color: var(--accent);
}

.btn-xl {
  font-size: 18px;
  padding: 20px 40px;
  border-radius: 3px;
  border-color: black;
  background-color: gray;
}

.btn-primary:focus, .btn-primary.focus,
.btn-xl:focus, .btn-xl.focus {
  color: white;
  border-color: #b48b01;
  background-color: var(--accent-hover);
}

.btn-primary:hover, .btn-primary:active, .btn-primary.active,
.btn-xl:hover, .btn-xl:active, .btn-xl.active {
  color: white;
  border-color: #f6bf01;
  background-color: var(--accent-hover);
  background-image: none;
}

.btn-primary:active:focus, .btn-primary:active:hover,
.btn-xl:active:focus, .btn-xl:active:hover {
  color: white;
  border-color: #b48b01;
  background-color: #dcab01;
}

.btn-primary:disabled, .btn-primary.disabled,
.btn-xl:disabled, .btn-xl.disabled {
  border-color: var(--accent);
  background-color: var(--accent);
}
