/**
 * Nordic TA Conference 2026 — Custom Styles
 */

/* ─── CSS custom properties ─────────────────────────────── */
:root {
	--ntc-navy:        #1a2744;
	--ntc-green:       #3a7d44;
	--ntc-green-light: #6abf69;
	--ntc-teal:        #00bcd4;
	--ntc-blue:        #2196f3;
	--ntc-white:       #ffffff;
	--ntc-off-white:   #f8f9fa;
	--ntc-light:       #f0f4f0;
	--ntc-muted:       #6c7a8d;
	--ntc-border:      rgba(26, 39, 68, 0.10);
	--ntc-shadow-sm:   0 2px 10px rgba(26,39,68,0.07);
	--ntc-shadow-md:   0 6px 24px rgba(26,39,68,0.11);
	--ntc-shadow-lg:   0 14px 48px rgba(26,39,68,0.15);
	--ntc-radius:      12px;
	--ntc-ease:        0.28s ease;
}

/* ─── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
}

img { max-width: 100%; height: auto; }

.wp-block-list .emoji {
	display: inline;
	vertical-align: middle;
}

/* ─── Wave background (same technique as inspiration theme) ─ */
.wave-pattern {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	height: 55%;
	pointer-events: none;
	opacity: 0.025;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233a7d44' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: cover;
	z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255,255,255,0.97);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--ntc-border);
	transition: box-shadow var(--ntc-ease);
}
.site-header.scrolled {
	box-shadow: var(--ntc-shadow-md);
}

/* Logo in header */
.site-header .wp-block-site-logo img {
	max-height: 120px;
	width: auto;
}

/* Logo: three-circle mark (from inspiration) */
.logo-circles {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.logo-circle {
	width: 17px;
	height: 17px;
	border: 2px solid var(--ntc-navy);
	border-radius: 50%;
	transition: background var(--ntc-ease);
}
.site-logo-link:hover .logo-circle:nth-child(2) {
	background: var(--ntc-green);
	border-color: var(--ntc-green);
}

/* Nav links */
.wp-block-navigation a {
	text-decoration: none !important;
	font-weight: 400 !important;
	font-size: 0.9rem !important;
	color: var(--ntc-muted) !important;
	padding: 0.3rem 0.5rem;
	border-radius: 4px;
	transition: color var(--ntc-ease) !important;
}
.wp-block-navigation a:hover {
	color: var(--ntc-navy) !important;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   Mirrors image 1: logo left, text + CTA right
═══════════════════════════════════════════════════════════ */
.hero-section {
	position: relative;
	overflow: hidden;
}

/* Subtle radial tint behind hero */
.hero-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 55% 50% at 88% 28%, rgba(0,188,212,0.07) 0%, transparent 70%),
		radial-gradient(ellipse 40% 40% at 15% 72%, rgba(58,125,68,0.05) 0%, transparent 65%);
	pointer-events: none;
}

/* Logo column */
.hero-logo-col {
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-logo-col img,
.hero-logo-col .nordic-logo-svg {
	max-width: 400px;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 8px 28px rgba(0,188,212,0.16));
	animation: ntc-logo-in 1.1s ease both;
}

@keyframes ntc-logo-in {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to   { opacity: 1; transform: none; }
}

/* Content column */
.hero-content-col {
	animation: ntc-content-in 1s 0.25s ease both;
}
@keyframes ntc-content-in {
	from { opacity: 0; transform: translateX(18px); }
	to   { opacity: 1; transform: none; }
}

/* Eyebrow label */
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	color: var(--ntc-green) !important;
	margin-bottom: 0.8rem !important;
}
.hero-eyebrow::before {
	content: '';
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ntc-green);
	flex-shrink: 0;
}

/* Hero subtitle (theme) */
.hero-subtitle {
	font-style: italic !important;
	color: var(--ntc-muted) !important;
	margin-top: 0.2rem !important;
}

