/*
Theme Name: U Dream Partner
Theme URI: https://udreampartner.com
Description: Modern matrimonial platform theme for U Dream Partner plugin.
Author: Zee Khan
Author URI: https://udreampartner.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: udream-theme
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --t-primary:   #e91e8c;
  --t-secondary: #7c3aed;
  --t-accent:    #f59e0b;
  --t-dark:      #1e1b4b;
  --t-light:     #fdf2f8;
  --t-muted:     #6b7280;
  --t-border:    #e5e7eb;
  --t-white:     #ffffff;
  --t-font:      'Segoe UI', system-ui, -apple-system, sans-serif;
  --t-radius:    12px;
  --t-shadow:    0 4px 24px rgba(233,30,140,.12);
  --t-nav-h:     68px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--t-font); color: #374151; background: #fff; line-height: 1.6; }
a    { color: var(--t-primary); text-decoration: none; }
a:hover { opacity: .85; }
img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }

/* ── Layout ────────────────────────────────────────────── */
.t-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.t-section   { padding: 80px 0; }
.t-row       { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.t-col-6     { flex: 0 0 calc(50% - 12px); }
.t-col-4     { flex: 0 0 calc(33.333% - 16px); }
.t-text-center { text-align: center; }

/* ── Buttons ───────────────────────────────────────────── */
.t-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: 50px; font-size: 15px;
  font-weight: 700; border: none; cursor: pointer; transition: all .25s;
  font-family: var(--t-font); text-decoration: none;
}
.t-btn-primary {
  background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
  color: #fff; box-shadow: 0 6px 20px rgba(233,30,140,.35);
}
.t-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(233,30,140,.45); color: #fff; }
.t-btn-outline { background: transparent; color: var(--t-primary); border: 2.5px solid var(--t-primary); }
.t-btn-outline:hover { background: var(--t-light); }
.t-btn-white { background: #fff; color: var(--t-primary); font-weight: 700; }
.t-btn-white:hover { background: var(--t-light); color: var(--t-primary); }

/* ── Navigation ────────────────────────────────────────── */
.t-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--t-nav-h); background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--t-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.t-nav-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.t-logo {
  display: flex; align-items: center; gap: 10px; font-size: 22px;
  font-weight: 800; color: var(--t-dark); text-decoration: none;
}
.t-logo-icon { font-size: 28px; }
.t-logo-text span { color: var(--t-primary); }

.t-nav-menu { display: flex; align-items: center; gap: 6px; }
.t-nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--t-muted); transition: all .2s; display: flex; align-items: center; gap: 5px;
}
.t-nav-link:hover, .t-nav-link.active { background: var(--t-light); color: var(--t-primary); }
.t-nav-link.t-nav-cta {
  background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
  color: #fff; padding: 10px 22px; border-radius: 50px; margin-left: 8px;
}
.t-nav-link.t-nav-cta:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

.t-mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--t-dark); }

/* Notification bell in nav */
.t-nav-notif { position: relative; cursor: pointer; padding: 8px; }
.t-nav-notif-badge {
  position: absolute; top: 4px; right: 4px; background: var(--t-primary);
  color: #fff; border-radius: 50%; width: 16px; height: 16px;
  font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.t-nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer; border: 2px solid var(--t-primary); }
.t-nav-user-menu {
  position: absolute; right: 24px; top: calc(var(--t-nav-h) + 6px);
  background: #fff; border-radius: 12px; box-shadow: var(--t-shadow);
  border: 1px solid var(--t-border); min-width: 180px; z-index: 9001;
  display: none; overflow: hidden;
}
.t-nav-user-menu.open { display: block; }
.t-nav-user-menu a {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  font-size: 13px; font-weight: 600; color: #374151; border-bottom: 1px solid var(--t-border);
}
.t-nav-user-menu a:last-child { border-bottom: none; }
.t-nav-user-menu a:hover { background: var(--t-light); color: var(--t-primary); }

/* ── Page Body offset ──────────────────────────────────── */
.t-page-body { padding-top: var(--t-nav-h); min-height: calc(100vh - var(--t-nav-h)); }

