/*
 * Subhamithra Matrimony Info Pages - front-end styles.
 *
 * Colours come from the --subhamithra-* variables of Subhamithra Matrimony Profiles (subhamithra-themes.css),
 * so the pages follow its themes and light/dark mode. When Profiles is not active
 * the wrapper has class subhamithra-ip--classic and the navy/red palette below is used.
 * Only transform and opacity are animated (no layout shift); reduced motion is respected.
 */

/* ------------------------------------------------------ classic palette */
.subhamithra-ip--classic {
	--subhamithra-primary: #14285a;
	--subhamithra-primary-dark: #0c1a3d;
	--subhamithra-accent: #c8102e;
	--subhamithra-accent-2: #c8102e;
	--subhamithra-accent-ink: #b00e28;
	--subhamithra-page: #f6f7fb;
	--subhamithra-bg: #ffffff;
	--subhamithra-surface: #eef1f8;
	--subhamithra-text: #172033;
	--subhamithra-muted: #4f5a72;
	--subhamithra-border: #d3d9e8;
	--subhamithra-head: #14285a;
	--subhamithra-link: #14285a;
	--subhamithra-hero-bg: linear-gradient(180deg, #f6f7fb 0%, #e3e9f7 100%);
	--subhamithra-hero-text: #172033;
	--subhamithra-shadow: rgba(20, 40, 90, .18);
	--subhamithra-on-primary: #ffffff;
	--subhamithra-on-gold: #ffffff;
	--subhamithra-grad: linear-gradient(135deg, #14285a 0%, #c8102e 100%);
	--subhamithra-gold-grad: linear-gradient(135deg, #c8102e 0%, #a30c25 100%);
	--subhamithra-success: #1e7a4c;
	--subhamithra-danger: #b3261e;
	--subhamithra-radius: 14px;
	--subhamithra-radius-lg: 22px;
	--subhamithra-ease: cubic-bezier(.4, 0, .2, 1);
	--subhamithra-font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
	--subhamithra-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
}
@media (prefers-color-scheme: dark) {
	.subhamithra-ip--classic {
		--subhamithra-primary: #3a58c9;
		--subhamithra-primary-dark: #2a43a0;
		--subhamithra-accent: #ff7a8c;
		--subhamithra-accent-ink: #ff9aa8;
		--subhamithra-page: #0b1220;
		--subhamithra-bg: #131c30;
		--subhamithra-surface: #1a2540;
		--subhamithra-text: #eef1f8;
		--subhamithra-muted: #b4bed6;
		--subhamithra-border: #2c3857;
		--subhamithra-head: #ffffff;
		--subhamithra-link: #a9c1ff;
		--subhamithra-hero-bg: linear-gradient(180deg, #0f1830 0%, #1a2a58 100%);
		--subhamithra-hero-text: #ffffff;
		--subhamithra-shadow: rgba(0, 0, 0, .55);
		--subhamithra-grad: linear-gradient(135deg, #2f4fc4 0%, #c8102e 100%);
		--subhamithra-success: #5fd39a;
		--subhamithra-danger: #ff8a80;
	}
}

/* ------------------------------------------------------------------ base */
.subhamithra-ip,
.subhamithra-ip *,
.subhamithra-ip *::before,
.subhamithra-ip *::after { box-sizing: border-box; }

.subhamithra-ip {
	max-width: var(--subhamithra-max, 1180px);
	margin: 0 auto 24px;
	padding: clamp(10px, 3vw, 28px);
	background: var(--subhamithra-page);
	color: var(--subhamithra-text);
	font-family: var(--subhamithra-font-body);
	font-size: 1rem;
	line-height: 1.6;
	border-radius: var(--subhamithra-radius-lg, 22px);
	overflow-wrap: break-word;
	word-wrap: break-word;
}
.subhamithra-ip h1, .subhamithra-ip h2, .subhamithra-ip h3 { font-family: var(--subhamithra-font-head); line-height: 1.25; margin-top: 0; }
.subhamithra-ip p { margin: 0 0 .8em; }
.subhamithra-ip p:last-child { margin-bottom: 0; }
.subhamithra-ip .subhamithra-ip-rich p:last-child { margin-bottom: 0; }
.subhamithra-ip a { color: var(--subhamithra-link); }
.subhamithra-ip a:focus-visible,
.subhamithra-ip button:focus-visible { outline: 3px solid var(--subhamithra-accent); outline-offset: 2px; }
.subhamithra-ip ul, .subhamithra-ip ol { margin: 0; padding: 0; }
.subhamithra-ip svg { display: block; flex: none; }

.subhamithra-ip-section { margin-top: clamp(32px, 6vw, 64px); }
.subhamithra-ip-center { text-align: center; margin-top: 22px; }

.subhamithra-ip-head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.subhamithra-ip-title { font-size: clamp(1.45rem, 3.2vw, 2.1rem); color: var(--subhamithra-head); margin: 0 0 8px; }
.subhamithra-ip-lead { color: var(--subhamithra-muted); }

/* ----------------------------------------------------------------- hero */
.subhamithra-ip-hero {
	position: relative; overflow: hidden; text-align: center;
	background: var(--subhamithra-hero-bg); color: var(--subhamithra-hero-text);
	border-radius: var(--subhamithra-radius-lg, 22px);
	padding: clamp(34px, 7vw, 76px) clamp(16px, 4vw, 48px);
	border: 1px solid var(--subhamithra-border);
	animation: kmsIpUp .5s var(--subhamithra-ease) both;
}
.subhamithra-ip-hero__glow {
	position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, var(--subhamithra-accent) 0%, transparent 70%); opacity: .18; pointer-events: none;
}
.subhamithra-ip-hero__in { position: relative; max-width: 760px; margin: 0 auto; }
.subhamithra-ip-hero__title {
	font-size: clamp(1.9rem, 5.2vw, 3.1rem); margin: 0 0 14px; color: var(--subhamithra-hero-text);
}
.subhamithra-ip-hero__title::after {
	content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; margin: 14px auto 0;
	background: var(--subhamithra-accent);
}
.subhamithra-ip-hero__intro { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--subhamithra-hero-text); opacity: .92; }
.subhamithra-ip-hero__toggle { position: absolute; top: 12px; right: 12px; z-index: 2; }
.subhamithra-ip-hero .subhamithra-ip-actions { margin-top: 24px; }

.subhamithra-ip-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.subhamithra-ip-actions--start { justify-content: flex-start; }

/* -------------------------------------------------------------- buttons */
.subhamithra-ip a.subhamithra-ip-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
	font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--subhamithra-ease), box-shadow .25s var(--subhamithra-ease), background-color .25s var(--subhamithra-ease), color .25s var(--subhamithra-ease), border-color .25s;
}
.subhamithra-ip a.subhamithra-ip-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px var(--subhamithra-shadow); }
.subhamithra-ip a.subhamithra-ip-btn:active { transform: translateY(0); }
.subhamithra-ip .subhamithra-ip-btn__ico { width: 18px; height: 18px; }
.subhamithra-ip a.subhamithra-ip-btn--primary { background: var(--subhamithra-grad); color: var(--subhamithra-on-primary); box-shadow: 0 8px 20px var(--subhamithra-shadow); }
.subhamithra-ip a.subhamithra-ip-btn--gold { background: var(--subhamithra-gold-grad, var(--subhamithra-accent)); color: var(--subhamithra-on-gold); }
.subhamithra-ip a.subhamithra-ip-btn--ghost { background: var(--subhamithra-bg); color: var(--subhamithra-text); border-color: var(--subhamithra-border); }
.subhamithra-ip a.subhamithra-ip-btn--ghost:hover { border-color: var(--subhamithra-primary); color: var(--subhamithra-link); }
.subhamithra-ip a.subhamithra-ip-btn--whatsapp { background: #0b7a3e; color: #ffffff; }
.subhamithra-ip a.subhamithra-ip-btn--light { background: #ffffff; color: var(--subhamithra-primary-dark); }
.subhamithra-ip a.subhamithra-ip-btn--outline-light { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .85); }
.subhamithra-ip a.subhamithra-ip-btn--outline-light:hover { background: rgba(255, 255, 255, .16); }

/* ----------------------------------------------------------- cards, icons */
.subhamithra-ip-card {
	background: var(--subhamithra-bg); border: 1px solid var(--subhamithra-border); border-radius: var(--subhamithra-radius, 14px);
	padding: clamp(16px, 3vw, 24px); box-shadow: 0 6px 18px -10px var(--subhamithra-shadow);
	transition: transform .25s var(--subhamithra-ease), box-shadow .25s var(--subhamithra-ease);
}
@media (hover: hover) {
	.subhamithra-ip-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -12px var(--subhamithra-shadow); }
}
.subhamithra-ip-ico {
	display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
	background: var(--subhamithra-grad); color: var(--subhamithra-on-primary);
}
.subhamithra-ip-ico svg { width: 24px; height: 24px; }
.subhamithra-ip-ico--sm { width: 36px; height: 36px; }
.subhamithra-ip-ico--sm svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- steps */
.subhamithra-ip-steps { list-style: none; max-width: 860px; margin: 0 auto; }
.subhamithra-ip-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; animation: kmsIpUp .5s var(--subhamithra-ease) both; }
.subhamithra-ip-step:last-child { padding-bottom: 0; }
.subhamithra-ip-step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--subhamithra-border); }
.subhamithra-ip-step:last-child::before { display: none; }
.subhamithra-ip-step__num {
	position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--subhamithra-grad); color: var(--subhamithra-on-primary); font-weight: 800; font-family: var(--subhamithra-font-head);
	box-shadow: 0 6px 14px var(--subhamithra-shadow);
}
.subhamithra-ip-step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.subhamithra-ip-step__title { font-size: 1.15rem; margin: 0; color: var(--subhamithra-head); }
.subhamithra-ip-step__text { color: var(--subhamithra-text); }
.subhamithra-ip-step__act { margin-top: 14px; }
.subhamithra-ip-step:nth-child(2) { animation-delay: .05s; }
.subhamithra-ip-step:nth-child(3) { animation-delay: .1s; }
.subhamithra-ip-step:nth-child(4) { animation-delay: .15s; }

