/* ============================================================
   HOMEPAGE — Pixel-perfect styles (Figma → CSS)
   Design width: 1440px viewport, 1231px container
   ============================================================ */

/* ---------- HERO BANNER ---------- */
.hero-banner {
	position: relative;
	display: flex;
	align-items: center; /* BUG FIX: was flex-end — hero content kept at center */
	background: linear-gradient(180deg, #001e2d 0%, #00293a 50%, #003143 100%);
	overflow: hidden;
}

.hero-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(90, 138, 149, 0.08) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 30%, rgba(26, 92, 115, 0.15) 0%, transparent 50%);
	z-index: 1;
	pointer-events: none;
}

.hero-title {
	font-family: var(--font-heading) !important;
	letter-spacing: -0.02em;
	line-height: 1 !important; /* Figma: 72px/72px = 1:1 */
	font-size: var(--font-size-h1) !important; /* 72px */
	font-weight: 800 !important; /* ExtraBold */
}

.hero-title .text-accent {
	color: var(--color-hero-accent) !important; /* #5a8a95 – Figma teal accent */
}

.hero-excerpt {
	font-size: 1.0625rem !important; /* 17px — Figma spec, body-sm token ambiguous */
	line-height: 1.8 !important; /* 30.6px / 17px */
	opacity: 0.85;
	max-width: 680px; /* ~65ch optimal reading width */
}

.cypro-badge--light {
	background-color: rgba(255, 255, 255, 0.12);
	color: var(--color-surface-white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 16px;
	border-radius: var(--border-radius-full);
	backdrop-filter: blur(4px);
}

/* ---------- WEBINAR BANNER ---------- */
/* Figma 255:819: Light lime green (#96f381) full-width horizontal strip */
.webinar-banner {
	background: linear-gradient(90deg, #96f381 0%, #7de066 50%, #96f381 100%);
	padding: 0 40px;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 15px rgba(0, 49, 67, 0.1);
}

.webinar-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1231px; /* Project standard container */
	margin: 0 auto;
	height: 104px; /* Figma: 103.5px */
}

.webinar-banner__left {
	display: flex;
	align-items: center;
	gap: 20px; /* Figma gap between items */
	flex: 1;
	min-width: 0;
}

.webinar-banner__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #003d00;
	opacity: 0.69;
	flex-shrink: 0;
}

.webinar-banner__label {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em; /* 1.2px / 12px */
	text-transform: uppercase;
	color: #003d00;
	flex-shrink: 0;
}

.webinar-banner__divider {
	width: 1px;
	height: 24px;
	background-color: rgba(0, 61, 0, 0.25);
	flex-shrink: 0;
}

.webinar-banner__title {
	font-family: var(--font-body);
	font-size: 17px; /* Figma exact */
	font-weight: 700;
	color: #003d00;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.webinar-banner__date {
	font-size: 14px;
	font-weight: 400;
	color: rgba(0, 61, 0, 0.5); /* Figma opacity-50 */
	white-space: nowrap;
	flex-shrink: 0;
}

/* Figma: dark pill CTA button on right */
.webinar-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	background-color: #003d00;
	color: #96f381; /* Lime text on dark green bg */
	border-radius: var(--border-radius-full);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.webinar-banner__cta:hover {
	transform: scale(1.02);
	color: #96f381;
	background-color: #004d00;
}

.webinar-banner__cta .material-icons {
	font-size: 15px;
}

@media (max-width: 767px) {
	.webinar-banner { padding: 0 20px; }
	.webinar-banner__inner { height: auto; padding: 16px 0; flex-wrap: wrap; }
	.webinar-banner__title { white-space: normal; }
	.webinar-banner__date { display: none; }
}

/* ---------- WEBINAR SECTION ---------- */
.webinar-section {
	background-color: var(--color-surface-white); /* Figma: #ffffff */
}

/* Featured Webinar Card */
.featured-webinar {
	border-radius: 20px;
	overflow: hidden;
	min-height: 420px;
}

.featured-webinar .w-full.lg\:w-1\/2 {
	flex: 0 0 50%;
	max-width: 50%;
}

