:root {
  --barn-red: #752c24;
  --barn-red-dark: #572019;
  --cream: #FBF3E5;
  --cream-light: #FBF3E5;
  --brown: #30261f;
  --muted-brown: #62574e;
  --line: #d8cbbb;

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --header-height: 150px;
  --content-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

section[id] {
  scroll-margin-top: 120px;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--cream);
}

.header-inner {
  min-height: var(--header-height);
  padding: 18px clamp(24px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 126px;
  height: 126px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.brand-name {
  color: var(--barn-red);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tagline {
  margin-top: 16px;
  color: var(--brown);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 34px);
}

.site-nav a {
  padding: 8px 0 6px;
  border-bottom: 2px solid transparent;
  color: #181512;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--barn-red);
  border-bottom-color: var(--barn-red);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 535px;
  display: grid;
  grid-template-columns: 41% 59%;
  background: var(--cream-light);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 5;
  min-width: 0;
  padding:
    72px
    clamp(28px, 4vw, 58px)
    62px
    clamp(38px, 7vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream-light);
}

.hero h1 {
  margin: 0;
  color: var(--barn-red);
  font-family: var(--serif);
  font-size: clamp(52px, 5.25vw, 78px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.015em;
}

.hero-text {
  margin: 24px 0 25px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--barn-red);
  background: var(--barn-red);
  color: #fff8ef;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.hero-button:hover {
  border-color: var(--barn-red-dark);
  background: var(--barn-red-dark);
}

.hero-image {
  position: relative;
  min-width: 0;
  min-height: 535px;
  background-image:
    linear-gradient(
      90deg,
      var(--cream-light) 0%,
      rgba(251, 247, 240, 0.94) 4%,
      rgba(251, 247, 240, 0.75) 10%,
      rgba(251, 247, 240, 0.42) 17%,
      rgba(251, 247, 240, 0.14) 25%,
      rgba(251, 247, 240, 0) 35%
    ),
    url("assets/imageofhouse.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 57% center;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(251, 247, 240, 0.44),
    rgba(251, 247, 240, 0)
  );
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 23px clamp(20px, 4vw, 48px) 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-light);
}

.service-item {
  min-width: 0;
  padding: 0 20px;
  text-align: center;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 9px;
  color: #211d19;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h2 {
  margin: 0;
  color: #191613;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.service-item p {
  margin: 6px 0 0;
  color: #35302b;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.content-section {
  padding: clamp(70px, 8vw, 110px) 24px;
  background: var(--cream-light);
}

.content-section:nth-of-type(even) {
  background: var(--cream);
}

.content-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--barn-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-section h2 {
  max-width: 760px;
  margin: 0;
  color: var(--barn-red);
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
}

.content-section p {
  color: var(--muted-brown);
}

.detail-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--cream-light);
}

.detail-grid h3 {
  margin: 0 0 10px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.faq-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: var(--brown);
  font-weight: 700;
}

details p {
  margin-bottom: 0;
}

.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--cream);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream-light);
  color: var(--brown);
  font: inherit;
}

.full-field {
  grid-column: 1 / -1;
}

.form-button {
  margin-top: 2px;
  cursor: pointer;
}