/* -------------------------------------------------------- free vs paid */
.subhamithra-ip-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.subhamithra-ip-cmp__title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; color: var(--subhamithra-head); margin: 0 0 14px; }
.subhamithra-ip-cmp__col--paid { border-color: var(--subhamithra-primary); box-shadow: 0 10px 26px -12px var(--subhamithra-shadow); }
.subhamithra-ip-plans { margin: 0 auto; }

/* --------------------------------------------------------------- ticks */
.subhamithra-ip-ticks, .subhamithra-ip-flaglist { list-style: none; display: grid; gap: 10px; }
.subhamithra-ip-ticks li, .subhamithra-ip-flaglist li { position: relative; padding-left: 28px; }
.subhamithra-ip-ticks li::before {
	content: ""; position: absolute; left: 3px; top: .5em; width: 14px; height: 7px;
	border-left: 3px solid var(--subhamithra-success); border-bottom: 3px solid var(--subhamithra-success); transform: rotate(-45deg);
}
.subhamithra-ip-flaglist li::before {
	content: "\2715"; content: "\2715" / ""; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--subhamithra-danger);
}

/* ------------------------------------------------------------ why strip */
.subhamithra-ip-why { background: var(--subhamithra-surface); border: 1px solid var(--subhamithra-border); border-radius: var(--subhamithra-radius-lg, 22px); padding: clamp(20px, 4vw, 40px); }
.subhamithra-ip-why__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.subhamithra-ip-why__item { text-align: center; }
.subhamithra-ip-why__item .subhamithra-ip-ico { margin-bottom: 10px; }
.subhamithra-ip-why__title { font-size: 1.05rem; color: var(--subhamithra-head); margin: 0 0 6px; }
.subhamithra-ip-why__item p { color: var(--subhamithra-text); font-size: .96rem; }

