/* ============================================
   Amparo Delgado - Ceramica Contemporanea
   Complete Stylesheet
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:200,300,400,600,700,800&subset=latin');

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: normal;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    background: #babdaa;
}

body {
    overflow-x: hidden;
}

a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
}

h2, h2 a {
    color: #fff !important;
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 300 !important;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 300 !important;
    line-height: 1.6;
}

/* Utility classes */
.heavy {
    font-weight: 800 !important;
}

.ingles {
    font-style: italic !important;
}

.page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================
   HEADER
   ============================================ */

.header-wrap {
    position: relative;
    height: 180px;
    z-index: 1000;
    background: transparent;
}

#logo {
    padding: 0;
    margin-top: 40px;
    margin-left: 30px;
    float: left;
}

#logo img {
    max-height: 67px;
    width: auto;
}

#extra {
    position: absolute;
    z-index: 200000;
    width: 100%;
    top: 50px;
    height: 0;
    text-align: center;
    pointer-events: none;
}

#extra-img {
    display: inline-block;
    width: 330px;
    height: 47px;
    margin-left: 100px;
    pointer-events: auto;
    background: url(../images/delgado-logo-left.svg) no-repeat 5%;
    background-size: contain;
}

.home-link {
    display: block;
    width: 323px;
    height: 55px;
    font-size: 0.1em;
    color: transparent;
}

.home-link a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0) !important;
}

/* Navigation */
#main-navigation {
    float: right;
    margin-right: 30px;
}

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

#main-navigation li {
    display: inline-block;
    margin-top: 35px;
    position: relative;
    vertical-align: middle;
}

#main-navigation li a {
    display: block;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
}

#main-navigation li a:hover {
    opacity: 0.7;
    text-decoration: none;
}

#main-navigation ul.menu > li > a {
    height: 10px !important;
    line-height: 10px;
}

.bio-btn,
.projects-btn,
.services-btn {
    font-weight: 400;
    padding-right: 35px !important;
}

.contact-btn {
    padding-right: 50px !important;
}

.fb-btn,
.tw-btn,
.inst-btn {
    padding-right: 10px !important;
}

.fb-btn a,
.tw-btn a,
.inst-btn a {
    line-height: normal !important;
    height: auto !important;
}

.social {
    display: inline-block !important;
    margin-top: 20px !important;
}

.social a {
    display: inline-block;
    vertical-align: middle;
}

.social img {
    width: 40px !important;
    min-width: 40px !important;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Spacing between social icons matches original */
.twitter {
    margin-left: 20px !important;
    margin-right: 20px !important;
}

/* ============================================
   MOBILE HEADER
   ============================================ */

#mobile-header {
    display: none;
    height: 120px;
    border-bottom: none;
    position: relative;
    z-index: 1001;
}

#mobile-logo {
    display: none !important;
}

#mobile-menu-wrap {
    display: none;
    background-color: #babdaa !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
}

#mobile-menu-wrap.active {
    display: block;
}

#mobile-menu {
    list-style: none;
    padding: 0;
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

#mobile-menu li {
    padding: 0;
}

#mobile-menu li a {
    display: block;
    text-transform: uppercase;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    font-size: 1.5em;
    line-height: 50px;
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
}

.menu-bars-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    cursor: pointer;
}

.menu-bars-link a {
    color: #fff;
    font-size: 30px;
    text-decoration: none;
}

.menu-bars-link a:hover {
    opacity: 0.7;
}

/* ============================================
   HOME PAGE
   ============================================ */

body.home {
    max-height: 100% !important;
    overflow: hidden !important;
    background: #000;
}

.home .header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
}

.home #main-container {
    height: 100vh;
    overflow: hidden;
}

.home .inner-page-wrap {
    margin-bottom: 0;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* Slider */
.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    display: none;
}

.slider-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    font-size: 25px;
    cursor: pointer;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    outline: none;
    transition: opacity 0.2s;
}

.slider-nav:hover {
    opacity: 0.6;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    padding: 0;
    outline: none;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   MAIN CONTAINER (inner pages)
   ============================================ */

#main-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    background: #babdaa;
}

.home #main-container {
    background: #babdaa;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.inner-page-wrap {
    padding: 0 !important;
    margin-top: 0 !important;
}

.page-content {
    padding-top: 0 !important;
}

/* ============================================
   BIO PAGE
   ============================================ */

.bio-image {
    width: 100%;
    margin-bottom: 45px;
    margin-top: 60px;
}

.bio-image:first-child {
    margin-top: 0;
    padding-top: 0;
}

.bio-image img {
    width: 100%;
    height: auto;
}

.bio-columns {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.bio-column {
    flex: 1;
    min-width: 280px;
    padding: 0 15px;
}

.bio-column p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300 !important;
    line-height: 1.6;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 1px;
}

.resume-section ul {
    list-style: none;
    padding: 0;
}

.resume-section ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    padding-left: 0;
}

.resume-section ul li .year {
    font-weight: 600;
}

/* ============================================
   PROYECTOS PAGE (Masonry Grid)
   ============================================ */

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.project-item {
    width: 33.333%;
    padding: 15px;
}

.project-item a {
    display: block;
    text-decoration: none;
}

.project-item a:hover {
    opacity: 0.85;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
}

.project-item h2 {
    text-align: left;
    padding: 20px 0;
    font-size: 16px !important;
    font-weight: 300 !important;
    letter-spacing: 1px;
}