.site-footer {
  padding: 24px;
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1000px) {
  :root {
    --header-height: 112px;
  }

  .header-inner {
    min-height: var(--header-height);
    padding: 14px 24px;
  }

  .brand-logo {
    width: 88px;
    height: 88px;
  }

  .brand {
    gap: 15px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .brand-tagline {
    margin-top: 10px;
    font-size: 8px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    display: block;
    flex: 0 0 auto;
  }

  .menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: var(--brown);
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--cream-light);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 44% 56%;
  }

  .hero-copy {
    padding-left: 38px;
  }

  .hero h1 {
    font-size: clamp(47px, 6vw, 64px);
  }

  .service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 94px;
  }

  .site-header {
    background: var(--cream);
  }

  .header-inner {
    min-height: var(--header-height);
    padding: 10px 16px;
    gap: 12px;
  }

  .brand {
    gap: 11px;
    min-width: 0;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-name {
    font-size: 19px;
    line-height: 0.95;
  }

  .brand-subtitle {
    margin-top: 3px;
    font-size: 10px;
  }

  /*
    Keep the tagline visible so the mobile header retains the same
    hierarchy and heritage feel as the desktop header.
  */
  .brand-tagline {
    display: block;
    max-width: 190px;
    margin-top: 7px;
    font-size: 6.8px;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    right: 12px;
    left: 12px;
    box-shadow: 0 16px 30px rgba(48, 38, 31, 0.13);
  }

  /*
    MOBILE HERO

    Instead of separating the text and image into two unrelated blocks,
    the photograph fills the entire hero while a cream gradient protects
    the text. This preserves the desktop's cream-to-photo transition.
  */
  .hero {
    position: relative;
    display: block;
    min-height: 640px;
    background:
      linear-gradient(
        90deg,
        var(--cream-light) 0%,
        rgba(251, 247, 240, 0.98) 42%,
        rgba(251, 247, 240, 0.78) 62%,
        rgba(251, 247, 240, 0.22) 84%,
        rgba(251, 247, 240, 0) 100%
      );
    overflow: hidden;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 100%;
    background-image: url("assets/imageofhouse.png");
    background-position: 61% center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /*
    This overlay reproduces the soft fade used on desktop.
    It is stronger behind the headline and clears toward the right.
  */
  .hero-image::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    background:
      linear-gradient(
        90deg,
        var(--cream-light) 0%,
        rgba(251, 247, 240, 0.99) 35%,
        rgba(251, 247, 240, 0.86) 54%,
        rgba(251, 247, 240, 0.38) 73%,
        rgba(251, 247, 240, 0) 93%
      ),
      linear-gradient(
        180deg,
        rgba(251, 247, 240, 0.2) 0%,
        rgba(251, 247, 240, 0) 58%,
        rgba(48, 38, 31, 0.08) 100%
      );
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    width: min(78%, 430px);
    min-height: 640px;
    padding: 74px 0 66px 24px;
    justify-content: center;
    background: transparent;
  }

  .hero h1 {
    max-width: 350px;
    font-size: clamp(50px, 14vw, 72px);
    line-height: 0.94;
  }

  .hero-text {
    max-width: 270px;
    margin: 22px 0 24px;
    font-size: 13px;
  }

  .hero-button {
    min-height: 46px;
    padding-inline: 18px;
    font-size: 11px;
  }

  /*
    Keep all five services visually consistent with desktop.
    The row becomes horizontally swipeable instead of changing into
    a different two-column or single-column composition.
  */
  .service-strip {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    padding: 24px 0 25px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  .service-strip::-webkit-scrollbar {
    height: 5px;
  }

  .service-strip::-webkit-scrollbar-track {
    background: transparent;
  }

  .service-strip::-webkit-scrollbar-thumb {
    background: var(--line);
  }

  .service-item,
  .service-item:last-child {
    flex: 0 0 42%;
    min-width: 148px;
    grid-column: auto;
    padding: 0 15px;
    scroll-snap-align: start;
    border-right: 1px solid rgba(216, 203, 187, 0.7);
  }

  .service-item:last-child {
    border-right: 0;
  }

  .service-icon {
    width: 43px;
    height: 43px;
  }

  .service-item h2 {
    font-size: 10.5px;
  }

  .service-item p {
    font-size: 9.5px;
  }

  /*
    Retain the desktop typography and editorial spacing throughout
    the content sections while stacking only where necessary.
  */
  .content-section {
    padding: 68px 22px;
  }

  .two-column,
  .contact-layout,
  .detail-grid,
  .faq-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .two-column,
  .contact-layout {
    gap: 28px;
  }

  .content-section h2 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.02;
  }

  .detail-grid {
    gap: 14px;
  }

  .detail-grid article {
    padding: 23px;
  }

  .detail-grid h3 {
    font-size: 23px;
  }

  .faq-grid {
    gap: 0;
  }

  .contact-form {
    padding: 22px;
  }

  .full-field {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 84px;
  }

  .header-inner {
    padding: 8px 12px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .brand {
    gap: 9px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 8.5px;
  }

  .brand-tagline {
    max-width: 150px;
    margin-top: 5px;
    font-size: 5.8px;
  }

  .menu-toggle {
    width: 39px;
    height: 39px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-copy {
    width: 82%;
    min-height: 590px;
    padding: 62px 0 56px 18px;
  }

  .hero h1 {
    max-width: 310px;
    font-size: clamp(45px, 14.5vw, 62px);
  }

  .hero-text {
    max-width: 230px;
    font-size: 12px;
  }

  .hero-image {
    background-position: 64% center;
  }

  .hero-image::before {
    background:
      linear-gradient(
        90deg,
        var(--cream-light) 0%,
        rgba(251, 247, 240, 0.99) 38%,
        rgba(251, 247, 240, 0.86) 58%,
        rgba(251, 247, 240, 0.32) 78%,
        rgba(251, 247, 240, 0) 100%
      );
  }

  .service-item,
  .service-item:last-child {
    flex-basis: 48%;
    min-width: 142px;
  }

  .content-section {
    padding-inline: 18px;
  }
}

/* =========================================================
   SECTION DIVIDERS
   Subtle heritage-style rules separating major page sections
   ========================================================= */

.hero,
.service-strip,
.content-section,
.site-footer {
  position: relative;
}

/* Standard divider between major content sections */
.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--content-width));
  height: 1px;
  transform: translateX(-50%);
  background: var(--line);
}

