/*
Theme Name: AOJND
Theme URI: https://studioastein.com
Author: Studio A. Stein
Author URI: https://studioastein.com
Description: Theme designed bespoke for AOJND Interiors
Version: 1.0.0
Text Domain: aojnd
*/

:root { 
  --main-color: #3498db;
  --font-size-1: 0.9rem;
  --font-size-2: 0.6rem;
  --line-height-1: 1.3rem;
  --line-height-2: 0.9rem;
}

body, 
html,
p,
ul,
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

* {
  font-family: "avenir-lt-pro", sans-serif;
  font-weight: 200;
  font-style: normal;
  text-rendering: geometricPrecision;
}

body {
  background-color: var(--site-background-color);
}

#hero,
#intro {
  inset: 0;	
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#hero {
  position: absolute;
}

#intro {
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: fixed;
}

#hero {
  z-index: 7000;
}

#hero .hero-slide {
  display: none;
}

#hero .hero-slide:first-child {
  display: block;
}

#hero .hero-slide {
  position: absolute;
  inset: 0;
}

#hero .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#intro #intro-logo {
  width: 23vw;
  height: auto;
  opacity: 0; 
}

#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 8000;
}

body.intro #header,
body.intro #hero {
  opacity: 0;
}

#header #header-logo {
  margin: 3.8vh 0;
}

#header #header-logo a img {
  width: auto;
  display: block;
}

#header nav ul li {
  list-style: none;
}

#header nav ul li a {
  color: #000;
  font-size: var(--font-size-1);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1pt;
  padding-bottom: 3px;
  position: relative;
}

#header nav ul li a::after {
  content: '';
  width: 0;
  height: 1px;
  background: #000;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity .4s ease-in-out, width .4s ease-in-out;
}

#header nav ul li a:hover::after,
#header nav ul li.current-menu-item a::after {
  opacity: 1;
  width: 100%;
}

.col.thumbnail a {
  text-decoration: none;
  color: #000;
  display: block;
}

.col.thumbnail .col-img {
  aspect-ratio: 4/3;
  width: 100%;
  overflow: hidden;
}

.col.thumbnail .col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.col.thumbnail .col-text h2,
.col.thumbnail .col-text h3 {
  margin: 0;
}

.col.thumbnail .col-text h2 {
  font-size: var(--font-size-1);
  text-transform: uppercase;
  letter-spacing: 1pt;
  transition: opacity .6s ease-in-out;
}

.col.thumbnail .col-text h3 {
  font-size: var(--font-size-2);
  font-style: italic;
  transition: opacity 1.2s ease-in-out;
}

.col.thumbnail a:hover h2,
.col.thumbnail a:hover h3 {
  opacity: 1;
}

.col.img img {
  width: 100%;
  height: auto;
}

.col.txt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: start;
}

.col.txt .txt-header {
  margin-bottom: 15px;
  text-align: left;
  width: 100%;
}

.col.txt .txt-header h1,
#services .section .col.txt h2,
#services .section .col.txt h3 {
  font-size: var(--font-size-1);
  line-height: var(--line-height-1);
  text-transform: uppercase;
  letter-spacing: 1pt;
}

#services .section .col.txt h2,
#services .section .col.txt h3 {
  margin-bottom: 10px;
}

.col.txt .txt-header span {
  font-size: var(--font-size-2);
  line-height: var(--line-height-2);
}

.col.txt .txt-header * {
  display: block;
}

.col.txt .txt-header h2 {
  font-size: var(--font-size-1);
  line-height: var(--line-height-1);
  margin: 10px 0;
}

.col.txt p {
  font-size: var(--font-size-1);
  line-height: var(--line-height-1);
  margin-bottom: 15px;
}

#services .section .col.img {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #eee;
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#services .section .col.img img {
  width: 100%;
  height: auto;
  display: block;
}

/*
#services .section.grid:nth-child(even) .col:first-child {
  order: 2;
}
*/

#services .section .col.txt,
#about .section .col.txt {
  align-items: flex-start;
  max-width: 500px;
  margin-left: auto;
}

#services .section .col.img img {
  width: 100%;
  height: auto;
  display: block;
}

#services .section .col.txt h2 {
  margin-bottom: 10px;
}

#services .section .col.txt a,
#contact .section .col.txt a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

#contact .section .col.txt {
  display: unset;
}

#contact .section .col.txt hr {
  height: 30px;
  border: 0;
  width: 100%;
  display: block;
}

#footer {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 30px 30px 30px 30px;
  box-sizing: border-box;
  display: flex;
  z-index: 8000;
  background: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

body.intro #footer {
  background: unset;
}

#footer div {
  margin-right: 30px;
}

#footer p {
  font-size: var(--font-size-2);
  line-height: var(--line-height-2);
  margin: 0;
  padding: 0;
}

#footer p,
#footer p a {
  color: #000;
}

body.intro #footer {
  opacity: 0;
}

#footer img {
  width: 100px;
  height: auto;
  margin-top: 4px;
  margin-right: 10px;
}

/* MOBILE */
@media (max-width: 900px) {
  #header #header-hamburger,
  #header #header-hamburger a {
  	display: block;
  }
  #header nav ul {
    text-align: center;
    padding: 0 0 10px 0;
    background-color: transparent;
  }
  #header nav ul li {
  	display: inline-block;
  	margin: 0 5px;
  }
  #header nav ul li a {
    font-size: var(--font-size-2);
  }
  #header #header-hamburger {
    position: fixed;
    right: 3.8vw;
    top: 5.8vh;
  }
  #header #header-hamburger a {
  	color: #000;
  	text-decoration: none;
    font-size: var(--font-size-2);
  	line-height: 0.6;
  }
  #header #header-logo a img {
    height: 4vh;
  }
  #header #header-menu {
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .6s ease-in-out;
  }
  body.menu #header #header-menu {
    opacity: 1;
    max-height: 100vh;
  }
  .grid {
    margin-top: 11.6vh;
  }
  .col.thumbnail .col-text,
  .grid.grid-2 .col.txt {
    padding: 1.9vh 3.8vh;
  }
  .grid.grid-2 {
    display: flex;
    flex-direction: column-reverse;
  }
  .grid.grid-2 .col.img img {
    margin-bottom: 1.9vh;
  }
}



/* DESKTOP */
@media (min-width: 900px) {
  #header #header-hamburger {
    display: none;
  }
  #header #header-logo a img {
    height: 3.8vh;
  }
  #header nav ul li {
    display: inline-block;
    margin: 0 3.8vh;
  }
  #wrapper {
    padding: calc(19vh + 20px) 0 3.8vh 0;
    margin: 0 auto;
    width: 80%;
    min-width: 1000px;
    max-width: 1800px;
  }
  .grid {
    display: grid;
    gap: 20px;
    padding-bottom: 140px;
  }
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2-1 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
  }
  .grid.hover .col {
    transition: opacity .6s ease-in-out;
  }
  .grid.hover:hover .col {
    opacity: .4;
  }
  .grid.hover .col:hover {
    opacity: 1;
  }
  .col.thumbnail .col-img {
    margin-bottom: 10px;
  }
  .col.thumbnail .col-text h2,
  .col.thumbnail .col-text h3 {
    opacity: 0;
  }
  .col.txt {
    position: sticky;
    top: calc(19vh + 20px);
  }
  .col.txt p {
    text-align: justify;
  }
}

