/* Pavitra Setu — main theme stylesheet */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ps-font-body);
	color: var(--ps-ink);
	background: var(--ps-cream);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--ps-font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 20px; }
.ps-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ps-eyebrow {
	font-family: var(--ps-font-utility);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px;
	font-weight: 600;
	color: var(--ps-sindoor);
	display: inline-block;
	margin-bottom: 10px;
}
:focus-visible { outline: 3px solid var(--ps-marigold); outline-offset: 2px; }

/* Buttons */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer; font-weight: 600; text-decoration: none; font-family: var(--ps-font-utility); font-size: 15px; letter-spacing: .02em; transition: transform .15s, box-shadow .15s; }
.ps-btn-primary { background: var(--ps-sindoor); color: #fff; }
.ps-btn-primary:hover { background: var(--ps-sindoor-dark); transform: translateY(-1px); }
.ps-btn-outline { background: transparent; border: 1.5px solid var(--ps-sindoor); color: var(--ps-sindoor); }
.ps-btn-outline:hover { background: var(--ps-rose); }
.ps-btn-sm { padding: 8px 16px; font-size: 13px; }
.ps-btn-link { background: none; border: none; text-decoration: underline; color: #8a6b71; padding: 6px; }

/* Header */
.ps-site-header { background: var(--ps-white); border-bottom: 1px solid #efe3d6; position: sticky; top: 0; z-index: 100; }
.ps-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 20px; }
.ps-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ps-logo-text { font-family: var(--ps-font-display); font-size: 24px; color: var(--ps-sindoor); font-weight: 600; }
.ps-nav-menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-family: var(--ps-font-utility); font-weight: 600; font-size: 15px; }
.ps-nav-menu a { text-decoration: none; color: var(--ps-ink); }
.ps-nav-menu a:hover { color: var(--ps-sindoor); }
.ps-header-actions { display: flex; gap: 10px; align-items: center; }
.ps-mobile-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; }
.ps-mobile-toggle span { width: 24px; height: 2px; background: var(--ps-ink); }

