:root {
  --cream: #f4f0e8;
  --cream-dark: #ece6da;
  --brown-dark: #2f2519;
  --brown-darker: #241d15;
  --brown-mid: #6b5a45;
  --accent: #a97e4f;
  --accent-light: #c29b6b;
  --text-dark: #2c281f;
  --text-muted: #6c6456;
  --line: #ddd4c4;
  --hero-overlay: rgba(38, 29, 20, 0.55);
  /* Typography. Change these vars to swap fonts site-wide. */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-script: "Great Vibes", cursive;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--cream);
  font-weight: 300;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- Utility ---------- */
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.74rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.section {
  padding: 5rem 0;
}

.section-narrow {
  max-width: 840px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.title-rule {
  width: 55px;
  height: 2px;
  background: var(--accent);
  border: 0;
  opacity: 1;
  margin: 1.15rem auto;
}

.title-rule-left {
  margin: 1.15rem 0;
}

.text-muted-warm {
  color: var(--text-muted);
}

.lead-para {
  font-size: 1.08rem;
}

/* ---------- Buttons ---------- */
.btn-wood,
.btn-quote {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 3px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(169, 126, 79, 0.25);
}

.btn-wood:hover,
.btn-quote:hover {
  background: var(--brown-mid);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107, 90, 69, 0.35);
  transform: translateY(-2px);
}

.btn-outline-wood {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 3px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-wood:hover {
  background: #fff;
  color: var(--brown-dark);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.7rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 3px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Brand logo (TM monogram + wordmark) ---------- */
.tm-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.tm-monogram {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: -0.14em;
  color: var(--accent);
  padding-right: 0.14em;
  line-height: 0.9;
}

.tm-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.3rem;
}

.tm-word-line1 {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  padding-left: 0.32em;
}

.tm-word-line2 {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--accent);
  padding-left: 0.42em;
  margin-top: 2px;
}

.tm-word-byline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--brown-mid);
  margin-top: 3px;
  text-transform: none;
}

.tm-logo-light .tm-word-line1 {
  color: #fff;
}
.tm-logo-light .tm-word-byline {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--cream);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-dark);
  padding-bottom: 4px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.nav-quote-wrap {
  padding-left: 0.4rem;
}

/* Dropdown */
.has-dropdown > .dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.76rem;
  color: var(--text-dark);
  padding: 0;
}

.has-dropdown > .dropdown-trigger:hover,
.has-dropdown > .dropdown-trigger.active {
  color: var(--accent);
}

