/*
Theme Name: India Grows
Template: twentytwentyfive
Description: Child theme for indiagrows.com, the deals forum for the global Indian business community. Header and footer come from shortcodes in functions.php; forum styles live in the Indiagrows plugin.
Version: 1.0.0
Text Domain: indiagrows
*/

:root {
	--ig-navy: #0B1430;
	--ig-navy-2: #14204a;
	--ig-saffron: #FF9933;
	--ig-green: #138808;
	--ig-blue: #1A2E9E;
	--ig-slate: #5B6478;
	--ig-mist: #F5F7FC;
	--ig-line-c: #E3E7F0;
	--ig-wrap: 1240px;
	--ig-gutter: clamp(16px, 4vw, 40px);
	--ig-tricolour: linear-gradient(90deg, var(--ig-saffron) 0 33.33%, #fff 33.33% 66.66%, var(--ig-green) 66.66%);
}

/* Template sections butt against each other; each sets its own spacing. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
body { background: #fff; }

.ig-wrap { max-width: var(--ig-wrap); margin: 0 auto; padding: 0 var(--ig-gutter); box-sizing: border-box; }

/* ---------- Buttons ---------- */
.ig-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--ig-navy); background: var(--ig-navy); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.ig-btn:hover, .ig-btn:focus-visible { transform: translateY(-1px); background: var(--ig-saffron); border-color: var(--ig-saffron); color: var(--ig-navy); }
.ig-btn--saffron { background: var(--ig-saffron); border-color: var(--ig-saffron); color: var(--ig-navy); }
.ig-btn--saffron:hover, .ig-btn--saffron:focus-visible { background: #fff; border-color: #fff; }
.ig-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.ig-btn--ghost:hover, .ig-btn--ghost:focus-visible { background: #fff; border-color: #fff; color: var(--ig-navy); }

.ig-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ig-mist); color: var(--ig-slate); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.ig-pill--offering { background: #E8F5E6; color: #0d6406; }
.ig-pill--seeking { background: #FFF1E2; color: #a5520a; }

/* ---------- Header ---------- */
.igh { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .2s; }
.admin-bar .igh { top: 32px; }
@media (max-width: 782px) { .admin-bar .igh { top: 46px; } }
.igh.is-scrolled { box-shadow: 0 1px 0 var(--ig-line-c), 0 6px 20px rgba(11,20,48,.06); }
.igh__stripe, .igf__stripe { height: 4px; background: var(--ig-tricolour); }
.igh__bar { max-width: var(--ig-wrap); margin: 0 auto; padding: 14px var(--ig-gutter); display: flex; align-items: center; gap: 24px; box-sizing: border-box; }
.igh__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ig-navy); margin-right: auto; }
.igh__mark { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 24px; height: 26px; }
.igh__mark i { display: block; width: 24px; height: 6px; border-radius: 2px; }
.igh__mark i:nth-child(1) { background: var(--ig-saffron); }
.igh__mark i:nth-child(2) { width: 9px; height: 9px; border-radius: 50%; background: var(--ig-blue); }
.igh__mark i:nth-child(3) { background: var(--ig-green); }
.igf .igh__mark i:nth-child(2) { background: #4F6BFF; } /* the dark blue would vanish on the navy footer */
.igh__name { font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; }
.igh__name b { font-weight: 800; }
.igh__nav { display: flex; align-items: center; gap: 4px; }
.igh__nav a { padding: 8px 12px; border-radius: 8px; color: var(--ig-navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.igh__nav a:hover, .igh__nav a:focus-visible { background: var(--ig-mist); }
.igh__nav a[aria-current="page"] { color: var(--ig-blue); box-shadow: inset 0 -2px 0 var(--ig-saffron); border-radius: 0; }
.igh__nav .igh__cta { margin-left: 8px; padding: 9px 18px; border-radius: 999px; background: var(--ig-navy); color: #fff; }
.igh__nav .igh__cta:hover, .igh__nav .igh__cta:focus-visible { background: var(--ig-saffron); color: var(--ig-navy); }
.igh__count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--ig-saffron); color: var(--ig-navy); font-size: .7rem; font-weight: 800; box-sizing: border-box; }
.igh__toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: var(--ig-mist); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.igh__toggle i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ig-navy); transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
	.igh__toggle { display: inline-flex; }
	.igh__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--ig-gutter) 20px; background: #fff; box-shadow: 0 16px 30px rgba(11,20,48,.12); }
	.igh.is-open .igh__nav { display: flex; }
	.igh__nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--ig-line-c); }
	.igh__nav a[aria-current="page"] { box-shadow: none; }
	.igh__nav .igh__cta { margin: 16px 0 0; text-align: center; border-bottom: 0; padding: 14px; border-radius: 999px; }
	.igh.is-open .igh__toggle i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.igh.is-open .igh__toggle i:nth-child(2) { opacity: 0; }
	.igh.is-open .igh__toggle i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Footer ---------- */
