/* LandStudies - site stylesheet
   Recreates the look of the former WordPress theme ("The Story" by Pexeto) without any of its code. */

:root {
  --olive: #a7ad37;
  --olive-dark: #8d9230;
  --olive-header: rgba(167, 173, 55, 0.95);
  --text: #3d3d3d;
  --heading: #333332;
  --muted: #777777;
  --light: #b3b3b1;
  --line: #e6e6e6;
  --page-bg: #f7f7f7;
  --header-bg: #444444;
  --footer-bg: #282828;
  --max: 1200px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Body is a full-height flex column so the footer (margin-top: auto) sits at the bottom of the
   window on short pages. Centred children (.content-container, .home-sections) set width: 100%,
   because auto side margins would otherwise shrink a flex item to fit its content. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 16px/1.7 'Open Sans', Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--olive-dark); }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 10px 0;
  color: var(--heading);
  font-family: Raleway, Montserrat, 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
}
h1 { font-size: 30px; }
h2 { font-size: 25px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 15px 22px; padding: 0; }
blockquote {
  margin: 0 0 20px;
  padding: 0 0 0 15px;
  border-left: 4px solid rgba(0, 0, 0, 0.1);
  font: italic 120%/170% Georgia, 'Times New Roman', Times, serif;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
table { border-collapse: collapse; width: 100%; margin-bottom: 15px; }
td, th { vertical-align: top; padding: 0 12px 0 0; text-align: left; }
iframe { max-width: 100%; border: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }

.button, a.button {
  display: inline-block;
  margin: 2px 0;
  padding: 12px 25px;
  border-radius: 3px;
  background: var(--olive);
  color: #fff;
  font-family: Montserrat, 'Open Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.3;
  transition: background 0.2s ease;
}
.button:hover, a.button:hover { background: var(--olive-dark); color: #fff; }

.read-more {
  display: inline-block;
  margin: 10px 0 5px;
  padding: 4px 0;
  border-bottom: 1px solid var(--olive);
  color: var(--olive);
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1em;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.header-wrapper {
  position: relative;
  background-color: var(--header-bg);
  background-position: center center;
  background-size: cover;
}
.site-header {
  position: relative;
  z-index: 50;
  padding: 20px 5% 0;
}
.site-header .inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
}
.logo img { display: block; width: 66px; height: 106px; object-fit: contain; }
.logo { flex: 0 0 auto; }

.main-nav { display: flex; align-items: center; gap: 18px; padding-top: 4px; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a {
  display: block;
  padding: 8px 9px;
  color: #fff;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}
.menu > li > a:hover, .menu > li.current > a { color: rgba(255, 255, 255, 0.75); }
.menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 210px;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
}
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
.menu .sub-menu li { background: var(--olive); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); }
.menu .sub-menu a { padding: 8px 15px; font-size: 12px; letter-spacing: 1px; text-shadow: none; }
.menu .sub-menu a:hover { background: rgba(0, 0, 0, 0.08); color: #fff; }

.header-icons { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.header-icons a { display: block; width: 26px; height: 26px; padding: 4px; }
.header-icons img { display: block; width: 18px; height: 18px; transition: transform 0.2s ease; }
.header-icons a:hover img { transform: scale(1.15); }
.header-icons .search-link {
  width: 22px; height: 22px; padding: 4px; margin-left: 6px;
  border-radius: 50%; background: #fff;
}
.header-icons .search-link img { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  margin-top: 8px;
  padding: 8px 12px 8px 38px;
  border: 0;
  background: url('../img/mob-nav-icon_w.png') no-repeat 10px center;
  background-size: 18px;
  color: #fff;
  font: 700 14px Raleway, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

/* Sticky bar: a copy of the header (made by site.js) that slides in once the page scrolls.
   The real header never moves, so the page layout never changes while scrolling (no jumps/stutter).
   "body" raises specificity above `.home .site-header` / `.banner-small .site-header`. */
body .site-header.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: 8px;
  padding-bottom: 8px;
  background: var(--olive-header);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  will-change: transform;
}
body .site-header.sticky-bar.visible { transform: none; }
.sticky-bar .logo img { width: 38px; height: 60px; }

/* ---------- page title banner ---------- */
.page-banner { display: flex; align-items: center; justify-content: center; min-height: 236px; padding: 0 5% 30px; text-align: center; }
.page-banner h1 {
  display: inline-block;
  padding: 0;
  color: #fff;
  font-size: 80px;
  font-weight: 300;
  line-height: 1em;
  text-transform: uppercase;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.page-banner h1::after {
  content: "";
  display: block;
  width: 62%;
  height: 1px;
  margin: 18px auto 0;
  background: #fff;
}
.banner-small .page-banner { display: none; }
.banner-small .site-header { padding-bottom: 0; }

/* ---------- homepage slider ---------- */
/* Slides are stacked in one grid cell, so the slider is always as tall as the tallest slide
   and switching slides never changes the page height. */
.slider { position: relative; display: grid; overflow: hidden; background: #000; }
.slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 660px;
  padding: 150px 5% 110px;
  color: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0.7; }
.slide-content { position: relative; max-width: 1000px; }
.slide .small-title { margin: 0; font-size: 24px; text-transform: uppercase; }
.slide h2 { padding: 0; color: #fff; font-size: 80px; line-height: 1.2; text-transform: uppercase; }
.slide .desc { margin: 4px 0 0; font-size: 18px; }
.slide .button { margin-top: 18px; padding: 14px 30px; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 44px; height: 44px; margin-top: -22px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff; font-size: 22px; line-height: 44px;
  cursor: pointer;
}
.slider-arrow:hover { background: var(--olive); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-dots { position: absolute; bottom: 25px; left: 0; right: 0; z-index: 5; text-align: center; }
.slider-dots button {
  width: 10px; height: 10px; margin: 0 4px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer;
}
.slider-dots button.active { background: #fff; }
.home .header-wrapper { background: #000; }
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- layout ---------- */
.content-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4%;
  width: 100%;
  max-width: calc(var(--max) + 6%);
  margin: 0 auto;
  padding: 70px 3%;
}
.content { flex: 0 0 72%; max-width: 72%; }
.content.full { flex-basis: 100%; max-width: 100%; }
.content-box {
  min-height: 400px;
  padding: 4.5%;
  background: #fff;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}
.sidebar { flex: 0 0 24%; max-width: 24%; font-size: 14px; }

/* WordPress-era content classes kept in the page HTML */
.alignleft { float: left; margin: 5px 25px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 25px; }
.aligncenter { display: block; margin: 5px auto 15px; }
.alignnone { margin: 5px 0 15px; }
.wp-caption { max-width: 100%; text-align: center; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text { margin: 6px 0 0; color: var(--text); font-size: 13px; }
.clear, .clearfix::after { content: ""; display: block; clear: both; }
.entry::after { content: ""; display: block; clear: both; }
.entry h3 { margin-top: 6px; }
.video-wrap, .embed { position: relative; margin: 0 0 20px; }
.entry iframe { display: block; margin: 0 0 20px; }
/* Video embeds fill the column at 16:9, overriding the fixed width/height the old embed code set */
.entry iframe[src*="youtube.com/embed/"], .entry iframe[src*="player.vimeo.com/"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.cols-wrapper { display: flex; flex-wrap: wrap; gap: 3%; }
.cols-wrapper > .col { flex: 1 1 0; min-width: 0; }
.bullet_arrow li, ul.imglist { list-style: none; }
.download-box { margin: 20px 0 10px; }

/* ---------- posts ---------- */
.post-image { margin: -4.5% -4.5% 30px; }
.post-image img { display: block; width: 100%; }
.post-date {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.post-title { padding: 2px 0 15px; font-size: 32px; font-weight: 400; line-height: 1.2; }
.post-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #ccc;
}
.share { display: flex; align-items: center; gap: 6px; margin: 25px 0 0; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.post-footer .share { margin: 0; }
.share span { margin-right: 6px; }
.share a {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  color: #fff; font: 700 10px/20px Arial, sans-serif; letter-spacing: 0; text-align: center; text-transform: none;
}
.share a.fb { background: #3b5998; }
.share a.tw { background: #55acee; }
.share a.li { background: #0077b5; }
.share a.em { background: #888; }
.share a:hover { opacity: 0.8; color: #fff; }

.related { margin-top: 45px; text-align: center; }
.related > h4 {
  display: inline-block; margin-bottom: 25px; padding: 0 0 8px;
  border-bottom: 1px solid #ddd;
  font-size: 15px; font-weight: 400; text-transform: uppercase;
}
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; text-align: left; }
.related-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.related-grid h5 { padding: 12px 0 0; color: var(--text); font-size: 15px; line-height: 1.4; }
.related-grid a:hover h5 { color: var(--olive); }

/* ---------- listings (portfolio / news) ---------- */
.listing-intro { margin-bottom: 25px; }
.listing-item { margin-bottom: 10px; padding-bottom: 6px; }
/* Fixed 5:2 box (the size of most project banners), so lazy-loaded images don't shift the page as they arrive */
.listing-item .thumb img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; background: #eee; }
.listing-item h2 { padding: 12px 0 6px; font-size: 22px; font-weight: 400; line-height: 1.3; }
.listing-item h2 a { color: var(--heading); }
.listing-item h2 a:hover { color: var(--olive); }
.listing-item p { font-size: 14px; }

/* ---------- sidebar ---------- */
.widget { margin-bottom: 40px; }
.widget-title {
  margin-bottom: 18px;
  padding: 0;
  color: var(--heading);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}
.widget ul { margin: 0; list-style: none; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-list li { display: flex; gap: 12px; align-items: flex-start; }
.news-list img { flex: 0 0 45px; width: 45px; height: 45px; object-fit: cover; border: 1px solid var(--line); }
.news-list a { color: var(--muted); font-family: Raleway, sans-serif; font-size: 13px; line-height: 1.5; }
.news-list a:hover { color: var(--olive); }
.type-list a { color: var(--muted); font-size: 14px; }
.type-list a:hover, .type-list li.current a { color: var(--olive); }
.type-list li.return a { color: var(--olive); }
.widget p { color: var(--muted); }

/* ---------- homepage sections ---------- */
.home-sections { width: 100%; max-width: calc(var(--max) + 6%); margin: 0 auto; padding: 50px 3% 40px; }
.home-sections h1 { margin-top: 25px; text-align: center; font-size: 30px; text-transform: uppercase; }
.home-sections h1 strong { font-weight: 400; }
.rp-columns .cols-wrapper { gap: 3%; margin-top: 20px; }
.rp-columns .col { flex: 1 1 22%; }
.rp-header img { display: block; width: 100%; height: auto; aspect-ratio: 27 / 10; object-fit: cover; }
.rp-post-title { padding: 18px 0 4px; font-size: 18px; line-height: 1.4; }
.rp-post-title a { color: var(--text); }
.rp-post-title a:hover { color: var(--olive); }
.rp p { font-size: 14px; }

.testimonial-slider { position: relative; max-width: 900px; margin: 20px auto 0; text-align: center; }
.testimonial-container { display: none; }
/* Homepage rotator: quotes are stacked in one grid cell, so the section keeps the height of the
   longest quote and rotating never pushes the content below it up or down. */
.home-sections .testimonial-slider { display: grid; }
.home-sections .testimonial-container {
  display: block;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.home-sections .testimonial-container.active,
.no-js .home-sections .testimonial-container:first-child { opacity: 1; visibility: visible; }
.home-sections .testimonial-dots { grid-area: 2 / 1; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.testimonial-info { display: flex; flex-direction: column; align-items: center; }
.testimonial-img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.testimonials-details h2 { padding: 10px 0 0; font-size: 20px; font-weight: 400; }
.testimonials-details span { color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.testimonial-slider blockquote { margin: 18px auto 0; padding: 0; border: 0; font-size: 22px; line-height: 1.5; text-align: center; }
.testimonial-dots { margin-top: 18px; }
.testimonial-dots button {
  width: 9px; height: 9px; margin: 0 4px; padding: 0;
  border: 0; border-radius: 50%; background: #ccc; cursor: pointer;
}
.testimonial-dots button.active { background: var(--olive); }

/* testimonials page (content uses the same markup, all shown) */
.entry .testimonial-container { display: block; margin-bottom: 35px; }
.entry .testimonial-wrapper { display: flex; gap: 25px; align-items: flex-start; }
.entry .testimonial-info { flex: 0 0 160px; text-align: center; }
.entry .testimonial-wrapper blockquote { flex: 1; margin: 0; font-size: 18px; text-align: left; }

/* ---------- map / search ---------- */
.project-map { width: 100%; height: 480px; margin: 10px 0 25px; background: #e8e8e8; }
.map-embed { width: 100%; height: 380px; margin: 10px 0 20px; border: 0; }
.project-locations { columns: 2; column-gap: 30px; margin: 0; list-style: none; font-size: 14px; }
.project-locations li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.project-locations span { display: block; color: var(--muted); font-size: 13px; }
.search-form { display: flex; gap: 8px; margin-bottom: 25px; }
.search-form input {
  flex: 1; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: 3px;
  font: inherit;
}
.search-results li { margin-bottom: 18px; list-style: none; }
.search-results { margin: 0; }
.search-results h3 { padding: 0; font-size: 19px; }
.search-results p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--footer-bg); color: var(--light); }
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 25px 3%;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.8;
  text-align: center;
  text-transform: uppercase;
}
.site-footer a { color: var(--olive); }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .menu a { padding: 8px 6px; font-size: 13px; }
  .page-banner h1 { font-size: 60px; }
  .slide h2 { font-size: 56px; }
}
@media (max-width: 960px) {
  .slide { min-height: 520px; }
  .menu-toggle { display: block; }
  .main-nav { flex-direction: column; align-items: flex-end; }
  .main-nav .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 10px 5%;
    background: rgba(167, 173, 55, 0.96);
  }
  .main-nav.open .menu { display: flex; }
  .menu .sub-menu { position: static; display: block; width: auto; padding: 0 0 0 15px; }
  .menu .sub-menu li { background: transparent; box-shadow: none; }
  .menu a { text-shadow: none; }
  .header-icons { order: -1; }
  .content-container { flex-direction: column; padding: 30px 3%; }
  .content, .sidebar { flex-basis: auto; max-width: 100%; width: 100%; }
  .sidebar { margin-top: 30px; }
  .page-banner { min-height: 160px; }
  .page-banner h1 { font-size: 42px; }
  .slide { padding: 150px 6% 90px; }
  .slide h2 { font-size: 36px; }
  .slide .small-title { font-size: 16px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-columns .col { flex-basis: 47%; }
  .project-locations { columns: 1; }
}
@media (max-width: 600px) {
  .page-banner h1 { font-size: 32px; }
  .alignleft, .alignright { float: none; display: block; margin: 10px auto; }
  .entry table, .entry tbody, .entry tr, .entry td { display: block; width: 100% !important; }
  .entry td { padding: 0; }
  .rp-columns .col { flex-basis: 100%; }
  .entry .testimonial-wrapper { flex-direction: column; }
  .header-icons a:not(.search-link) { display: none; }
  .slider-arrow { display: none; }
}
