:root {
  --page-bg: #f5efe5;
  --panel: rgba(255, 251, 246, 0.94);
  --panel-strong: #fffdf8;
  --text: #1d1a17;
  --muted: #5c5248;
  --line: rgba(50, 36, 24, 0.14);
  --accent: #6d4026;
  --accent-strong: #4f2d1c;
  --accent-soft: #ede0d2;
  --shadow: 0 18px 48px rgba(53, 32, 18, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --shell: 1180px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(174, 127, 76, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f2e9 0%, #efe6da 100%);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #2d190f;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #0b6ef3;
  outline-offset: 3px;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0 2rem;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  position: relative;
  z-index: 30;
  padding: 1rem 1.1rem 1.1rem;
  padding-right: 4.5rem;
  background:
    linear-gradient(135deg, rgba(28, 15, 10, 0.9), rgba(66, 41, 24, 0.76)),
    linear-gradient(0deg, rgba(84, 52, 30, 0.28), rgba(84, 52, 30, 0.28)),
    url("../image/bg6.jpg") center/cover no-repeat;
  border: 1px solid rgba(255, 244, 234, 0.14);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(26, 14, 8, 0.28);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(68vw, 260px);
  flex: 0 0 auto;
  padding: 0.5rem 0.7rem;
}

.site-brand img {
  width: 100%;
  max-height: 3.25rem;
  min-height: 50px;
  object-fit: contain;
}

.menu-toggle,
.submenu-toggle,
.gallery-toggle {
  appearance: none;
  border: 1px solid rgba(79, 45, 28, 0.2);
  background: #fff8f1;
  color: var(--accent-strong);
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  font-weight: 700;
}

.site-nav {
  width: 100%;
  flex-basis: 100%;
}

.site-nav__list,
.site-subnav,
.footer-links,
.stats,
.hero__metrics,
.feature-list,
.gallery-grid,
.process-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__list {
  display: flex;
  margin-top: 1rem;
  flex-direction: column;
  gap: 0.75rem;
}

.has-js .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__icon::before {
  top: -0.35rem;
}

.menu-toggle__icon::after {
  top: 0.35rem;
}

.has-js .site-nav__list {
  display: flex;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: max-height 0.28s ease, opacity 0.24s ease, transform 0.24s ease, margin-top 0.24s ease;
}

.has-js.nav-open .site-nav__list {
  max-height: 36rem;
  margin-top: 1rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav__item > a,
.site-nav__group > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 247, 237, 0.96);
  text-decoration: none;
}

.site-nav__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.site-nav__item {
  position: relative;
}

.site-nav__item.is-active > a,
.site-nav__item.is-active > .site-nav__group > a {
  color: #ffffff;
}

.site-header__bar a:hover,
.site-header__bar a:focus-visible {
  color: #fffaf4;
}

.submenu-toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
}

.has-js .submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle,
.submenu-toggle {
  color: rgba(255, 247, 237, 0.96);
  background: rgba(255, 246, 236, 0.08);
  border-color: rgba(255, 246, 236, 0.2);
}

.submenu-toggle::before,
.submenu-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.submenu-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.submenu-toggle[aria-expanded="true"]::after {
  display: none;
}

.site-subnav {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: #fbf4ec;
  border: 1px solid rgba(79, 45, 28, 0.12);
  box-shadow: 0 16px 30px rgba(53, 32, 18, 0.12);
}

.has-js .site-subnav {
  display: grid;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-color: transparent;
  transition: max-height 0.24s ease, opacity 0.2s ease, margin-top 0.2s ease, padding 0.2s ease;
}

.site-nav__item.is-open .site-subnav {
  max-height: 24rem;
  margin-top: 0.45rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(79, 45, 28, 0.12);
}

.site-subnav a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  color: var(--accent-strong);
  text-decoration: none;
}

.site-subnav a:hover,
.site-subnav a:focus-visible {
  background: rgba(109, 64, 38, 0.12);
}