@media (max-width: 1023px) {
	.featured-webinar .w-full.lg\:w-1\/2,
	.featured-webinar .w-full.lg\\:w-1\/2 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

.featured-webinar .min-h-\[300px\] {
	min-height: 300px;
}

/* Webinar Cards Grid */
.webinar-section .grid.grid-cols-1.md\:grid-cols-3 {
	gap: 24px;
}

/* Rounded corners consistent */
.webinar-section .rounded-xl {
	border-radius: 16px;
}

.webinar-section .rounded-2xl {
	border-radius: 20px;
}

/* ---------- CYBER NEWS SECTION ---------- */
.blog-preview-section {
	background-color: var(--color-surface-2);
}

/* Post Cards - Flat & Depth Refinement */
.blog-preview-section .post-card {
	border-radius: 20px;
	background-color: rgba(255, 255, 255, 0.7) !important;
	backdrop-filter: blur(10px);
	border: none !important;
	box-shadow: 
		0 10px 30px -10px rgba(0, 49, 67, 0.05),
		inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-preview-section .post-card:hover {
	transform: translateY(-8px);
	background-color: rgba(255, 255, 255, 1) !important;
	box-shadow: 
		0 30px 60px -12px rgba(0, 49, 67, 0.12),
		inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

.blog-preview-section .post-thumb {
	border-radius: 12px;
}

/* Right column post cards */
.blog-preview-section .grid > .flex.flex-col > article {
	border-radius: 20px;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
	background-color: var(--color-surface-2);
}

.services-section h2 {
	font-size: var(--font-size-h2); /* 48px ExtraBold (via base.css h2 rule) */
}

.services-section .section-intro p {
	color: var(--color-text-subtitle); /* #82a7af – Figma subtitle */
	font-size: var(--font-size-body-sm); /* 17px */
}

/* Service Items - Flat & Depth Style */
.cypro-service-item {
	position: relative;
	padding: var(--spacing-6);
	border-radius: 24px;
	background-color: rgba(255, 255, 255, 0.4) !important;
	backdrop-filter: blur(5px);
	border: none !important;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cypro-service-item:hover {
	transform: translateY(-6px);
	background-color: rgba(255, 255, 255, 0.8) !important;
	box-shadow: 
		0 20px 40px -10px rgba(0, 49, 67, 0.08),
		inset 0 1px 2px rgba(255, 255, 255, 1);
}

/* Figma: rounded square icon container ~64px */
.service-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background-color: var(--color-surface-medium-1);
	color: var(--color-dark-bg);
	flex-shrink: 0;
}

.service-icon-wrap svg {
	width: 24px;
	height: 24px;
}

.cypro-service-item h3 {
	font-size: var(--font-size-body-lg); /* 22px – Figma spec */
	line-height: 1.2;
}

.cypro-service-item p {
	font-size: var(--font-size-body-ms); /* 15px – Figma spec */
	line-height: 1.7; /* 25.5px / 15px */
	color: var(--color-text-body-muted); /* #5a7a8a – Figma spec */
}

/* ---------- BLUE / RED TEAM SPLIT SECTION ---------- */
/* Figma: Blue LEFT, Red RIGHT – both halves #001e2d dark bg */
.teams-split-section {
	width: 100%;
	line-height: normal;
}

.teams-split-section .grid {
	margin: 0;
	padding: 0;
	gap: 0 !important;
}

/* Per Figma 255:1199: Blue #003143, Red #001e2d — two distinct dark tones */
.teams-split-section .team-half {
	color: var(--color-surface-white);
}

.teams-split-section .team-half--blue {
	background-color: #003143; /* Figma exact: rgb(0,49,67) */
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.teams-split-section .team-half--red {
	background-color: #001e2d; /* Figma exact: rgb(0,30,45) */
}

.teams-split-section h2 {
	font-size: 40px; /* Figma: 40px (not 48px) for this section */
	line-height: 1.1;
	color: var(--color-surface-white);
}

.teams-split-section p {
	font-size: var(--font-size-body-sm); /* 17px Open Sans Regular */
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.75);
}

.teams-split-section ul {
	list-style: none;
	padding: 0;
}

/* Figma team checklist — circle-check icon style */
.team-checklist {
	list-style: none;
	padding: 0;
}

.team-checklist li {
	font-family: var(--font-body);
	font-size: var(--font-size-body-xs); /* 14px */
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	padding-left: 28px;
	position: relative;
}

/* Circle-check pseudo — matches Figma circled tick icon */
.team-checklist li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	background-size: 10px;
	background-position: center;
	background-repeat: no-repeat;
}

.teams-split-section ul li {
	font-family: var(--font-body);
	font-size: var(--font-size-body-xs);
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-surface-white);
}

/* Figma: team section icon (shield/target) — faint opacity */
.team-half__icon {
	color: rgba(255, 255, 255, 0.6);
}

/* Figma: 'Learn More' outline pill CTA */
.team-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 32px;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--border-radius-full);
	color: var(--color-surface-white);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.team-cta:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--color-surface-white);
}

/* Legacy: cypro-btn--outline support */
.teams-split-section .cypro-btn--outline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 28px;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	border-radius: var(--border-radius-full);
	color: var(--color-surface-white);
	font-family: var(--font-body);
	font-size: var(--font-size-body-xs);
	font-weight: 600;
	text-decoration: none;
	transition: all var(--transition-normal);
}

