/* =============================================
   ANNADAAN CONNECT — MAIN STYLESHEET
   style.css
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --saffron:      #E8732A;
  --deep-saffron: #C45A15;
  --gold:         #F5B942;
  --cream:        #FDF6ED;
  --leaf:         #3A7D44;
  --deep-leaf:    #2A5C32;
  --earth:        #5C3D1E;
  --charcoal:     #1C1C1C;
  --light-gray:   #F7F3EE;
  --white:        #ffffff;
  --border:       #E8E0D8;
  --text-muted:   #777;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    24px;
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.12);
  --transition:   all 0.25s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; width: 100%; z-index: 100;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 246, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 115, 42, 0.15);
  transition: var(--transition);
}

#navbar.scrolled {
  padding: 12px 60px;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--earth);
  cursor: pointer;
}

.logo-icon { font-size: 1.8rem; }
.logo-accent { color: var(--saffron); }

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}

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

.nav-cta {
  background: var(--saffron) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--earth);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FDF6ED 55%, #FFF3E0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.7s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 115, 42, 0.1);
  border: 1px solid rgba(232, 115, 42, 0.3);
  color: var(--saffron);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--earth);
  margin-bottom: 20px;
}

.hero h1 em { color: var(--saffron); font-style: normal; }

.hero > .hero-content > p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--saffron);
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--deep-saffron);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 115, 42, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--leaf);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--leaf);
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--leaf);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--leaf);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 28px;
  transition: var(--transition);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== HERO CARD ===== */
.hero-visual {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  animation: floatIn 0.8s 0.3s ease both;
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  z-index: -1;
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.stat-box {
  background: var(--light-gray);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stat-box.green { background: rgba(58, 125, 68, 0.08); }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--saffron);
}

.stat-box.green .stat-num { color: var(--leaf); }

.stat-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

.food-flow {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--saffron), var(--deep-saffron));
  border-radius: 14px;
  padding: 16px;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}

.flow-icons { font-size: 1.5rem; margin-bottom: 6px; letter-spacing: 4px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--charcoal);
  color: white;
  padding: 40px 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.stats-item { text-align: center; }

.stats-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
}

.stats-desc { font-size: 0.83rem; color: #aaa; margin-top: 4px; }

/* ===== GENERIC SECTION ===== */
.section { padding: 90px 60px; }

.section-tag {
  display: inline-block;
  color: var(--saffron);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 900;
  color: var(--earth);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1rem;
  color: #666;
  max-width: 540px;
  line-height: 1.7;
}

/* ===== STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

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

.step-card:hover::after { transform: scaleX(1); }

.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-icon { font-size: 1.9rem; margin-bottom: 10px; }

.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--earth);
}

.step-card p { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* ===== NGO SECTION ===== */
.ngo-section {
  background: linear-gradient(135deg, var(--leaf) 0%, var(--deep-leaf) 100%);
  color: white;
  padding: 90px 60px;
}

.ngo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ngo-cards { display: flex; flex-direction: column; gap: 14px; }

.ngo-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.ngo-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(6px);
}

.ngo-card-icon { font-size: 1.8rem; }
.ngo-card-info h4 { font-weight: 600; margin-bottom: 2px; }
.ngo-card-info p { font-size: 0.83rem; color: rgba(255,255,255,0.7); }

.ngo-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--earth);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== NOTIFY SECTION ===== */
.notify-section { padding: 90px 60px; background: var(--cream); }

.notify-box {
  max-width: 780px;
  margin: 0 auto;
  background: white;
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--saffron);
}

.notify-header { text-align: center; margin-bottom: 36px; }
.notify-header .icon { font-size: 2.8rem; margin-bottom: 10px; }

.notify-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--earth);
  margin-bottom: 8px;
}

.notify-header p { color: #888; font-size: 0.92rem; }

.notify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.full-width { grid-column: 1 / -1; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 0.93rem;
  color: var(--charcoal);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  background: white;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pass-wrap { position: relative; }

.pass-wrap input { padding-right: 42px; }

.toggle-pass {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
}

/* NGO SELECT GRID */
.ngo-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.ngo-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
  user-select: none;
}

.ngo-opt:hover,
.ngo-opt.sel {
  border-color: var(--leaf);
  background: rgba(58, 125, 68, 0.07);
}

.ngo-opt .ngo-icon { font-size: 1.3rem; margin-bottom: 4px; }
.ngo-opt .ngo-name { font-size: 0.76rem; font-weight: 600; color: var(--charcoal); }
.ngo-opt .ngo-area { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

.notify-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--leaf), var(--deep-leaf));
  color: white;
  padding: 15px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.notify-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(58, 125, 68, 0.3);
}

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal);
  color: white;
  padding: 60px 60px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p { color: #aaa; font-size: 0.86rem; line-height: 1.7; margin-top: 12px; }

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: #aaa;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  color: #666;
  font-size: 0.83rem;
}

.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #ccc; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--leaf);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 999;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ===== AUTH PAGE ===== */
.auth-page { background: var(--cream); }

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 70px;
}

.auth-split-left {
  background: linear-gradient(145deg, var(--saffron) 0%, var(--deep-saffron) 60%, var(--earth) 100%);
  color: white;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-splash-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.auth-splash-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}

.auth-quote {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.quote-author { font-size: 0.84rem; color: rgba(255,255,255,0.65); }

.auth-stats {
  display: flex;
  gap: 28px;
}

.as-item { text-align: center; }

.as-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.as-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); }

.auth-split-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  overflow-y: auto;
}

.auth-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
}

.auth-form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--earth);
  margin-bottom: 4px;
}

.subtitle { color: #888; font-size: 0.88rem; margin-bottom: 24px; }

.role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.role-btn {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.role-btn:hover,
.role-btn.selected {
  border-color: var(--saffron);
  background: rgba(232, 115, 42, 0.07);
}

.role-icon { font-size: 1.5rem; margin-bottom: 4px; }
.role-name { font-size: 0.83rem; font-weight: 600; color: var(--charcoal); }

.btn-full {
  width: 100%;
  background: var(--saffron);
  color: white;
  padding: 13px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.btn-full:hover { background: var(--deep-saffron); }

.switch-link { text-align: center; margin-top: 16px; font-size: 0.86rem; color: #888; }
.switch-link a { color: var(--saffron); font-weight: 600; }
.switch-link a:hover { text-decoration: underline; }

/* Benefit list (register left panel) */
.benefit-list { display: flex; flex-direction: column; gap: 16px; }

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.benefit-text h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.benefit-text p { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* Form feedback */
.form-error {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #c0392b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.form-success {
  background: rgba(58, 125, 68, 0.08);
  border: 1px solid rgba(58, 125, 68, 0.3);
  color: var(--deep-leaf);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(-50%) translateX(36px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  #navbar { padding: 14px 24px; }
  .nav-links { display: none; }
  .hamburger { display: block; }

  .hero { padding: 100px 24px 60px; }
  .hero-visual { display: none; }

  .section { padding: 60px 24px; }
  .ngo-section { padding: 60px 24px; }
  .ngo-inner { grid-template-columns: 1fr; gap: 40px; }
  .notify-section { padding: 60px 24px; }
  .notify-box { padding: 28px 20px; }
  .notify-grid { grid-template-columns: 1fr; }
  .ngo-select-grid { grid-template-columns: 1fr 1fr; }

  .stats-bar { padding: 36px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 48px 24px 24px; }

  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-split-left { padding: 40px 24px; }
  .auth-split-right { padding: 28px 20px; }
  .auth-form-card { padding: 28px 20px; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ngo-select-grid { grid-template-columns: 1fr 1fr; }
}