.hero {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero__copy,
.hero__card,
.content-panel,
.feature-card,
.contact-card,
.testimonial-card,
.gallery-card,
.empty-state,
.process-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(247, 237, 224, 0.98), rgba(255, 252, 247, 0.92)),
    url("../image/bg4.jpg") center/cover no-repeat;
  background-blend-mode: screen;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: #24150d;
}

h1,
.section-title {
  font-family: var(--serif);
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
}

.hero__lede,
.section-lede,
.project-summary,
.empty-state p,
.testimonial-card p,
.contact-card p,
.process-card p {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero__lede {
  max-width: 56ch;
  margin: 1.2rem 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  background:
    linear-gradient(135deg, rgba(43, 24, 15, 0.88), rgba(94, 57, 34, 0.78)),
    url("../image/bg5.jpg") center/cover no-repeat;
  border: 1px solid rgba(255, 239, 226, 0.14);
  color: #fff;
  box-shadow: 0 12px 24px rgba(30, 16, 9, 0.18);
}

.button--primary:hover {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(33, 18, 11, 0.9), rgba(78, 47, 29, 0.82)),
    url("../image/bg7.jpg") center/cover no-repeat;
  transform: translateY(-1px);
}

.button--secondary {
  border: 1px solid rgba(79, 45, 28, 0.2);
  background: #fff;
}

.hero__card {
  padding: 1.4rem;
  align-self: stretch;
  background:
    linear-gradient(145deg, rgba(31, 17, 12, 0.94), rgba(74, 45, 28, 0.82)),
    url("../image/bg5.jpg") center/cover no-repeat;
  border-color: rgba(255, 242, 231, 0.16);
}

.hero__card-label,
.footer-heading,
.gallery-label {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__contact {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.1;
  color: #fff9f4;
  text-decoration: none;
}

.hero__contact--secondary {
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 1rem;
  word-break: break-word;
}

.hero__location {
  margin: 1rem 0 0;
  color: rgba(255, 242, 231, 0.82);
}

.hero__metrics,
.stats {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.hero__metrics li,
.stats li {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.hero__metrics strong,
.stats strong {
  font-size: 1.2rem;
}

.hero__card .hero__card-label,
.hero__card .hero__metrics strong,
.hero__card .hero__metrics span,
.hero__card .hero__contact--secondary {
  color: rgba(255, 242, 231, 0.88);
}

.hero__card a:hover,
.hero__card a:focus-visible {
  color: #ffffff;
}

main {
  padding-bottom: 3rem;
}

.section {
  margin-bottom: 1.5rem;
}

.content-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.section-header {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
}

.section-split,
.contact-grid,
.testimonial-grid,
.process-grid,
.project-layout {
  display: grid;
  gap: 1rem;
}

.feature-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.feature-card,
.contact-card,
.testimonial-card,
.process-card,
.gallery-card,
.empty-state {
  overflow: hidden;
}

.wood-accent {
  position: relative;
  isolation: isolate;
  color: #fff7ef;
  border-color: rgba(255, 244, 234, 0.12);
  box-shadow: 0 18px 40px rgba(30, 16, 9, 0.22);
}

.wood-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(26, 14, 10, 0.72), rgba(72, 42, 25, 0.5)),
    var(--wood-image, url("../image/bg5.jpg")) center/cover no-repeat;
  transform: scale(1.02);
}

.wood-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 247, 238, 0.08), rgba(20, 10, 5, 0.14));
}

.woodtone-1 {
  --wood-image: url("../image/bg5.jpg");
}

.woodtone-2 {
  --wood-image: url("../image/bg7.jpg");
}

.woodtone-3 {
  --wood-image: url("../image/fpics/wood-grain/fs_photo-2013-05-22-14-11-03_0009.jpg");
}

.woodtone-4 {
  --wood-image: url("../image/fpics/wood-grain/fs_photo-2013-05-22-14-10-35_0008.jpg");
}