/* Hero date line */
.hero-date {
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--ntc-navy) !important;
	opacity: 0.65;
	margin-top: 0.25rem !important;
}

/* CTA wrapper */
.hero-cta-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	align-items: center;
	margin-top: 2rem !important;
}

/* Primary CTA — green button */
.wp-block-button.is-style-primary .wp-block-button__link,
.btn-primary .wp-block-button__link {
	background: var(--ntc-green) !important;
	color: var(--ntc-white) !important;
	border: 2px solid var(--ntc-green) !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	border-radius: 4px !important;
	padding: 0.9rem 2rem !important;
	box-shadow: 0 4px 18px rgba(58,125,68,0.28) !important;
	transition: background var(--ntc-ease), border-color var(--ntc-ease),
	            box-shadow var(--ntc-ease), transform var(--ntc-ease) !important;
}
.wp-block-button.is-style-primary .wp-block-button__link:hover {
	background: var(--ntc-navy) !important;
	border-color: var(--ntc-navy) !important;
	box-shadow: 0 6px 24px rgba(26,39,68,0.22) !important;
	transform: translateY(-2px) !important;
}

/* Outline CTA */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--ntc-navy) !important;
	border: 2px solid rgba(26,39,68,0.28) !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	border-radius: 4px !important;
	padding: 0.85rem 1.75rem !important;
	transition: border-color var(--ntc-ease), color var(--ntc-ease) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--ntc-green) !important;
	color: var(--ntc-green) !important;
}

/* ═══════════════════════════════════════════════════════════
   SECTION WRAPPERS
═══════════════════════════════════════════════════════════ */
.section-intro   { background: var(--ntc-white); }
.section-program { background: var(--ntc-off-white); }
.section-assoc   { background: var(--ntc-white); }
.section-dark    { background: var(--ntc-navy); color: var(--ntc-white); position: relative; overflow: hidden; }

.section-dark::before {
	content: '';
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 50% 60% at 92% 50%, rgba(0,188,212,0.10) 0%, transparent 70%),
		radial-gradient(ellipse 35% 40% at 8% 30%,  rgba(58,125,68,0.09) 0%, transparent 60%);
	pointer-events: none;
}

/* Section eyebrow */
.section-label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	color: var(--ntc-green) !important;
	margin-bottom: 0.6rem !important;
}
.section-label::before {
	content: '';
	display: block;
	width: 18px; height: 2px;
	background: currentColor;
	flex-shrink: 0;
}
.section-dark .section-label { color: var(--ntc-green-light) !important; }

/* ═══════════════════════════════════════════════════════════
   CARD STYLES (mirroring inspiration)
═══════════════════════════════════════════════════════════ */
.wp-block-group.is-style-card {
	background: var(--ntc-white);
	border-radius: var(--ntc-radius);
	padding: 2rem;
	box-shadow: var(--ntc-shadow-sm);
	border: 1px solid var(--ntc-border);
}

.wp-block-group.is-style-card-hover {
	background: var(--ntc-white);
	border-radius: var(--ntc-radius);
	padding: 2rem;
	box-shadow: var(--ntc-shadow-sm);
	border: 1px solid var(--ntc-border);
	transition: transform var(--ntc-ease), box-shadow var(--ntc-ease), border-color var(--ntc-ease);
	position: relative;
	overflow: hidden;
}
.wp-block-group.is-style-card-hover::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ntc-green), var(--ntc-teal));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--ntc-ease);
}
.wp-block-group.is-style-card-hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--ntc-shadow-lg);
	border-color: rgba(58,125,68,0.18);
}
.wp-block-group.is-style-card-hover:hover::before {
	transform: scaleX(1);
}

/* ─── Sidebar section (from inspiration theme) ─── */
.wp-block-group.is-style-sidebar-section {
	background: var(--ntc-white);
	border-radius: 16px;
	padding: 2rem;
	box-shadow: var(--ntc-shadow-sm);
	border: 1px solid var(--ntc-border);
}
.wp-block-group.is-style-sidebar-section h2 {
	font-size: 1.4rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--ntc-border);
}

