/* ===========================================================
   ICTWorld24 — Modern Home template styles
   Scoped entirely under .ipg-home. Two structural fixes baked in
   on top of the visual redesign:
   1. FULL-BLEED BREAKOUT — most themes (especially block themes like
      Twenty Twenty-Four) cap post/page content at ~650px. Without
      breaking out of that, every grid here renders squeezed into a
      single narrow column. The left:50%/margin:-50vw trick below
      escapes that constraint safely.
   2. SAFE SCROLL-REVEAL — reveal elements are fully visible by
      default; JS opts them into the hidden-then-fade-in state. If
      home.js is ever blocked, delayed, or fails, content is never
      stuck invisible.
   =========================================================== */

.ipg-home {
	--ipg-h-radius-lg: 28px;
	--ipg-h-ink: var(--ipg-text, #0f172a);
	--ipg-h-muted: var(--ipg-text-muted, #64748b);
	--ipg-h-dark-card: #131a2a;
	--ipg-h-dark-border: rgba(255,255,255,0.10);

	/* ---- Fix 1: escape the theme's content-width container ---- */
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	overflow-x: clip;
}

/* ---- Defensive reset: never inherit odd theme typography/spacing ---- */
.ipg-home,
.ipg-home *,
.ipg-home *::before,
.ipg-home *::after { box-sizing: border-box; }
.ipg-home { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ipg-home h1, .ipg-home h2, .ipg-home h3, .ipg-home p { margin: 0; padding: 0; }
.ipg-home ul { list-style: none; margin: 0; padding: 0; }
.ipg-home a { text-decoration: none; }
.ipg-home img { max-width: 100%; display: block; }
.ipg-home button { font-family: inherit; }

.ipg-section-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.ipg-section-inner-narrow { max-width: 780px; }
.ipg-section { padding: 84px 0; background: var(--ipg-bg, #fff); }
.ipg-section.ipg-alt { background: var(--ipg-bg-alt, #f8fafc); }

.ipg-section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.ipg-section-head h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 10px; letter-spacing: -0.01em; color: var(--ipg-h-ink); }
.ipg-section-head p { color: var(--ipg-h-muted); margin: 0; font-size: 16px; }

/* ---------- Buttons ---------- */
.ipg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: var(--ipg-transition, all .3s ease);
	border: 1px solid transparent;
	cursor: pointer;
}
.ipg-btn-primary {
	background: var(--ipg-h-gradient);
	color: #fff;
	box-shadow: 0 12px 28px rgba(252,24,18,0.28);
}
.ipg-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(252,24,18,0.34); color: #fff; }
.ipg-btn-ghost {
	background: rgba(255,255,255,0.06);
	color: #fff;
	border-color: rgba(255,255,255,0.28);
	backdrop-filter: blur(6px);
}
.ipg-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- Hero (dark, gradient mesh) ---------- */
.ipg-hero {
	position: relative;
	padding: 64px 0 130px;
	overflow: hidden;
	background: var(--ipg-h-dark-bg);
	color: #fff;
}
.ipg-hero-mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(46% 55% at 18% 20%, rgba(252,24,18,0.45) 0%, rgba(252,24,18,0) 70%),
		radial-gradient(40% 50% at 85% 10%, rgba(48,190,237,0.40) 0%, rgba(48,190,237,0) 70%),
		radial-gradient(50% 45% at 60% 85%, rgba(252,186,18,0.30) 0%, rgba(252,186,18,0) 70%);
	filter: blur(20px);
	z-index: 0;
}
.ipg-hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(60% 60% at 50% 30%, #000 40%, transparent 100%);
	z-index: 0;
}
.ipg-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	padding: 56px 24px 0;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: center;
}
.ipg-hero-divider {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	width: 100%;
	height: 90px;
	z-index: 1;
}
.ipg-hero-divider path { fill: var(--ipg-bg, #fff); }

.ipg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255,255,255,0.85);
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.16);
	padding: 7px 16px;
	border-radius: 999px;
	margin-bottom: 22px;
}
.ipg-eyebrow-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--ipg-primary);
	box-shadow: 0 0 0 3px rgba(252,24,18,0.25);
}
.ipg-hero-title {
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	color: #fff;
}
.ipg-hero-title-accent {
	display: block;
	background: var(--ipg-h-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ipg-hero-subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255,255,255,0.72);
	max-width: 520px;
	margin: 0 0 32px;
}
.ipg-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.ipg-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.ipg-stat { display: flex; flex-direction: column; }
.ipg-stat-num, .ipg-stat-num-text {
	font-size: 30px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}