.igf { background: var(--ig-navy); color: rgba(255,255,255,.75); margin-top: 0; }
.igf__inner { max-width: var(--ig-wrap); margin: 0 auto; padding: 56px var(--ig-gutter) 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; box-sizing: border-box; }
.igf .igh__brand { color: #fff; }
.igf__brand p { max-width: 380px; margin: 16px 0 0; line-height: 1.6; font-size: .95rem; }
.igf__title { margin: 0 0 12px; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.igf ul { list-style: none; margin: 0; padding: 0; }
.igf li { margin: 0 0 8px; }
.igf a { color: rgba(255,255,255,.75); text-decoration: none; }
.igf a:hover, .igf a:focus-visible { color: var(--ig-saffron); }
.igf__bottom { max-width: var(--ig-wrap); margin: 0 auto; padding: 20px var(--ig-gutter) 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; box-sizing: border-box; }
.igf__bottom p { margin: 0; }
@media (max-width: 700px) { .igf__inner { grid-template-columns: 1fr 1fr; } .igf__brand { grid-column: 1 / -1; } }

/* ---------- Inner pages ---------- */
.ig-page-head { padding: clamp(36px, 6vw, 64px) var(--ig-gutter) clamp(24px, 4vw, 36px) !important; background: var(--ig-mist); border-bottom: 1px solid var(--ig-line-c); }
.ig-page-head .wp-block-post-title { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0; }
.ig-page-body { padding: clamp(28px, 5vw, 48px) var(--ig-gutter) clamp(56px, 8vw, 96px) !important; }
.ig-page-body h2 { font-size: 1.5rem; margin-top: 2em; }
.ig-page-body h3 { font-size: 1.15rem; }
.ig-page-body p, .ig-page-body li { line-height: 1.7; }

/* ---------- Home ---------- */
.ig-home .wp-block-post-content > * { margin-block: 0; max-width: none; }
.ig-sec { padding: clamp(56px, 8vw, 104px) 0; }
.ig-sec--mist { background: var(--ig-mist); }
.ig-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--ig-blue); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ig-eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--ig-tricolour); }
.ig-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.ig-sec__head h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 640px; }
.ig-sec__head p { margin: 10px 0 0; color: var(--ig-slate); max-width: 560px; font-size: 1.05rem; line-height: 1.6; }
.ig-more { font-weight: 700; color: var(--ig-blue); text-decoration: none; white-space: nowrap; }
.ig-more:hover { text-decoration: underline; }

/* Hero */
.ig-hero { position: relative; overflow: hidden; background: var(--ig-navy); color: #fff; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.ig-hero::before { content: ""; position: absolute; inset: 0; background:
	radial-gradient(600px 400px at 85% 10%, rgba(255,153,51,.22), transparent 70%),
	radial-gradient(500px 380px at 100% 100%, rgba(19,136,8,.22), transparent 70%),
	radial-gradient(700px 500px at 0% 100%, rgba(26,46,158,.45), transparent 70%); pointer-events: none; }
.ig-hero .ig-wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.ig-hero .ig-eyebrow { color: var(--ig-saffron); }
.ig-hero h1 { margin: 0; color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; }
.ig-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--ig-saffron), #ffd29e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ig-hero__lede { margin: 22px 0 32px; max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: rgba(255,255,255,.8); }
.ig-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ig-hero__ctas .ig-btn--ghost { color: #fff; }
.ig-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .9rem; color: rgba(255,255,255,.7); }
.ig-hero__trust li::before { content: "✓"; margin-right: 6px; color: var(--ig-saffron); font-weight: 800; }

