/* ============================================
   28 West Nutrition — Custom Styles
   Plum + Amber | Playfair Display + Inter
   ============================================ */

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

:root {
  --plum: #5B2C6F;
  --plum-deep: #3D1D4D;
  --plum-light: #7D3C99;
  --plum-pale: #F5EEF8;
  --amber: #F59E0B;
  --amber-deep: #D97706;
  --amber-light: #FCD34D;
  --cream: #FFFBF5;
  --cream-dark: #F5F0E8;
  --charcoal: #1A1A2E;
  --text: #2D2D3A;
  --text-light: #6B6B7B;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  z-index: 1001;
}

.logo-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum-deep);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.header.scrolled .logo-text,
.logo-light .logo-text {
  color: var(--plum-deep);
}

.logo-light .logo-num {
  color: var(--amber);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--plum);
}

.nav-cta {
  background: var(--plum);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--plum-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--plum-deep);
  transition: var(--transition);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--plum-deep);
  transition: var(--transition);
}

.mobile-link:hover {
  color: var(--amber);
}

.mobile-cta {
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--plum);
  color: var(--white) !important;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-weight: 600;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 158, 11, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(91, 44, 111, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(125, 60, 153, 0.15) 0%, transparent 70%),
    linear-gradient(160deg, #3D1D4D 0%, #5B2C6F 30%, #7D3C99 55%, #F59E0B 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--amber-light);
}

.accent-line {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  color: rgba(255, 251, 245, 0.7);
  margin-top: 0.3em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 251, 245, 0.8);
  max-width: 540px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 251, 245, 0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,251,245,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
}

.btn-primary:hover {
  background: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 251, 245, 0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 251, 245, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--plum-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
}

.text-plum {
  color: var(--plum);
}

.text-amber {
  color: var(--amber-deep);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-content {
  padding: var(--space-md) 0;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(91, 44, 111, 0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--plum);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: var(--space-2xl) 0;
  background: var(--plum-pale);
}

.products-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(91, 44, 111, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(91, 44, 111, 0.12);
}

.product-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-md);
}

.product-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

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

.gallery .section-eyebrow {
  margin-bottom: var(--space-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.tall {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item.tall img {
  aspect-ratio: 5/7;
}

.gallery-item:not(.tall) img {
  aspect-ratio: 5/4;
}

.gallery-item.wide {
  grid-column: span 8;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
  padding: var(--space-2xl) 0;
  background: 
    linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 50%, var(--plum-light) 100%);
  position: relative;
  overflow: hidden;
}

.visit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.visit .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.visit .section-title {
  color: var(--white);
}

.visit .section-title em {
  color: var(--amber-light);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.visit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--white);
}

.visit-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--amber);
}

.visit-item strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 251, 245, 0.6);
  margin-bottom: 0.2rem;
}

.visit-item p {
  font-size: 1.05rem;
  color: var(--white);
}

.visit-item a {
  color: var(--amber-light);
  transition: var(--transition);
}

.visit-item a:hover {
  color: var(--white);
}

.visit .btn-primary {
  margin-top: var(--space-sm);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--cream-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-left {
  padding: var(--space-md) 0;
}

.contact-left p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: var(--space-md);
}

.contact-form {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.06);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(91, 44, 111, 0.15);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--plum);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.08);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(91, 44, 111, 0.06);
  border-radius: var(--radius);
  color: var(--plum);
  font-weight: 500;
  margin-top: var(--space-sm);
  font-size: 0.95rem;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  flex-shrink: 0;
  color: var(--plum);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 251, 245, 0.08);
}

.footer-brand p {
  color: rgba(255, 251, 245, 0.5);
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 251, 245, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact p {
  color: rgba(255, 251, 245, 0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 251, 245, 0.5);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  gap: var(--space-sm);
}

.footer-bottom p {
  color: rgba(255, 251, 245, 0.3);
  font-size: 0.8rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.tall {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-item.tall img {
    aspect-ratio: 4/5;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .contact-form {
    padding: var(--space-md);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

@media (max-width: 480px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .hero {
    padding: var(--space-xl) var(--space-sm);
  }

  .hero-scroll {
    display: none;
  }
}