.teams-split-section .cypro-btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.8);
	color: var(--color-surface-white);
}

/* ---------- PARTNER MARQUEE ---------- */
/* Figma 255:1280 — White bg, "TRUSTED BY" label, gray partner names */
.partner-marquee-section {
	background-color: var(--color-surface-white);
	padding: 56px 0;
	overflow: hidden;
}

/* "TRUSTED BY" — Figma: tiny uppercase, very muted gray, centered */
.partner-marquee__label {
	text-align: center;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(90, 122, 138, 0.55); /* muted teal-gray */
	margin: 0 0 28px;
}

/* Marquee wrapper */
.marquee-container {
	display: flex;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* Each scrolling track */
.marquee-track {
	display: flex;
	align-items: center;
	gap: 64px;
	flex-shrink: 0;
	min-width: 100%;
	padding: 0 32px;
	animation: partner-scroll 28s linear infinite;
}

/* Partner names — Figma: semi-bold, medium-muted gray */
.marquee-partner-name {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	color: rgba(90, 122, 138, 0.55); /* muted #5a7a8a */
	white-space: nowrap;
	letter-spacing: 0.01em;
	transition: color 0.2s ease, opacity 0.2s ease;
	cursor: default;
}

.marquee-container:hover .marquee-track {
	animation-play-state: paused;
}

.marquee-container:hover .marquee-partner-name {
	color: rgba(0, 49, 67, 0.55);
}

@keyframes partner-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}


/* ---------- GOLDEN RULES SECTION ---------- */
/* Figma 255:1387 — White bg, stacked alternating rows, big number LEFT */
.golden-rules-section {
	padding: 80px 0 0; /* bottom padding provided by last row */
	background-color: var(--color-surface-white);
}

.golden-rules-section h2 {
	font-size: var(--font-size-h2);
	color: var(--color-primary-dark-1);
}

.golden-rules-section > .container > p {
	color: var(--color-text-subtitle);
	font-size: var(--font-size-body-sm);
}

/* Row container — full width, alternating bg */
.golden-rules-list {
	margin-top: 0;
}

.golden-rule-row {
	background-color: var(--color-surface-white); /* odd rows: white */
	padding: 0;
}

.golden-rule-row--alt {
	background-color: #EEF3F7; /* Figma even rows: light blue-gray */
}

/* Inner: max-width container, horizontal layout */
.golden-rule-row__inner {
	display: flex;
	align-items: center;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 56px;
}

/* Big faded number — Figma: ~100px ExtraBold, muted teal ~20% opacity */
.golden-rule-row__number {
	font-family: var(--font-heading);
	font-size: clamp(72px, 8vw, 100px);
	font-weight: 800;
	line-height: 1;
	color: var(--color-secondary); /* #82a7af teal */
	opacity: 0.25;
	flex-shrink: 0;
	min-width: 120px;
	text-align: right;
	user-select: none;
}

/* Content area */
.golden-rule-row__content {
	flex: 1;
}

.golden-rule-row__title {
	font-family: var(--font-heading);
	font-size: var(--font-size-body-lg); /* 22px per Figma */
	font-weight: 700;
	color: var(--color-primary-dark-1);
	margin-bottom: 12px;
}

.golden-rule-row__desc {
	font-size: var(--font-size-body-ms); /* 15px */
	line-height: 1.75;
	color: var(--color-text-body-muted);
	margin: 0;
	max-width: 680px;
}

