:root {
  --ink: #211814;
  --muted: #6f625a;
  --brand: #694837;
  --brand-dark: #3f2a21;
  --gold: #b58a57;
  --cream: #f7f0e6;
  --paper: #fffaf3;
  --white: #ffffff;
  --line: rgba(105, 72, 55, 0.2);
  --shadow: 0 24px 70px rgba(35, 22, 14, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(181, 138, 87, 0.22), transparent 34rem),
    linear-gradient(180deg, #fffaf4 0%, #f4eadf 48%, #fffaf4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 243, 0.86);
  border-bottom: 1px solid rgba(105, 72, 55, 0.14);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 74px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(105, 72, 55, 0.22);
}

.button.secondary {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.75);
}

.nav-cta:hover,
.button:hover,
.nav-cta:focus-visible,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(63, 42, 33, 0.24);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(22, 13, 8, 0.85), rgba(34, 21, 14, 0.62) 42%, rgba(34, 21, 14, 0.28)),
    linear-gradient(180deg, rgba(34, 21, 14, 0.2), rgba(34, 21, 14, 0.72));
}

.hero-content {
  position: relative;
  width: min(780px, 100%);
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro h2,
.quote-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
}

.hero-copy {
  max-width: 620px;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-card {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(1rem, 4vw, 3rem);
  z-index: 2;
  width: min(340px, calc(100% - 2rem));
  padding: 1.2rem;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  color: var(--brand-dark);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 0.4rem;
  color: var(--muted);
}

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.intro h2,
.section-heading h2,
.quote-copy h2 {
  color: var(--brand-dark);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 2rem;
  align-items: end;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  min-height: 100%;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 38px rgba(63, 42, 33, 0.08);
}

.service-card.featured {
  background: var(--brand-dark);
  color: var(--white);
}

.service-card > img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.service-card h3,
.process h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.service-card p,
.process p {
  margin: 0;
  color: var(--muted);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.75);
}

.service-card.image-card {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 0;
  color: var(--white);
}

.service-card.image-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.service-card.image-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(30, 17, 10, 0.88));
  content: "";
}

.service-card.image-card div {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
}

.service-card.image-card p {
  color: rgba(255, 255, 255, 0.84);
}

.text-link {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--white);
  font-weight: 900;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 0.8rem;
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--brand-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(63, 42, 33, 0.12);
}

.gallery figure.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.gallery figure:hover img,
.gallery figure:focus-within img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  padding: 0.55rem 0.75rem;
  color: var(--white);
  background: rgba(33, 24, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(10px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.process-grid article {
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

blockquote {
  margin: 0;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

blockquote p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(63, 42, 33, 0.96), rgba(105, 72, 55, 0.92)),
    url("/wp-content/uploads/2015/05/newwood.png");
  border-radius: calc(var(--radius-lg) + 10px);
  color: var(--white);
  box-shadow: var(--shadow);
}

.quote-copy h2 {
  color: var(--white);
}

.quote-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.contact-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}

.contact-list a,
.site-footer a {
  text-decoration: none;
}

.contact-list a {
  width: fit-content;
  color: var(--white);
  font-weight: 900;
}

.contact-list span {
  color: rgba(255, 255, 255, 0.72);
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background: rgba(255, 250, 243, 0.96);
  border-radius: var(--radius-lg);
  color: var(--ink);
}

.quote-form label,
.quote-form .full {
  grid-column: span 2;
}

.quote-form label:nth-child(1),
.quote-form label:nth-child(2),
.quote-form label:nth-child(3),
.quote-form label:nth-child(4) {
  grid-column: span 1;
}

.quote-form span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(105, 72, 55, 0.22);
  border-radius: var(--radius-sm);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(181, 138, 87, 0.18);
  outline: none;
}

.form-note {
  grid-column: span 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.5fr);
  gap: 2rem;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem);
  color: var(--muted);
}

.site-footer img {
  width: 74px;
  height: auto;
  margin-bottom: 1rem;
}

.site-footer strong,
.site-footer a {
  display: block;
  color: var(--brand-dark);
  font-weight: 900;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.65rem 0.2rem;
  }

  .nav-cta {
    margin-top: 0.3rem;
  }

  .hero {
    min-height: 680px;
  }

  .intro,
  .section-heading.split,
  .quote-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 0.6rem 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .service-grid,
  .process-grid,
  .testimonial-grid,
  .gallery,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-auto-rows: 260px;
  }

  .gallery figure.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .quote-form label,
  .quote-form label:nth-child(1),
  .quote-form label:nth-child(2),
  .quote-form label:nth-child(3),
  .quote-form label:nth-child(4),
  .quote-form .full,
  .form-note {
    grid-column: span 1;
  }
}

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

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