/*
Theme Name: Vault Co. & Digital
Theme URI: https://vaultcodigital.com
Author: Vault Co. & Digital
Description: Premium dark editorial theme for Vault Co. & Digital — Everything worth having. Locked inside.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vaultco
*/

/* =========================================================
   IMPORTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --bg:           #0b0a09;
  --bg-card:      #131210;
  --bg-section:   #100f0e;
  --gold:         #c8a45a;
  --gold-light:   #e5c97a;
  --gold-dark:    #9a7a38;
  --gold-muted:   rgba(200, 164, 90, 0.18);
  --crimson:      #8b1a1a;
  --crimson-soft: rgba(139, 26, 26, 0.15);
  --cream:        #f0e8d5;
  --text:         #d8cfc0;
  --text-muted:   #7a7060;
  --border:       rgba(200, 164, 90, 0.22);
  --border-hover: rgba(200, 164, 90, 0.6);
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;
  --radius:       4px;
  --transition:   all 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--cream);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold { color: var(--gold); }
.cream { color: var(--cream); }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 960px;
}

/* =========================================================
   DECORATIVE ELEMENTS
   ========================================================= */
.deco-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
}
.deco-line::before,
.deco-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}

.deco-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  background-size: 200% auto;
  color: var(--bg);
  font-weight: 600;
}
.btn-gold:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 164, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.site-logo img {
  height: 44px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text .name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.logo-text .tagline {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.main-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Radial glow from center */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 55%,
    rgba(200, 164, 90, 0.08) 0%,
    rgba(139, 26, 26, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Subtle noise texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-keyhole {
  margin: 0 auto 2.5rem;
  width: 52px;
  opacity: 0.85;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(200,164,90,0.4)); }
  50% { filter: drop-shadow(0 0 18px rgba(200,164,90,0.8)); }
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-weight: 600;
  line-height: 0.92;
  color: var(--cream);
  margin-bottom: 0.3em;
}
.hero-title .accent {
  color: var(--gold);
  font-style: italic;
}
.hero-title .line2 {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4em;
}

.hero-deco {
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 300px;
}
.hero-deco span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-deco-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark));
}
.hero-deco-line.right {
  background: linear-gradient(to left, transparent, var(--gold-dark));
}

.hero-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ART DECO CORNER ORNAMENTS */
.hero-border {
  position: absolute;
  inset: 30px;
  pointer-events: none;
  z-index: 1;
}
.hero-border::before,
.hero-border::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(200, 164, 90, 0.2);
  border-style: solid;
}
.hero-border::before {
  top: 0; left: 0;
  border-width: 1px 0 0 1px;
}
.hero-border::after {
  bottom: 0; right: 0;
  border-width: 0 1px 1px 0;
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-item svg { flex-shrink: 0; }

/* =========================================================
   CATEGORIES
   ========================================================= */
.categories-section {
  padding: 6rem 0 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.6rem;
  color: var(--cream);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.category-card:hover {
  border-color: var(--gold);
  background: var(--gold-muted);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.category-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.category-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.05em;
}
.category-count {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========================================================
   PRODUCTS GRID
   ========================================================= */
.products-section {
  padding: 5rem 0 6rem;
  background: var(--bg-section);
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.products-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: rgba(200,164,90,0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1815;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,10,9,0.85) 0%, transparent 50%);
}

.product-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.product-cta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.product-cta:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* =========================================================
   VALUE PROPOSITION
   ========================================================= */
.value-section {
  padding: 6rem 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.value-item {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  background: var(--bg-card);
  transition: var(--transition);
}
.value-item:hover {
  border-color: rgba(200,164,90,0.4);
  background: var(--gold-muted);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}
.value-item h3 {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.value-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   ETSY BANNER
   ========================================================= */
.etsy-banner {
  padding: 4.5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.etsy-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(200,164,90,0.05), transparent);
}
.etsy-banner-inner {
  position: relative;
  z-index: 1;
}
.etsy-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.6rem 0 0.75rem;
}
.etsy-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo-text .name {
  font-size: 1.2rem;
}
.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 220px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.footer-social {
  display: flex;
  gap: 1.25rem;
}
.footer-social a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }
  .main-nav.open a { font-size: 1.2rem; letter-spacing: 0.2em; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-wrap: wrap; justify-content: center; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; justify-content: center; }
  .trust-item:last-child { border-bottom: none; }
  .products-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   WOOCOMMERCE OVERRIDES — Hide default sidebar/widgets
   ===================================================== */

/* Hide default WooCommerce sidebar and WordPress widget areas on shop/product pages */
.woocommerce-page .widget-area,
.woocommerce .widget-area,
.woocommerce-page aside.widget-area,
body.woocommerce aside,
body.woocommerce-page aside,
.shop-sidebar,
#secondary,
.sidebar {
  display: none !important;
}

/* Make shop content full width when sidebar is hidden */
.woocommerce-page #primary,
.woocommerce #primary,
body.woocommerce #primary,
body.woocommerce-page #primary {
  width: 100% !important;
  float: none !important;
}

/* Fix WooCommerce product grid layout */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 1.5rem !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Style Add to Cart button on shop/product pages */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .single_add_to_cart_button {
  background: var(--gold) !important;
  color: var(--bg) !important;
  border-radius: 4px !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  transition: background 0.2s ease !important;
}

.woocommerce a.button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: var(--gold-light) !important;
}

/* Product page layout */
.woocommerce div.product {
  background: var(--surface) !important;
  color: var(--text) !important;
}

.woocommerce div.product .price {
  color: var(--gold) !important;
  font-size: 1.5rem !important;
}

/* =====================================================
   PAGE TEMPLATE — About, Contact, FAQ, Legal pages
   ===================================================== */

.page-main {
  min-height: 60vh;
  padding: 4rem 0 6rem;
  background: var(--bg);
}

.page-main .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.page-body {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.page-body h2,
.page-body h3 {
  font-family: var(--font-serif);
  color: var(--text);
  margin: 2rem 0 0.75rem;
  font-weight: 400;
}

.page-body h2 { font-size: 1.6rem; }
.page-body h3 { font-size: 1.25rem; color: var(--gold); }

.page-body p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.page-body ul, .page-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.page-body li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.page-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 164, 90, 0.3);
  transition: border-color 0.2s;
}

.page-body a:hover {
  border-color: var(--gold);
}

.page-body strong {
  color: var(--text);
  font-weight: 600;
}
/* Fix page content hidden behind fixed header */
.page-main {
  padding-top: 8rem;
}