/* ============================================
   Blue Mango Ventures — Global Stylesheet
   ============================================ */

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

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --mango: #F59E0B;
  --green-dark: #16A34A;
  --green-light: #22C55E;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-accent: 'Instrument Serif', Georgia, serif;
  --max-width: 1200px;
  --content-width: 680px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.accent {
  font-family: var(--font-accent);
  font-style: italic;
}

.accent-animate {
  animation: color-shift 4s ease-in-out infinite;
}

@keyframes color-shift {
  0%, 100% { color: var(--primary); }
  50% { color: var(--mango); }
}

@media (prefers-reduced-motion: reduce) {
  .accent-animate {
    animation: none;
    color: var(--primary);
  }
}

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* --- Fade-up animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.nav-brand svg {
  width: 28px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

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

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

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

.nav-links a.active {
  color: var(--primary);
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }

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

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Product Cards
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
}

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

.product-card--dark {
  background: var(--text);
  color: #FFFFFF;
}

.product-card--dark h3 {
  color: #FFFFFF;
}

.product-card--dark p {
  color: #CBD5E1;
}

.product-card--light {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.product-card h3 {
  font-size: 1.35rem;
}

.product-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
}

.badge--available {
  background: rgba(34, 197, 94, 0.15);
  color: #16A34A;
}

.badge--coming {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}

.product-card--dark .badge--available {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
}

/* ============================================
   Values
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.value-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-text p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.address-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.section-alt .address-card {
  background: var(--bg);
}

.address-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.address-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form-wrapper {
  max-width: 540px;
  margin: 40px auto 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

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

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status--error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Page Header (inner pages)
   ============================================ */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Prose (legal pages, about text)
   ============================================ */
.prose {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 80px;
}

.prose h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.prose p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .effective-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================
   About Page Specifics
   ============================================ */
.about-page-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 640px) {
  .about-page-products {
    grid-template-columns: 1fr;
  }
}

.about-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.about-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.about-product-card h3 {
  margin-bottom: 8px;
}

.about-product-card p {
  font-size: 0.88rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-sidebar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.6;
}

/* ============================================
   Section headings
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: 12px;
}

.section-subheading {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 8px;
  font-size: 1rem;
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
