/* Fantasy Fabrication & Construction — site styles
   Dark walnut / black / gold, matching the FFC business card. */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000;
  --bg: #0a0705;
  --bg-alt: #120c08;
  --walnut: #1c1008;
  --panel: #16110c;
  --gold: #c9a24a;
  --gold-light: #e8d5a3;
  --gold-bright: #d4af37;
  --gold-dim: #8a6e2f;
  --ivory: #f4ebd8;
  --ivory-dim: #cbbfa6;
  --muted: #9a8c76;
  --line: rgba(201, 162, 74, 0.42);
  --line-strong: rgba(201, 162, 74, 0.75);
  --font-display: "Cinzel", "Times New Roman", Times, serif;
  --font-body: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --header-h: 4.25rem;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.75rem); }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg) url("../images/walnut.jpg") center / cover fixed;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,5,3,0.82) 0%, rgba(8,5,3,0.88) 40%, rgba(8,5,3,0.92) 100%);
  z-index: -1;
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
.site-logo img,
.hero__logo,
.footer-logo {
  mix-blend-mode: lighten;
}
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold-bright); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 2000;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--gold); color: #120c08; }
.btn--solid { background: var(--gold); color: #120c08; }
.btn--solid:hover { background: var(--gold-light); border-color: var(--gold-light); color: #120c08; }
.btn--ghost { border-color: var(--muted); color: var(--ivory-dim); }
.btn--ghost:hover { border-color: var(--gold); color: #120c08; background: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #000000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo img { height: 56px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold-light);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--gold-light);
  margin: 0 auto;
  position: relative;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ---------- Layout ---------- */
.wrap { width: min(1180px, calc(100% - 2.25rem)); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section--alt {
  background: rgba(18, 12, 8, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { text-align: center; margin-bottom: 2.75rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--ivory);
}
.section__lede {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--ivory-dim);
  font-size: 1.28rem;
  font-style: italic;
}
.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
  border: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 3rem;
  text-align: center;
}
.hero__frame {
  border: 1px solid var(--line-strong);
  padding: 2.5rem 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.55);
  position: relative;
  box-shadow: var(--shadow);
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 74, 0.22);
  pointer-events: none;
}
.hero__logo {
  width: min(420px, 86%);
  margin: 0 auto 1.25rem;
}
.hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--gold-light);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}
.hero__sub {
  color: var(--ivory-dim);
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}
.hero__years {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1rem 0 0.4rem;
}
.service-area {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.65;
  max-width: 46rem;
  margin: 0.35rem auto 0;
  text-align: center;
}
.hero .service-area { margin: 0 auto 1.35rem; }
.section__head .service-area { margin-top: 1rem; }
.service-area--footer {
  margin: 0.55rem auto 0.55rem;
  color: var(--gold-light);
}
.hero__cta { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.hero__strip a {
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 1;
  background: #111;
}
.hero__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero__strip a:hover img { transform: scale(1.06); }

/* ---------- Services ---------- */
.services-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 52rem;
  display: grid;
  gap: 0.35rem 2rem;
}
@media (min-width: 720px) {
  .services-list { max-width: 36rem; }
}
.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid rgba(201, 162, 74, 0.16);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.4;
}
.services-list li img.spark {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  margin-top: 0.12rem;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.45));
}

/* ---------- Catalog ---------- */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory-dim);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 162, 74, 0.1);
}
.catalog-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.35rem;
}
.card {
  background: rgba(12, 9, 6, 0.85);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0d0d0d;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  display: block;
  width: 100%;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f1ed;
}
.card--scene .card__media img { object-fit: cover; }
.card__body { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.card__cat {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 0.25rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
  color: var(--ivory);
  line-height: 1.3;
}
.card__blurb {
  font-size: 1.02rem;
  color: var(--ivory-dim);
  margin: 0 0 0.75rem;
  flex: 1;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--muted);
  border-top: 1px solid rgba(201, 162, 74, 0.18);
  padding-top: 0.55rem;
}
.card__price { color: var(--gold); font-style: italic; }
.card[hidden] { display: none !important; }
.catalog-download { text-align: center; margin-top: 2.25rem; }

/* ---------- About / Discretion ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.prose p { margin: 0 0 1rem; color: var(--ivory-dim); font-size: 1.22rem; }
.prose p:last-child { margin-bottom: 0; }
.discretion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.discretion-list li {
  border: 1px solid var(--line);
  background: rgba(10, 7, 5, 0.7);
  padding: 1.1rem 1.2rem 1.05rem 1.15rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.discretion-list h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: var(--gold-light);
}
.discretion-list p { margin: 0; color: var(--ivory-dim); font-size: 1.12rem; }
.discretion-list .spark { width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; margin-top: 0.2rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 840px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
}
.contact-aside p { color: var(--ivory-dim); }
.contact-email {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  display: inline-block;
  margin: 0.4rem 0 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
}
.form-status {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: rgba(201, 162, 74, 0.08);
  font-style: italic;
}
.form-status--error { border-color: #b14a3a; color: #f0c4bc; background: rgba(177, 74, 58, 0.1); }
.contact-form { display: grid; gap: 0.9rem; }
.form-row { display: grid; gap: 0.9rem; }
@media (min-width: 600px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.field .hint { font-size: 0.92rem; color: var(--muted); font-style: italic; margin: 0; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  width: 100%;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 1px var(--gold);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions { margin-top: 0.4rem; }
.form-legal { font-size: 0.98rem; color: var(--muted); font-style: italic; margin: 0.75rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050403;
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.site-footer .footer-logo { height: 64px; width: auto; margin: 0 auto 1rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: center;
  margin: 0 0 1rem;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.footer-copy { color: var(--muted); font-size: 0.98rem; margin: 0.35rem 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(4, 2, 1, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox__inner {
  width: min(980px, 100%);
  max-height: 100%;
  overflow: auto;
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .lightbox__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}
.lightbox__figure {
  margin: 0;
  background: #111;
  border: 1px solid var(--line);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__figure img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  background: #f3f1ed;
}
.lightbox__info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}
.lightbox__info p { color: var(--ivory-dim); margin: 0 0 0.75rem; }
.lightbox__meta { color: var(--gold); font-style: italic; margin-bottom: 1rem; }
.lightbox__nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold-light);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Thank you ---------- */
.thanks {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}
.thanks h1 { font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(8, 6, 4, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.6rem; }
  .hero__strip { grid-template-columns: repeat(4, 1fr); }
  .site-logo img { height: 42px; }
}
@media (max-width: 520px) {
  body { font-size: 1.12rem; }
  .hero { padding-top: 1.25rem; }
  .hero__frame { padding: 1.5rem 0.85rem 1.25rem; }
  .section { padding: 3.25rem 0; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card__blurb { display: none; }
  .card__title { font-size: 0.8rem; }
}
