/* ============================================================
   VEVOR Gemstone Polishing Services — Base (shared reset / nav / footer)
   Each page has its own theme + stylesheet for a unique look.
   ============================================================ */

:root {
  --gold: #c9a227;
  --gold-light: #e3c565;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(120deg, var(--gold), #a5831b); color: #fff; box-shadow: 0 6px 22px rgba(201,162,39,.35); }
.btn-gold:hover { box-shadow: 0 10px 28px rgba(201,162,39,.5); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-nav {
  padding: 0.55rem 1.35rem;
  background: linear-gradient(120deg, var(--gold), #a5831b);
  color: #fff;
}
.btn-dark { background: #101418; color: #fff; }
.btn-dark:hover { background: #232b33; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(.22,.61,.36,1), transform 0.8s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-zoom  { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 300;
  transition: width 0.08s linear;
}

/* ---------- Header / Nav (themed via body[data-theme]) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  font-family: var(--font-head);
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  transition: letter-spacing .45s ease;
}
.logo-word {
  display: inline-block;
  /* white body with a golden light band sweeping across */
  background: linear-gradient(100deg,
    #ffffff 0%, #ffffff 38%,
    #f6e3a1 46%, #d4af37 50%, #f6e3a1 54%,
    #ffffff 62%, #ffffff 100%);
  background-size: 250% auto;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-header .logo:hover { letter-spacing: 0.1em; }

/* golden sheen sweep — skipped for users preferring reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .logo-word { animation: logo-shine 4.5s ease-in-out infinite; }
}
@keyframes logo-shine {
  0%   { background-position: 100% center; }
  55%  { background-position: 0% center; }
  100% { background-position: 100% center; }
}

/* dark headers: a soft golden glow so the white mark pops */
body[data-theme="dark"] .site-header .logo,
body[data-theme="charcoal"] .site-header .logo,
body[data-theme="sapphire"] .site-header .logo {
  filter: drop-shadow(0 2px 16px rgba(201, 162, 39, 0.45));
}

/* light headers (services / about): white gradient text would vanish or render
   as a solid block where background-clip:text is unsupported — use a plain,
   reliable solid color instead of any gradient machinery */
body[data-theme="light"] .site-header .logo-word,
body[data-theme="warm"] .site-header .logo-word {
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: #26262a;
  animation: none;
}
.logo-light { color: #fff; }

/* ampersand in banner headings: clean Inter sans so it stays instantly readable, gold accent only */
.amp {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.94em;
  color: var(--gold);
  padding: 0 0.05em;
}

/* footer logo: proportionally larger than the header mark */
.site-footer .logo { font-size: 3.4rem; }

/* footer brand blurb: narrow measure, comfortable reading */
.footer-blurb {
  max-width: 19rem;
  line-height: 1.75;
  color: #97a4b0;
  margin-top: 1.1rem;
}

/* dark themes: light text, transparent until scrolled */
body[data-theme="dark"] .logo,
body[data-theme="charcoal"] .logo { color: #fff; }
body[data-theme="dark"] .site-nav a:not(.btn),
body[data-theme="charcoal"] .site-nav a:not(.btn) { color: #cfd8e0; }
body[data-theme="dark"] .site-nav a:not(.btn):hover,
body[data-theme="charcoal"] .site-nav a:not(.btn):hover { color: var(--gold-light); }

/* light themes: dark text, subtle glass */
body[data-theme="light"] .site-header,
body[data-theme="warm"] .site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0,0,0,.07);
}
body[data-theme="light"] .logo,
body[data-theme="warm"] .logo { color: #1d1d1f; }
body[data-theme="light"] .nav-toggle span,
body[data-theme="warm"] .nav-toggle span { background: #1d1d1f; }
body[data-theme="light"] .site-nav a:not(.btn),
body[data-theme="warm"] .site-nav a:not(.btn) { color: #33463f; }
body[data-theme="light"] .site-nav a:not(.btn):hover,
body[data-theme="warm"] .site-nav a:not(.btn):hover { color: #a5831b; }
body[data-theme="light"] .site-nav a.active,
body[data-theme="warm"] .site-nav a.active { color: #a5831b; }

body[data-theme="dark"] .site-header.scrolled,
body[data-theme="charcoal"] .site-header.scrolled {
  background: rgba(10, 16, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,.08);
}

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.93rem;
  position: relative;
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.active::after { width: 100%; }

/* header phone module */
.site-nav a.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-nav a.nav-phone svg { width: 1em; height: 1em; flex: none; }
body[data-theme] .site-nav a.nav-phone { color: var(--gold-light); }
body[data-theme] .site-nav a.nav-phone:hover { color: #fff; }
body[data-theme] .site-nav a.nav-phone::after { display: none; }
@media (max-width: 1240px) {
  .site-nav a.nav-phone { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}
.nav-toggle span { width: 24px; height: 2px; border-radius: 2px; transition: 0.25s; }
body[data-theme="dark"] .nav-toggle span,
body[data-theme="charcoal"] .nav-toggle span { background: #fff; }

/* ---------- Footer (base) ---------- */
.site-footer { padding: 3.5rem 0 1.5rem; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer h5 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}
.site-footer a { display: block; margin-bottom: 0.5rem; transition: color 0.2s; }
.site-footer p { margin-bottom: 0.4rem; }
.copyright { text-align: center; padding-top: 1.6rem; font-size: 0.82rem; }

/* dark footer default */
.site-footer { background: #121214; color: #aebccb; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer h5 { color: #fff; }
.site-footer a { color: #aebccb; }
.site-footer a:hover { color: var(--gold-light); }
.copyright { color: #7e93a3; }

/* light-theme footer overrides */
body[data-theme="light"] .site-footer { background: #17171a; }
body[data-theme="warm"] .site-footer { background: #2b211a; }
body[data-theme="warm"] .site-footer a:hover { color: #e0b56a; }

/* ---------- Responsive nav ---------- */
@media (max-width: 820px) {
  .logo { font-size: 2.2rem; }
  .site-footer .logo { font-size: 2.6rem; }
  .site-nav a.nav-phone { display: inline-flex; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: #101821;
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.35);
  }
  .site-nav.open { transform: translateX(0); }
  body[data-theme="light"] .site-nav,
  body[data-theme="warm"] .site-nav { background: #1d1d1f; }
  body[data-theme="light"] .site-nav a:not(.btn),
  body[data-theme="warm"] .site-nav a:not(.btn) { color: #d8e4dd; }
  body[data-theme="light"] .site-nav a:not(.btn):hover,
  body[data-theme="warm"] .site-nav a:not(.btn):hover { color: var(--gold-light); }
}

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Before / After comparison slider (shared) ---------- */
.ba-wrap { max-width: 780px; margin: 2.4rem auto 0; }
.ba-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.12);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.ba-frame img { width: 100%; height: 100%; object-fit: cover; }
.ba-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-layer.after { clip-path: inset(0 0 0 50%); }
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201,162,39,.7);
  z-index: 3;
}
.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #141416;
  display: grid;
  place-items: center;
  font-weight: 700;
  z-index: 4;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.ba-tag {
  position: absolute;
  top: 14px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 999px;
  z-index: 2;
  background: rgba(10,10,12,.65);
  color: #fff;
  backdrop-filter: blur(4px);
}
.ba-tag.before { left: 14px; }
.ba-tag.after { right: 14px; }
.ba-caption { text-align: center; color: #8a8a8e; font-size: .86rem; margin-top: 1rem; }

/* ---------- FAQ accordion (shared) ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  margin-bottom: .9rem;
  background: rgba(255,255,255,.03);
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(201,162,39,.45); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #fff;
  font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform .3s;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 1.4rem 1.2rem;
  color: #a9a9ad;
  font-size: .92rem;
}