/* ============================================
   SERVICIOS PAGE (Gallery Grid)
   ============================================ */

.service-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px !important;
    padding: 0 !important;
}

.service-row .service-cell {
    flex: 1;
    min-width: 280px;
    padding: 0 !important;
    margin: 0 !important;
}

.service-row .service-cell img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTACTO PAGE
   ============================================ */

.contact-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.contact-slider .slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 1;
}

.contact-info {
    position: relative;
    z-index: 10;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 30px !important;
    color: #fff !important;
    font-weight: 300 !important;
    margin-bottom: 115px !important;
}

.contact-info a {
    color: #fff !important;
    font-size: 18px !important;
    text-decoration: none;
}

.contact-info a:hover {
    opacity: 0.7;
}

/* ============================================
   PROJECT DETAIL (Single Project)
   ============================================ */

.project-detail {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-detail img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.project-detail .back-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300 !important;
    margin-top: 30px;
    margin-bottom: 60px;
    color: #fff;
    float: right;
    text-transform: uppercase;
    text-align: right;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0.7;
}

.project-detail .back-btn:hover {
    opacity: 1;
}

.project-detail .first-img {
    margin-top: 0;
}

.project-detail .size-full {
    margin-top: 40px;
}

/* ============================================
   FOOTER
   ============================================ */

#footer-wrap {
    position: relative;
    z-index: 2;
}

.home #footer-wrap {
    display: none;
}

#copyright {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border-top: 0;
    line-height: 1em !important;
    background-color: rgba(0, 0, 0, 0);
    text-align: center;
}

#copyright p {
    margin-bottom: 0 !important;
    line-height: 15px;
    font-size: 12px;
    color: #888;
    font-weight: 300 !important;
}

#copyright a {
    color: #888;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media only screen and (min-width: 1600px) {
    .header-wrap {
        height: 220px;
    }

    #logo {
        margin-top: 75px;
        margin-left: 80px;
    }

    #logo img {
        max-height: 67px;
    }

    #extra {
        top: 87px;
        text-align: center;
    }

    #main-navigation li {
        margin-top: 85px;
    }

    #main-navigation li a {
        font-size: 16px;
    }
}

@media screen and (max-width: 1600px) {
    .header-wrap {
        height: 150px !important;
    }

    #logo {
        margin-top: 30px !important;
        margin-left: 30px !important;
    }

    #extra {
        top: 45px !important;
        text-align: center;
    }

    #main-navigation li {
        margin-top: 40px !important;
    }

    .container {
        max-width: 1000px;
    }
}

@media screen and (max-width: 1366px) {
    .header-wrap {
        height: 120px !important;
    }

    .container {
        margin-left: 80px !important;
        max-width: 900px;
    }

    .bio-image {
        margin-top: 10px;
    }

    .contact-info {
        margin-bottom: 60px !important;
    }
}

@media screen and (max-width: 1280px) {
    .header-wrap {
        height: 120px !important;
    }

    .container {
        margin-left: 80px !important;
        max-width: 800px;
    }
}

@media screen and (max-width: 1024px) {
    .header-wrap {
        height: 120px !important;
    }

    .container {
        margin-left: 50px !important;
        max-width: 800px;
    }

    /* Hide desktop nav, show mobile toggle */
    #main-navigation {
        display: none;
    }

    .social {
        display: none !important;
    }

    #mobile-header {
        display: block;
    }
}

@media screen and (max-width: 994px) {
    .container {
        margin: 0 auto !important;
    }

    #mobile-header {
        display: block;
    }

    #main-navigation {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .container {
        margin: auto !important;
        max-width: 90% !important;
    }

    .project-item {
        width: 50%;
    }

    .bio-column {
        flex: 100%;
        padding: 0;
    }

    .bio-image {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .service-row .service-cell {
        flex: 100%;
    }

    .contact-info {
        font-size: 16px !important;
        line-height: 26px !important;
        margin-bottom: 60px !important;
    }
}

@media screen and (max-width: 640px) {
    #extra {
        text-align: left;
        margin-left: 20px;
        max-width: 40%;
        top: 20px !important;
    }

    .container {
        padding: 0 10px !important;
        margin-top: 10px !important;
    }

    #mobile-header {
        height: 80px;
    }

    #mobile-menu {
        top: 50px;
    }

    #mobile-menu li a {
        margin: 0 auto;
        font-size: 1.2em;
        line-height: 20px;
    }

    .project-item {
        width: 100%;
        padding: 10px 0;
    }

    .slider-nav {
        display: none;
    }
}

@media screen and (max-width: 420px) {
    #extra-img {
        display: none;
    }
}

/* Responsive orientation helpers */
@media all and (orientation: portrait) {
    .img-desktop {
        display: none !important;
    }
}

@media screen and (orientation: landscape) {
    .img-mobile {
        display: none !important;
    }
}

/* Slider slide image visibility */
.slider-slide.img-desktop {
    display: block;
}

.slider-slide.img-mobile {
    display: none;
}

@media all and (orientation: portrait) {
    .slider-slide.img-desktop {
        display: none !important;
    }
    .slider-slide.img-mobile {
        display: block !important;
    }
}

@media screen and (orientation: landscape) {
    .slider-slide.img-mobile {
        display: none !important;
    }
    .slider-slide.img-desktop {
        display: block !important;
    }
}