@media (max-width: 767px) {
	.golden-rule-row__inner {
		flex-direction: column;
		gap: 16px;
		padding-top: 36px;
		padding-bottom: 36px;
	}
	.golden-rule-row__number {
		min-width: auto;
		font-size: 60px;
		text-align: left;
	}
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-section {
	padding: 96px 0;
	background-color: var(--color-surface-2);
}

.testimonial-card {
	background-color: var(--color-surface-white);
	border: 1px solid var(--color-surface-medium-1);
	border-radius: 20px;
	padding: 40px;
}

.testimonial-card blockquote {
	font-size: 18px;
	line-height: 1.7;
	color: var(--color-primary-dark-1);
	font-style: italic;
	margin: 0 0 24px 0;
}

.testimonial-card .author-name {
	font-weight: 700;
	color: var(--color-primary-dark-1);
	font-size: 16px;
}

.testimonial-card .author-title {
	font-size: 14px;
	color: var(--color-neutral-dark);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
	padding: 96px 0;
	background: linear-gradient(135deg, #003143 0%, #00293a 50%, #001e2d 100%);
	color: var(--color-surface-white);
	text-align: center;
}

.cta-section h2 {
	color: var(--color-surface-white);
	font-size: 48px;
	line-height: 1.1;
}

.cta-section p {
	color: var(--color-neutral-light);
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- FOOTER ---------- */
.site-footer {
	padding: 80px 0 40px;
	background-color: var(--color-primary-dark-1);
}

.footer-logo {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
}

.footer-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu-list li a {
	color: var(--color-neutral-dark);
	font-size: 14px;
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-menu-list li a:hover {
	color: var(--color-accent);
}

.footer-bottom {
	border-top-color: rgba(138, 160, 172, 0.2) !important;
}

/* ---------- SECTION HEADINGS (Global Pattern) ---------- */
.section-intro h2 {
	margin-bottom: 8px;
}

.section-intro p {
	color: var(--color-neutral-dark);
	font-size: 18px;
	line-height: 1.6;
}

/* Section header + "View All" button row */
.section > .container > .flex.justify-between {
	margin-bottom: 0;
}

/* ---------- BUTTONS (Overrides handled by components.css) ----------
   All button variants now defined in components.css
   Only page-specific button tweaks should go here. */

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- RESPONSIVE FIXES ---------- */
@media (max-width: 1023px) {
	.teams-split-section .grid {
		grid-template-columns: 1fr !important;
	}

	.teams-split-section .team-half {
		padding: 64px 32px;
	}

	.teams-split-section .team-half--blue {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.blog-preview-section .grid.grid-cols-1.lg\:grid-cols-2 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.hero-banner {
		min-height: 70vh !important;
		padding-top: 180px !important;
		padding-bottom: 60px !important;
	}

	.hero-title {
		font-size: 2.5rem !important;
		line-height: 1.1 !important;
	}

	.hero-excerpt {
		font-size: 1rem !important;
	}

	/* Webinar 4-col grid collapses on mobile */
	.webinar-section > .container > .grid {
		grid-template-columns: 1fr;
	}

	.teams-split-section .team-half {
		padding: 48px 24px;
		text-align: left;
	}

	.teams-split-section ul {
		align-items: flex-start !important;
	}

	.site-footer {
		padding: 48px 0 24px;
	}

	.footer-grid {
		grid-template-columns: 1fr !important;
		gap: 32px;
	}
}

/* ---------- CASE STUDY SECTION ---------- */
.case-study-section {
	background-color: var(--color-surface-white);
}

.case-study-image {
	box-shadow: 0 32px 64px -16px rgba(0, 49, 67, 0.15);
}

.case-study-content {
	background-color: #003143;
	box-shadow: 0 40px 80px -20px rgba(0, 49, 67, 0.2);
}

.stat-card {
	transition: all 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-5px);
	background-color: rgba(26, 92, 115, 0.12) !important;
}

.report-card {
	background-color: #eef6fa;
	box-shadow: 0 32px 64px -16px rgba(0, 49, 67, 0.05);
	border: 1px solid rgba(26, 92, 115, 0.05);
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
	            box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.report-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 40px 80px -20px rgba(0, 49, 67, 0.12);
}

/* Report CTA button */
.report-cta-btn {
	position: relative;
	overflow: hidden;
}

.report-cta-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(150, 243, 129, 0.1) 50%, transparent 100%);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.report-cta-btn:hover::after {
	transform: translateX(100%);
}

/* Report preview list */
.report-preview-list li {
	transition: transform 0.2s ease;
}

.report-preview-list li:hover {
	transform: translateX(4px);
}

/* ---------- MISC FIXES ---------- */
/* Prevent WordPress admin bar messing up fixed header */
.admin-bar .cypro-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .cypro-header {
		top: 46px;
	}
}

/* Scale utility classes needed by template */
.scale-90 {
	transform: scale(0.9);
}

.origin-top-left {
	transform-origin: top left;
}

/* Rounded corners extras */
.rounded-2xl { border-radius: 20px; }
.rounded-3xl { border-radius: 24px; }

/* Past sessions timeline dot fix */
.past-sessions .border-l-2 {
	position: relative; /* BUG FIX: was absolute — broke layout flow */
}

/* Font size helper */
.text-\[10px\] {
	font-size: 10px;
}

/* ---------- ACCESSIBILITY: Reduce Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.fade-up,
	.fade-up.is-visible,
	.cypro-btn,
	.cypro-btn--outline,
	.cypro-btn--accent,
	.service-card,
	.blog-card,
	.cypro-header,
	.hero-banner::before {
		transition: none !important;
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	/* Keep fade-up visible without animation */
	.fade-up {
		opacity: 1;
		transform: none;
	}
}
