/* Isaac Moore Carpentry — timber palette, shared type with family sites */
:root {
  --timber-deep: #3b2416;
  --timber: #6b4226;
  --timber-mid: #8f5a32;
  --timber-light: #c4a06a;
  --sawdust: #efe6d8;
  --paper: #f8f5f0;
  --ink: #1c1612;
  --muted: #5c5148;
  --line: #d9cbb8;
  --white: #ffffff;
  --focus: #a56b35;
  --error: #8b2e2e;
  --ok: #2f5d3a;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(196, 160, 106, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(107, 66, 38, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #f3ebe0 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--timber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--timber-deep);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--timber-deep);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header / nav (injected) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--timber-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--timber-deep);
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--timber);
}

.site-nav .nav-cta {
  background: var(--timber);
  color: var(--white) !important;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
}

.site-nav .nav-cta:hover {
  background: var(--timber-deep);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  overflow: hidden;
  color: #f6efe4;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  z-index: 0;
  transform: scale(1.04);
  animation: hero-settle 1.4s ease-out forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(28, 18, 12, 0.82) 0%,
      rgba(28, 18, 12, 0.55) 42%,
      rgba(28, 18, 12, 0.18) 72%,
      rgba(28, 18, 12, 0.35) 100%
    ),
    linear-gradient(to top, rgba(20, 12, 8, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: hero-rise 0.9s ease-out 0.15s both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 4.4rem);
  color: #f8f1e6;
  margin: 0 0 0.35em;
  max-width: 11ch;
  line-height: 1.05;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(246, 239, 228, 0.9);
  max-width: 34ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn--ghost {
  border-color: rgba(248, 241, 230, 0.75);
  color: #f8f1e6;
}

.hero .btn--ghost:hover {
  background: rgba(248, 241, 230, 0.12);
  color: #fff;
  border-color: #fff;
}

.hero .btn--primary {
  background: var(--timber-light);
  color: var(--timber-deep);
}

.hero .btn--primary:hover {
  background: #d4b07a;
  color: var(--timber-deep);
}

@keyframes hero-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: min(78vh, 720px);
    align-items: flex-end;
  }

  .hero__img {
    object-position: 70% center;
  }

  .hero__veil {
    background:
      linear-gradient(to top, rgba(20, 12, 8, 0.88) 0%, rgba(20, 12, 8, 0.45) 55%, rgba(20, 12, 8, 0.25) 100%);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--timber);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--timber-deep);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--timber);
  color: var(--timber-deep);
}

.btn--ghost:hover {
  background: var(--timber);
  color: var(--white);
}

/* —— Sections —— */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--tint {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

.section--feature {
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
}

.feature-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 840px) {
  .feature-split {
    grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
    gap: 3rem;
  }
}

.feature-photo,
.page-photo {
  margin: 0;
}

.feature-photo {
  max-width: 280px;
}

.feature-photo img,
.page-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(59, 36, 22, 0.1);
}

.feature-photo img {
  max-height: 340px;
  object-position: center 40%;
}

.page-photo {
  margin-bottom: 1.5rem;
  max-width: 260px;
}

.page-photo img {
  max-height: 320px;
  object-position: center top;
}

@media (min-width: 840px) {
  .feature-photo {
    max-width: 300px;
    justify-self: start;
  }
}

.section__intro {
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.section__intro p {
  color: var(--muted);
}

.prose {
  max-width: 68ch;
}

.prose--wide {
  max-width: 72ch;
}

.prose .btn + .btn {
  margin-left: 0.5rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Service list — not cards; linked rows */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  border-bottom: 1px solid var(--line);
}

.service-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  text-decoration: none;
  color: inherit;
}

.service-list a:hover h3 {
  color: var(--timber);
}

.service-list h3 {
  margin: 0;
}

.service-list p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  grid-column: 1 / -1;
}

.service-list .arrow {
  color: var(--timber-light);
  font-size: 1.4rem;
}

/* Split band */
.band {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .band--2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.panel-plain {
  padding: 0;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Forms */
.form {
  max-width: 36rem;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form .field {
  margin-bottom: 1rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-msg {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.form-msg--ok {
  border-color: var(--ok);
  color: var(--ok);
  background: rgba(47, 93, 58, 0.08);
}

.form-msg--err {
  border-color: var(--error);
  color: var(--error);
  background: rgba(139, 46, 46, 0.06);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--timber-deep);
  color: #e8dcc8;
  padding: 2.75rem 0 1.75rem;
}

.site-footer a {
  color: var(--timber-light);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  color: var(--sawdust);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(196, 160, 106, 0.25);
  font-size: 0.9rem;
  color: rgba(232, 220, 200, 0.75);
}

.network-list a {
  text-decoration: none;
}

/* Page chrome */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.page-hero p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--timber);
}

/* Related links */
.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}
