/* ============================================================
   BrahmBandhan.com — Global Styles
   Theme: Warm Traditional — Red / Cream / Gold
============================================================ */

:root {
  --color-red: #8B1A1A;
  --color-red-dark: #6b1414;
  --color-cream: #FFF8F0;
  --color-gold: #C9A84C;
  --color-gold-light: #f3e6c4;
  --color-dark: #2a2a2a;
  --color-gray: #6b6b6b;
  --color-border: #e8ddc8;
  --color-white: #ffffff;
  --color-success: #2e7d32;
  --color-danger: #c62828;
  --shadow: 0 2px 10px rgba(139,26,26,0.08);
  --radius: 10px;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-dark);
  line-height: 1.6;
}

a { color: var(--color-red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-red); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER ---------- */
.site-header {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: var(--color-white);
  padding: 14px 0;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-header .logo { font-family: var(--font-heading); font-size: 24px; font-weight: bold; color: var(--color-gold); }
.site-header nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--color-white); font-size: 14px; }
.site-header nav a:hover { color: var(--color-gold); text-decoration: none; }
.lang-toggle { background: rgba(255,255,255,0.15); border: 1px solid var(--color-gold); color: var(--color-white);
  padding: 4px 10px; border-radius: 20px; cursor: pointer; font-size: 12px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 6px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--color-red); color: var(--color-white); }
.btn-primary:hover { background: var(--color-red-dark); text-decoration: none; }
.btn-gold { background: var(--color-gold); color: var(--color-dark); }
.btn-gold:hover { background: #b8964a; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--color-red); color: var(--color-red); }
.btn-outline:hover { background: var(--color-red); color: var(--color-white); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-danger { background: var(--color-danger); color: var(--color-white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- CARDS ---------- */
.card {
  background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; border: 1px solid var(--color-border);
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--color-dark); }
.form-group .hint { font-size: 12px; color: var(--color-gray); margin-top: 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--color-border); border-radius: 6px;
  font-size: 14px; font-family: var(--font-body); background: var(--color-white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- BADGES ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-gold { background: var(--color-gold-light); color: #8a6d1f; }
.badge-green { background: #e6f4ea; color: var(--color-success); }
.badge-red { background: #fdecea; color: var(--color-danger); }
.blue-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; background: #1DA1F2; color: white; border-radius: 50%;
  font-size: 10px; margin-left: 4px;
}

/* ---------- PROFILE CARD (browse grid) ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 24px 0; }
.profile-card {
  background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--color-border); transition: transform 0.15s ease;
}
.profile-card:hover { transform: translateY(-3px); }
.profile-card img { width: 100%; height: 220px; object-fit: cover; background: var(--color-gold-light); }
.profile-card .info { padding: 14px; }
.profile-card .name { font-weight: 700; font-size: 16px; display: flex; align-items: center; }
.profile-card .meta { font-size: 13px; color: var(--color-gray); margin: 4px 0 10px; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: var(--color-white); padding: 70px 0; text-align: center;
}
.hero h1 { color: var(--color-white); font-size: 38px; margin-bottom: 14px; }
.hero p { font-size: 18px; color: var(--color-gold-light); margin-bottom: 26px; }

/* ---------- SECTIONS ---------- */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: 28px; }
.section-title p { color: var(--color-gray); }

/* ---------- PACKAGES ---------- */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.package-card { text-align: center; border-top: 5px solid var(--color-gold); }
.package-card.featured { border-top-color: var(--color-red); position: relative; }
.package-card .price { font-size: 30px; color: var(--color-red); font-weight: 800; margin: 12px 0; }
.package-card ul { list-style: none; margin: 16px 0; text-align: left; }
.package-card ul li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--color-border); }

/* ---------- TABLE (CMS) ---------- */
table { width: 100%; border-collapse: collapse; background: var(--color-white); }
table th, table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 13px; }
table th { background: var(--color-red); color: white; }
table tr:hover { background: var(--color-cream); }

/* ---------- ALERTS ---------- */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdecea; color: var(--color-danger); border: 1px solid #f5c6cb; }
.alert-success { background: #e6f4ea; color: var(--color-success); border: 1px solid #c3e6cb; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--color-dark); color: #ccc; padding: 30px 0; text-align: center; font-size: 13px; margin-top: 60px; }
.site-footer a { color: var(--color-gold); }

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.text-gray { color: var(--color-gray); }
.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--color-border); margin-bottom: 20px; }
.tab { padding: 10px 18px; cursor: pointer; font-weight: 600; color: var(--color-gray); border-bottom: 3px solid transparent; }
.tab.active { color: var(--color-red); border-bottom-color: var(--color-red); }
.sidebar { width: 220px; background: var(--color-white); border-right: 1px solid var(--color-border); min-height: 100vh; padding: 20px 0; }
.sidebar a { display: block; padding: 10px 24px; color: var(--color-dark); font-size: 14px; }
.sidebar a:hover, .sidebar a.active { background: var(--color-cream); color: var(--color-red); text-decoration: none; border-left: 3px solid var(--color-red); }
.cms-layout { display: flex; min-height: 100vh; }
.cms-main { flex: 1; padding: 30px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--color-gold); }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--color-red); }
.stat-card .label { font-size: 13px; color: var(--color-gray); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: white; border-radius: var(--radius); padding: 24px; max-width: 480px; width: 90%; max-height: 85vh; overflow-y: auto; }