/* ------------------------------------------------------------ accordion */
.subhamithra-ip-acc { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.subhamithra-ip-acc__item { background: var(--subhamithra-bg); border: 1px solid var(--subhamithra-border); border-radius: var(--subhamithra-radius, 14px); overflow: hidden; }
.subhamithra-ip-acc__item.is-open { border-color: var(--subhamithra-primary); }
.subhamithra-ip-acc__h { margin: 0; font-size: 1rem; }
.subhamithra-ip-acc__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px;
	padding: 14px 18px; margin: 0; border: 0; background: transparent; color: var(--subhamithra-head);
	font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.subhamithra-ip-acc__btn:hover { background: var(--subhamithra-surface); }
.subhamithra-ip-acc__chev { width: 22px; height: 22px; transition: transform .25s var(--subhamithra-ease); }
.subhamithra-ip-acc__btn[aria-expanded="true"] .subhamithra-ip-acc__chev { transform: rotate(180deg); }
.subhamithra-ip-acc__panel[hidden] { display: none; }
.subhamithra-ip-acc__panel:not([hidden]) { animation: kmsIpFade .25s var(--subhamithra-ease) both; }
.subhamithra-ip-acc__body { padding: 2px 18px 18px; color: var(--subhamithra-text); }

/* ----------------------------------------------------------------- CTA */
.subhamithra-ip-cta {
	background: var(--subhamithra-grad); color: var(--subhamithra-on-primary); text-align: center;
	border-radius: var(--subhamithra-radius-lg, 22px); padding: clamp(28px, 6vw, 56px) clamp(16px, 4vw, 40px);
}
.subhamithra-ip-cta__in { max-width: 680px; margin: 0 auto; }
.subhamithra-ip-cta__title { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin: 0 0 10px; color: var(--subhamithra-on-primary); }
.subhamithra-ip-cta__text { color: var(--subhamithra-on-primary); opacity: .95; }
.subhamithra-ip-cta .subhamithra-ip-actions { margin-top: 22px; }
.subhamithra-ip-cta a:not(.subhamithra-ip-btn) { color: var(--subhamithra-on-primary); }

/* --------------------------------------------------------- safety page */
.subhamithra-ip-callout {
	display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: clamp(16px, 3vw, 24px);
	background: var(--subhamithra-surface); border: 1px solid var(--subhamithra-border); border-left: 5px solid var(--subhamithra-primary);
	border-radius: var(--subhamithra-radius, 14px);
}
.subhamithra-ip-callout__title { font-weight: 800; font-size: 1.1rem; color: var(--subhamithra-head); margin: 0 0 4px; }
.subhamithra-ip-callout__body { min-width: 0; }

.subhamithra-ip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.subhamithra-ip-tipcard { animation: kmsIpUp .5s var(--subhamithra-ease) both; }
.subhamithra-ip-tipcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.subhamithra-ip-tipcard__title { font-size: 1.08rem; margin: 0; color: var(--subhamithra-head); }

.subhamithra-ip-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.subhamithra-ip-card__title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--subhamithra-head); margin: 0 0 14px; }
.subhamithra-ip-todo { list-style: none; counter-reset: kmsip; display: grid; gap: 12px; }
.subhamithra-ip-todo li { counter-increment: kmsip; position: relative; padding-left: 40px; min-height: 28px; }
.subhamithra-ip-todo li::before {
	content: counter(kmsip); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center; background: var(--subhamithra-grad); color: var(--subhamithra-on-primary); font-weight: 800; font-size: .9rem;
}

