/* ============================================================
   VENVITY — Global Styles
   A system for sustainable discipline.
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --primary:        #6f8f86;
  --primary-dark:   #4e6b63;
  --secondary:      #8fa98f;
  --accent:         #c7a86d;
  --bg-main:        #f4f1ec;
  --bg-neutral:     #d8cfc4;
  --bg-white:       #faf8f5;
  --text-dark:      #2f3437;
  --text-mid:       #5a6165;
  --text-light:     #8a9196;
  --border:         #d8cfc4;
  --border-light:   #e8e3dc;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 4px rgba(47,52,55,.06);
  --shadow-md:   0 4px 20px rgba(47,52,55,.08);
  --shadow-lg:   0 12px 48px rgba(47,52,55,.12);

  --transition:  0.28s ease;
  --max-w:       1200px;
  --max-w-text:  720px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-main);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-sans); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

.display {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-mid);
}

.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.body-lg { font-size: 1.0625rem; line-height: 1.75; }
.body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--text-mid); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--max-w-text);
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section--sm {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }

.text-center { text-align: center; }

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.cart-btn:hover { color: var(--primary); }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
}

.cart-count.visible { opacity: 1; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem var(--container-px, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 99;
}

.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition);
}

.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--primary); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(111,143,134,.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}

.btn--outline:hover {
  background: var(--text-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.btn--accent:hover {
  background: #b5923e;
  border-color: #b5923e;
  transform: translateY(-1px);
}

.btn--lg {
  padding: 1.1rem 2.75rem;
  font-size: 0.875rem;
}

.btn--sm {
  padding: 0.625rem 1.375rem;
  font-size: 0.75rem;
}

.btn--full { width: 100%; }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 3rem 0;
}

.divider--dark { background: var(--border); }

/* ---- Tags / Badges ---- */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.tag--primary  { background: rgba(111,143,134,.12); color: var(--primary-dark); }
.tag--accent   { background: rgba(199,168,109,.15); color: #9a7535; }
.tag--neutral  { background: var(--border-light); color: var(--text-mid); }

/* ---- Product Card ---- */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-neutral);
}

.product-card__image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__tag {
  margin-bottom: 0.75rem;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.product-card__price {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ---- Page Hero ---- */
.page-hero {
  padding-top: calc(68px + clamp(3rem, 6vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
  background: var(--bg-main);
}

.page-hero--dark {
  background: var(--text-dark);
}

.page-hero--dark h1,
.page-hero--dark .label { color: #f4f1ec; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.breadcrumb a, .breadcrumb span {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ---- Notification toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-dark);
  color: #f4f1ec;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
  max-width: 340px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast .toast-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--text-dark);
  color: #f4f1ec;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4f1ec;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(244,241,236,.55);
  line-height: 1.7;
  max-width: 260px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,241,236,.45);
  transition: color var(--transition);
}

.footer-social__link:hover {
  color: rgba(244,241,236,.85);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,236,.45);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(244,241,236,.7);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: #f4f1ec; }

.footer-bottom {
  border-top: 1px solid rgba(244,241,236,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(244,241,236,.35);
}

/* ---- Bundle pricing ---- */
/* Shared across cart and checkout when all 5 products are present */
.bundle-original {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 0.35rem;
  opacity: 0.6;
}

.summary-line--saving {
  color: var(--accent);
  font-size: 0.85rem;
}

.summary-line--saving span:last-child {
  font-weight: 600;
}

/* ---- Decorative elements ---- */
.ornament {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--primary);
  vertical-align: middle;
  margin: 0 1rem;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.dot-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dot-line::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ---- Highlight quote block ---- */
.quote-block {
  border-left: 2px solid var(--primary);
  padding: 1.5rem 2rem;
  background: rgba(111,143,134,.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.5rem 0;
}

.quote-block p {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ---- Utilities ---- */
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mt-xl { margin-top: 4rem; }

.mb-xs { margin-bottom: 0.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.mb-xl { margin-bottom: 4rem; }

.color-primary  { color: var(--primary); }
.color-accent   { color: var(--accent); }
.color-mid      { color: var(--text-mid); }
.color-light    { color: var(--text-light); }

.bg-white    { background-color: var(--bg-white); }
.bg-neutral  { background-color: var(--bg-neutral); }
.bg-dark     { background-color: var(--text-dark); }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeup {
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.36s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn--lg { padding: 1rem 2rem; }
}
