/* ============================================================
   Christian Matrimony Portal — Public Design System
   Palette: Deep Navy #0F1E3D, Warm Gold #C9A961, Ivory #FDFBF7
   ============================================================ */

:root {
  --navy:        #0F1E3D;
  --navy-dark:   #0a1530;
  --navy-soft:   #1c2d56;
  --gold:        #C9A961;
  --gold-dark:   #a7894a;
  --gold-soft:   #e8d5a3;
  --ivory:       #FDFBF7;
  --beige:       #f3ecdc;
  --white:       #ffffff;
  --burgundy:    #6b1f2a;
  --olive:       #6b7a3a;
  --ink:         #1a1f2e;
  --muted:       #6b7280;
  --line:        #e7e1cf;
  --success:     #2e7d32;
  --danger:      #b3261e;
  --warning:     #b76e00;
  --info:        #0b6ea8;
  --shadow-sm:   0 2px 8px rgba(15,30,61,.06);
  --shadow-md:   0 10px 30px rgba(15,30,61,.08);
  --shadow-lg:   0 25px 60px rgba(15,30,61,.14);
  --shadow-gold: 0 12px 35px rgba(201,169,97,.25);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --transition:  .25s ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', 'Noto Sans Telugu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', 'Noto Sans Telugu', Georgia, serif; font-weight: 700; color: var(--navy); margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 1em; }

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }

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

/* ===================== NAVBAR ===================== */
.site-nav {
  background: var(--navy);
  color: var(--ivory);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.site-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); font-weight: 700; font-size: 1.15rem; font-family: 'Playfair Display', Georgia, serif; }
.brand:hover { color: var(--gold); }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; transition: transform .3s ease; }
.brand:hover .brand-mark { transform: rotate(15deg) scale(1.05); }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ivory); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; transition: all .2s ease; }
.nav-links a:hover, .nav-links a.active { background: rgba(201,169,97,.15); color: var(--gold); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--ivory); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 10px 20px 16px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-outline-gold { display: none; }
}

/* ===================== BUTTONS ===================== */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: .95rem; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; text-align: center; line-height: 1.2; font-family: inherit; }
.btn-primary { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--ivory); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--ivory); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: var(--ivory); color: var(--navy); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; }
.btn-ghost:hover { background: var(--beige); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ===================== HERO ===================== */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: var(--ivory); padding: 90px 20px 110px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(201,169,97,.18), transparent 50%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.hero h1 { color: var(--ivory); font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: 1.15rem; opacity: .92; margin-bottom: 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat { color: var(--ivory); }
.hero-stat strong { display: block; font-size: 1.8rem; color: var(--gold); font-family: 'Playfair Display', serif; }
.hero-stat span { font-size: .85rem; opacity: .8; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(201,169,97,.3); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px); }
.hero-card h4 { color: var(--gold); margin-bottom: 12px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.15); display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before { content: '✝'; color: var(--gold); }
@media (max-width: 800px) { .hero .container { grid-template-columns: 1fr; } }

/* ===================== SECTIONS ===================== */
.section { padding: 80px 20px; position: relative; }
.section-alt { background: var(--white); }
.section-beige { background: var(--beige); }
.section-dark { background: var(--navy); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--gold-dark); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .82rem; margin-bottom: 10px; display: block; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===================== SPLIT MEDIA & FEATURE LAYOUTS ===================== */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
}
.split-feature.reverse {
  direction: rtl;
}
.split-feature.reverse > * {
  direction: ltr;
}
.feature-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--line);
  background: var(--white);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(15,30,61,0.15);
}
.feature-img-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.feature-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(15,30,61,0.9) 0%, rgba(15,30,61,0) 100%);
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 500;
}
@media (max-width: 800px) {
  .split-feature, .split-feature.reverse { grid-template-columns: 1fr; gap: 30px; }
}

