/* Homestead Construction 13731 — matched to original Weebly dark/orange theme */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0 auto;
  padding: 0;
  font: 300 12px Arial, Helvetica, sans-serif;
  background: #3a1705;
  color: #c09777;
  line-height: normal;
}

a {
  text-decoration: none;
  color: #e78d48;
}

a:hover {
  color: #fff;
}

img {
  border: 0;
  max-width: 100%;
}

/* Header */
#header-wrap {
  background: #000;
}

#header {
  width: 100%;
  max-width: 1020px;
  height: 90px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#wsite-title {
  font-family: 'Dosis', Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 200;
  color: #fff;
  -webkit-text-stroke-width: 0.2px;
}

#header a {
  color: #fff;
}

#header a:hover {
  color: #e78d48;
}

.header-mail {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  color: #c09777;
  font-size: 16px;
}

.header-mail:hover {
  color: #e78d48;
  opacity: 1;
}

/* Main layout */
#main-wrap {
  background: #3a1705;
  overflow: visible;
  min-height: calc(100vh - 90px);
}

#main-inner {
  background: #150902;
  max-width: 950px;
  margin: 0 auto;
  overflow: hidden;
}

#page {
  color: #c09777;
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  background: #150902;
}

/* Sidebar — original chain: body 12px → sidebar 1.1em → avmenu 1.1em → ul 1.1em ≈ 16px */
#sidebar {
  width: 280px;
  flex-shrink: 0;
  margin: 25px 0 0 15px;
  padding: 0;
  font-size: 1.1em; /* 13.2px */
}

#avmenu {
  list-style: none;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  font-size: 1.1em; /* 14.52px */
  border-top: 1px solid #432b19;
}

#avmenu li {
  margin: 0;
  font-size: 1.1em; /* ≈ 15.972px — matches archive */
}

#avmenu li a {
  font-family: 'Dosis', 'Myriad Pro', Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 200;
  text-decoration: none;
  color: #c09777;
  display: block;
  padding: 10px 12px;
  line-height: 18px;
  border-bottom: 1px solid #432b19;
  text-align: right;
}

#avmenu li a:hover,
#avmenu li.active a {
  background: #271104;
  color: #e7d7cb;
}

.sidebar-email {
  display: block;
  margin-top: 14px;
  font-family: 'Dosis', 'Myriad Pro', Arial, Helvetica, sans-serif;
  font-weight: 200;
  font-size: 15.972px;
  color: #c09777;
  text-align: right;
  line-height: 18px;
  white-space: nowrap;
}

.sidebar-email:hover {
  color: #e7d7cb;
}

/* Site-wide tall banner (Weebly tall-header style) */
.page-banner {
  margin: 0 0 18px;
  padding: 0;
  line-height: 0;
  background: #150902;
  border: 1px solid #432b19;
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 327px;
  object-fit: cover;
  object-position: center;
}

/* Content */
#content {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 23px 25px 35px 20px;
  background: #250f04;
  line-height: 18px;
  min-height: 400px;
  font: 300 12px Arial, Helvetica, sans-serif;
  color: #c09777;
}

/* Archive home: h2 = 2em of 12px body → 24px / line-height 36px / Arial / weight 200 */
h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  margin: 0;
  padding: 0.3em 0;
  font-weight: 200;
  color: #fff;
  line-height: 36px;
  -webkit-text-stroke-width: 0.2px;
}

.contact-line {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 200;
  font-style: italic;
  margin: 0;
  padding: 0.3em 0;
  line-height: 36px;
  color: #fff;
}

.contact-line .office {
  color: #f20c0c;
  font-style: italic;
}

/* Archive used <font size="5"> → computed 24px */
.tagline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  padding: 0.5em 0;
  line-height: 36px;
  color: #c09777;
}

.trust-line {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 200;
  margin: 0;
  padding: 0.3em 0;
  line-height: 36px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0 2em;
}

.photo {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 12px auto;
  border: 1px solid #432b19;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  background: #190a03;
  border: 1px solid #25150c;
  font-size: 12px;
  color: #c09777;
}

.badge a {
  color: #e78d48;
}

.badge a:hover {
  color: #fff;
}

.page-intro,
.section-block p,
#content p,
#content .paragraph {
  color: #c09777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 300;
  margin: 0;
  padding: 0.5em 0;
  line-height: 18px;
}

.section-block {
  margin-bottom: 28px;
}

.section-block h2 {
  margin-bottom: 6px;
}