/* Hero illustration: a stack of sample deal cards */
.ig-hero__cards { position: relative; height: 360px; }
.ig-hcard { position: absolute; width: min(330px, 100%); padding: 18px 20px; border-radius: 16px; background: #fff; color: var(--ig-navy); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ig-hcard:nth-child(1) { top: 0; right: 0; transform: rotate(2.5deg); }
.ig-hcard:nth-child(2) { top: 120px; left: 0; transform: rotate(-2deg); }
.ig-hcard:nth-child(3) { top: 240px; right: 24px; transform: rotate(1deg); }
.ig-hcard__top { display: flex; gap: 6px; margin-bottom: 8px; }
.ig-hcard strong { display: block; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; }
.ig-hcard span.ig-hcard__meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: .8rem; color: var(--ig-slate); }
.ig-hcard span.ig-hcard__meta b { color: var(--ig-green); }

@media (max-width: 920px) {
	.ig-hero .ig-wrap { grid-template-columns: 1fr; }
	.ig-hero__cards { display: none; }
}

/* Stats strip ([indiagrows_stats]) */
.ig-statsbar { background: #fff; border-bottom: 1px solid var(--ig-line-c); }
.ig-home-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.ig-home-stat { padding: 28px 20px; text-align: center; border-left: 1px solid var(--ig-line-c); }
.ig-home-stat:first-child { border-left: 0; }
.ig-home-stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--ig-navy); }
.ig-home-stat span { color: var(--ig-slate); font-size: .9rem; }
@media (max-width: 700px) {
	.ig-home-stats { grid-template-columns: 1fr 1fr; }
	.ig-home-stat:nth-child(3) { border-left: 0; }
	.ig-home-stat:nth-child(n+3) { border-top: 1px solid var(--ig-line-c); }
}

/* Deal types ([indiagrows_deal_types]) */
.ig-home-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ig-home-type { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--ig-line-c); border-radius: 14px; background: #fff; color: var(--ig-navy); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ig-home-type span { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.ig-home-type small { color: var(--ig-slate); font-size: .85rem; }
.ig-home-type:hover, .ig-home-type:focus-visible { border-color: var(--ig-saffron); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,20,48,.08); }
.ig-home-type:hover small { color: var(--ig-blue); }

/* Latest deals ([indiagrows_latest_deals]) */
.ig-home-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ig-home-deal { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--ig-line-c); color: var(--ig-navy); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ig-home-deal:hover, .ig-home-deal:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(11,20,48,.1); }
.ig-home-deal__top { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-home-deal__title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.ig-home-deal__excerpt { color: var(--ig-slate); font-size: .95rem; line-height: 1.55; flex: 1; }
.ig-home-deal__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--ig-line-c); font-size: .9rem; }
.ig-home-deal__meta strong { color: var(--ig-green); }
.ig-home-deal__by { font-size: .8rem; color: var(--ig-slate); }
.ig-home-empty { padding: 48px 24px; text-align: center; border: 2px dashed var(--ig-line-c); border-radius: 16px; background: #fff; }
.ig-home-empty__title { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; color: var(--ig-navy); }
.ig-home-empty p { color: var(--ig-slate); margin: 0 0 20px; }

/* How it works */
.ig-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.ig-step { position: relative; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--ig-line-c); }
.ig-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--ig-navy); color: var(--ig-saffron); font-weight: 800; font-size: 1.2rem; }
.ig-step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.ig-step p { margin: 0; color: var(--ig-slate); line-height: 1.6; }
@media (max-width: 820px) { .ig-steps { grid-template-columns: 1fr; } }