.subhamithra-ip-report__box { border-color: var(--subhamithra-primary); }
.subhamithra-ip-report__title { font-size: 1.3rem; color: var(--subhamithra-head); margin: 0 0 8px; }
.subhamithra-ip-report__box .subhamithra-ip-actions { margin-top: 16px; }

.subhamithra-ip-disc { padding: 16px 18px; background: var(--subhamithra-surface); border: 1px dashed var(--subhamithra-border); border-radius: var(--subhamithra-radius, 14px); font-size: .92rem; }
.subhamithra-ip-disc__title { font-size: 1rem; margin: 0 0 6px; color: var(--subhamithra-head); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 720px) {
	.subhamithra-ip-cmp { grid-template-columns: minmax(0, 1fr); }
	.subhamithra-ip-hero__toggle { position: static; display: flex; justify-content: flex-end; margin-bottom: 8px; }
}
@media (max-width: 480px) {
	.subhamithra-ip-step { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
	.subhamithra-ip-step__num { width: 36px; height: 36px; font-size: .9rem; }
	.subhamithra-ip-step::before { left: 17px; top: 36px; }
	.subhamithra-ip-actions { flex-direction: column; align-items: stretch; }
	.subhamithra-ip a.subhamithra-ip-btn { width: 100%; }
	.subhamithra-ip-callout { flex-direction: column; }
}

/* ----------------------------------------------------------- animation */
@keyframes kmsIpUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes kmsIpFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.subhamithra-ip, .subhamithra-ip *, .subhamithra-ip *::before, .subhamithra-ip *::after {
		animation: none !important; transition: none !important; scroll-behavior: auto !important;
	}
	.subhamithra-ip a.subhamithra-ip-btn:hover, .subhamithra-ip-card:hover { transform: none; }
}

