:root {
  --bg: #f5efe6;
  --bg-alt: #ece3d5;
  --ink: #2b2018;
  --muted: #6d5d4f;
  --accent: #a86a32;
  --accent-ink: #fff8ef;
  --dark: #241a13;
  --dark-ink: #f3e9dc;
  --bar-bg: rgba(245, 239, 230, .92);
  --bar-bg-solid: rgba(245, 239, 230, .97);
  --mark-bg: #2b2018;
  --accent-hover: #93592a;
  color-scheme: light;
  --line: rgba(43, 32, 24, .14);
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

/* Dark theme: neutral charcoal with the same wood-tone accent.
   Declaring our own dark palette (plus the color-scheme meta tag in
   index.html) stops browsers from auto-darkening the cream design into brown.
   It follows the device setting unless the visitor picks a theme with the
   switch in the top bar (stored as data-theme on <html>). Keep both blocks
   identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141516;
    --bg-alt: #1c1e20;
    --ink: #eeece8;
    --muted: #a3a09a;
    --accent: #c98a4e;
    --accent-ink: #17120d;
    --accent-hover: #d99c62;
    --dark: #0d0e0f;
    --dark-ink: #eeece8;
    --line: rgba(255, 255, 255, .1);
    --bar-bg: rgba(20, 21, 22, .88);
    --bar-bg-solid: rgba(20, 21, 22, .97);
    --mark-bg: #26282b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141516;
  --bg-alt: #1c1e20;
  --ink: #eeece8;
  --muted: #a3a09a;
  --accent: #c98a4e;
  --accent-ink: #17120d;
  --accent-hover: #d99c62;
  --dark: #0d0e0f;
  --dark-ink: #eeece8;
  --line: rgba(255, 255, 255, .1);
  --bar-bg: rgba(20, 21, 22, .88);
  --bar-bg-solid: rgba(20, 21, 22, .97);
  --mark-bg: #26282b;
  color-scheme: dark;
}

body { transition: background-color .3s, color .3s; }

/* Theme switch */
.theme-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  margin-left: .6rem; transition: background .2s, border-color .2s, transform .3s;
}
.theme-toggle:hover { background: var(--bg-alt); border-color: var(--accent); }
.theme-toggle:active { transform: rotate(-20deg); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .25s, transform .35s; }
.theme-toggle .i-moon { opacity: 1; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.is-dark .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.is-dark .theme-toggle .i-sun { opacity: 1; transform: none; color: #e3b17e; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.btn {
  display: inline-block; padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 1rem; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 48px); background: var(--bar-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar { transition: padding .25s, box-shadow .25s, background .25s; }
.topbar.scrolled { padding-top: .5rem; padding-bottom: .5rem; box-shadow: 0 10px 30px -18px rgba(43, 32, 24, .45); background: var(--bar-bg-solid); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--mark-bg); color: #e3b17e; transition: transform .3s;
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.brand-text small { font-family: var(--sans); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.bar-actions { display: flex; align-items: center; gap: .5rem; }
.nav-link {
  position: relative; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }
.nav-phone {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 .4rem 0 .8rem; padding-left: 1.1rem;
  border-left: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--accent); }
.nav-phone:hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: .8rem 16px 1.2rem; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(43, 32, 24, .4);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { font-size: 1.1rem; padding: .8rem .6rem; border-radius: 10px; }
  .nav-link::after { display: none; }
  .nav-link.active, .nav-link:hover { background: var(--bg-alt); }
  .nav-phone { margin: .6rem 0; padding: .8rem .6rem; border-left: 0; border-top: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { text-align: center; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-photo {
  aspect-ratio: 4 / 5; border-radius: 22px; background-size: cover; background-position: center;
  box-shadow: 0 30px 60px -30px rgba(43, 32, 24, .55);
}

/* Wood-plank placeholder used whenever a gallery item has no media yet */
.wood {
  background-color: #b9814b;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(60, 35, 15, .35) 79px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, #c48f58, #a26a38);
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); max-width: 40em; margin: 0; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink); padding: .45em 1em; border-radius: 999px;
  font: 500 .92rem var(--sans); cursor: pointer;
}
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; background: var(--bg-alt); text-align: left; color: #fff; font: inherit;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile .wood { width: 100%; height: 100%; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(20, 12, 6, .78));
}
.tile-cap strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.tile-cap span { font-size: .82rem; opacity: .85; }
.play {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20, 12, 6, .6); display: grid; place-items: center; font-size: 15px;
}
.more-wrap { text-align: center; margin-top: 2rem; }
.empty { color: var(--muted); }

/* Services */
.bento {
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 16px; margin-bottom: clamp(48px, 6vw, 72px);
}
.bento-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); color: #fff; text-decoration: none;
  background-size: cover; background-position: center; isolation: isolate;
  transition: transform .3s, box-shadow .3s;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 12, 6, .05) 25%, rgba(20, 12, 6, .82));
  transition: background .3s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(43, 32, 24, .6); }
