/*
  Fade Empire Styles
  Mobile-first, CSS variables, Grid + Flex, WCAG AA contrast
*/

:root {
  --color-bg: #0a0a0a;
  --color-elev: #1a1a1a;
  --color-text: #ffffff;
  --color-muted: #b3b3b3;
  --color-accent: #c8102e;
  --color-accent-600: #a50d25;
  --color-border: #2a2a2a;
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.6);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  --font-sans: -apple-system, system-ui, "SF Pro Display", Inter, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Reset & base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: #e5e5e5; text-decoration: none; }
a:hover, a:focus { color: var(--color-text); }

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--color-accent);
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 10000;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section { padding: var(--space-10) 0; }
.section__title { font-size: 28px; letter-spacing: 1px; margin: 0 0 var(--space-2); }
.section__subtitle { color: var(--color-muted); margin: 0 0 var(--space-7); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  font-weight: 600;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-accent-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: #2b2b2b; color: #fff; border-color: #3a3a3a; }
.btn--secondary:hover { background: #343434; transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 1px solid var(--color-border); color: #eaeaea; }
.btn--ghost:hover { border-color: #3a3a3a; }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; background: #111; padding: 2px 6px; border-radius: 6px; }

/* Header/Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(10,10,10,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(10,10,10,0.8); }
.site-header.header--hidden { transform: translateY(-100%); }

.nav__container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand__logo { height: 40px; width: 40px; object-fit: contain; }
.brand__name { font-weight: 700; letter-spacing: .5px; }

.nav { position: relative; }
.nav__toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text);
}
.nav__bar { width: 20px; height: 2px; background: var(--color-text); margin: 2px 0; display: block; transition: transform .3s ease; }
.nav__list {
  position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; height: 100vh; padding: var(--space-8);
  transform: translateX(100%); transition: transform .35s ease;
  background: var(--color-elev); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: var(--space-5);
}
.nav--open .nav__list { transform: translateX(0); }
.nav__link { font-weight: 600; }
.nav__link--cta { color: #fff; padding: 8px 12px; background: var(--color-accent); border-radius: 999px; align-self: start; }
.nav__link--cta:hover { background: var(--color-accent-600); }

/* Desktop nav */
@media (min-width: 1025px) {
  .nav__toggle { display: none; }
  .nav__list { position: static; transform: none; height: auto; width: auto; padding: 0; background: transparent; box-shadow: none; flex-direction: row; gap: var(--space-6); }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(1200px 600px at -10% -20%, rgba(200,16,46,0.25), transparent 60%), radial-gradient(1000px 600px at 110% 110%, rgba(200,16,46,0.2), transparent 60%), linear-gradient(180deg, rgba(26,26,26,0.7), rgba(10,10,10,0.9)); }
.hero__bg::before, .hero__bg::after { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 40%); animation: drift 18s linear infinite; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(2%, -1%, 0) scale(1.02); } 100% { transform: translate3d(0,0,0) scale(1); } }

.hero__content { text-align: center; position: relative; z-index: 1; padding: var(--space-10) 0; }
.hero__logo { width: 200px; height: 200px; margin: 0 auto var(--space-6); filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.hero__title { font-size: 36px; margin: 0 0 var(--space-2); letter-spacing: 2px; }
.hero__subtitle { color: var(--color-muted); margin-bottom: var(--space-7); }

@media (min-width: 769px) { .hero__logo { width: 300px; height: 300px; } .hero__title { font-size: 64px; } }

/* Grid helpers */
.grid { display: grid; gap: var(--space-6); }
.services__grid { grid-template-columns: 1fr; }
@media (min-width: 769px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #3a3a3a; }

.service__icon { font-size: 28px; margin-bottom: var(--space-4); }
.service__title { margin: 0 0 var(--space-2); font-size: 20px; }
.service__desc { color: var(--color-muted); margin: 0 0 var(--space-4); }
.service__price { font-weight: 700; color: #fff; }

/* Gallery */
.gallery__grid { grid-template-columns: 1fr 1fr; }
@media (min-width: 769px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { border: 0; padding: 0; background: transparent; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; filter: saturate(0.95) contrast(1.05); transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.03); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: grid; place-items: center; z-index: 2000; padding: var(--space-6); }
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: var(--space-6); right: var(--space-6); background: rgba(26,26,26,0.8); color: #fff; border: 1px solid var(--color-border); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }

/* QR */
.qr-container { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; box-shadow: var(--shadow-sm); max-width: 560px; margin: 0 auto; }
.qr-image { width: 250px; height: 250px; margin: 0 auto var(--space-4); object-fit: contain; border-radius: var(--radius-md); border: 1px dashed #333; background: #111; }
.qr-desc { color: var(--color-muted); margin-bottom: var(--space-4); }
.qr-note { color: var(--color-muted); font-size: 14px; }

.qr-placeholder { width: 250px; height: 250px; margin: 0 auto var(--space-4); border: 2px dashed var(--color-border); border-radius: var(--radius-md); background: #111; display: grid; place-items: center; }
.qr-placeholder__content { text-align: center; }
.qr-placeholder__icon { font-size: 48px; margin-bottom: var(--space-3); }
.qr-placeholder__text { font-weight: 600; margin: 0 0 var(--space-2); }
.qr-placeholder__note { color: var(--color-muted); font-size: 14px; margin: 0; }

@media (min-width: 1025px) { 
  .qr-image { width: 300px; height: 300px; } 
  .qr-placeholder { width: 300px; height: 300px; }
}

/* Form */
.form { display: grid; gap: var(--space-5); max-width: 680px; }
.form__row { display: grid; gap: var(--space-2); }
.form__row--split { grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 481px) { .form__row--split { grid-template-columns: 1fr 1fr; } }

label { font-weight: 600; }
input, select, textarea { width: 100%; background: #111; color: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease; }
input::placeholder, textarea::placeholder { color: #8a8a8a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #3a3a3a; box-shadow: 0 0 0 3px rgba(200,16,46,0.25); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #803; }
.help { color: var(--color-muted); font-size: 12px; }

.form__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.form__note { color: var(--color-muted); font-size: 14px; }
.form__success { background: #0f3; color: #000; font-weight: 700; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-sm); transform: translateY(8px); animation: slideIn .35s ease forwards; }
@keyframes slideIn { to { transform: translateY(0); } }

.field-error { color: #ff6b6b; font-size: 13px; min-height: 1em; }

.sms-desktop { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); background: #121212; border: 1px solid var(--color-border); padding: 8px 10px; border-radius: 999px; }
.sms-desktop__copied { margin-left: 6px; color: #7aff7a; }

/* Contact */
.contact__grid { display: grid; gap: var(--space-7); }
@media (min-width: 1025px) { .contact__grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.contact__map iframe { width: 100%; height: 360px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact__info { display: grid; gap: var(--space-5); }
.about { color: var(--color-muted); }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.hours__title { margin: 0 0 var(--space-2); }
.socials { display: flex; gap: var(--space-4); }

/* Footer */
.site-footer { background: #000; padding: var(--space-8) 0; border-top: 1px solid #111; }
.footer__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 769px) { .footer__grid { grid-template-columns: 1fr auto 1fr; } }
.footer__brand { display: flex; align-items: center; gap: var(--space-3); color: #eaeaea; }
.footer__links { list-style: none; display: flex; gap: var(--space-5); padding: 0; margin: 0; justify-content: center; }
.footer__socials { display: flex; gap: var(--space-4); justify-content: flex-end; }
.footer__bottom { display: flex; gap: var(--space-4); justify-content: space-between; border-top: 1px solid #111; padding-top: var(--space-5); margin-top: var(--space-5); color: #a1a1a1; font-size: 14px; }

.noscript { background: #222; color: #eee; padding: var(--space-3) var(--space-4); text-align: center; }

/* Reveal on scroll */
.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-active > * { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}