.feature-card__link,
.gallery-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.feature-card img,
.gallery-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.feature-card__body,
.contact-card,
.testimonial-card,
.process-card,
.empty-state {
  padding: 1.2rem;
}

.feature-card h3,
.contact-card h3,
.testimonial-card h3,
.process-card h3,
.gallery-card h3,
.project-details h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.feature-card__link:hover h3,
.feature-card__link:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.feature-card__link:hover,
.feature-card__link:focus-visible {
  transform: translateY(-2px);
}

.feature-card,
.gallery-card,
.button,
.site-subnav,
.site-subnav a,
.menu-toggle,
.submenu-toggle {
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.feature-card p,
.contact-card p,
.testimonial-card p,
.process-card p,
.gallery-card p,
.project-details p,
.project-details li,
.contact-list li {
  color: var(--muted);
}

.wood-accent .eyebrow,
.wood-accent h2,
.wood-accent h3,
.wood-accent strong,
.wood-accent a,
.wood-accent .section-title {
  color: #fff9f4;
}

.wood-accent p,
.wood-accent li,
.wood-accent span {
  color: rgba(255, 245, 237, 0.9);
}

.wood-accent .feature-list li::before,
.wood-accent .contact-list li::before {
  background: #f0c08b;
}

.wood-accent a:hover,
.wood-accent a:focus-visible {
  color: #ffffff;
}

.wood-accent .contact-list a,
.wood-accent .feature-card__link {
  color: inherit;
}

.feature-list,
.contact-list {
  display: grid;
  gap: 0.65rem;
}

.feature-list li,
.contact-list li {
  position: relative;
  padding-left: 1.1rem;
}

.feature-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats span {
  color: var(--muted);
}

.project-layout {
  align-items: start;
}

.project-summary {
  margin: 0 0 1rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-card {
  position: relative;
}

.gallery-card__icon {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(29, 26, 23, 0.78);
  color: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.92;
}

.gallery-card a:hover .gallery-card__icon,
.gallery-card a:focus-visible .gallery-card__icon {
  background: rgba(79, 45, 28, 0.92);
}

.empty-state {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__grid,
.site-footer__meta {
  background: rgba(44, 28, 19, 0.94);
  color: rgba(255, 248, 241, 0.92);
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.site-footer__brand img {
  max-width: 220px;
}

.site-footer__brand p,
.site-footer__meta p,
.footer-links a {
  color: rgba(255, 248, 241, 0.84);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fffaf4;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
}

.site-footer__meta {
  padding: 0 1.5rem 1.4rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.site-footer__meta p {
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 248, 241, 0.12);
}

@media (min-width: 760px) {
  .site-header {
    padding-top: 1.4rem;
  }

  .site-header__bar {
    align-items: center;
    flex-wrap: nowrap;
    padding-right: 1.1rem;
  }

  .site-brand {
    max-width: 220px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-brand img {
    max-height: none;
  }

  .menu-toggle {
    display: none;
    position: static;
  }

  .has-js .menu-toggle,
  .has-js .submenu-toggle {
    display: none;
  }

  .site-nav {
    width: auto;
    flex-basis: auto;
    position: relative;
    z-index: 40;
  }

  .site-nav__list,
  .has-js .site-nav__list {
    display: flex;
    max-height: none;
    margin-top: 0;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .site-nav__item {
    position: relative;
  }

  .site-nav__group {
    gap: 0.35rem;
    width: auto;
  }

  .submenu-toggle {
    width: 2rem;
    height: 2rem;
  }

  .site-subnav,
  .has-js .site-subnav {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    max-height: none;
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    opacity: 0;
    overflow: visible;
    pointer-events: none;
    border-color: rgba(79, 45, 28, 0.12);
    transform: translateY(0.35rem);
    z-index: 60;
    box-shadow: var(--shadow);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav__item:hover .site-subnav,
  .site-nav__group:focus-within + .site-subnav {
    max-height: none;
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: stretch;
  }

  .section-split,
  .contact-grid,
  .testimonial-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
  }

  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
