/* website_php/assets/css/main.css — AmarSetu Design System */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Yatra+One&family=Tiro+Devanagari+Sanskrit:ital@0;1&family=Hind:wght@300;400;500;600;700&family=Noto+Serif+Devanagari:wght@400;600;700&display=swap');

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  --saffron:       #FF6B00;
  --saffron-light: #FF8C38;
  --saffron-dark:  #CC5500;
  --gold:          #D4AF37;
  --gold-light:    #F0D060;
  --cream:         #FDF6EC;
  --deep-maroon:   #4A0E0E;
  --soft-white:    #FFFDF7;
  --text-primary:  #2C1810;
  --text-muted:    #7A5C4A;
  --divider:       #E8D5B7;
  --surface:       #FFFFFF;
  --success:       #2E7D32;
  --error:         #C62828;
  --shadow-warm:   0 4px 24px rgba(74, 14, 14, 0.08);
  --shadow-card:   0 2px 12px rgba(74, 14, 14, 0.06);
  --shadow-hover:  0 8px 32px rgba(212, 175, 55, 0.18);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Hind', 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Parchment grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── Typography ───────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Tiro Devanagari Sanskrit', 'Georgia', serif; font-weight: 700; color: var(--deep-maroon); line-height: 1.3; }
h4, h5, h6 { font-family: 'Hind', sans-serif; font-weight: 600; color: var(--deep-maroon); }
.display-font { font-family: 'Yatra One', cursive; }
.mantra-font { font-family: 'Noto Serif Devanagari', serif; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1rem; color: var(--text-primary); }
a { color: var(--saffron); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--saffron-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 80px 0; position: relative; }
.section-alt { background-color: var(--soft-white); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Gold divider line */
.gold-divider {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-family: 'Hind', sans-serif; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
  min-height: 48px; /* Touch target */
}
.btn-saffron {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff; box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}
.btn-saffron:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4); color: #fff; }
.btn-gold {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold); box-shadow: none;
}
.btn-gold:hover { background: var(--gold); color: var(--deep-maroon); }
.btn-outline {
  background: transparent; color: var(--saffron);
  border: 2px solid var(--saffron);
}
.btn-outline:hover { background: var(--saffron); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; min-height: 40px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--soft-white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-saffron-top { border-top: 4px solid var(--saffron); }
.card-image {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 16px;
}
.card-image-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  border-radius: var(--radius-md); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-category {
  display: inline-block; padding: 4px 12px;
  background: rgba(255, 107, 0, 0.1); color: var(--saffron);
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; margin-bottom: 8px;
}
.card-title { font-size: 1.15rem; margin-bottom: 8px; }
.card-price { font-size: 1.3rem; font-weight: 700; color: var(--saffron-dark); }

/* ─── Grid System ──────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: 0.9rem; color: var(--deep-maroon);
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--divider); border-radius: var(--radius-md);
  font-family: 'Hind', sans-serif; font-size: 1rem;
  background: #fff; color: var(--text-primary);
  transition: var(--transition); min-height: 48px;
}
.form-control:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,0,0.12); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ─── Pill Badge ───────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
}
.pill-gold { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid var(--gold); }
.pill-saffron { background: rgba(255,107,0,0.1); color: var(--saffron); }
.pill-coming { background: rgba(255,107,0,0.08); color: var(--saffron-dark); border: 1px dashed var(--saffron-light); }

/* ─── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--saffron); }
.breadcrumb span { color: var(--text-muted); }

/* ─── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(44,24,16,0.6);
  backdrop-filter: blur(4px); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--soft-white); border-radius: var(--radius-xl);
  padding: 36px; max-width: 480px; width: 100%;
  box-shadow: 0 20px 60px rgba(74,14,14,0.2);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--deep-maroon); }
.modal h3 { margin-bottom: 20px; }

/* ─── Alert Messages ───────────────────────────────────────── */
.alert { padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: var(--error); border: 1px solid #ffcdd2; }

/* ─── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-saffron { color: var(--saffron); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.hidden { display: none !important; }

/* ─── Animations ───────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-anim { animation: float 4s ease-in-out infinite; }

/* ─── Lotus SVG Decorative Element ─────────────────────────── */
.lotus-decoration {
  position: absolute;
  width: 200px; height: 200px;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 C50 10 30 30 30 50 C30 70 50 90 50 90 C50 90 70 70 70 50 C70 30 50 10 50 10Z' fill='%23FF6B00'/%3E%3Cpath d='M50 10 C50 10 20 25 15 50 C10 75 50 90 50 90 C50 90 25 70 25 50 C25 30 50 10 50 10Z' fill='%23FF6B00' opacity='0.5'/%3E%3Cpath d='M50 10 C50 10 80 25 85 50 C90 75 50 90 50 90 C50 90 75 70 75 50 C75 30 50 10 50 10Z' fill='%23FF6B00' opacity='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
