/*
Theme Name: NICE
Description: NFORSDT Innovation Centre for Education. Inspire • Innovate • Impact.
Version: 1.0
Text Domain: nice
*/

/* Bundled fonts: Jost ≈ Futura PT, Crimson Pro ≈ Minion Pro (as on karmaflights.org), Karla for buttons */
@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url(fonts/jost-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(fonts/jost-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url(fonts/jost-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 800; font-display: swap; src: url(fonts/jost-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 400; font-display: swap; src: url(fonts/crimson-pro-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/crimson-pro-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 600; font-display: swap; src: url(fonts/crimson-pro-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url(fonts/karla-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 500; font-display: swap; src: url(fonts/karla-500-normal.woff2) format("woff2"); }

:root {
	--btn: "Karla", system-ui, sans-serif;
	--inspire: #2f6e2f;
	--innovate: #1f4e96;
	--impact: #5d2b8a;
	--gold: #d39b22;
	--ink: #281a17;
	--muted: rgba(40, 26, 23, .62);
	--cream: #fbf6ec;
	--line: #e7e0d2;
	--head: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
	--body: "Crimson Pro", Georgia, "Times New Roman", serif;
	--wrap: 1180px;
	--gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--muted); font: 400 clamp(19px, 1.2vw, 21px)/1.7 var(--body); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--innovate); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 500; }
h3 { font-size: clamp(23px, 2.2vw, 30px); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .event--featured h3 { color: #fff; }
.lead, .sec--narrow h2 + p { color: var(--ink); }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-block; padding: 15px 30px; border: 2px solid currentColor; border-radius: 0;
	font: 400 15px/1 var(--btn); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
	background: transparent; color: var(--innovate); transition: background .2s, color .2s;
}
.btn:hover, .wp-block-button__link:hover { background: var(--innovate); color: #fff; border-color: var(--innovate); }
.btn--gold, .is-style-fill .wp-block-button__link, .wp-block-button.is-style-gold .wp-block-button__link { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover, .wp-block-button.is-style-gold .wp-block-button__link:hover { background: #b9861a; border-color: #b9861a; color: #fff; }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px;
	padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px; color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
.scrolled .site-header, .no-hero .site-header { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 3px; }
.brand span { display: flex; flex-direction: column; font-family: var(--head); line-height: 1.1; }
.brand strong { font-size: 20px; letter-spacing: 0.06em; }
.brand small { font-size: 12.5px; letter-spacing: 0.04em; opacity: .85; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: inherit; text-decoration: none; font: 500 15px/1 var(--head); letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav .current-menu-item a, .site-nav .current_page_item a { border-bottom-color: var(--gold); }
.site-nav .btn { padding: 12px 22px; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 980px) {
	.nav-burger { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; z-index: 2; }
	.nav-burger span, .nav-burger span::before, .nav-burger span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .25s; }
	.nav-burger span { top: 21px; }
	.nav-burger span::before { left: 0; top: -8px; }
	.nav-burger span::after { left: 0; top: 8px; }
	.site-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 32px; background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s; }
	.site-nav ul { flex-direction: column; align-items: center; gap: 22px; }
	.site-nav ul a { font-size: 20px; }
	.nav-toggle:checked ~ .site-nav { opacity: 1; visibility: visible; }
	.nav-toggle:checked ~ .nav-burger { color: #fff; }
	.nav-toggle:checked ~ .nav-burger span { background: transparent; }
	.nav-toggle:checked ~ .nav-burger span::before { transform: translateY(8px) rotate(45deg); }
	.nav-toggle:checked ~ .nav-burger span::after { transform: translateY(-8px) rotate(-45deg); }
	.brand small { display: none; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #fff;
	background: var(--ink) center/cover no-repeat; padding: 150px var(--gutter) clamp(48px, 8vh, 96px);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,30,.6) 0%, rgba(10,12,30,.35) 35%, rgba(10,12,30,.82) 100%), linear-gradient(90deg, rgba(10,12,30,.55) 0%, rgba(10,12,30,0) 70%); }
.hero__title { text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__title .c-inspire { color: #4caf50; } .hero__title .c-innovate { color: #3d7be0; } .hero__title .c-impact { color: #9b59d6; }
.hero--home { min-height: 100vh; min-height: 100svh; }
.hero--plain { background: linear-gradient(120deg, var(--inspire), var(--innovate) 55%, var(--impact)); }
.hero--plain::before { background: rgba(0,0,0,.12); }
.hero__inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.hero__eyebrow { display: inline-block; font: 400 14px/1.3 var(--btn); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; padding: 10px 16px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border-left: 3px solid var(--gold); }
.hero__title { font-size: clamp(52px, 9vw, 132px); font-weight: 800; line-height: .82; letter-spacing: -0.03em; color: #fff; margin: 0 0 .25em; max-width: 14ch; text-wrap: balance; }
.hero--home .hero__title { font-size: clamp(64px, 12.5vw, 180px); }
.hero__sub { font-family: var(--head); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; max-width: 38ch; margin: 0 0 1.2em; opacity: .95; }
.hero .btn { color: #fff; }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn--gold { border-color: var(--gold); }
.hero .btn--gold:hover { background: #b9861a; border-color: #b9861a; color: #fff; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.c-inspire { color: #7fc77d; } .c-innovate { color: #8fb6ff; } .c-impact { color: #c79af0; }

/* ---------- Page body & sections ---------- */
.page-body > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page-body > .alignfull, .page-body > .sec { max-width: none; padding: 0; }
.sec { padding: clamp(64px, 10vw, 128px) var(--gutter) !important; }
.sec > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.sec--cream { background: var(--cream); }
.sec--dark { background: var(--ink); color: #f3efe6; }
.sec--dark a:not(.wp-block-button__link) { color: #fff; }
.sec--dark .wp-block-button__link { color: #fff; }
.sec--dark .wp-block-button__link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.sec--narrow > * { max-width: 780px; }
.kicker { font: 500 14px/1 var(--btn) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px !important; }
.lead { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.35; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 auto 48px !important; max-width: var(--wrap); }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: flex-start; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-column { flex: 1 1 280px; min-width: 0; }
.wp-block-image img { width: 100%; }
.wp-block-image.photo img { aspect-ratio: 4/3; object-fit: cover; }

/* Statement lines like "Together we inspire." */
.together p { font: 800 clamp(36px, 4.8vw, 62px)/1.02 var(--head); letter-spacing: -0.03em; margin: 0; letter-spacing: -0.02em; }
.together p:nth-child(1) { color: var(--inspire); }
.together p:nth-child(2) { color: var(--innovate); }
.together p:nth-child(3) { color: var(--impact); }
.sec--dark.together p:nth-child(1) { color: #7fc77d; }
.sec--dark.together p:nth-child(2) { color: #8fb6ff; }
.sec--dark.together p:nth-child(3) { color: #c79af0; }

/* ---------- The three eyes ---------- */
.eyes { gap: clamp(24px, 3vw, 48px) !important; }
.eyes .wp-block-column { text-align: center; padding: 8px 8px 0; }
.eyes .wp-block-image { margin: 0 0 14px; }
.eyes .wp-block-image img { height: 170px; width: auto; max-width: 90%; object-fit: contain; object-position: center bottom; margin: 0 auto; }
.eyes h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.eyes h3 + p { font: 400 14px/1.4 var(--btn); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyes h3 + p::after { content: ""; display: block; width: 64px; height: 2px; margin: 16px auto 0; background: currentColor; opacity: .4; }
.eyes .wp-block-column:nth-child(1) h3 { color: var(--inspire); }
.eyes .wp-block-column:nth-child(2) h3 { color: var(--innovate); }
.eyes .wp-block-column:nth-child(3) h3 { color: var(--impact); }
.eyes .wp-block-column > p:last-child { text-align: left; }

/* ---------- Cards (what we do / services / events) ---------- */
.cards { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px !important; background: var(--line); border: 2px solid var(--line); }
.cards > .wp-block-group { background: #fff; padding: 30px 28px; margin: 0; transition: transform .2s; }
.cards > .wp-block-group:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.cards h3 { font-size: 22px; margin-bottom: .4em; }
.cards p { font-size: 18px; color: var(--muted); margin: 0; }
.cards > .wp-block-group:nth-child(3n+1) h3 { color: var(--inspire); }
.cards > .wp-block-group:nth-child(3n+2) h3 { color: var(--innovate); }
.cards > .wp-block-group:nth-child(3n+3) h3 { color: var(--impact); }
.sec--cream .cards > .wp-block-group { background: #fff; }

/* Ticked list */
.ticks { list-style: none; padding: 0 !important; columns: 2 300px; column-gap: 48px; }
.ticks li { break-inside: avoid; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border: solid var(--gold); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.sec--dark .ticks li { border-color: rgba(255,255,255,.14); }

/* ---------- Events ---------- */
.event { display: grid !important; grid-template-columns: 150px 1fr; gap: 28px; padding: 34px 0 !important; border-top: 1px solid var(--line); align-items: start; }
.event:last-child { border-bottom: 1px solid var(--line); }
.event .date { font: 500 15px/1.35 var(--btn); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 6px 0 0; }
.event h3 { margin-bottom: .3em; }
.event p { margin-bottom: .5em; }
.event--featured { background: var(--ink); color: #fff; padding: 40px !important; border: 0; margin-bottom: 24px; }
.event--featured .date { color: var(--gold); }
.event--featured .wp-block-button__link { color: #fff; }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; gap: 6px; } .event--featured { padding: 28px !important; } }

/* People */
.people { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 32px !important; }
.people p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.people strong { font-family: var(--head); font-weight: 600; display: block; font-size: 18px; }

/* Tables (membership) */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 18px; }
.wp-block-table th, .wp-block-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.wp-block-table th { font: 600 13px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wp-block-table td:last-child { font-family: var(--head); font-weight: 600; white-space: nowrap; }

/* Steps (membership journey) */
.steps { counter-reset: step; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px !important; }
.steps > .wp-block-group { counter-increment: step; border-top: 3px solid var(--gold); padding-top: 22px; margin: 0; }
.steps > .wp-block-group::before { content: "0" counter(step); font: 800 46px/1 var(--head); color: var(--gold); display: block; margin-bottom: 10px; }

/* Bank details */
.bank { background: #fff; border-left: 4px solid var(--gold); padding: 28px 32px !important; font-size: 18px; }
.bank p { margin: 0 0 6px; }
.sec--dark .bank { background: rgba(255,255,255,.06); }

/* CTA band with mountains */
.cta-band { background: linear-gradient(rgba(14,18,40,.55), rgba(14,18,40,.75)), var(--ink) center/cover no-repeat; color: #fff; text-align: center; }
.cta-band .wp-block-buttons { justify-content: center; }
.cta-band .wp-block-button__link { color: #fff; }
.cta-band .wp-block-button__link:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Forms (Contact Form 7 / Mailchimp) */
.wpcf7 input:not([type=submit]), .wpcf7 textarea, .wpcf7 select, .mc4wp-form input[type=email] { width: 100%; padding: 14px 16px; border: 1px solid #cfc7b6; font: inherit; font-size: 18px; background: #fff; }
.wpcf7 input[type=submit], .mc4wp-form input[type=submit] { padding: 16px 32px; border: 0; background: var(--innovate); color: #fff; font: 400 15px/1 var(--btn); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: #11131f; color: #c9c5bb; font-size: 17px; }
.footer-mountains { height: clamp(120px, 18vw, 240px); background: center 60%/cover no-repeat; position: relative; }
.footer-mountains::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,31,0) 40%, #11131f 100%); }
.footer-sign { text-align: center; padding: 8px var(--gutter) 48px; }
.footer-eyes { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; }
.footer-eyes img { height: 60px; width: auto; filter: brightness(1.35) saturate(1.1); }
.footer-name { font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--head); color: #fff; margin-bottom: 8px; }
.footer-words { font: 600 17px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.footer-tag { font-style: italic; margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter); border-top: 1px solid rgba(255,255,255,.1); }
.footer-cols h4 { color: #fff; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols a { color: #e9e4d8; text-decoration: none; }
.footer-cols a:hover { color: var(--gold); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 4px; }
.footer-copy { text-align: center; font-size: 14px; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.1); margin: 0; color: #8d8a83; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Classic themes wrap group blocks in an extra div; let layouts see the real children. */
.wp-block-group__inner-container { display: contents; }

/* ---------- Featured event (home) ---------- */
.feature { gap: 0 !important; background: var(--ink); color: rgba(255,255,255,.82); margin-top: 8px; align-items: stretch !important; }
.feature__text { padding: clamp(32px, 5vw, 64px) !important; flex: 1 1 420px !important; }
.feature__media { flex: 1 1 380px !important; background: #f6efe1; display: flex; align-items: center; }
.feature__media .wp-block-image { margin: 0; width: 100%; }
.feature h3 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; margin-bottom: .45em; }
.feature__label { font: 400 14px/1 var(--btn); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.feature__date { font: 800 clamp(34px, 4.4vw, 60px)/1 var(--head); letter-spacing: -0.02em; color: var(--gold); margin-bottom: 14px; }

/* ---------- Event cards ---------- */
.event-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.event-card { background: #fff; padding: 30px 28px 26px; border-top: 5px solid var(--inspire); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.event-card:nth-child(2) { border-top-color: var(--innovate); }
.event-card:nth-child(3) { border-top-color: var(--impact); }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(40,26,23,.1); }
.event-card h3 { font-size: 24px; font-weight: 600; margin-bottom: .5em; }
.event-card p { font-size: 18px; margin-bottom: 1em; }
.event-card__when { font: 400 13px/1 var(--btn) !important; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px !important; }
.event-card__link { margin: auto 0 0 !important; }
.event-card__link a { font: 500 15px/1 var(--btn); letter-spacing: .06em; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.feature__media .wp-block-image, .feature__media .wp-block-image img { height: 100%; }
.feature__media .wp-block-image img { object-fit: contain; object-position: center; min-height: 0; }
.feature__media { background: #f3ead8 !important; }
