/* ============================================================
   Relic Table Co. — style.css
   ============================================================ */

/* ===== RESET / ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0e0b07;
  --bg-section:  #151008;
  --bg-card:     #1e160a;
  --text:        #f0e6cc;
  --text-muted:  #9e8a6a;
  --gold:        #c9a227;
  --gold-light:  #e8c84a;
  --gold-dim:    rgba(201, 162, 39, 0.25);
  --crimson:     #7a1e1e;
  --font:        Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }


/* ===== UTILITIES ===== */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 740px;  margin: 0 auto; padding: 0 2rem; }
.section          { padding: 100px 0; }
.section-dark     { background: var(--bg-section); }


/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 8px 0 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  font-style: italic;
}
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 18px auto 0;
}

.ornament {
  display: block;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.5em;
  margin-bottom: 4px;
}
.ornament-lg { font-size: 2rem; margin-bottom: 16px; }


/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.65em 1.8em;
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.btn-primary {
  background: var(--gold);
  color: #0e0b07;
  font-weight: bold;
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.85em 2.5em;
  font-size: 1rem;
}


/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(14, 11, 7, 0.93);
  border-bottom-color: var(--gold-dim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  flex: 1;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-shop-btn {
  border: 1px solid var(--gold-dim) !important;
  color: var(--gold) !important;
  padding: 0.4em 1.15em;
}
.nav-shop-btn:hover {
  background: var(--gold) !important;
  color: #0e0b07 !important;
  border-color: var(--gold) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}


/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #120d05;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(122, 30, 30, 0.25) 0%, transparent 65%),
    linear-gradient(180deg,
      rgba(14, 11, 7, 0.5)  0%,
      rgba(14, 11, 7, 0.25) 40%,
      rgba(14, 11, 7, 0.75) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 1rem;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(0,0,0,0.5);
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.07em;
  margin-bottom: 2.8rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.9;  }
}


/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  border-color: rgba(201, 162, 39, 0.55);
}

.product-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #160f05;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  transition: transform 0.55s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--gold-dim);
  pointer-events: none;
  transition: opacity 0.2s;
}
.product-img-wrap:not(.no-img) .product-img-placeholder { opacity: 0; }
.product-img-wrap.no-img img { opacity: 0; }

.product-info { padding: 1.4rem 1.5rem 1.6rem; }
.product-info h3 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.product-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}


/* ===== ABOUT ===== */
.about-content { text-align: center; }

.about-lead {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.about-content p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}


/* ===== CTA SECTION ===== */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(122, 30, 30, 0.2) 0%, transparent 70%),
    var(--bg-section);
  border-top:    1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.cta-content {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  color: var(--text);
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}
.cta-content p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.2rem;
}


/* ===== FOOTER ===== */
#footer {
  background: #080503;
  border-top: 1px solid var(--gold-dim);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner { text-align: center; }

.footer-logo {
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.footer-etsy-link {
  display: inline-block;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 0.5em 1.6em;
  font-size: 0.87rem;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
  transition: background 0.2s, border-color 0.2s;
}
.footer-etsy-link:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
}


/* ===== FADE-IN ===== */
[data-fade] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
[data-fade].visible {
  opacity: 1;
  transform: none;
}
.product-card[data-fade]:nth-child(2) { transition-delay: 0.1s; }
.product-card[data-fade]:nth-child(3) { transition-delay: 0.2s; }
.product-card[data-fade]:nth-child(4) { transition-delay: 0.3s; }


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(14, 11, 7, 0.97);
    border-bottom: 1px solid var(--gold-dim);
    padding: 1.5rem 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: block; }
  .nav-inner      { position: relative; flex-wrap: wrap; }

  .section        { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-title    { letter-spacing: 0.06em; }
}
