/* Legacy Tile LLC — landing page
   Mobile-first. Palette: black / cream / gold (accent) / navy (discreet). */

:root {
  --black: #0e0e0e;
  --ink: #181818;
  --cream: #f6f1e7;
  --cream-2: #ece4d3;
  --gold: #b8975a;
  --gold-lt: #d4b87a;
  --gold-dk: #86672f;
  --text: #2a2a2a;
  --muted: #6b665c;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  padding-bottom: 64px; /* room for the mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0; position: relative; }
.on-dark { color: var(--cream); }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-dk); display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.title::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-top: 22px; }
.contact .title::after, .mission .title::after { margin-left: auto; margin-right: auto; }
.on-dark .eyebrow { color: var(--gold-lt); }
.title { font-size: clamp(34px, 6vw, 56px); }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 26px 0; }

/* Dark image sections: image + strong overlay so copy always stays readable */
.bg-section { background-color: var(--black); background-size: cover; background-position: center; isolation: isolate; }
.bg-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,14,14,.88) 0%, rgba(14,14,14,.82) 50%, rgba(14,14,14,.92) 100%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 30px; border: 1px solid var(--gold);
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-line { background: transparent; color: var(--cream); border-color: rgba(246,241,231,.5); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn-dark { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 12px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: var(--cream);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header.solid { background: rgba(14,14,14,.96); box-shadow: 0 1px 0 rgba(184,151,90,.35); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.brand span i { font-style: normal; color: var(--gold-lt); }
.nav { display: none; }
.nav a { font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; padding: 8px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: none; }
.burger { width: 44px; height: 44px; background: none; border: 0; display: grid; place-content: center; gap: 6px; padding: 0; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--black); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 90px 32px 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a.link { font-family: var(--serif); font-size: 38px; padding: 6px 0; border-bottom: 1px solid rgba(184,151,90,.25); }
.menu .btn { margin-top: 22px; }
.menu .menu-tel { text-align: center; margin-top: 16px; letter-spacing: .12em; color: var(--gold-lt); }
body.no-scroll { overflow: hidden; }

/* Hero + strip share the first screen */
.intro { display: flex; flex-direction: column; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); }

/* Hero */
.hero {
  flex: 1; display: flex; align-items: center; color: var(--cream); text-align: left;
  padding: calc(var(--header-h) + 28px) 0 44px; position: relative; isolation: isolate;
  background: var(--black) url("../assets/img/bg-kitchen2.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,14,14,.9) 0%, rgba(14,14,14,.72) 55%, rgba(14,14,14,.55) 100%),
    linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,0) 30%, rgba(14,14,14,.75) 100%);
}
.hero h1 { font-size: clamp(32px, min(7.6vw, 6.2vh + 10px), 66px); font-weight: 500; max-width: 22ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--gold-lt); font-weight: 500; }
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); max-width: 30em; color: rgba(246,241,231,.86); margin: 20px 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(246,241,231,.6); display: none; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Trust strip */
.strip { background: var(--black); color: var(--cream); border-bottom: 1px solid rgba(184,151,90,.3); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.strip li { padding: 18px 10px; text-align: center; font-family: var(--serif); font-size: 19px; letter-spacing: .02em; border-right: 1px solid rgba(184,151,90,.2); border-bottom: 1px solid rgba(184,151,90,.2); }
.strip li:nth-child(2n) { border-right: 0; }
.strip li:nth-child(n+3) { border-bottom: 0; }
.strip small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 4px; }

/* Services */
.services .head { max-width: 640px; margin-bottom: 44px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--black); color: var(--cream); }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; opacity: .92; }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0) 45%, rgba(14,14,14,.88) 100%); }
.svc span { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 1; font-family: var(--serif); font-size: 21px; line-height: 1.1; padding-top: 12px; }
.svc span::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 1px; background: var(--gold); transition: width .4s var(--ease); }
.svc:hover img { transform: scale(1.06); opacity: 1; }
.svc:hover span::before { width: 56px; }