/* Hero */
.ps-hero { padding: 70px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--ps-cream) 100%); }
.ps-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.ps-hero-sub { font-size: 18px; color: #5c454a; max-width: 480px; }
.ps-hero-search { display: flex; gap: 10px; flex-wrap: wrap; background: var(--ps-white); padding: 14px; border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); margin: 26px 0 12px; }
.ps-hero-search select, .ps-hero-search input { border: 1px solid #eadfd0; border-radius: 10px; padding: 12px; font-size: 14px; flex: 1; min-width: 120px; font-family: var(--ps-font-body); }
.ps-hero-trust { font-size: 13px; color: #8a6b71; }
.ps-setu-arc { width: 100%; height: auto; }

/* Stats strip */
.ps-stats-strip { background: var(--ps-ink); color: #fff; padding: 28px 0; }
.ps-stats-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; text-align: center; }
.ps-stats-row strong { display: block; font-family: var(--ps-font-display); font-size: 30px; color: var(--ps-marigold); }
.ps-stats-row span { font-family: var(--ps-font-utility); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #d9c9c0; }

/* Section generic */
.ps-section { padding: 64px 0; }
.ps-section h2 { max-width: 560px; }

/* Communities */
.ps-community-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ps-community-pill { background: var(--ps-white); border: 1px solid var(--ps-gold-line); padding: 10px 20px; border-radius: 999px; text-decoration: none; font-family: var(--ps-font-utility); font-weight: 600; font-size: 14px; color: var(--ps-ink); transition: background .15s; }
.ps-community-pill:hover { background: var(--ps-rose); border-color: var(--ps-sindoor); }

/* How it works */
.ps-how-it-works { background: var(--ps-white); }
.ps-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.ps-step-icon { font-family: var(--ps-font-display); font-size: 34px; color: var(--ps-marigold); margin-bottom: 10px; }
.ps-step p { color: #5c454a; }

/* Feature split (kundli) */
.ps-feature-split-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.ps-kundli-preview { background: #fff8ee; border: 1px solid #f0d9a8; border-radius: var(--ps-radius); padding: 26px; }
.ps-kundli-preview .ps-kundli-total { font-family: var(--ps-font-display); font-size: 30px; color: var(--ps-sindoor); margin-right: 14px; }
.ps-kundli-preview-note { font-size: 13px; color: #8a6b71; margin-top: 14px; }
.ps-verdict-excellent { background: #dcf5e3; color: #1c7a3a; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; font-family: var(--ps-font-utility); }
.ps-feature-copy p { color: #5c454a; max-width: 460px; }

/* Profile cards (shared with plugin, refined) */
.ps-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 26px; }
.ps-profile-card { background: var(--ps-white); border-radius: var(--ps-radius); overflow: hidden; box-shadow: var(--ps-shadow); }
.ps-card-photo { aspect-ratio: 1/1; background: var(--ps-rose); position: relative; }
.ps-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--ps-font-display); font-size: 52px; color: var(--ps-sindoor); }
.ps-verified-badge { position: absolute; top: 12px; right: 12px; background: #2e9e5b; color: #fff; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ps-card-body { padding: 16px; }
.ps-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.ps-card-body h3 a { text-decoration: none; }
.ps-card-meta, .ps-card-occ { font-size: 13px; color: #8a6b71; margin: 2px 0; }

/* Search form (theme override) */
.ps-search-form { background: var(--ps-white); padding: 24px; border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); }
.ps-form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ps-form-row select, .ps-form-row input { flex: 1; min-width: 150px; padding: 12px; border: 1px solid #eadfd0; border-radius: 10px; font-size: 14px; font-family: var(--ps-font-body); }

/* Plans */
.ps-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 30px; }
.ps-plan-card { background: var(--ps-white); border-radius: var(--ps-radius); padding: 28px; text-align: center; box-shadow: var(--ps-shadow); border: 2px solid transparent; }
.ps-plan-active { border-color: var(--ps-sindoor); }
.ps-plan-price { font-family: var(--ps-font-display); font-size: 30px; color: var(--ps-sindoor); margin: 10px 0; }
.ps-plan-card ul { list-style: none; padding: 0; text-align: left; margin: 18px 0; }
.ps-plan-card ul li { padding: 7px 0; border-bottom: 1px solid #f2ebe0; font-size: 14px; }
.ps-plan-note { text-align: center; font-size: 12px; color: #8a6b71; margin-top: 16px; }

/* Success stories */
.ps-success-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 26px; }
.ps-success-card { background: var(--ps-white); border-radius: var(--ps-radius); overflow: hidden; box-shadow: var(--ps-shadow); padding-bottom: 16px; }
.ps-success-photo img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.ps-success-card h3, .ps-success-excerpt { padding: 0 16px; }

/* Single profile */
.ps-page-header { padding: 40px 0 10px; }
.ps-profile-single { padding: 30px 0 60px; }
.ps-profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.ps-profile-main-photo { border-radius: var(--ps-radius); overflow: hidden; box-shadow: var(--ps-shadow); }
.ps-photo-blurred img { filter: blur(16px); }
.ps-profile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ps-profile-age { font-family: var(--ps-font-utility); font-size: 20px; color: #8a6b71; font-weight: 500; }
.ps-profile-location { color: #8a6b71; margin-bottom: 20px; }
.ps-profile-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.ps-detail-block { background: var(--ps-white); border-radius: 12px; padding: 18px; box-shadow: var(--ps-shadow); }
.ps-detail-block table { width: 100%; border-collapse: collapse; }
.ps-detail-block td { padding: 6px 0; font-size: 14px; border-bottom: 1px solid #f2ebe0; }
.ps-detail-block td:first-child { color: #8a6b71; width: 50%; }

/* Dashboard */
.ps-dashboard { padding: 40px 0 70px; }
.ps-dashboard-header { margin-bottom: 30px; }
.ps-dashboard-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ps-tab-block { background: var(--ps-white); border-radius: var(--ps-radius); padding: 20px; box-shadow: var(--ps-shadow); }
.ps-request-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2ebe0; flex-wrap: wrap; gap: 8px; }
.ps-verification-block { background: var(--ps-white); border-radius: var(--ps-radius); padding: 22px; box-shadow: var(--ps-shadow); margin-top: 24px; }

/* Registration */
.ps-registration-form { background: var(--ps-white); padding: 30px; border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); max-width: 700px; }
.ps-registration-form input, .ps-registration-form select { flex: 1; min-width: 160px; padding: 12px; border: 1px solid #eadfd0; border-radius: 10px; font-family: var(--ps-font-body); }

/* Messaging */
.ps-messages-ui { display: grid; grid-template-columns: 260px 1fr; background: var(--ps-white); border-radius: var(--ps-radius); overflow: hidden; min-height: 420px; box-shadow: var(--ps-shadow); margin-top: 20px; }
.ps-conv-list { border-right: 1px solid #f2ebe0; padding: 12px; }
.ps-conv-item { padding: 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.ps-conv-item:hover, .ps-conv-item.active { background: var(--ps-rose); }
.ps-conv-thread { padding: 20px; display: flex; flex-direction: column; }
.ps-msg { max-width: 70%; padding: 10px 14px; border-radius: 14px; margin-bottom: 8px; font-size: 14px; }
.ps-msg-in { background: var(--ps-rose); align-self: flex-start; }
.ps-msg-out { background: var(--ps-sindoor); color: #fff; align-self: flex-end; }
.ps-thread-input { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }
.ps-thread-input input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid #eadfd0; }

/* Footer */
.ps-site-footer { background: var(--ps-ink); color: #d9c9c0; position: relative; margin-top: 40px; }
.ps-setu-divider { line-height: 0; margin-top: -1px; }
.ps-setu-divider svg { width: 100%; height: 50px; }
.ps-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 20px 24px 40px; }
.ps-footer-logo { color: var(--ps-marigold); }
.ps-footer-col h4 { color: #fff; font-family: var(--ps-font-utility); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.ps-footer-col ul { list-style: none; padding: 0; }
.ps-footer-col ul li { margin-bottom: 8px; }
.ps-footer-col a { text-decoration: none; color: #d9c9c0; font-size: 14px; }
.ps-footer-col a:hover { color: var(--ps-marigold); }
.ps-footer-bottom { border-top: 1px solid #43323688; padding: 18px 0; text-align: center; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
	.ps-hero-inner, .ps-feature-split-inner, .ps-profile-grid { grid-template-columns: 1fr; }
	.ps-nav-menu { display: none; }
	.ps-primary-nav.ps-nav-open .ps-nav-menu { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ps-white); padding: 16px 24px; box-shadow: var(--ps-shadow); }
	.ps-mobile-toggle { display: flex; }
	.ps-steps-grid { grid-template-columns: 1fr; }
	.ps-footer-grid { grid-template-columns: 1fr 1fr; }
	.ps-profile-details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.ps-footer-grid { grid-template-columns: 1fr; }
	.ps-hero-search { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
