/* =============================================
   Sri Thangam Matrimony - Main Stylesheet
   Bright festive palette (gold + blush + coral)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  /* Bright gold — celebratory, high energy */
  --gold: #E8A317;
  --gold-mid: #F5B82E;
  --gold-light: #FFD666;
  --gold-muted: #F5C84A;
  --gold-dark: #C97808;
  --gold-deep: #A65F00;
  /* Coral & rose — typical vibrant matrimony accents */
  --rose: #E8486D;
  --rose-light: #FF6B8A;
  --rose-soft: #FFD0DC;
  --rose-deep: #C2185B;
  /* Surfaces — airy blush whites */
  --cream: #FFFAF7;
  --cream-dark: #FFE8F0;
  --cream-muted: #F8D0E0;
  --ivory: #FFFFFF;
  --white: #FFFFFF;
  --text-dark: #3D2434;
  --text-mid: #6B4A5C;
  --text-light: #9A7288;
  --border: #F3C4D4;
  --border-strong: #E8A0B8;
  --shadow: rgba(232, 72, 109, 0.1);
  --shadow-deep: rgba(200, 120, 20, 0.14);
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(180deg, var(--cream) 0%, #FFF5F9 55%, #FFECF2 100%);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ---- TOP BAR ---- */
.top-bar {
  background: linear-gradient(90deg, #AD1457 0%, #C2185B 35%, #D81B60 70%, #C2185B 100%);
  color: #FFF8FC;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: #FFFFFF; }

/* ---- HEADER ---- */
header {
  background: var(--ivory);
  border-bottom: 3px solid var(--gold-light);
  box-shadow: 0 4px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 70px; }

/* ---- NAV ---- */
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s;
  white-space: nowrap;
}
nav ul li a:hover, nav ul li a.active {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 45%, var(--gold) 100%);
  color: var(--text-dark);
  box-shadow: 0 3px 12px rgba(245, 184, 46, 0.45);
}
nav ul li a.btn-register {
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--rose) 55%, var(--rose-deep) 100%);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(200, 24, 91, 0.35);
}
nav ul li a.btn-register:hover {
  background: linear-gradient(180deg, #FF8FA8 0%, #E91E63 50%, #AD1457 100%);
}

/* ---- HERO SECTION ---- */
.hero {
  background:
    linear-gradient(165deg, #FFF9FC 0%, #FFF0F6 28%, #FFE4EE 58%, #FFD6E8 100%);
  padding: 56px 20px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 65% 55% at 20% 40%, rgba(255, 214, 102, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 82% 48%, rgba(255, 107, 138, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 50% 45% at 50% 95%, rgba(245, 184, 46, 0.2) 0%, transparent 48%);
}
/* Soft ramp into stats bar */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 152, 0, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--rose-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero p {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* About Us (home top section) */
.hero.about-hero {
  padding-top: 48px;
  padding-bottom: 56px;
}
.hero.about-hero h1 {
  margin-bottom: 10px;
}
.hero.about-hero .about-tagline {
  margin-bottom: 28px;
  font-size: 16px;
}
.hero.about-hero .about-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.hero.about-hero .about-body p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-mid);
}
.hero.about-hero .about-body p:last-child {
  margin-bottom: 0;
}

/* ---- SEARCH BOX (on hero) ---- */
.search-box {
  background: var(--ivory);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 40px var(--shadow-deep),
    0 4px 12px var(--shadow);
}
.search-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold-dark);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 14px;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.search-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-grid select, .search-grid input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(232, 72, 109, 0.06);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-grid select:focus, .search-grid input:focus {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.35);
}
.btn {
  display: inline-block;
  padding: 11px 30px;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 40%, var(--gold) 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(245, 184, 46, 0.5);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #FFEAA0 0%, var(--gold-light) 45%, var(--gold-mid) 100%);
  box-shadow: 0 6px 22px rgba(245, 184, 46, 0.55);
}
.btn-rose {
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--rose) 55%, var(--rose-deep) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35);
}
.btn-rose:hover {
  background: linear-gradient(180deg, #FF9EB5 0%, #E91E63 45%, #AD1457 100%);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--rose-light);
  color: var(--rose-deep);
}
.btn-outline:hover {
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--rose) 100%);
  color: var(--white);
  border-color: var(--rose-deep);
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: linear-gradient(95deg, #FFB300 0%, #FFA000 25%, #FF8F00 55%, #F57C00 100%);
  color: #FFFEF9;
  padding: 22px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(183, 28, 28, 0.25);
  display: block;
}
.stat-item .lbl { font-size: 13px; color: rgba(255, 255, 255, 0.92); }

/* ---- SECTION ---- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  color: var(--rose-deep);
  font-style: italic;
  margin-bottom: 6px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 30px;
}
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-mid), var(--rose-light));
  border-radius: 2px;
  margin-bottom: 30px;
}

/* ---- COMMUNITY CARDS (HOME) ---- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.community-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.community-card:hover {
  border-color: var(--gold-mid);
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-2px);
}
.community-card .name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.community-card .counts {
  font-size: 12px;
  color: var(--text-light);
}
.community-card .counts span {
  display: inline-block;
  background: var(--cream-dark);
  padding: 2px 8px;
  border-radius: 20px;
  margin: 2px;
}

/* ---- PROFILE CARDS ---- */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.25s;
}
.profile-card:hover {
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-3px);
}
.profile-pic {
  width: 100%;
  height: 140px;
  background: linear-gradient(145deg, #FFE5F0 0%, #FFD6E8 40%, var(--gold-light) 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.profile-info { padding: 14px; }
.profile-info .pname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.profile-info .pcaste {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.profile-info .pdetails {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.lock-msg {
  font-size: 12px;
  color: var(--rose-deep);
  background: linear-gradient(180deg, #FFF5F8 0%, var(--rose-soft) 100%);
  padding: 6px 10px;
  border-radius: 4px;
  margin: 0 14px 14px;
}

/* ---- PLANS SECTION ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 30px var(--shadow);
}
.plan-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.plan-card .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.plan-card .price span { font-size: 18px; }
.plan-card .duration {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.plan-card ul {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
}
.plan-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.plan-card ul li::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 700;
}

/* ---- FORM STYLES ---- */
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 4px 20px var(--shadow);
}
.form-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-section .section-note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.contact-icon {
  font-size: 22px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.contact-text strong { display: block; color: var(--gold-dark); font-size: 14px; }
.contact-text span { font-size: 14px; color: var(--text-mid); }

/* ---- FOOTER ---- */
footer {
  background: linear-gradient(165deg, #4A1942 0%, #3D1038 50%, #2D0B2E 100%);
  color: #FFFFFF;
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand p {
  font-size: 13px;
  color: #FFFFFF;
  margin-top: 14px;
  line-height: 1.7;
  opacity: 0.95;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 13px;
  color: #FFFFFF;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.95;
}
.footer-col ul li a:hover {
  color: var(--gold-light);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #FFFFFF;
  opacity: 0.92;
}
.footer-brand img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  nav ul { justify-content: center; }
  .hero h1 { font-size: 32px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .search-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
}
