/*
Theme Name: Property
Author: Adventist Media
*/

@font-face {
    font-family: 'Advent Sans SPD';
    src: url('font/advent-sans-spd.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --clr-gold: #ebbb34;
  --clr-adventist-flame: #ff8200;
  --clr-gold-hover: #dfaa16;
  --clr-gold-darker: #b68a12;
  --clr-light-grey: #f5f5f5;
  --clr-charcoal: #3d3935;
  --main-width: 1100px;
  --tra-short: 250ms;

  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body, input, button, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  @media (min-width: 750px) {font-size: 17px;}
  color: #222;
}

body {
  margin: 0;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

input[type="text"], input[type="email"], textarea {
  padding: 0.5em;
  border: 1px solid #ccc;
	border-radius: 1em;
	box-sizing: border-box;
}

button, input[type="submit"], .wp-block-button__link, .wp-block-post-excerpt__more-link, header nav a {
  background: transparent;
  color: inherit;
  padding: 0.3em 1em;
  border: 1px solid #888;
  border-radius: 99em;
  font-size: 1em;
  font-weight: 500;
  transition: var(--tra-short);
  cursor: pointer;
}

:is(button, input[type="submit"], .wp-block-button__link, .wp-block-post-excerpt__more-link):hover {
  border-color: var(--clr-adventist-flame);
  background-color: var(--clr-adventist-flame);
  color: white;
}

.big-button {
  font-size: 1.5em;
}

main > h1:first-child {
  text-align: center;
  margin-bottom: 1.5em;
}

.post-nav {
  margin-top: 3em;
  display: flex;
  justify-content: space-between;
  gap: 3em;
  font-size: 0.75em;
  line-height: 1.2;
  text-wrap: balance;
  @media (min-width: 500px) {font-size: 1em;}
  > :last-child {text-align: right;}
  a {
    color: #bbb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
    i {
      font-size: 1.5em;
      padding: 6px 4px;
      @media (min-width: 500px) {padding: 8px 5px;} 
      border-radius: 99em;
      transition: var(--tra-short);
    }
    &:hover i {
      background: #bbb;
      color: #f4f4f4;
    }
  }
}

.post-meta {
  font-size: 0.75em;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

@media (max-width: 500px) {
  .wpcf7-form-control {
    width: 100%;
  }
}

.wpcf7 label {
  color: #888;
}

.wpcf7 form .wpcf7-response-output {
	margin: 2em 0 1em;
	padding: 0.5em 1em;
	border: 0;
	background-color: yellow;
	line-height: 1.3;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-left: 10px solid #028126;
	background-color: #0281263f;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
	border-left: 10px solid #d70000;
	background-color: #d700003f;
}

.wpcf7-not-valid-tip {
  color: #d70000;
}

@media (min-width: 800px) {
	.fifty-fifty {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-column-gap: 2em;
	}
}

.wp-block-media-text.is-stacked-on-mobile {
  gap: 2em 5vw;
  > .wp-block-media-text__content {
    padding: 0;
  }
}

.wp-embed-aspect-16-9>.wp-block-embed__wrapper, .aspect-16-9 {
	width: 100%;
	aspect-ratio: 16/9;
}

.wp-block-embed__wrapper>iframe {
  width: 100%;
  height: 100%;
}

.wp-block-contact-form-7-contact-form-selector {
  textarea {width: 100%;}
}

.taxonomy-post_tag.wp-block-post-terms .wp-block-post-terms__separator{
  display: none;
}

.article-grid, .estate-grid > div, .estate-grid-2 > div {
  display: grid;
  gap: 3em;
  @media (min-width: 600px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4em 2em;
  }
  .wp-block-image {
    margin-bottom: 0;
    img {border-radius: 1em;}
  }
  .wp-block-buttons {
    font-size: 0.9em;
  }
  .wp-block-group-is-layout-flex {
    gap: 1em;
  }
  @media (min-width: 600px) {
    .wp-block-image {
      width: 100%;
      height: 100%;
      min-height: 200px;
      position: relative;
      img {
        width: 100%;
        height: 100%;
        position: absolute;
        object-fit: cover;
      }
    }
  }
}

.article-grid .card1, .estate-grid-2 > div > div {
  display: flex;                                  /* on narrow screens, make this the flex column */
  flex-direction: column;
  align-items: start;
  gap: 1em;
  figure {order: 1;}                              /* ... and show the image before the excerpt and the button */
  p {order: 2;}
  a.wp-block-button__link, .wp-block-buttons {order: 3;}
  @media (min-width: 600px) {
    display: contents;                            /* on wide screens, remove this element so that its child elements become children of .article-grid */
    figure, p, a.wp-block-button__link, .wp-block-buttons {order: unset;}
  }
}

.article-grid .card2, .estate-grid-2 > div > div > div {
  display: contents;                              /* on narrow screens, remove this element so that its child elements become children of .card1 */
  > * {margin: 0;}
  @media (min-width: 600px) {
    display: flex;                                /* on wide screens, make this the flex column */
    flex-direction: column;
    align-items: start;
    gap: 1em;
  }
}

.form-row {
  display: flex;
  gap: 0 2em;
  flex-wrap: wrap;
}

ul.post-tags, .taxonomy-post_tag.wp-block-post-terms {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  display: flex;
  gap: 1em;
  > li {
    display: contents;
  }
  a {
    text-decoration: none;
    background-color: #888;
    color: white;
    padding: 0 8px;
    border-radius: 2em 4px 4px 2em;
    &::before {
      content: '• ';
    }
  }
}

nav {                                             /* basic menu */
  display: flex;
  gap: 0.5em 1em;
}

header, footer {
  padding: 1.5em;
  a {
    text-decoration: none;
    color: inherit;
    &:hover {color: var(--clr-adventist-flame);}
  }
}

header {
  padding: 0.85em 1.5em;
  @media (min-width: 500px) {padding: 0.85em 10vw;}
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  .logo {
    height: 60px;
    aspect-ratio: 3.5;
    background-image: url(img/logo-property.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
  }
  nav {
    display: flex;
    align-items: center;
    gap: 1px;
    &:has(>:last-child.button) {margin-right: -1em;}
    a {
      border: 0;
      &.button {
        background: var(--clr-adventist-flame);
        margin-left: 1em;
        margin-right: 1em;
      }
      &:hover {
        background: black;
        color: white;
      }
    }
  }
}

footer {
  background: var(--clr-charcoal);
  color: #ffffffcc;
}

footer a {
  color: inherit;
  &:hover {color: white;}
  text-decoration: none;
  transition: var(--tra-short);
}


footer .columns {
  display: flex;
  gap: 1em;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2em;
}

footer .columns>*:first-child {
  text-align: center;
}

footer nav {
  justify-content: center;
  margin-bottom: 1.5em;
}

footer .acknowledge {
  font-size: 0.65em;
  margin-bottom: 0;
  text-align: center;
  color: rgb(255 255 255 / 0.7);
  line-height: 1.4;
}

main {
  width: min(var(--main-width), 100%);
  padding: 1em max(1em, 5vw) 4em;
  container-type: inline-size;
  flex-grow: 1;
  align-self: center;
  box-sizing: border-box;
}

.alignfull, .wp-block-cover {
  margin-left: calc((100vw - 100cqw) / -2);
  margin-right: calc((100vw - 100cqw) / -2);
}

.wp-block-cover {
  padding-left: calc((100vw - 100cqw) / 2);
  padding-right: calc((100vw - 100cqw) / 2);
}

.wp-block-cover.alignwide {
  padding-left: calc((100vw - 100cqw) / 3);
  padding-right: calc((100vw - 100cqw) / 3);
}

.wp-singular .featured-image img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

.form-section {
  padding-top: 3em;
}

.home {
  header {
    position: absolute;
    z-index: 9;
    left: 0;
    right: 0;
    top: 0;
    color: white;
    .logo {
      background-image: url(img/logo-property-white.svg);
    }
    nav {
      a:hover {
        background: white;
        color: var(--clr-adventist-flame);
      }
    }
  }
  main {
    padding-top: 0;
    padding-bottom: 0;
  }
  .banner-video {
    height: 100svh;
    position: relative;
    color: white;
    margin-bottom: 0;
    video {
      height: 100%;
      object-fit: cover;
    }
    .gradient {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-image: linear-gradient(0deg, rgb(0% 0% 0% / 0) 0%, rgb(0% 0% 0% / 0.0015625) 6.25%, rgb(0% 0% 0% / 0.00625) 12.5%, rgb(0% 0% 0% / 0.0140625) 18.75%, rgb(0% 0% 0% / 0.025) 25%, rgb(0% 0% 0% / 0.0390625) 31.25%, rgb(0% 0% 0% / 0.05625) 37.5%, rgb(0% 0% 0% / 0.0765625) 43.75%, rgb(0% 0% 0% / 0.1) 50%, rgb(0% 0% 0% / 0.1265625) 56.25%, rgb(0% 0% 0% / 0.15625) 62.5%, rgb(0% 0% 0% / 0.18906250000000002) 68.75%, rgb(0% 0% 0% / 0.225) 75%, rgb(0% 0% 0% / 0.26406250000000003) 81.25%, rgb(0% 0% 0% / 0.30625) 87.5%, rgb(0% 0% 0% / 0.3515625) 93.75%, rgb(0% 0% 0% / 0.4) 100% );
    }
    .logo {
      position: absolute;
      left: 10vw;
      top: min(16svh, 8em);
      @media (min-width: 1000px) {top: 2em;}
      height: 5em;
/*
      filter: drop-shadow(0 0 5px rgb(0 0 0 / 0.4));
      
      width: 320px;
      max-width: 80vw;
*/
    }
    .tagline {
      font-family: 'Advent Sans SPD';
      font-weight: normal;
      margin: 0;
      position: absolute;
      left: 10vw;
      bottom: min(16svh, 8rem);
      font-size: 3em;
      @media (min-width: 500px) {font-size: 4em;}
      @media (min-width: 1500px) {font-size: 5em;}
      @media (min-width: 2500px) {font-size: 6em;}
      text-shadow: 0 0 5px rgb(0 0 0 / 0.4);
      br {
        @media (orientation: landscape) and (max-height: 500px) {display: none;}
      }
      /*
      -webkit-text-stroke: 4px black;      
      paint-order: stroke fill;
      */
    }
  }
  h1.post-title {display: none;}
  .wp-block-post-excerpt__more-text {
    margin-top: 1em;
  }
  .wp-block-post-excerpt__more-link {
    text-decoration: none;
  }
  .first-news {
    img {
      aspect-ratio: 3/2;
      object-fit: cover;
    }
  }
  .latest-news .wp-block-group:last-child {
    min-height: 100%;
    .wp-block-post-excerpt {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
  }
}

.page-id-39 {     /* contact page */
  background-color: var(--clr-light-grey);
}

.mt0 {margin-top: 0;}
.mb0 {margin-bottom: 0;}
.mt1 {margin-top: 1em;}
.mb1 {margin-bottom: 1em;}
.mt10 {margin-top: 10px;}
.mb10 {margin-bottom: 10px;}
.gap1 {gap: 1em;}
.text-center {text-align: center;}
.text-right {text-align: right;}
.text-right-desktop {@media (min-width: 800px) {text-align: right;}}
.rounded img {border-radius: 1em;}
.hidden {display: none;}