/* ---------- HERO SEARCH WIDGET ---------- */
.hero-v2 {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: var(--color-white); padding: 56px 0 0;
}
.hero-v2-grid { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 32px; align-items: center; padding-bottom: 56px; }
@media (max-width: 1000px) { .hero-v2-grid { grid-template-columns: 1fr 1fr; } .hero-photo-panel { display: none; } }
@media (max-width: 860px) { .hero-v2-grid { grid-template-columns: 1fr; } }

.hero-photo-panel { border-radius: 16px; overflow: hidden; height: 380px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.hero-photo-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
@media (max-width: 860px) { .hero-photo-panel { display: block; height: 220px; order: -1; } }
.hero-v2 h1 { color: #fff; font-size: 40px; line-height: 1.15; margin-bottom: 14px; }
.hero-v2 .sub { font-size: 16px; color: var(--color-gold-light); margin-bottom: 22px; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats .stat-num { font-size: 24px; font-weight: 800; color: var(--color-gold); }
.hero-stats .stat-label { font-size: 12px; color: rgba(255,255,255,0.85); }

.search-widget {
  background: var(--color-white); border-radius: 12px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  color: var(--color-dark);
}
.search-widget h3 { font-size: 16px; margin-bottom: 14px; color: var(--color-red); }
.search-toggle { display: flex; gap: 8px; margin-bottom: 16px; background: var(--color-cream); border-radius: 8px; padding: 4px; }
.search-toggle button {
  flex: 1; border: none; background: transparent; padding: 8px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--color-gray);
}
.search-toggle button.active { background: var(--color-red); color: #fff; }
.search-widget .form-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.search-widget .form-group { margin-bottom: 10px; }
.search-widget label { font-size: 12px; }

/* ---------- TRUST STRIP ---------- */
.trust-strip { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--color-red);
}
.trust-item .title { font-weight: 700; font-size: 14px; }
.trust-item .desc { font-size: 12px; color: var(--color-gray); max-width: 240px; }

/* ---------- STEPS ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-top: 10px; }
.step-num {
  font-family: var(--font-heading); font-size: 46px; font-weight: 800; color: var(--color-gold-light);
  line-height: 1; margin-bottom: 6px;
}
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--color-gray); }
.step-arrow { position: absolute; right: -30px; top: 20px; font-size: 22px; color: var(--color-gold); }
@media (max-width: 700px) { .step-arrow { display: none; } }

/* ---------- MEMBERSHIP COMPARISON ---------- */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--color-white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); min-width: 640px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.compare-table th { background: var(--color-cream); color: var(--color-red); font-family: var(--font-heading); font-size: 15px; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; }
.compare-table .highlight-col { background: #fff8ea; }
.compare-table .yes { color: var(--color-success); font-weight: 700; }
.compare-table .no { color: #bbb; }
.compare-table .price-cell { font-size: 18px; font-weight: 800; color: var(--color-red); }

/* ---------- SUCCESS STORY CAROUSEL ---------- */
.story-scroll { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.story-scroll::-webkit-scrollbar { height: 6px; }
.story-scroll::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }
.story-tile {
  flex: 0 0 260px; scroll-snap-align: start; background: var(--color-white); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--color-border);
}
.story-tile .photo-row { display: flex; }
.story-tile .photo-row img { width: 50%; height: 140px; object-fit: cover; }
.story-tile .body { padding: 14px; }
.story-tile .names { font-weight: 700; font-size: 14px; }
.story-tile .date { font-size: 11px; color: var(--color-gold); font-weight: 700; text-transform: uppercase; margin: 4px 0 8px; }
.story-tile .quote { font-size: 12px; color: var(--color-gray); font-style: italic; }

/* ---------- FOOTER MEGA ---------- */
.footer-mega { background: #201a17; color: #cfc9c2; padding: 44px 0 20px; margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-cols h4 { color: var(--color-gold); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.footer-cols a { display: block; color: #cfc9c2; font-size: 13px; margin-bottom: 8px; text-decoration: none; }
.footer-cols a:hover { color: var(--color-gold); }
.footer-bottom { border-top: 1px solid #3a332e; padding-top: 16px; text-align: center; font-size: 12px; color: #9a938c; }

/* ---------- TRUST ICONS (SVG, not emoji) ---------- */
.trust-icon svg { width: 24px; height: 24px; stroke: var(--color-red); fill: none; stroke-width: 1.8; }

/* ---------- TESTIMONIAL CARDS (redesigned) ---------- */
.testimonial-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 20px; scroll-snap-type: x mandatory; }
.testimonial-scroll::-webkit-scrollbar { height: 6px; }
.testimonial-scroll::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }
.testimonial-card {
  flex: 0 0 280px; scroll-snap-align: start; background: var(--color-white); border-radius: 14px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(139,26,26,0.12); border: 1px solid var(--color-border);
}
.testimonial-photo-wrap { position: relative; }
.testimonial-photo-wrap img { width: 100%; height: 170px; object-fit: cover; display: block; }
.verified-pill {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.95); color: var(--color-red);
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 4px;
}
.verified-pill svg { width: 12px; height: 12px; stroke: var(--color-success); fill: none; stroke-width: 2.5; }
.testimonial-body { padding: 16px; position: relative; }
.quote-mark { font-family: Georgia, serif; font-size: 42px; color: var(--color-gold-light); line-height: 0.5; position: absolute; top: 10px; right: 14px; }
.testimonial-stars { color: var(--color-gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 8px; }
.testimonial-quote { font-size: 13px; color: var(--color-dark); font-style: italic; margin-bottom: 12px; min-height: 54px; }
.testimonial-names { font-weight: 700; font-size: 14px; color: var(--color-red); }
.testimonial-date-pill {
  display: inline-block; margin-top: 4px; background: var(--color-gold-light); color: #8a6d1f;
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
