/* ==========================================================================
   A's Pinoy Foods, LLC — MANYAMAN®
   Design tokens
   ========================================================================== */
:root {
  --cream:        #FBF6EF;
  --cream-alt:     #F2EAD9;
  --forest:        #16332A;
  --forest-deep:   #0E241D;
  --forest-soft:   #2B4B3E;
  --gold:          #B08A2E;
  --gold-bright:   #D3A93F;
  --maroon:        #7A2331;
  --ink:           #2A2520;
  --ink-soft:      #5B554C;
  --white:         #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-card: 0 18px 40px -20px rgba(14, 36, 29, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--forest); margin: 0 0 0.5em; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--gold-bright); }

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-gold {
  background: var(--gold-bright);
  color: var(--forest-deep);
}
.btn-gold:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(176, 138, 46, 0.55); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(251, 246, 239, 0.55);
  color: var(--cream);
}
.btn-outline-light:hover { background: rgba(251, 246, 239, 0.12); border-color: var(--cream); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(22, 51, 42, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 52px; width: auto; border-radius: 3px; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--forest);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--maroon);
  transition: right 0.3s var(--ease);
}
.main-nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(22, 51, 42, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--forest);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  transition: max-height 0.35s var(--ease);
  border-top: 1px solid transparent;
}
.mobile-nav.open { max-height: 420px; border-top-color: rgba(22, 51, 42, 0.08); }
.mobile-nav a {
  padding: 14px 24px;
  text-decoration: none;
  color: var(--forest);
  font-weight: 500;
  border-bottom: 1px solid rgba(22, 51, 42, 0.06);
}
.mobile-nav .btn { margin: 14px 24px; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,36,29,0.72) 0%, rgba(14,36,29,0.58) 45%, rgba(14,36,29,0.85) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 110px; color: var(--cream); max-width: 760px; }
.hero-content h1 { color: var(--white); }
.hero-sub { color: rgba(251, 246, 239, 0.86); font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }

.sinag-divider {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 220px;
  height: 60px;
  transform: translateX(-50%);
  background:
    repeating-conic-gradient(from 0deg at 50% 130%,
      var(--gold-bright) 0deg 3deg, transparent 3deg 18deg);
  -webkit-mask: radial-gradient(circle at 50% 130%, black 0 40%, transparent 41%);
  mask: radial-gradient(circle at 50% 130%, black 0 40%, transparent 41%);
  opacity: 0.85;
  z-index: 2;
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* About */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-media img { border-radius: 6px; box-shadow: var(--shadow-card); }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

/* MANYAMAN band */
.manyaman-band { position: relative; padding: 130px 0; overflow: hidden; }
.manyaman-bg { position: absolute; inset: 0; z-index: 0; }
.manyaman-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.manyaman-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,36,29,0.88), rgba(14,36,29,0.8)); }
.manyaman-content { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.manyaman-word {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: var(--gold-bright);
  letter-spacing: 0.01em;
}
.manyaman-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 1.2em;
}
.manyaman-copy { color: rgba(251, 246, 239, 0.85); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -18px rgba(14,36,29,0.4); }
.product-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.ribbon {
  position: absolute;
  top: 16px; right: -34px;
  background: var(--maroon);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 40px;
  transform: rotate(35deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.product-body { padding: 20px 22px 26px; }
.product-body h3 { margin-bottom: 0.35em; }
.product-body p { margin-bottom: 0; font-size: 0.94rem; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--white);
  border: 1px solid rgba(22, 51, 42, 0.08);
  border-radius: 6px;
  padding: 32px 26px;
}
.feature-icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  color: var(--maroon);
}
.feature-icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { font-size: 0.94rem; margin-bottom: 0; }

/* Wholesale */
.wholesale-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .wholesale-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; } }

.wholesale-form {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--forest); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(22,51,42,0.16);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--maroon);
  outline: none;
}
.form-note { font-size: 0.9rem; color: var(--forest-soft); min-height: 1.2em; margin: 0; }

/* Mission band */
.mission-band {
  background: var(--forest);
  padding: 90px 0;
  text-align: center;
}
.mission-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Contact */
.contact-grid { display: grid; gap: 40px; align-items: center; }
.contact-line { font-size: 1.05rem; }
.contact-line a { text-decoration: none; color: var(--maroon); font-weight: 600; }
.contact-media img { border-radius: 6px; box-shadow: var(--shadow-card); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(251, 246, 239, 0.75);
  padding: 48px 0 40px;
  text-align: center;
}
.footer-mark { width: 64px; height: auto; margin: 0 auto 16px; border-radius: 6px; opacity: 0.9; }
.footer-inner p { color: inherit; margin: 0.2em 0; }
.footer-tagline { font-size: 0.9rem; color: var(--gold-bright); }
