/* ==========================================================================
   Buck n' Beauty Boutique — Western · Glamorous · Feminine
   ========================================================================== */

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

:root {
  /* Core palette — pulled from the real logo */
  --espresso: #1a0f0a;
  --leather: #6b3f2a;
  --cognac: #955f3b;          /* antler brown from logo */
  --tan: #b08660;
  --cream: #f5ecdf;
  --bone: #faf4ea;
  --blush: #e8c4b8;
  --rose: #c98a85;
  --gold: #b8924d;
  --gold-bright: #d4af6a;
  --teal: #54e5ea;            /* signature teal from logo */
  --teal-deep: #469ea8;
  --ink: #000000;             /* matches logo bg */

  /* Type */
  --f-script: 'Allura', cursive;
  --f-western: 'Rye', serif;
  --f-serif: 'Cormorant Garamond', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-serif);
  color: var(--espresso);
  background: var(--bone);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper grain that lives behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at top left, rgba(176,134,96,0.10), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(232,196,184,0.12), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.9;
}

main, header, footer { position: relative; z-index: 1; }

/* ===== NAV ================================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid rgba(107,63,42,0.15);
  background: rgba(250,244,234,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--espresso);
}

.nav-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink);
  background-image: url('assets/logo.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-brand-text { line-height: 1; }
.nav-brand-text .script {
  font-family: var(--f-script);
  font-size: 28px;
  color: var(--cognac);
  display: block;
}
.nav-brand-text .small {
  font-family: var(--f-western);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--leather);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--espresso);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-links a:hover { color: var(--cognac); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cognac); }

.nav-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--espresso);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--leather);
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.3s;
}
.nav-cart:hover { background: var(--leather); color: var(--cream); }
.nav-cart .count {
  background: var(--cognac);
  color: var(--cream);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bone);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(107,63,42,0.15);
  }
  .nav-toggle { display: block; font-size: 24px; color: var(--espresso); }
}

/* ===== BUTTONS =========================================================== */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(.2,.7,.3,1);
  position: relative;
}
.btn-primary {
  background: var(--espresso);
  color: var(--cream);
  border: 1px solid var(--espresso);
}
.btn-primary:hover {
  background: var(--cognac);
  border-color: var(--cognac);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42,26,20,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--leather);
}
.btn-ghost:hover { background: var(--leather); color: var(--cream); }

/* ===== SECTION TITLES ==================================================== */
.eyebrow {
  font-family: var(--f-western);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--f-script);
  font-size: clamp(64px, 9vw, 130px);
  color: var(--espresso);
  line-height: 0.9;
  font-weight: 400;
}
.section-title .accent { color: var(--cognac); }
.section-sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--leather);
  max-width: 560px;
  margin-top: 18px;
}

/* Divider with antlers */
.antler-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 48px auto;
  color: var(--cognac);
}
.antler-divider .line {
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--cognac), transparent);
}
.antler-divider svg { width: 44px; height: 44px; }

/* ===== FOOTER ============================================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 48px 32px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(184,146,77,0.15), transparent 50%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer h4 {
  font-family: var(--f-western);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 20px;
}
.footer-brand .mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-image: url('assets/logo.jpg');
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(212,175,106,0.25), 0 8px 24px rgba(0,0,0,0.4);
}
.footer-brand .script {
  font-family: var(--f-script);
  font-size: 44px;
  color: var(--cream);
  display: block;
  line-height: 1;
}
.footer-brand p { margin-top: 16px; color: rgba(245,236,223,0.7); font-size: 15px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a {
  color: rgba(245,236,223,0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(245,236,223,0.12);
  margin-top: 56px;
  padding-top: 24px;
  max-width: 1280px;
  margin-left: auto; margin-right: auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(245,236,223,0.5);
  letter-spacing: 0.1em;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== PAGE INTRO ======================================================== */
.page-intro {
  padding: 100px 48px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 700px) { .page-intro { padding: 60px 24px 40px; } }

/* ===== UTILITY =========================================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 700px) { .container { padding: 0 24px; } }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--espresso);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.1em;
  z-index: 9999;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s cubic-bezier(.2,.7,.3,1) both; }
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.25s; }
.rise-3 { animation-delay: 0.4s; }
.rise-4 { animation-delay: 0.55s; }