.ipg-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.ipg-hero-visual {
	position: relative;
	height: 420px;
}
.ipg-hero-card {
	position: absolute;
	border-radius: var(--ipg-h-radius-lg);
	box-shadow: 0 20px 50px rgba(0,0,0,0.35);
	border: 1px solid rgba(255,255,255,0.14);
}
.ipg-hero-card-1 {
	inset: 10% 8% auto auto;
	width: 62%;
	aspect-ratio: 4/3;
	background: rgba(255,255,255,0.06);
	backdrop-filter: blur(10px);
	display: flex; align-items: center; justify-content: center;
	padding: 30px;
	animation: ipg-float 6s ease-in-out infinite;
}
.ipg-hero-card-1 img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.ipg-hero-card-2 {
	left: 0; bottom: 6%;
	width: 46%;
	aspect-ratio: 1/1;
	background: var(--ipg-h-gradient);
	animation: ipg-float 7s ease-in-out infinite 0.6s;
}
.ipg-hero-card-3 {
	right: 4%; bottom: -2%;
	width: 34%;
	aspect-ratio: 3/2;
	background: var(--ipg-accent-blue, #30beed);
	opacity: 0.9;
	animation: ipg-float 5.5s ease-in-out infinite 1.1s;
}
@keyframes ipg-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
	.ipg-hero-inner { grid-template-columns: 1fr; }
	.ipg-hero-visual { height: 280px; order: -1; }
	.ipg-hero-subtitle { max-width: none; }
}

/* ---------- Flagship spotlight ---------- */
.ipg-spotlight { padding-top: 0; margin-top: -50px; position: relative; z-index: 2; }
.ipg-spotlight-card {
	display: grid;
	grid-template-columns: 0.55fr 1.45fr;
	background: #fff;
	border: 1px solid var(--ipg-border, #e2e8f0);
	border-radius: var(--ipg-h-radius-lg);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(15,23,42,0.16);
}
.ipg-spotlight-media {
	background: var(--ipg-bg-alt, #f8fafc);
	min-height: 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}
.ipg-spotlight-media img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.ipg-spotlight-media-placeholder { width: 100%; height: 100%; min-height: 190px; background: var(--ipg-h-gradient); }
.ipg-spotlight-body { padding: 28px 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.ipg-spotlight-tag {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ipg-primary);
	background: rgba(252,24,18,0.08);
	padding: 6px 12px;
	border-radius: 999px;
}
.ipg-spotlight-body h2 { font-size: clamp(22px, 3vw, 30px); color: var(--ipg-h-ink); letter-spacing: -0.01em; }
.ipg-spotlight-body p { color: var(--ipg-h-muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 6px; }
.ipg-spotlight-body .ipg-btn-primary { margin-top: 4px; }

@media (max-width: 780px) {
	.ipg-spotlight-card { grid-template-columns: 1fr; }
	.ipg-spotlight { margin-top: -30px; }
}

/* ---------- Why-us cards ---------- */
.ipg-why-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.ipg-why-card {
	background: #fff;
	border: 1px solid var(--ipg-border, #e2e8f0);
	border-radius: var(--ipg-radius, 14px);
	padding: 28px 24px;
	transition: var(--ipg-transition, all .3s ease);
}
.ipg-why-card:hover { transform: translateY(-4px); box-shadow: var(--ipg-shadow, 0 8px 24px rgba(15,23,42,.08)); }
.ipg-why-icon { font-size: 28px; display: block; margin-bottom: 14px; }
.ipg-why-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--ipg-h-ink); }
.ipg-why-card p { font-size: 14.5px; color: var(--ipg-h-muted); margin: 0; line-height: 1.55; }

@media (max-width: 900px) { .ipg-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ipg-why-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.ipg-how-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	counter-reset: ipg-how;
}
.ipg-how-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--ipg-border, #e2e8f0);
	border-radius: var(--ipg-radius, 14px);
	padding: 30px 26px 26px;
}
.ipg-how-card:not(:last-child)::after {
	content: "→";
	position: absolute;
	top: 34px;
	right: -30px;
	font-size: 20px;
	color: var(--ipg-h-muted);
}
.ipg-how-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ipg-h-gradient);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	margin-bottom: 16px;
}
.ipg-how-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--ipg-h-ink); }
.ipg-how-card p { font-size: 14.5px; color: var(--ipg-h-muted); margin: 0; line-height: 1.55; }