/* ─── Dark box (used in practical section) ─── */
.wp-block-group.is-style-dark-box {
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.13);
	border-radius: var(--ntc-radius);
	padding: 2rem;
	backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════════
   LIST DOTS STYLE (from inspiration)
═══════════════════════════════════════════════════════════ */
.wp-block-list.is-style-dots {
	list-style: none;
	padding: 0;
	margin: 0;
}
.wp-block-list.is-style-dots li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--ntc-border);
}
.wp-block-list.is-style-dots li:last-child { border-bottom: none; }
.wp-block-list.is-style-dots li a {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--ntc-muted);
	text-decoration: none;
	transition: color var(--ntc-ease);
}
.wp-block-list.is-style-dots li a::before {
	content: '';
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--ntc-green);
	flex-shrink: 0;
}
.wp-block-list.is-style-dots li a:hover { color: var(--ntc-navy); }

/* Lists with flag emojis: keep flag and link on one line, hide the dot */
.wp-block-list.is-style-dots li:has(.emoji) {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}
.wp-block-list.is-style-dots li:has(.emoji) a::before {
	content: none;
	display: none;
}
.wp-block-list.is-style-dots li:has(.emoji) img.emoji,
.wp-block-list.is-style-dots li:has(.emoji) .emoji {
	display: inline !important;
	vertical-align: middle;
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
}

/* Fallback: target the Hosted by sidebar section even if class changes are not rendered */
.sidebar .is-style-sidebar-section:nth-of-type(3) .wp-block-list {
	list-style: none !important;
	list-style-type: none !important;
	padding-left: 0 !important;
}
.sidebar .is-style-sidebar-section:nth-of-type(3) .wp-block-list li {
	display: flex !important;
	align-items: center;
	gap: 0.65rem;
	list-style: none !important;
	list-style-type: none !important;
}
.sidebar .is-style-sidebar-section:nth-of-type(3) .wp-block-list li::marker,
.sidebar .is-style-sidebar-section:nth-of-type(3) .wp-block-list li::before {
	content: none !important;
}
.sidebar .is-style-sidebar-section:nth-of-type(3) .wp-block-list li > p {
	display: inline;
	margin: 0;
}
.sidebar .is-style-sidebar-section:nth-of-type(3) .wp-block-list li img.emoji,
.sidebar .is-style-sidebar-section:nth-of-type(3) .wp-block-list li .emoji {
	display: inline-block !important;
	vertical-align: middle;
	width: 1.1em;
	height: 1.1em;
	margin-right: 0.1rem;
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT + SIDEBAR layout
═══════════════════════════════════════════════════════════ */
.content-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2.5rem;
	align-items: start;
}
.sidebar {
	position: sticky;
	top: 90px;
}
.sidebar.is-layout-flex {
	align-items: stretch;
}

/* ═══════════════════════════════════════════════════════════
   SPEAKER CARDS
═══════════════════════════════════════════════════════════ */
.speaker-name {
	font-size: 1.4rem !important;
	margin: 0 0 0.2rem !important;
}
.speaker-role {
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
	color: var(--ntc-green) !important;
	margin: 0 0 0.9rem !important;
}
.speaker-bio {
	font-size: 0.93rem !important;
	line-height: 1.65 !important;
	color: var(--ntc-muted) !important;
}

/* Info pills */
.info-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.38rem 0.85rem;
	border-radius: 100px;
	font-size: 0.78rem;
	font-weight: 600;
	background: var(--ntc-light);
	color: var(--ntc-navy);
	letter-spacing: 0.03em;
}
.info-pill.green {
	background: rgba(58,125,68,0.1);
	color: var(--ntc-green);
}