/* Story */
.story .grid { display: grid; gap: 44px; }
.story .lead { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); line-height: 1.4; color: var(--cream); }
.story p { color: rgba(246,241,231,.82); }
.story blockquote {
  margin: 32px 0 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.2vw, 27px); line-height: 1.35; color: var(--gold-lt);
}
.story .mark { display: flex; justify-content: center; }
.story .mark img { width: min(340px, 78%); border-radius: 18px; border: 1px solid rgba(184,151,90,.45); }

/* Mission band (navy, discreet) */
.mission { background: #1c1c1c; color: var(--cream); text-align: center; padding: 76px 0; }
.mission .wrap { max-width: 820px; }
.mission h2 { font-size: clamp(28px, 4.6vw, 40px); margin-bottom: 22px; }
.mission p { color: rgba(246,241,231,.82); }
.mission .tag { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.6vw, 30px); color: var(--gold-lt); margin: 28px 0 0; line-height: 1.3; }

/* Why us */
.why .head { max-width: 680px; margin-bottom: 44px; }
.why-grid { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid rgba(184,151,90,.28); padding: 30px 26px; }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card.feature { background: var(--black); color: var(--cream); border-color: var(--black); padding: 36px 26px; }
.card.feature h3 { font-size: clamp(30px, 4.4vw, 40px); color: var(--cream); margin-bottom: 18px; }
.card.feature p { color: rgba(246,241,231,.82); margin-bottom: .9em; }
.card.feature p.hl { color: var(--gold-lt); font-family: var(--serif); font-size: 22px; line-height: 1.35; margin-top: 1.4em; }
.card.feature .lines { list-style: none; padding: 0; margin: 0 0 1em; }
.card.feature .lines li { position: relative; padding: 9px 0 9px 26px; color: rgba(246,241,231,.9); border-bottom: 1px solid rgba(184,151,90,.2); }
.card.feature .lines li::before { content: ""; position: absolute; left: 0; top: 20px; width: 12px; height: 1px; background: var(--gold); }
.closing { text-align: center; max-width: 720px; margin: 54px auto 0; font-family: var(--serif); font-size: clamp(24px, 3.8vw, 32px); line-height: 1.32; color: var(--ink); }
.closing em { color: var(--gold-dk); }

/* Portfolio */
.portfolio .head { display: grid; gap: 22px; margin-bottom: 34px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 40px; padding: 0 18px; background: transparent; border: 1px solid rgba(246,241,231,.28); color: var(--cream); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: all .25s var(--ease); }
.filters button:hover { border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot { position: relative; padding: 0; border: 0; background: var(--ink); aspect-ratio: 3 / 4; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s; pointer-events: none; }
.shot:hover img { transform: scale(1.05); }
.shot:hover::after { border-color: var(--gold); }
.more { text-align: center; margin-top: 34px; }

/* Contact */
.contact { text-align: center; }
.contact .wrap { max-width: 760px; }
.contact h2 { font-size: clamp(36px, 6.4vw, 60px); margin-bottom: 30px; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(184,151,90,.3); text-align: left; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 16px 2px; border-bottom: 1px solid rgba(184,151,90,.3); }
.contact-list small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); }
.contact-list a { font-family: var(--serif); font-size: 22px; word-break: break-word; text-align: right; }
.contact-list a:hover { color: var(--gold-lt); }

/* Footer */
.footer { background: var(--black); color: rgba(246,241,231,.7); padding: 56px 0 30px; text-align: center; font-size: 14px; }
.footer img { width: 150px; margin: 0 auto 22px; border-radius: 12px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 22px; }
.footer nav a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 0; }
.footer nav a:hover { color: var(--gold-lt); }
.footer .copy { border-top: 1px solid rgba(184,151,90,.25); padding-top: 22px; font-size: 13px; }