/* Slideshow (Weebly-style fade) — same width as page banner */
.slideshow {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.page-banner,
.slideshow {
  box-sizing: border-box;
}

.slideshow-stage {
  position: relative;
  background: #150902;
  border: 1px solid #432b19;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.slideshow-slides {
  position: absolute;
  inset: 0;
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.slideshow .slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-caption {
  min-height: 2.6em;
  margin-top: 10px;
  padding: 0 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #c09777;
  line-height: 18px;
  text-align: center;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 52px;
  border: none;
  background: rgba(21, 9, 2, 0.55);
  color: #e7d7cb;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slideshow-stage:hover .slideshow-btn,
.slideshow-btn:focus {
  opacity: 1;
}

.slideshow-prev {
  left: 0;
}

.slideshow-next {
  right: 0;
}

.slideshow-btn:hover {
  background: rgba(39, 17, 4, 0.85);
  color: #fff;
}

.slideshow-btn i {
  pointer-events: none;
}

.slideshow-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.slideshow-nav[data-type='none'] {
  display: none;
}

.slideshow-dot,
.slideshow-num {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid #432b19;
  background: #190a03;
  color: #c09777;
  font-family: 'Dosis', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 200;
  cursor: pointer;
  line-height: 20px;
  text-align: center;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  border-radius: 50%;
}

.slideshow-dot.is-active,
.slideshow-num.is-active {
  background: #271104;
  color: #e7d7cb;
  border-color: #e78d48;
}

.slideshow-thumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.slideshow-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 1px solid #c09777;
  background: #150902;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.85;
}

.slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-thumb.is-active {
  opacity: 1;
  border-color: #e7d7cb;
  outline: 1px solid #e7d7cb;
}

.slideshow-thumb:hover {
  opacity: 1;
}

.slideshow-counter {
  margin-top: 8px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 18px;
  color: #c09777;
}

/* Gallery */
.gallery-hero {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #432b19;
  background: #150902;
  line-height: 0;
}

.gallery-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.gallery-hero figcaption {
  line-height: 1.35;
  border-top: 1px solid #432b19;
}

.slideshow-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

.slideshow-stack .slideshow {
  max-width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  background: #190a03;
  border: 1px solid #432b19;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: #c09777;
  line-height: 1.35;
}

/* Present projects — clean aligned sections */
.pp-section {
  width: 100%;
  margin: 0 0 22px;
}

.pp-section:last-child {
  margin-bottom: 0;
}

.pp-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  margin: 0;
}

.pp-col {
  min-width: 0;
}

.pp-col img,
.pp-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #432b19;
}

.pp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pp-row > p,
.pp-caption,
.pp-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #c09777;
  line-height: 18px;
  margin: 0;
  padding: 0;
}

.pp-note {
  font-size: 10.8px;
}

.pp-caption {
  margin-top: 10px;
}

.pp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0 8px;
}

.pp-badge {
  display: inline-block;
  padding: 8px 12px;
  background: #190a03;
  border: 1px solid #25150c;
  color: #e78d48;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.pp-badge span,
.pp-badge strong {
  color: #c09777;
  font-weight: 400;
}

.pp-badge:hover {
  color: #fff;
}

.pp-badge-saves {
  background: #2f5d2f;
  border-color: #3f7a3f;
  color: #fff;
  min-width: 72px;
}

.pp-badge-saves strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  #header {
    height: auto;
    min-height: 64px;
    padding: 14px 16px;
  }

  #wsite-title {
    font-size: 22px;
    line-height: 1.2;
  }

  #page {
    flex-direction: column;
    max-width: 100%;
  }

  #sidebar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 16px 0;
    font-size: 1em;
  }

  #avmenu {
    width: 100%;
    margin-top: 8px;
  }

  #avmenu li {
    font-size: 1em;
  }

  #avmenu li a {
    text-align: left;
    padding: 12px 14px;
    line-height: 1.3;
    font-size: 16px;
  }

  .sidebar-email {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0 4px;
    padding: 0 2px 8px;
  }

  #content {
    width: 100%;
    padding: 16px;
    min-height: 0;
  }

  .page-banner {
    margin-bottom: 14px;
  }

  .page-banner img {
    max-height: 200px;
  }

  .contact-line,
  .trust-line,
  .tagline,
  h2 {
    font-size: 18px;
    line-height: 1.4;
  }

  .trust-line {
    gap: 6px 18px;
  }

  .photo {
    max-width: 100%;
  }

  .slideshow {
    max-width: 100%;
  }

  .slideshow-stage {
    aspect-ratio: 4 / 3;
  }

  .slideshow-btn {
    opacity: 1;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .slideshow-thumbs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .slideshow-thumb {
    width: 64px;
    height: 48px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-hero img {
    max-height: 220px;
  }

  .pp-two,
  .pp-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pp-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .badges {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  #wsite-title {
    font-size: 18px;
    max-width: calc(100% - 40px);
  }

  #content {
    padding: 14px 12px 24px;
  }

  .contact-line,
  .trust-line,
  .tagline,
  h2 {
    font-size: 16px;
    line-height: 1.45;
  }

  .gallery,
  .gallery.cols-3 {
    grid-template-columns: 1fr;
  }

  .slideshow-stage {
    aspect-ratio: 1 / 1;
  }

  .slideshow-nav {
    gap: 4px;
  }

  .slideshow-num {
    min-width: 28px;
    height: 28px;
    line-height: 26px;
  }
}