.bento-card:hover::before { background: linear-gradient(180deg, rgba(20, 12, 6, .15) 10%, rgba(20, 12, 6, .9)); }
.bento-big { grid-row: span 2; }
.bento-big h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.bento-card h3 { font-size: 1.5rem; margin-bottom: .3em; }
.bento-card p { margin: 0 0 .9rem; color: rgba(255, 255, 255, .86); max-width: 30em; font-size: .97rem; }
.bento-tag {
  position: absolute; top: 18px; left: 18px; background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .4em .9em; border-radius: 999px;
}
.bento-link { font-weight: 700; font-size: .92rem; border-bottom: 2px solid var(--accent); align-self: flex-start; padding-bottom: 2px; }

.sub-head { font-size: 1.5rem; margin-bottom: 1.2rem; }
.floor-types {
  list-style: none; padding: 0; margin-top: 0; margin-bottom: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.floor-types li {
  display: flex; gap: 1rem; align-items: center; background: var(--bg); border-radius: var(--radius);
  padding: 1rem 1.1rem; border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.floor-types li:hover { border-color: var(--accent); transform: translateY(-2px); }
.floor-types strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.floor-types span { color: var(--muted); font-size: .9rem; }
.ft-swatch { flex: none; width: 52px; height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ft-hardwood   { background: repeating-linear-gradient(90deg, #8a5a32 0 16px, #7a4d29 16px 17px), #8a5a32; }
.ft-engineered { background: repeating-linear-gradient(45deg, #c19463 0 9px, #a97b4b 9px 10px, #b68757 10px 19px, #a97b4b 19px 20px); }
.ft-laminate   { background: repeating-linear-gradient(90deg, #d4b48c 0 24px, #bf9f78 24px 25px); }
.ft-vinyl      { background: repeating-linear-gradient(90deg, #9c9488 0 20px, #8b8377 20px 21px); }

.process {
  list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  counter-reset: step;
}
.process li { display: flex; gap: 1rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.process li > span {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
}
.process strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .15rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-media { position: relative; padding: 0 12% 14% 0; }
.about-img { border-radius: 20px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(43, 32, 24, .6); }
.about-img-main { width: 100%; aspect-ratio: 4 / 5; }
.about-img-inset {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 6px solid var(--bg);
}
.about-badge {
  position: absolute; top: 24px; left: -16px; background: var(--accent); color: var(--accent-ink);
  border-radius: 16px; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .7rem;
  box-shadow: 0 16px 30px -16px rgba(168, 106, 50, .9);
}
.about-badge strong { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.about-badge span { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.about-lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.6rem; }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.6rem; }
.person {
  display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.person strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.person span { color: var(--muted); font-size: .85rem; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mark-bg); color: #e3b17e !important; font: 600 1.4rem var(--serif) !important;
}
.avatar-alt { background: var(--accent); color: var(--accent-ink) !important; }

.promises { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .65rem; }
.promises li { position: relative; padding-left: 2rem; font-weight: 500; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff8ef' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.area { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .95rem; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.area svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* Contact */
.section-dark { max-width: none; background: var(--dark); color: var(--dark-ink); }
.section-dark > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.section-dark .section-head p { color: #c9b8a5; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(243, 233, 220, .18); text-decoration: none; transition: border-color .15s, background .15s;
}
a.contact-card:hover { border-color: var(--accent); background: rgba(168, 106, 50, .12); }
.contact-card .label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: #c9b8a5; font-weight: 700; }
.contact-card .value { font-family: var(--serif); font-size: 1.35rem; word-break: break-word; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding: 1.4rem clamp(16px, 4vw, 48px); background: var(--dark); color: #a89683; font-size: .88rem;
  border-top: 1px solid rgba(243, 233, 220, .1);
}

/* Lightbox */
dialog#lightbox {
  width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: #17110c; color: var(--dark-ink);
}
dialog#lightbox::backdrop { background: rgba(15, 10, 6, .85); }
.lb-media { background: #000; display: grid; place-items: center; }
.lb-media img, .lb-media video { max-height: 70vh; width: auto; margin: 0 auto; }
.lb-media .wood { width: 100%; height: 50vh; }
.lb-media iframe.yt { display: block; width: min(100%, calc(70vh * 16 / 9)); aspect-ratio: 16 / 9; border: 0; }
.lb-media iframe.yt.is-short { width: auto; height: 70vh; aspect-ratio: 9 / 16; max-width: 100%; }
.lb-info { padding: 1.2rem 1.6rem 1.6rem; }
.lb-info h3 { font-size: 1.5rem; }
.lb-info p { margin: 0; color: #d6c6b3; }
.lb-meta { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; margin-bottom: .4rem !important; color: var(--accent) !important; font-weight: 700; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1;
}
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: 35vh; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 820px) {
  .hero, .about { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento-big { grid-row: auto; min-height: 380px; }
  .bento-card { min-height: 260px; }
  .process { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; order: -1; }
  .about-media { max-width: 560px; padding: 0 8% 10% 0; }
  .about-img-main { aspect-ratio: 4 / 3; }
  .about-img-inset { width: 40%; }
  .about-badge { left: 8px; }
  .team { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.05rem; }
}