/* Mobile action bar */
.actionbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; background: var(--black); border-top: 1px solid rgba(184,151,90,.45); padding-bottom: env(safe-area-inset-bottom); transition: transform .3s var(--ease); }
.actionbar a, .actionbar button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); background: transparent; border: 0; }
.actionbar button { background: var(--gold); color: var(--black); }
body.modal-open .actionbar { transform: translateY(110%); }

/* Modal (quote popup) */
.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text); overflow: hidden; }
.modal::backdrop { background: rgba(8,8,8,.78); backdrop-filter: blur(3px); }
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  position: relative; width: 100%; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--cream); padding: 34px 22px calc(28px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--gold); animation: sheet .4s var(--ease);
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h2 { font-size: 34px; margin-bottom: 6px; padding-right: 40px; }
.sheet .close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--ink); }
.sheet .close:hover { color: var(--gold-dk); }
.form { display: grid; gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #cfc6b1; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dk); box-shadow: 0 0 0 3px rgba(184,151,90,.25); }
.field .err { display: none; color: #9b2c2c; font-size: 13px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: #9b2c2c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { width: 100%; margin-top: 4px; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { display: none; font-size: 15px; color: #9b2c2c; text-align: center; }
.form-msg.show { display: block; }

/* Thank-you page */
.thanks { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--cream); padding: 40px 0; background: var(--black) url("../assets/img/bg-home.jpg") center / cover; position: relative; isolation: isolate; }
.thanks::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,14,14,.88); }
.thanks img { width: 170px; margin: 0 auto 30px; border-radius: 14px; }
.thanks h1 { font-size: clamp(42px, 9vw, 72px); }
.thanks p { color: rgba(246,241,231,.85); max-width: 30em; margin: 0 auto 32px; font-size: 19px; }
.thanks .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.thanks .socials { margin-top: 34px; display: flex; gap: 26px; justify-content: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.thanks .socials a:hover { color: var(--gold-lt); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 60px 0 40px; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--cream); width: 52px; height: 52px; font-size: 34px; line-height: 1; }
.lightbox button:hover { color: var(--gold-lt); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(246,241,231,.7); font-size: 12px; letter-spacing: .2em; }

/* Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after, .sheet { animation: none; }
}

/* ≥ 600px */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .strip ul { grid-template-columns: repeat(4, 1fr); }
  .strip li { border-bottom: 0 !important; border-right: 1px solid rgba(184,151,90,.2) !important; }
  .strip li:last-child { border-right: 0 !important; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-column: 1 / -1; }
  .modal[open] { align-items: center; padding: 24px; }
  .sheet { max-width: 520px; max-height: 92%; border-top: 0; border: 1px solid var(--gold); padding: 44px 40px; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  :root { --header-h: 84px; }
  body { padding-bottom: 0; font-size: 18px; }
  .intro { min-height: 100vh; min-height: 100svh; }
  .hero { padding-bottom: 60px; }
  .strip li { padding: 26px 12px; }
  .section { padding: 130px 0; }
  .nav { display: flex; gap: 38px; }
  .header-cta { display: inline-flex; }
  .burger, .menu, .actionbar { display: none; }
  .brand img { width: 52px; height: 52px; }
  .hero .actions { gap: 18px; }
  .scroll-cue { display: flex; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc span { font-size: 24px; left: 20px; bottom: 20px; }
  .story .grid { grid-template-columns: 1.35fr 1fr; gap: 90px; align-items: center; }
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 64px; padding: 54px 52px; }
  .card.feature h3 { grid-column: 1; }
  .card.feature .body { grid-column: 2; grid-row: 1 / span 2; }
  .portfolio .head { grid-template-columns: 1fr auto; align-items: end; }
  .filters { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; justify-content: flex-end; max-width: 620px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .lb-prev, .lb-next { width: 64px; height: 64px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
}
