/*
Theme Name: Verdent
Theme URI: https://verdent.shop
Author: Verdent
Author URI: https://verdent.shop
Description: Custom theme for Verdent — Ancient wisdom, modern ritual. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://verdent.shop
Text Domain: verdent
Tags: woocommerce, custom, ecommerce, luxury
*/

/* ============================================================
   VERDENT DESIGN SYSTEM
   ============================================================ */

:root {
  --ivory:          #FAF8F4;
  --ivory-mid:      #F2EDE4;
  --ivory-deep:     #EDE8DF;
  --ivory-warm:     #F0EAE0;
  --ivory-gold:     #F5EDD8;
  --charcoal:       #1E1C18;
  --charcoal-mid:   #2C2A24;
  --charcoal-light: #3D3A34;
  --gold:           #C4A96B;
  --gold-light:     #D4BC8A;
  --gold-dark:      #A08848;
  --muted:          #6B6760;
  --muted-light:    #9B8B6E;
  --border:         rgba(196,169,107,0.2);
  --border-mid:     rgba(196,169,107,0.35);
  --border-strong:  rgba(196,169,107,0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

.verdent-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-light);
  font-weight: 300;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  margin-bottom: 8px;
  display: block;
}

.verdent-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.15;
}

.verdent-body {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  font-family: 'Jost', sans-serif;
}

.verdent-gold-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */

.verdent-announcement {
  background: var(--charcoal);
  color: var(--gold-light);
  text-align: center;
  padding: 9px 1rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 300;
  font-family: 'Jost', sans-serif;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.verdent-nav {
  background: var(--ivory);
  border-bottom: 0.5px solid var(--border-mid);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.verdent-nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.verdent-nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
  font-family: 'Jost', sans-serif;
}

.verdent-nav-links a:hover,
.verdent-nav-links a.current-menu-item { color: var(--charcoal); }

.verdent-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.verdent-nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.verdent-nav-icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}

.verdent-nav-icon:hover { color: var(--charcoal); }

.verdent-currency-pill {
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: 10px;
  padding: 4px 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.25s;
  font-family: 'Jost', sans-serif;
  border: none;
}

.verdent-currency-pill:hover { background: var(--charcoal-light); }

.verdent-cart-count {
  background: var(--gold);
  color: var(--charcoal);
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-left: -8px;
  margin-top: -8px;
  font-family: 'Jost', sans-serif;
}

/* Mobile nav toggle */
.verdent-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  background: none;
  border: none;
  z-index: 1100;
  position: relative;
}

.verdent-nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.verdent-nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.verdent-nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.verdent-nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay backdrop */
.verdent-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 20, 0.35);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.verdent-nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */

.verdent-footer {
  background: #171614;
  padding: 4rem 5rem 3rem;
}

.verdent-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}

.verdent-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.3em;
  color: #E8E0D0;
  margin-bottom: 1rem;
  font-weight: 400;
  display: block;
}

.verdent-footer-tagline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  font-family: 'Jost', sans-serif;
  margin-bottom: 1.5rem;
}

.verdent-footer-currencies {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.verdent-footer-currency {
  font-size: 10px;
  color: var(--muted);
  font-weight: 300;
  font-family: 'Jost', sans-serif;
}

.verdent-footer-currency strong { color: var(--gold); font-weight: 400; }

.verdent-footer-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  font-weight: 300;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  display: block;
}

.verdent-footer-links { list-style: none; }

.verdent-footer-links li { margin-bottom: 8px; }

.verdent-footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
  font-family: 'Jost', sans-serif;
}

.verdent-footer-links a:hover { color: #E8E0D0; }

.verdent-footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  font-family: 'Jost', sans-serif;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.verdent-btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 14px 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  transition: background 0.25s;
  text-decoration: none;
  display: inline-block;
}

.verdent-btn-primary:hover { background: var(--charcoal-light); color: var(--ivory); }