/* ═══════════════════════════════════════════════════════════
   ASSOCIATION CARDS
═══════════════════════════════════════════════════════════ */
.assoc-card {
	background: var(--ntc-white);
	border: 1px solid var(--ntc-border);
	border-radius: var(--ntc-radius);
	padding: 2.5rem 2rem;
	text-align: center;
	box-shadow: var(--ntc-shadow-sm);
	transition: transform var(--ntc-ease), box-shadow var(--ntc-ease);
}
.assoc-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ntc-shadow-md);
}
.assoc-flag  { font-size: 2.4rem; line-height: 1; margin-bottom: 0.6rem; }
.assoc-name  { font-size: 1.5rem !important; margin: 0 0 0.2rem !important; }
.assoc-country {
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: var(--ntc-green) !important;
	margin: 0 0 0.7rem !important;
}
.assoc-desc {
	font-size: 0.91rem !important;
	line-height: 1.6 !important;
	color: var(--ntc-muted) !important;
}

/* ═══════════════════════════════════════════════════════════
   DARK SECTION (practical info / CTA)
═══════════════════════════════════════════════════════════ */
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark li {
	color: rgba(255,255,255,0.9) !important;
}
.section-dark .section-label { color: var(--ntc-green-light) !important; }
.section-dark a  { color: var(--ntc-green-light) !important; text-decoration: none; font-weight: 600; }
.section-dark a:hover { text-decoration: underline; }

.practical-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.10);
}
.practical-row:last-child { border-bottom: none; }
.practical-icon {
	flex-shrink: 0;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.10);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}
.practical-label {
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: rgba(255,255,255,0.45) !important;
	margin: 0 0 0.18rem !important;
}
.practical-value {
	font-size: 0.97rem !important;
	font-weight: 500 !important;
	color: var(--ntc-white) !important;
	margin: 0 !important;
}

/* CTA button in dark section */
.section-dark .wp-block-button .wp-block-button__link {
	background: var(--ntc-green) !important;
	color: var(--ntc-white) !important;
	border: 2px solid var(--ntc-green) !important;
}
.section-dark .wp-block-button .wp-block-button__link:hover {
	background: transparent !important;
	border-color: var(--ntc-white) !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
	background: var(--ntc-navy) !important;
}
.site-footer,
.site-footer p,
.site-footer a {
	color: rgba(255,255,255,0.72) !important;
}
.site-footer a:hover { color: var(--ntc-green-light) !important; }
.site-footer .wp-block-site-logo img {
	max-height: 38px;
	width: auto !important;
	filter: brightness(0) invert(1);
	opacity: 0.75;
}
.footer-logo .logo-circle { border-color: var(--ntc-white); }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════ */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════
	MOBILE FIXES
	════════════════════════════════════════════ */
@media (max-width: 782px) {
	/* 1. Header-loggan klipps inte av */
	.site-header {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
	}
	.site-header .wp-block-site-logo img {
		max-height: 40px !important;
	}

	.content-with-sidebar {
		grid-template-columns: 1fr;
	}
	.sidebar { position: static; }

	/* Sidopanelen – centrera och full bredd */
	.sidebar {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		width: 100% !important;
	}
	.sidebar .wp-block-group,
	.sidebar .is-style-sidebar-section {
		width: 100% !important;
		max-width: 480px !important;
		box-sizing: border-box !important;
	}

	/* 2 & 3. Hero – bättre typografi och mindre padding */
	.hero-section {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}
	.hero-section h1 {
		font-size: clamp(1.9rem, 7vw, 2.8rem) !important;
		line-height: 1.15 !important;
		word-break: break-word;
	}
	.hero-logo-col img {
		max-width: 200px !important;
	}

	/* 4. Minska de stora tomma ytorna */
	#speakers,
	#program,
	#associations {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	/* 5. Footer-nav – bättre layout */
	.site-footer .wp-block-navigation__container {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: 8px 16px !important;
		justify-content: center !important;
	}
}

@media (max-width: 600px) {
	.hero-cta-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
	.hero-section h1 {
		font-size: 1.75rem !important;
	}
}