/* ------------------------------------------------- Tamil / English */
.subhamithra-ip[data-lang="en"] .subhamithra-ip-l[data-l="ta"], .subhamithra-ip[data-lang="ta"] .subhamithra-ip-l[data-l="en"] { display: none !important; }
.subhamithra-ip-hero__lang { position: relative; z-index: 2; display: flex; justify-content: center; margin: -10px 0 18px; }
.subhamithra-ip-lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; height: 34px; padding: 3px; border-radius: 999px; background: rgba(127, 127, 127, .18); border: 1px solid rgba(127, 127, 127, .4); }
.subhamithra-ip-lang__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px var(--subhamithra-accent, currentColor); transition: transform .3s cubic-bezier(.5, 0, .2, 1); }
.subhamithra-ip-lang[data-active="ta"] .subhamithra-ip-lang__thumb { transform: translateX(100%); }
.subhamithra-ip-lang__btn { position: relative; z-index: 1; min-width: 52px; height: 100%; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0; cursor: pointer; opacity: .8; }
.subhamithra-ip-lang__btn[aria-pressed="true"] { opacity: 1; }
.subhamithra-ip-lang__btn:focus-visible { outline: 2px solid var(--subhamithra-accent, currentColor); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .subhamithra-ip-lang__thumb { transition: none; } }
@media print { .subhamithra-ip-hero__lang { display: none; } }

/* Tamil typography: no letter spacing, more line height, Tamil-capable fonts (see --subhamithra-font-*). */
.subhamithra-ip[data-lang="ta"], .subhamithra-ip[data-lang="ta"] * { letter-spacing: normal; }
.subhamithra-ip[data-lang="ta"] { line-height: 1.75; }
.subhamithra-ip[data-lang="ta"] h1, .subhamithra-ip[data-lang="ta"] h2, .subhamithra-ip[data-lang="ta"] h3 { line-height: 1.4; text-transform: none; }