/* Slightly stronger line below the hero */
.service-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Decorative short centre rule for the About, Services, FAQ, and Contact sections */
.content-section::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 72px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--barn-red);
}

/* Keep the first content divider visually separated from the icon strip */
#about::before {
  background: var(--line);
}

/* Footer divider */
.site-footer {
  border-top: 1px solid rgba(241, 231, 213, 0.28);
}

/* Divider treatment on narrower screens */
@media (max-width: 700px) {
  .content-section::before {
    width: calc(100% - 36px);
  }

  .content-section::after {
    width: 54px;
  }
}

/* =========================================================
   MOBILE SERVICE-STRIP SCROLL CUE
   ========================================================= */

.service-strip-wrap {
  position: relative;
  background: var(--cream-light);
}

.services-scroll-hint {
  display: none;
}

/*
  On touch-sized screens, the services remain in a horizontal row.
  This hint and edge fade make it obvious that more cards are available.
*/
@media (max-width: 700px) {
  .services-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 18px 8px;
    border-top: 1px solid var(--line);
    background: var(--cream-light);
    color: var(--barn-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .scroll-hint-arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    animation: scroll-hint-nudge 1.4s ease-in-out infinite;
  }

  .service-strip-wrap::after {
    content: "→";
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    transform: translateY(-34%);
    border: 1px solid rgba(117, 44, 36, 0.28);
    border-radius: 50%;
    background: rgba(251, 247, 240, 0.92);
    color: var(--barn-red);
    font-size: 18px;
    pointer-events: none;
  }

  .service-strip-wrap::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 42px;
    right: 0;
    bottom: 0;
    width: 72px;
    background: linear-gradient(
      90deg,
      rgba(251, 247, 240, 0),
      rgba(251, 247, 240, 0.96)
    );
    pointer-events: none;
  }

  .service-strip {
    padding-top: 16px;
    padding-right: 58px;
  }
}

@media (max-width: 420px) {
  .services-scroll-hint {
    padding-inline: 14px;
    font-size: 9px;
  }

  .service-strip-wrap::after {
    right: 6px;
    width: 34px;
    height: 34px;
  }

  .service-strip {
    padding-right: 52px;
  }
}

@keyframes scroll-hint-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-arrow {
    animation: none;
  }
}

/* =========================================================
   CLEANER MOBILE HERO
   Keeps desktop unchanged and simplifies only small screens
   ========================================================= */

@media (max-width: 700px) {
  .hero {
    min-height: 590px;
  }

  .hero-copy {
    width: 68%;
    min-height: 590px;
    padding: 62px 0 54px 20px;
    justify-content: center;
  }

  .hero h1 {
    max-width: 280px;
    font-size: clamp(46px, 13vw, 64px);
    line-height: 0.96;
    letter-spacing: -0.02em;
  }

  /* Hide the supporting sentence on mobile to reduce visual clutter. */
  .hero-text {
    display: none;
  }

  .hero-button {
    margin-top: 28px;
    min-height: 43px;
    padding: 0 15px;
    font-size: 10px;
  }

  .hero-image {
    background-position: 67% center;
  }

  .hero-image::before {
    background:
      linear-gradient(
        90deg,
        var(--cream-light) 0%,
        rgba(251, 247, 240, 0.99) 30%,
        rgba(251, 247, 240, 0.87) 47%,
        rgba(251, 247, 240, 0.43) 66%,
        rgba(251, 247, 240, 0) 88%
      );
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 540px;
  }

  .hero-copy {
    width: 72%;
    min-height: 540px;
    padding: 56px 0 48px 18px;
  }

  .hero h1 {
    max-width: 245px;
    font-size: clamp(42px, 13.5vw, 56px);
  }

  .hero-button {
    margin-top: 24px;
  }

  .hero-image {
    background-position: 69% center;
  }
}
