/* =========================================================
   Transfigured Décor — main.css
   ========================================================= */

:root {
  /* Brand palette — warm taupe / greige, drawn from the brochure */
  --cream:      #f7f3ee;
  --cream-2:    #efe8df;
  --paper:      #fffdfa;
  --ink:        #2b2621;
  --ink-soft:   #5c554c;
  --taupe:      #8a7d6d;
  --taupe-dk:   #6b5f52;
  --line:       #ddd3c6;
  --gold:       oklch(0.72 0.06 75);   /* muted warm accent */
  --shadow:     0 18px 48px -22px rgba(43, 38, 33, 0.45);

  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--taupe-dk); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 600;
  color: var(--taupe);
  margin: 0 0 18px;
}
.eyebrow.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid transparent; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--taupe-dk); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247,243,238,.55); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-block { width: 100%; }

.text-link {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe-dk);
  white-space: nowrap;
}
.text-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,238,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(247,243,238,.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border: 1.5px solid var(--taupe);
  font-family: var(--serif); font-size: 16px; letter-spacing: 1px; color: var(--taupe-dk);
  flex: none;
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name-main { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.brand-name-sub { font-family: var(--sans); font-size: 9px; letter-spacing: .42em; color: var(--taupe); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a[data-nav] {
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-soft); position: relative; padding: 4px 0;
}
.site-nav a[data-nav]:hover { color: var(--ink); }
.site-nav a[data-nav].active { color: var(--ink); }
.site-nav a[data-nav]:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--taupe-dk); transition: width .25s ease;
}
.site-nav a[data-nav]:not(.nav-cta).active::after,
.site-nav a[data-nav]:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--ink); padding: 9px 20px !important; color: var(--ink) !important;
  letter-spacing: .1em; text-transform: uppercase; font-size: 12px !important; font-weight: 600 !important;
}
.nav-cta:hover, .nav-cta.active { background: var(--ink); color: var(--cream) !important; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Page transition ---------- */
.page { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,26,22,.28) 0%, rgba(30,26,22,.15) 40%, rgba(30,26,22,.78) 100%); }
.hero-content { position: relative; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.hero-content .eyebrow { color: rgba(247,243,238,.85); }
.hero-title { font-size: clamp(38px, 6.4vw, 82px); max-width: 15ch; margin-bottom: 22px; text-wrap: balance; }
.hero-lede { font-size: clamp(17px, 2vw, 21px); max-width: 46ch; color: rgba(247,243,238,.92); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Home intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.intro-lead h2 { font-size: clamp(30px, 4vw, 48px); text-wrap: balance; }
.intro-body { font-size: 18px; color: var(--ink-soft); }
.intro-body .text-link { display: inline-block; margin-top: 12px; color: var(--taupe-dk); }

/* ---------- Band (stats / values) ---------- */
.band { background: var(--ink); color: var(--cream); padding: clamp(48px, 7vw, 84px) 0; }
.band .eyebrow { color: var(--taupe); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 60px); }
.stat-row li { display: flex; flex-direction: column; gap: 10px; }
.stat-num { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); }
.stat-label { font-size: 14px; color: rgba(247,243,238,.7); letter-spacing: .02em; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(247,243,238,.16); margin-top: 26px; border: 1px solid rgba(247,243,238,.16); }
.values-grid li { background: var(--ink); padding: 34px 26px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); text-align: center; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); }

/* ---------- Mini services (home) ---------- */
.mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-services article { background: var(--paper); border: 1px solid var(--line); padding: 38px 32px; }
.mini-services h3 { font-size: 24px; margin-bottom: 12px; }
.mini-services p { color: var(--ink-soft); }

/* ---------- Home gallery ---------- */
.home-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 240px; gap: 16px; }
.hg-item { overflow: hidden; }
.hg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hg-item:hover img { transform: scale(1.05); }
.hg-tall { grid-row: span 2; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px, 9vw, 120px) 0; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(28px, 4.4vw, 52px); margin-bottom: 16px; text-wrap: balance; }
.cta-inner p { color: var(--ink-soft); font-size: 18px; margin-bottom: 30px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: clamp(64px, 10vw, 132px) 0 clamp(48px, 7vw, 84px); }
.page-hero h1 { font-size: clamp(36px, 6vw, 72px); max-width: 16ch; text-wrap: balance; }
.page-hero-lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 52ch; margin-top: 20px; }

