/* ─────────────────────────────────────────────
   BONES — Farm to Glass
   Shared design system
   ───────────────────────────────────────────── */

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

:root {
  --ivory: #F5F0E8;
  --bone: #E8E0D0;
  --black: #1A1714;
  --charcoal: #2C2824;
  --oxblood: #6B1D1D;
  --amber: #C4874A;
  --gold: #B8963E;
  --olive-dark: #3A3A2A;
  --warm-gray: #8A8077;
  --light-gray: #C4BDB3;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--ivory);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184, 150, 62, 0.12);
}

.nav-brand a {
  text-decoration: none;
}

/* Logo image replaces the old text-based .nav-logo + .nav-tagline */
.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--ivory);
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.nav-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .nav-cta {
  background: var(--oxblood);
  color: var(--ivory);
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(107, 29, 29, 0.6);
  transition: background 0.3s, color 0.3s;
}

.nav-links .nav-cta:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ivory);
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 23, 20, 0.98);
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-mobile a:hover { color: var(--gold); }

.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--light-gray);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ivory);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245, 240, 232, 0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--amber);
  color: var(--black);
}

.btn-oxblood {
  background: var(--oxblood);
  color: var(--ivory);
  border: 1px solid rgba(107, 29, 29, 0.5);
}

.btn-oxblood:hover {
  background: transparent;
  border-color: var(--oxblood);
  color: var(--oxblood);
}

/* ─── SECTION UTILITIES ─── */
section { padding: 6rem 2rem; }

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--light-gray);
  max-width: 600px;
  line-height: 1.8;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
  opacity: 0.5;
}

.divider-center { margin: 1.5rem auto; }

/* ─── BONE ICON ─── */
.bone-icon {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.bone-icon::before, .bone-icon::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  top: 50%;
  transform: translateY(-50%);
}

.bone-icon::before { left: -8px; }
.bone-icon::after { right: -8px; }

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--charcoal);
  padding: 2.5rem;
  position: relative;
  transition: background 0.4s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  background: rgba(44, 40, 36, 0.85);
}

.product-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(184, 150, 62, 0.12);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-bottle-placeholder {
  width: 80px;
  height: 160px;
  border-radius: 40px 40px 10px 10px;
  position: relative;
  opacity: 0.7;
}

.product-bottle-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 30px;
  border-radius: 4px 4px 0 0;
  background: inherit;
  opacity: 0.9;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.product-base {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--light-gray);
  line-height: 1.7;
  flex: 1;
}

.product-pairings {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pairing-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  border: 1px solid rgba(138, 128, 119, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* ─── PRICE TAG ─── */
.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ivory);
}

.price-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: block;
  margin-bottom: 0.25rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--charcoal);
  padding: 4rem 3rem 2.5rem;
  border-top: 1px solid rgba(184, 150, 62, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.8;
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 150, 62, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--warm-gray);
  letter-spacing: 0.08em;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 10rem 2rem 5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(107, 29, 29, 0.12), transparent 60%);
  border-bottom: 1px solid rgba(184, 150, 62, 0.1);
}

/* ─── FORM ELEMENTS ─── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(44, 40, 36, 0.8);
  border: 1px solid rgba(184, 150, 62, 0.15);
  color: var(--ivory);
  padding: 0.85rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s;
  border-radius: 0;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8963E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select option {
  background: var(--charcoal);
  color: var(--ivory);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 4rem 1.5rem; }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-header { padding: 8rem 1.5rem 4rem; }
}

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gray { color: var(--light-gray); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ─── SCROLL INDICATOR ─── */
.scroll-line {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  height: 60px;
  background: linear-gradient(var(--gold), transparent);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ─── BADGE / TAG ─── */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

.badge-gold {
  background: rgba(184, 150, 62, 0.15);
  color: var(--gold);
  border: 1px solid rgba(184, 150, 62, 0.3);
}

.badge-oxblood {
  background: rgba(107, 29, 29, 0.2);
  color: var(--ivory);
  border: 1px solid rgba(107, 29, 29, 0.4);
}