.dropdown-menu-custom {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.dropdown-menu-custom li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.dropdown-menu-custom li a:hover {
  background: var(--cream-dark);
  color: var(--accent);
}

@media (min-width: 992px) {
  .has-dropdown .dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 120;
  }

  .has-dropdown:hover .dropdown-menu-custom,
  .has-dropdown:focus-within .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--brown-dark);
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */
.hero-home {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(30, 23, 16, 0.82) 0%,
    rgba(30, 23, 16, 0.55) 45%,
    rgba(30, 23, 16, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-brandmark {
  margin-bottom: 1.5rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.hero-slogan {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.hero-script-byline {
  font-family: var(--font-script);
  color: var(--accent-light);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.4rem;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.hero-brandmark .line {
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.2;
}

.hero-brandmark .line-1 {
  font-size: 3rem;
  font-weight: 600;
}

.hero-brandmark .line-2 {
  font-size: 1.5rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent-light);
  margin: 0.25rem 0;
}

.hero-brandmark .line-3 {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 470px;
  margin-bottom: 2rem;
}

/* ---------- Page hero (inner pages) — split style ---------- */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.page-hero-text {
  background: var(--brown-dark);
  color: #fff;
  padding: 4rem 3rem 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* indent using container margin */
.page-hero-text-inner {
  max-width: 480px;
  margin-left: auto;
  padding-left: 1.5rem;
}

.page-hero-image {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.page-hero .eyebrow {
  color: var(--accent-light);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 420px;
  margin: 0;
  font-size: 0.95rem;
}

.page-hero .title-rule {
  margin: 0.75rem 0;
}

@media (max-width: 767px) {
  .page-hero {
    grid-template-columns: 1fr;
  }
  .page-hero-text {
    padding: 3rem 1.25rem;
  }
  .page-hero-text-inner {
    margin-left: 0;
    padding-left: 0;
    max-width: 100%;
  }
  .page-hero-image {
    min-height: 240px;
  }
}

/* ---------- Content / prose ---------- */
.prose p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--brown-mid);
}

.prose ul {
  color: var(--text-muted);
  padding-left: 1.2rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--brown-mid);
  line-height: 1.4;
}

/* ---------- Split section ---------- */
.split-section {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--cream);
}

.split-image {
  flex: 1 1 45%;
  min-height: 460px;
  background-size: cover;
  background-position: center;
}

.split-text {
  flex: 1 1 55%;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-alt {
  background: var(--cream-dark);
}

/* ---------- Service icon columns (home) ---------- */
.svc-row {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.svc-col {
  flex: 1 1 0;
  min-width: 180px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--line);
  transition: all 0.3s ease;
}

.svc-col:last-child {
  border-right: none;
}

.svc-col:hover {
  background: var(--cream);
}

.svc-col .svc-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.svc-col:hover .svc-icon {
  transform: scale(1.1);
}

.svc-col h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.svc-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.9rem;
  line-height: 1.6;
}

.svc-col .card-link {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.svc-col:hover .card-link {
  color: var(--brown-mid);
}

/* ---------- Service cards (services overview page) ---------- */
.feature-band {
  background: var(--cream-dark);
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(47, 37, 25, 0.12);
}

.service-card .feature-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.service-card .card-link {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* ---------- Service area strip ---------- */
.area-strip {
  background: var(--brown-dark);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.area-strip h2 {
  color: #fff;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.area-list li {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-light);
}

/* ---------- Work gallery ---------- */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-gallery .work-tile {
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.work-gallery .work-tile:hover {
  transform: translateY(-4px);
}

/* Home work row (edge-to-edge, 5 across like the mockup) */
.work-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.work-row .work-tile {
  height: 230px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.work-row .work-tile:hover {
  transform: translateY(-4px);
}

/* ---------- Recommendations ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2rem;
  height: 100%;
}

.testimonial-card .quote-icon {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .attribution {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brown-mid);
  font-style: normal;
}

/* ---------- CTA banner (wood texture) ---------- */
.cta-banner {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: var(--brown-dark);
  padding: 3.25rem 0;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 34, 20, 0.68);
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin: 0;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
}

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.contact-list i {
  color: var(--accent);
  width: 20px;
  margin-top: 4px;
}

.form-label-warm {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brown-mid);
  margin-bottom: 0.3rem;
  display: block;
}

.form-control-warm {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0.7rem 0.9rem;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.form-control-warm:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-darker);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.25rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-contact,
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.footer-contact i {
  color: var(--accent-light);
  width: 18px;
  margin-top: 4px;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 50;
    border-top: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown-menu-custom {
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0 1rem;
    min-width: 0;
    background: transparent;
  }

  .dropdown-menu-custom li a {
    padding: 0.4rem 0;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-brandmark .line-1 {
    font-size: 2.2rem;
  }

  .split-image {
    flex: 1 1 100%;
    min-height: 300px;
  }

  .split-text {
    flex: 1 1 100%;
    padding: 3rem 1.25rem;
  }

  .svc-col {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .svc-col:last-child {
    border-bottom: none;
  }

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

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

  .cta-banner .container {
    text-align: center;
  }

  .cta-banner .cta-btn-wrap {
    margin-top: 1.25rem;
  }
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  columns: 2;
  column-gap: 10px;
}

@media (min-width: 576px) { .gallery-grid { columns: 3; } }
@media (min-width: 768px) { .gallery-grid { columns: 4; } }
@media (min-width: 1200px) { .gallery-grid { columns: 5; } }

.gallery-tile {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 10px;
  padding: 0;
  border: none;
  background: var(--cream-dark);
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
  filter: brightness(0.88);
}

/* ---------- Lightbox ---------- */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 8, 0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
}

.lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  display: block;
}

.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lb-close {
  top: -56px;
  right: 0;
  font-size: 1rem;
}

.lb-prev {
  left: -64px;
}

.lb-next {
  right: -64px;
}

.lb-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .lb-prev { left: 4px; bottom: -56px; top: auto; }
  .lb-next { right: 4px; bottom: -56px; top: auto; }
  .lb-close { top: -48px; right: 0; }
}