/* ---------- About ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); font-size: 18px; color: var(--ink-soft); }
.vmv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 0; }
.vmv-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(32px, 4vw, 52px); }
.vmv-card h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.vmv-card p { color: var(--ink-soft); }

.founder { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder-img { overflow: hidden; }
.founder-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.founder blockquote { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.35; margin: 0 0 24px; text-wrap: pretty; }
.founder-name { font-weight: 600; letter-spacing: .02em; margin-bottom: 26px; }
.founder-name span { font-weight: 400; color: var(--taupe); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--cream); padding: clamp(30px, 3.4vw, 44px); transition: background .3s ease; }
.svc:hover { background: var(--paper); }
.svc-num { font-family: var(--serif); font-size: 15px; color: var(--taupe); display: block; margin-bottom: 18px; }
.svc h3 { font-size: 22px; margin-bottom: 10px; }
.svc p { color: var(--ink-soft); font-size: 16px; }

.packages { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 100px); }
.packages h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.packages-text p { color: var(--ink-soft); font-size: 18px; margin-bottom: 28px; }
.packages-img { overflow: hidden; }
.packages-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal { padding: 0; border: 0; cursor: pointer; background: var(--cream-2); overflow: hidden; aspect-ratio: 4/5; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal:hover img { transform: scale(1.06); }
.gal:focus-visible { outline: 2px solid var(--taupe-dk); outline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.contact-list li { display: flex; flex-direction: column; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.ci-label { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--taupe); font-weight: 600; }
.contact-list a { font-size: 18px; }
.ci-social { display: flex; flex-wrap: wrap; gap: 18px; font-size: 16px; }
.contact-note { color: var(--ink-soft); font-size: 15px; }

.contact-form { background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; color: var(--ink); }
.field label span { color: var(--taupe); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); background: var(--cream);
  border-radius: 0; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(138,125,109,.15);
}
.field.invalid input, .field.invalid textarea { border-color: #b4553f; }
.err { color: #b4553f; font-size: 13px; margin-top: 6px; min-height: 0; }
.form-status { margin-top: 16px; font-size: 15px; text-align: center; }
.form-status.ok { color: #4a7a52; }
.form-status.bad { color: #b4553f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,243,238,.72); padding: clamp(48px, 6vw, 76px) 0 30px; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(247,243,238,.14); }
.footer-brand .brand-mark { border-color: rgba(247,243,238,.4); color: var(--cream); }
.footer-brand .brand-name-main { color: var(--cream); }
.footer-brand > .brand-mark { margin-bottom: 0; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.footer-brand p { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; max-width: 40ch; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-contact a { color: rgba(247,243,238,.72); font-size: 15px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--cream); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-social { display: flex; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: 13px; color: rgba(247,243,238,.5); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(24,20,17,.94); display: none; place-items: center; padding: 5vw; }
.lightbox:not([hidden]) { display: grid; animation: fade .25s ease both; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lb-fig img { max-width: 100%; max-height: 84vh; object-fit: contain; box-shadow: var(--shadow); }
.lb-fig figcaption { color: rgba(247,243,238,.85); font-size: 14px; letter-spacing: .06em; margin-top: 16px; text-transform: uppercase; }
.lb-close { position: absolute; top: 22px; right: 30px; background: none; border: 0; color: var(--cream); font-size: 40px; line-height: 1; cursor: pointer; opacity: .8; }
.lb-close:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; transform: translateY(-120%); transition: transform .35s ease;
    box-shadow: var(--shadow); max-height: calc(100vh - 78px); overflow: auto;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a[data-nav] { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav a[data-nav]:not(.nav-cta)::after { display: none; }
  .nav-cta { border: 0 !important; padding: 16px 0 !important; font-size: 18px !important; text-transform: none !important; letter-spacing: normal !important; text-align: left; }
  .nav-cta:hover, .nav-cta.active { background: none; color: var(--ink) !important; }

  .intro-grid, .prose-grid, .vmv, .founder, .packages, .contact-layout { grid-template-columns: 1fr; }
  .founder-img { order: 2; }
  .stat-row, .mini-services, .services-grid, .home-gallery { grid-template-columns: 1fr 1fr; }
  .home-gallery { grid-auto-rows: 200px; }
  .hg-tall { grid-row: span 1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stat-row, .mini-services, .services-grid, .home-gallery, .gallery-grid, .values-grid, .field-row, .footer-inner { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
