/* ═══════════════════════════════════════════════
   UsefulThings.pro — Global Stylesheet
   Shared across all pages
═══════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --ink:        #1a1a1a;
  --ink-deep:   #0d0d0d;
  --cream:      #f5f0e8;
  --warm:       #e8ddd0;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --muted:      #8a7f74;
  --surface:    #ffffff;
  --shadow:     rgba(26,26,26,0.12);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-body {
  font-size: 1rem;
  line-height: 1.82;
  color: #4e4842;
}

/* ─── NAV ─── */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(13,13,13,0.94);
  backdrop-filter: blur(14px);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  overflow: hidden;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-sep {
  width: 1px;
  height: 14px;
  background: rgba(201,168,76,0.2);
  flex-shrink: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-dropdown-toggle {
  color: rgba(245,240,232,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
  user-select: none;
}
.nav-links > li > a:hover,
.nav-dropdown-toggle:hover,
.nav-links > li > a.active,
.nav-dropdown-toggle.active { color: var(--gold); }


.nav-cta {
  background: var(--gold);
  color: var(--ink);
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  touch-action: manipulation;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 15px 34px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: rgba(245,240,232,0.75);
  border: 1px solid rgba(245,240,232,0.22);
  padding: 15px 34px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26,26,26,0.35);
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ─── PAGE HERO (base — category pages) ─── */
.page-hero {
  min-height: 65vh;
  background: var(--ink-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 48px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 22px;
  position: relative;
}
.hero-headline em { color: var(--gold); font-style: italic; }
.hero-sub {
  color: rgba(245,240,232,0.45);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  position: relative;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── FORMS ─── */
.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 7px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--warm);
  border-radius: 5px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--gold); }
.fg textarea { resize: vertical; min-height: 88px; }
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7f74' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.fg-note { font-size: 0.73rem; color: var(--muted); line-height: 1.6; margin-top: 8px; }

.upload-zone {
  border: 2px dashed var(--warm);
  border-radius: 7px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--cream);
}
.upload-zone:hover { border-color: var(--gold); background: #faf6ed; }
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 1.6rem; margin-bottom: 8px; color: var(--muted); }
.upload-hint { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.upload-hint strong { color: var(--ink); }
.upload-preview { display: none; }
.upload-preview img { max-height: 110px; border-radius: 4px; margin: 0 auto 6px; border: 1px solid var(--warm); }
.upload-fname { font-size: 0.75rem; color: var(--muted); }

.form-submit-btn {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 14px;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}
.form-submit-btn:hover { background: var(--gold); color: var(--ink); }
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: #27ae60;
  font-size: 0.92rem;
  line-height: 1.7;
}
.form-success strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }

/* ─── GALLERY ─── */
.gallery-section {
  background: var(--ink-deep);
  padding: 90px 48px;
}
.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}
.gallery-header .section-title { color: var(--cream); }
.gallery-grid {
  columns: 4;
  column-gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.35s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-empty {
  text-align: center;
  color: rgba(245,240,232,0.2);
  padding: 60px 0;
  font-size: 0.88rem;
  line-height: 1.9;
}

/* ─── STEPS (how it works) ─── */
.steps-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-copy strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.step-copy span   { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ─── CUSTOM ORDER SECTION ─── */
.custom-section { background: var(--cream); padding: 110px 48px; }
.custom-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}
.order-form-wrap {
  background: var(--surface);
  border: 1px solid var(--warm);
  border-radius: 12px;
  padding: 38px 36px;
  box-shadow: 0 4px 28px var(--shadow);
}
.order-form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin-bottom: 28px;
}

/* ─── FAQ ACCORDION ─── */
.faq-section { padding: 110px 48px; background: var(--cream); }
.faq-inner { max-width: 700px; margin: 0 auto; }
.faq-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--warm);
}
.faq-group-title:first-of-type { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--warm); padding: 20px 0; cursor: pointer; }
.faq-item:first-of-type { border-top: 1px solid var(--warm); }
.faq-q {
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-top 0.35s;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 14px; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink-deep);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: rgba(245,240,232,0.5);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.78rem; color: rgba(245,240,232,0.22); line-height: 1.6; max-width: 200px; margin-bottom: 10px; }
.footer-copy { font-size: 0.71rem; color: rgba(245,240,232,0.15); }

.footer-nav { display: flex; gap: 56px; }
.footer-nav-group h4 {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245,240,232,0.28);
  margin-bottom: 16px;
}
.footer-nav-group ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-nav-group a {
  font-size: 0.8rem;
  color: rgba(245,240,232,0.42);
  transition: color 0.2s;
}
.footer-nav-group a:hover { color: var(--gold); }

/* ─── UTILITIES ─── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.86rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  border-left: 3px solid var(--gold);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.96);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  object-fit: contain;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--warm); border-radius: 2px; }

/* ─── MOBILE ─── */
@media (max-width: 1040px) {
  #mainNav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  #mainNav.nav-open {
    height: auto;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-bottom: 20px;
  }
  #mainNav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 99;
    padding: 12px 0 0;
    gap: 0;
    border-top: 1px solid rgba(201,168,76,0.1);
    margin-top: 8px;
  }
  #mainNav.nav-open .nav-sep { display: none; }
  #mainNav.nav-open .nav-links > li > a,
  #mainNav.nav-open .nav-dropdown-toggle {
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .page-hero { padding: 90px 24px 56px; min-height: 50vh; }

  .custom-section { padding: 72px 24px; }
  .custom-grid { grid-template-columns: 1fr; gap: 52px; }

  .gallery-section { padding: 72px 24px; }
  .gallery-grid { columns: 2; }

  .faq-section { padding: 72px 24px; }

  footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-nav { gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .gallery-grid { columns: 2; }
  .order-form-wrap { padding: 28px 20px; }
}