@media (max-width: 900px) {
	.ipg-how-grid { grid-template-columns: 1fr; }
	.ipg-how-card:not(:last-child)::after { display: none; }
}

/* ---------- Categories / issues bento ---------- */
.ipg-bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.ipg-bento-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--ipg-bg-alt, #f8fafc);
	border: 1px solid var(--ipg-border, #e2e8f0);
	border-radius: var(--ipg-radius, 14px);
	padding: 24px;
	color: inherit;
	transition: var(--ipg-transition, all .3s ease);
}
.ipg-bento-item:hover { transform: translateY(-4px); border-color: var(--ipg-primary); background: #fff; box-shadow: var(--ipg-shadow, 0 8px 24px rgba(15,23,42,.08)); }
.ipg-bento-icon { font-size: 24px; }
.ipg-bento-name { font-weight: 700; font-size: 15.5px; color: var(--ipg-h-ink); }
.ipg-bento-count { font-size: 13px; color: var(--ipg-h-muted); }
.ipg-bento-arrow {
	position: absolute; top: 20px; right: 20px;
	color: var(--ipg-h-muted);
	transition: var(--ipg-transition, all .3s ease);
}
.ipg-bento-item:hover .ipg-bento-arrow { color: var(--ipg-primary); transform: translateX(3px); }

@media (max-width: 900px) { .ipg-bento { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA banner ---------- */
.ipg-cta-banner {
	background: var(--ipg-h-gradient);
	border-radius: var(--ipg-h-radius-lg);
	padding: 44px 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	color: #fff;
}
.ipg-cta-banner h2 { margin: 0 0 8px; font-size: 26px; color: #fff; }
.ipg-cta-banner p { margin: 0; color: rgba(255,255,255,0.9); }
.ipg-cta-banner .ipg-whatsapp-float {
	position: static;
	display: inline-flex;
	width: auto;
	height: auto;
	padding: 14px 26px;
	border-radius: 999px;
	background: #fff;
	color: var(--ipg-h-ink);
	box-shadow: none;
	gap: 10px;
	align-items: center;
}
.ipg-cta-banner .ipg-whatsapp-float::after { content: "WhatsApp"; font-weight: 700; font-size: 15px; }
.ipg-cta-banner .ipg-whatsapp-tooltip { display: none; }
.ipg-cta-banner .ipg-whatsapp-dot { position: static; margin-left: 2px; }

/* ---------- FAQ ---------- */
.ipg-faq-section .ipg-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ipg-faq-item {
	background: var(--ipg-bg-alt, #f8fafc);
	border: 1px solid var(--ipg-border, #e2e8f0);
	border-radius: 12px;
	padding: 16px 20px;
}
.ipg-faq-question { cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ipg-h-ink); }
.ipg-faq-answer { margin-top: 10px; color: var(--ipg-h-muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Contact ---------- */
.ipg-contact-card {
	background: #fff;
	border: 1px solid var(--ipg-border, #e2e8f0);
	border-radius: var(--ipg-h-radius-lg);
	padding: 36px;
}
.ipg-contact-card form p { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.ipg-contact-card label { font-size: 13.5px; font-weight: 600; color: var(--ipg-h-ink); }
.ipg-contact-card input,
.ipg-contact-card textarea {
	border: 1px solid var(--ipg-border, #e2e8f0);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--ipg-h-ink);
	width: 100%;
}
.ipg-contact-card input:focus,
.ipg-contact-card textarea:focus {
	outline: none;
	border-color: var(--ipg-primary);
	box-shadow: 0 0 0 3px rgba(252,24,18,0.12);
}
.ipg-contact-card button[type="submit"],
.ipg-contact-card input[type="submit"] {
	background: var(--ipg-h-ink);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 30px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: var(--ipg-transition, all .3s ease);
}
.ipg-contact-card button[type="submit"]:hover,
.ipg-contact-card input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.18); }

/* ---------- Scroll reveal (safe: visible unless JS opts in) ---------- */
.ipg-reveal { opacity: 1; transform: none; }
.ipg-reveal.ipg-will-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .6s ease;
}
.ipg-reveal.ipg-will-reveal.ipg-in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	.ipg-reveal.ipg-will-reveal { opacity: 1; transform: none; transition: none; }
	.ipg-hero-card { animation: none; }
}
