/* Thomas Joinery: brand layer on top of Tailwind (Play CDN) */
:root {
  --mahogany: #854935;
  --oak: #D5A67C;
  --walnut: #946236;
  --charcoal: #2E2D2B;
  --cream: #FBF8F4;
}
.font-display { font-family: "Cormorant Garamond", "Baskerville Old Face", Georgia, serif; font-weight: 600; }
.font-body, body { font-family: "Manrope", system-ui, sans-serif; }

/* fluid type scale */
.h-hero { font-size: clamp(2.75rem, 1.6rem + 5.2vw, 6.25rem); line-height: .95; letter-spacing: -0.025em; }
.h-xl   { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); line-height: 1; letter-spacing: -0.02em; }
.h-lg   { font-size: clamp(2.1rem, 1.5rem + 2.3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.015em; }
.h-md   { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }

/* nav */
.nav-link { position: relative; font-size: .9rem; font-weight: 600; color: #44403c; padding: .5rem 0; transition: color .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--mahogany); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.dd-panel { position: absolute; left: 50%; top: 100%; margin-left: -17rem; margin-top: .75rem; background: #fff; box-shadow: 0 30px 60px -20px rgba(46,45,43,.35); border-top: 3px solid var(--mahogany); transition: all .25s ease; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.dd-link { display: block; padding: .8rem 1rem; border-radius: 2px; transition: background .2s; }
.dd-link:hover, .dd-link:focus { background: #F4EDE4; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(46,45,43,.25); }

/* buttons */
.btn-primary, .btn-light, .btn-ghost-light { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem; padding: .85rem 1.4rem; min-height: 48px; transition: all .25s ease; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn-primary { background: var(--mahogany); color: #fff; }
.btn-primary:hover { background: #6d3b2a; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(133,73,53,.6); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn-light { background: #fff; color: var(--mahogany); }
.btn-light:hover { background: var(--oak); color: var(--charcoal); transform: translateY(-2px); }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { border-color: var(--oak); background: rgba(213,166,124,.12); }
.link-arrow, .link-arrow-light { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; transition: gap .25s; }
.link-arrow { color: var(--mahogany); }
.link-arrow-light { color: var(--oak); }
.link-arrow:hover, .link-arrow-light:hover, a:hover .link-arrow, a:hover .link-arrow-light { gap: .85rem; }

/* sections */
.bento { position: relative; display: flex; overflow: hidden; background: var(--charcoal); min-height: 260px; isolation: isolate; }
.bento > img, .bento > span:first-of-type { z-index: -1; }
.wood-grain { background-image: repeating-linear-gradient(100deg, transparent 0 18px, rgba(255,255,255,.6) 18px 19px, transparent 19px 41px, rgba(255,255,255,.35) 41px 42px); }
.area-chip { padding: .45rem .9rem; border: 1px solid #e7e0d6; background: #fff; font-size: .875rem; border-radius: 999px; }
.area-chip-strong { background: var(--charcoal); color: #fff; border-color: var(--charcoal); font-weight: 600; }
.tag-chip { background: rgba(251,248,244,.92); color: var(--mahogany); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .7rem; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; transition: all .2s; }
.social:hover { border-color: var(--oak); color: var(--oak); }
.foot-h { color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }

/* prose */
.prose-tj p { color: #57534e; line-height: 1.8; margin-top: 1.1rem; font-size: 1.05rem; }
.prose-tj p.lead { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.55; color: var(--charcoal); margin-top: 0; font-weight: 500; }
.prose-tj a { color: var(--mahogany); text-decoration: underline; text-underline-offset: 3px; }
.callout { margin-top: 1.75rem; padding: 1.2rem 1.4rem; background: #F4EDE4; border-left: 4px solid var(--mahogany); color: #44403c; line-height: 1.7; }
.callout a { color: var(--mahogany); text-decoration: underline; }

/* gallery */
.g-item { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #e7e5e4; cursor: zoom-in; }
.g-zoom { position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(46,45,43,.65); color: #fff; opacity: 0; transform: translateY(6px); transition: all .3s; }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }
.chip { flex-shrink: 0; padding: .55rem 1.05rem; min-height: 40px; border: 1px solid #d6d3d1; border-radius: 999px; font-size: .875rem; font-weight: 600; background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--mahogany); color: var(--mahogany); }
.chip.is-active { background: var(--mahogany); border-color: var(--mahogany); color: #fff; }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,18,.94); display: flex; align-items: center; justify-content: center; padding: 4rem 1rem; }
.lb.hidden { display: none; }
.lb-fig { max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-height: calc(100vh - 10rem); max-width: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #d6d3d1; margin-top: 1rem; font-size: .9rem; text-align: center; }
.lb button { position: absolute; color: #fff; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: rgba(255,255,255,.08); transition: background .2s; }
.lb button:hover { background: var(--mahogany); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* carousel */
.carousel { overflow: hidden; }
.car-track { display: flex; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.car-slide { flex: 0 0 100%; padding-right: 2rem; }
.car-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: all .2s; }
.car-btn:hover { background: #fff; color: var(--mahogany); }

/* forms */
.f-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #44403c; margin-bottom: .4rem; }
.f-input { width: 100%; background: #fff; border: 1px solid #d6d3d1; padding: .8rem .95rem; font-size: 1rem; min-height: 48px; transition: border-color .2s, box-shadow .2s; border-radius: 0; color: var(--charcoal); }
.f-input:focus { outline: none; border-color: var(--mahogany); box-shadow: 0 0 0 3px rgba(133,73,53,.15); }
.f-input.is-invalid { border-color: #b91c1c; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-success { color: #166534; background: #ecfdf3; border-left: 3px solid #16a34a; padding: .6rem .9rem; }
.form-status.is-error { color: #991b1b; background: #fef2f2; border-left: 3px solid #dc2626; padding: .6rem .9rem; }
.grecaptcha-badge { visibility: hidden; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero-img { animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