/* ── Hero Section ──────────────────────────────────────── */
.t-hero {
  min-height: calc(100vh - var(--t-nav-h));
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.t-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.t-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 60px 24px; width: 100%; }
.t-hero-content { max-width: 580px; }
.t-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 50px;
  padding: 8px 18px; font-size: 13px; color: rgba(255,255,255,.9);
  font-weight: 600; margin-bottom: 24px;
}
.t-hero-badge span { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
.t-hero h1 {
  font-size: clamp(36px, 5vw, 60px); font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 20px;
}
.t-hero h1 em { font-style: normal; color: #f9a8d4; }
.t-hero p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; line-height: 1.7; }
.t-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.t-hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.t-hero-stat-num  { font-size: 28px; font-weight: 800; color: #fff; }
.t-hero-stat-label{ font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ── Features Section ──────────────────────────────────── */
.t-features { background: #f9fafb; }
.t-section-header { text-align: center; margin-bottom: 56px; }
.t-section-badge {
  display: inline-block; background: var(--t-light); color: var(--t-primary);
  padding: 6px 18px; border-radius: 50px; font-size: 12px; font-weight: 700;
  margin-bottom: 14px; letter-spacing: .5px; text-transform: uppercase;
}
.t-section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--t-dark);
  margin-bottom: 16px; line-height: 1.2;
}
.t-section-sub { font-size: 17px; color: var(--t-muted); max-width: 600px; margin: 0 auto; }

.t-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.t-feature-card {
  background: #fff; border-radius: 20px; padding: 32px; border: 1px solid var(--t-border);
  transition: all .3s; position: relative; overflow: hidden;
}
.t-feature-card:hover { transform: translateY(-6px); box-shadow: var(--t-shadow); border-color: rgba(233,30,140,.2); }
.t-feature-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--t-primary), var(--t-secondary));
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.t-feature-card:hover::after { transform: scaleX(1); }
.t-feature-icon {
  font-size: 44px; margin-bottom: 18px;
  background: var(--t-light); width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
}
.t-feature-title { font-size: 19px; font-weight: 800; color: var(--t-dark); margin-bottom: 10px; }
.t-feature-desc  { font-size: 14px; color: var(--t-muted); line-height: 1.7; }

/* ── CTA Section ───────────────────────────────────────── */
.t-cta {
  background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-secondary) 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.t-cta::before {
  content: '💑'; font-size: 200px; position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%); opacity: .06; pointer-events: none;
}
.t-cta h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: #fff; margin-bottom: 16px; }
.t-cta p  { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.t-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Stats Band ────────────────────────────────────────── */
.t-stats-band { background: var(--t-dark); padding: 50px 0; }
.t-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 0; }
.t-stat-item { text-align: center; padding: 20px; border-right: 1px solid rgba(255,255,255,.1); }
.t-stat-item:last-child { border-right: none; }
.t-stat-num  { font-size: 40px; font-weight: 900; background: linear-gradient(135deg,var(--t-primary),#f9a8d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.t-stat-lbl  { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 6px; font-weight: 600; }

/* ── Testimonials ──────────────────────────────────────── */
.t-testimonials { background: #fff; }
.t-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; }
.t-testimonial-card { background: var(--t-light); border-radius: 20px; padding: 28px; border: 1px solid rgba(233,30,140,.1); }
.t-testimonial-text { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.t-testimonial-author { display: flex; align-items: center; gap: 12px; }
.t-testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--t-primary),var(--t-secondary)); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.t-testimonial-name { font-weight: 700; color: var(--t-dark); font-size: 14px; }
.t-testimonial-loc  { font-size: 12px; color: var(--t-muted); }
.t-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }

/* ── Footer ────────────────────────────────────────────── */
.t-footer { background: var(--t-dark); color: rgba(255,255,255,.8); padding: 60px 0 30px; }
.t-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.t-footer-brand .t-logo { color: #fff; margin-bottom: 16px; }
.t-footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.8; max-width: 280px; }
.t-footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.t-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 10px; transition: color .2s; }
.t-footer-col a:hover { color: var(--t-primary); }
.t-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.t-footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }
.t-footer-social { display: flex; gap: 12px; }
.t-footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: background .2s;
}
.t-footer-social a:hover { background: var(--t-primary); }

/* ── Animations ────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.2)} }

/* ── Mobile Nav ────────────────────────────────────────── */
@media (max-width: 900px) {
  .t-mobile-toggle { display: block; }
  .t-nav-menu {
    display: none; position: fixed; top: var(--t-nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); border-top: 1px solid var(--t-border);
    align-items: stretch; gap: 4px;
  }
  .t-nav-menu.open { display: flex; }
  .t-nav-link.t-nav-cta { border-radius: 8px; }
  .t-footer-grid { grid-template-columns: 1fr 1fr; }
  .t-col-6, .t-col-4 { flex: 0 0 100%; }
}
@media (max-width: 600px) {
  .t-section { padding: 50px 0; }
  .t-hero h1 { font-size: 32px; }
  .t-hero-stats { flex-direction: column; gap: 16px; }
  .t-stats-grid { grid-template-columns: 1fr 1fr; }
  .t-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .t-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .t-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