/* Trust features */
.ig-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ig-trust__item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ig-trust__item p { margin: 0; color: var(--ig-slate); font-size: .95rem; line-height: 1.6; }
.ig-trust__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px; font-size: 1.2rem; }
.ig-trust__item:nth-child(4n+1) .ig-trust__icon { background: #FFF1E2; }
.ig-trust__item:nth-child(4n+2) .ig-trust__icon { background: #E8ECFA; }
.ig-trust__item:nth-child(4n+3) .ig-trust__icon { background: #E8F5E6; }
.ig-trust__item:nth-child(4n+4) .ig-trust__icon { background: #fff; box-shadow: inset 0 0 0 1px var(--ig-line-c); }
@media (max-width: 900px) { .ig-trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ig-trust { grid-template-columns: 1fr; } }

/* Closing CTA */
.ig-cta { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.ig-cta__box { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 64px); border-radius: 24px; background: var(--ig-navy); color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.ig-cta__box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ig-tricolour); }
.ig-cta__box h2 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 620px; }
.ig-cta__box p { margin: 10px 0 0; color: rgba(255,255,255,.75); max-width: 560px; }
.ig-trust__item:nth-child(4n+1) .ig-trust__icon { color: #c8660a; }
.ig-trust__item:nth-child(4n+2) .ig-trust__icon { color: var(--ig-blue); }
.ig-trust__item:nth-child(4n+3) .ig-trust__icon { color: var(--ig-green); }
.ig-trust__item:nth-child(4n+4) .ig-trust__icon { color: var(--ig-navy); }
@media (max-width: 560px) {
	.ig-home-types { grid-template-columns: 1fr 1fr; gap: 8px; }
	.ig-home-type { padding: 14px; }
	.ig-home-type span { font-size: .95rem; }
}
.igf li, .igf a { font-size: .95rem; }

/* ---------- Hero headline: always exactly two lines ---------- */
/* Line 1 ("Where Indian diaspora") is ~10.2em wide, so 9.4% of the column keeps it on one line. */
.ig-hero__text { container-type: inline-size; min-width: 0; }
.ig-hero h1 { font-size: min(3.75rem, 8vw); }
@supports (font-size: 1cqi) { .ig-hero h1 { font-size: min(3.75rem, 9.4cqi); } }
.ig-hero h1 .ig-l { display: block; white-space: nowrap; }

/* Grids never force a card wider than a small phone */
.ig-home-deals { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.ig-home-types { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.ig-step p, .ig-trust__item p { font-size: .95rem; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	.ig-sec { padding: 48px 0; }
	.ig-sec__head { margin-bottom: 24px; }
	.ig-sec__head h2 { font-size: 1.65rem; letter-spacing: -.025em; }
	.ig-sec__head p { font-size: 1rem; }
	.ig-eyebrow { font-size: .72rem; margin-bottom: 10px; }

	.ig-hero { padding: 40px 0 36px; }
	.ig-hero__lede { margin: 16px 0 24px; font-size: 1rem; }
	.ig-hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.ig-hero__ctas .ig-btn { justify-content: center; padding: 13px 12px; }
	.ig-hero__trust { margin-top: 20px; gap: 6px 16px; font-size: .85rem; }

	.ig-home-stat { padding: 18px 12px; }
	.ig-home-stat span { font-size: .8rem; display: block; line-height: 1.35; }

	.ig-home-deal { padding: 18px; }
	.ig-home-empty { padding: 32px 20px; }
	.ig-home-types { grid-template-columns: 1fr 1fr; gap: 8px; }
	.ig-home-type { padding: 14px; border-radius: 12px; }
	.ig-home-type span { font-size: .95rem; }

	/* Steps: number beside the text instead of above it */
	.ig-steps { gap: 12px; }
	.ig-step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
	.ig-step::before { grid-row: span 2; width: 40px; height: 40px; margin: 0; font-size: 1.05rem; }
	.ig-step h3 { font-size: 1.05rem; margin-bottom: 4px; }

	/* Trust: icon beside the text */
	.ig-trust { gap: 20px; }
	.ig-trust__item { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
	.ig-trust__icon { grid-row: span 2; margin: 0; }
	.ig-trust__item h3 { margin-bottom: 2px; }

	.ig-cta { padding: 8px 0 48px; }
	.ig-cta__box { padding: 32px 22px 36px; border-radius: 18px; }
	.ig-cta__box h2 { font-size: 1.5rem; }
	.ig-cta__box .ig-btn { width: 100%; justify-content: center; }

	.igf__inner { padding-top: 40px; gap: 28px; }
}