.verdent-btn-outline {
  background: transparent;
  color: var(--charcoal);
  padding: 13px 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  border: 0.5px solid var(--charcoal);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

.verdent-btn-outline:hover { background: var(--charcoal); color: var(--ivory); }

.verdent-btn-gold {
  background: transparent;
  color: var(--gold);
  border: 0.5px solid var(--gold);
  padding: 12px 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

.verdent-btn-gold:hover { background: var(--gold); color: var(--charcoal); }

/* ============================================================
   WOOCOMMERCE — GLOBAL OVERRIDES
   ============================================================ */

/* Hide default WooCommerce styles we don't need */
.woocommerce-breadcrumb { display: none; }
.woocommerce-notices-wrapper { padding: 0 3rem; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  background: var(--ivory-gold);
  border-top-color: var(--gold);
  color: var(--charcoal);
}

/* Cart icon in nav */
.verdent-nav-cart {
  position: relative;
  display: flex;
  align-items: center;
}

.verdent-nav-cart .count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
}

/* ============================================================
   LOCATION BAR
   ============================================================ */

.verdent-location-bar {
  background: var(--ivory-deep);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 10px 5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 300;
  font-family: 'Jost', sans-serif;
  flex-wrap: wrap;
}

.verdent-loc-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.verdent-currency-switches {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-light);
  font-family: 'Jost', sans-serif;
}

.verdent-currency-switches button {
  color: var(--gold);
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  padding: 0;
}

.verdent-currency-switches button:hover { color: var(--gold-dark); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes verdentFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.verdent-fade-in   { animation: verdentFadeUp 0.9s ease both; }
.verdent-fade-in-2 { animation: verdentFadeUp 0.9s 0.12s ease both; }
.verdent-fade-in-3 { animation: verdentFadeUp 0.9s 0.24s ease both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  /* Nav bar — 3-column grid: [spacer | logo | icons] */
  .verdent-nav {
    padding: 0 1.25rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  /* Logo sits in the middle column, centered */
  .verdent-nav-logo {
    position: static;
    transform: none;
    left: auto;
    grid-column: 2;
    text-align: center;
  }

  /* Right icons sit in column 3, pushed to the right */
  .verdent-nav-right {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Show hamburger */
  .verdent-nav-toggle { display: flex; }

  /* Mobile drawer — hidden by default, slides down (position:fixed takes it out of grid flow) */
  .verdent-nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 0 1.75rem;
    border-bottom: 0.5px solid var(--border-mid);
    gap: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                box-shadow 0.3s ease;
    box-shadow: none;
    list-style: none;
  }

  .verdent-nav-links.open {
    max-height: 70vh;
    padding: 1rem 1.75rem 1.5rem;
    box-shadow: 0 8px 24px rgba(23, 22, 20, 0.1);
    overflow-y: auto;
  }

  /* Menu items */
  .verdent-nav-links li {
    border-bottom: 0.5px solid var(--border-mid);
  }
  .verdent-nav-links li:last-child {
    border-bottom: none;
  }
  .verdent-nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
  }
  .verdent-nav-links a:hover,
  .verdent-nav-links a.current-menu-item {
    color: var(--charcoal);
  }

  /* Push page content below fixed nav */
  body { padding-top: 64px; }

  /* Admin bar offset */
  .admin-bar .verdent-nav { top: 32px; }
  .admin-bar body { padding-top: 96px; }

  /* Prevent body scroll when menu is open */
  body.verdent-menu-open { overflow: hidden; }

  /* Other responsive fixes */
  .verdent-location-bar { padding: 8px 1.25rem; gap: 6px; row-gap: 4px; }
  .verdent-footer { padding: 3rem 1.5rem 2rem; }
  .verdent-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .verdent-announcement { padding: 8px 1.25rem; font-size: 11px; }
}

@media (max-width: 480px) {
  .verdent-nav { padding: 0 1rem; }
  .verdent-nav-logo { font-size: 18px; letter-spacing: 0.25em; }
  .verdent-nav-right { gap: 0.85rem; }
  .verdent-currency-pill { padding: 3px 8px; font-size: 9px; }
}

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

/* ============================================================
   FULL WIDTH FIX
   Override WordPress core, block editor, and browser defaults
   that add unwanted margins/padding around the page.
   ============================================================ */

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FAF8F4 !important;
    overflow-x: hidden;
}

/* WordPress block editor injects these — zero them all out */
.wp-site-blocks,
.wp-site-blocks > *,
#page,
#content,
#primary,
#secondary,
.site,
.site-content,
.site-header,
.site-footer,
.entry-content,
.entry-content > *,
.has-global-padding,
.alignfull,
body > .wp-block-group,
body > .wp-block-template-part {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Kill WordPress block editor global styles padding injected via inline <style> */
:where(body) {
    margin: 0 !important;
    padding: 0 !important;
}

:where(.wp-site-blocks) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Admin bar offset — don't affect our sticky nav */
.verdent-nav {
    top: 0;
}

.admin-bar .verdent-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .verdent-nav {
        top: 46px;
    }
}