/* ===================== CARDS ===================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--beige); color: var(--gold-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; transition: transform .3s ease; }
.card:hover .card-icon { transform: scale(1.1); }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ===================== HOW IT WORKS STEPS ===================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; border: 1px solid var(--line); position: relative; transition: all var(--transition); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.step-num { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; font-family: 'Playfair Display', serif; box-shadow: 0 4px 12px rgba(201,169,97,0.3); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ===================== TESTIMONIALS ===================== */
.testimonial { background: var(--white); padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; transition: all var(--transition); display: flex; flex-direction: column; justify-content: space-between; }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial::before { content: '"'; position: absolute; top: -12px; left: 20px; font-size: 4.5rem; color: var(--gold-soft); font-family: 'Playfair Display', serif; line-height: 1; pointer-events: none; }
.testimonial p { font-style: italic; color: var(--ink); margin-bottom: 16px; position: relative; z-index: 1; font-size: 0.98rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Playfair Display', serif; font-size: 0.95rem; }
.testimonial-name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.testimonial-meta { font-size: .82rem; color: var(--muted); }

/* ===================== FAQ ===================== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: all .2s ease; }
.faq-item:hover { border-color: var(--gold); }
.faq-q { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--navy); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--gold); transition: transform var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; color: var(--muted); display: none; }
.faq-item.open .faq-a { display: block; }

/* ===================== FORMS ===================== */
.form-card { max-width: 520px; margin: 40px auto; background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form-card h2 { text-align: center; margin-bottom: 8px; }
.form-card .sub { text-align: center; color: var(--muted); margin-bottom: 28px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: var(--ivory); transition: border var(--transition);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18);
}
.form-row .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-footer { text-align: center; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.form-footer a { font-weight: 600; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-weight: 400; font-size: .88rem; color: var(--ink); }

/* ===================== ALERTS ===================== */
.alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.alert-danger  { background: #fdecea; color: #b3261e; border-color: #f5c2c0; }
.alert-warning { background: #fff4e5; color: #8a5300; border-color: #ffe0a3; }
.alert-info    { background: #e6f3fa; color: #0b6ea8; border-color: #b6def0; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-dark); color: rgba(253,251,247,.85); padding: 60px 20px 30px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; max-width: 1180px; margin: 0 auto; }
.site-footer h4 { color: var(--gold); margin-bottom: 14px; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(253,251,247,.75); }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand-block p { font-size: .92rem; opacity: .8; margin-top: 12px; }
.site-footer .copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; margin-top: 40px; font-size: .85rem; opacity: .7; }
@media (max-width: 800px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* ===================== PAGE HEADER ===================== */
.page-header { background: var(--navy); color: var(--ivory); padding: 60px 20px; text-align: center; position: relative; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(201,169,97,.18), transparent 70%); pointer-events: none; }
.page-header h1 { color: var(--ivory); margin: 0; }
.page-header p { opacity: .88; margin: 12px 0 0; max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }
.breadcrumb { color: var(--gold); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--gold); }

/* ===================== UTILITIES ===================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-soft { background: var(--beige); color: var(--navy); }
.badge-success { background: #e8f5e9; color: #1b5e20; }
.badge-danger { background: #fdecea; color: #b3261e; }

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivory, #fdfbf7);
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.lang-switch-btn:hover {
  background: rgba(201, 169, 97, 0.2);
  border-color: var(--gold, #c9a961);
  color: #fff;
  transform: scale(1.02);
}
.lang-globe {
  font-size: 0.95rem;
  line-height: 1;
}
.lang-current.active, .lang-target.active {
  color: var(--gold, #c9a961);
  font-weight: 700;
}
.lang-sep {
  opacity: 0.4;
  font-size: 0.75rem;
}

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

@keyframes heroFloat {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

@keyframes floatPill {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(201,169,97,0.2); }
  50%      { box-shadow: 0 18px 45px rgba(201,169,97,0.45); }
}
