/*
Theme Name: Stargate University
Theme URI: https://stargate.university
Author: EUCLID
Description: Theme for EUCLID's Stargate University Institute for Space Science and Policy.
Version: 1.2.0
Requires PHP: 7.4
Text Domain: sgu
*/

:root {
	--sgu-navy: #00293d;
	--sgu-navy-2: #003247;
	--sgu-navy-3: #0a4560;
	--sgu-teal: #00ae9d;
	--sgu-teal-dark: #008a7c;
	--sgu-sky: #7fd8ff;
	--sgu-ink: #0b1f2a;
	--sgu-text: #33474f;
	--sgu-muted: #6a7d86;
	--sgu-grey: #f1f4f6;
	--sgu-line: #d9e1e6;
	--sgu-white: #fff;
	--sgu-radius: 4px;
	--sgu-wrap: 1240px;
	--sgu-head: "Barlow Condensed", "Arial Narrow", sans-serif;
	--sgu-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sgu { margin: 0; font-family: var(--sgu-body); font-size: 18px; line-height: 1.6; color: var(--sgu-text); background: var(--sgu-white); -webkit-font-smoothing: antialiased; }
.sgu img { max-width: 100%; height: auto; }
.sgu a { color: var(--sgu-teal-dark); text-decoration: none; }
.sgu a:hover { text-decoration: underline; }
.sgu h1, .sgu h2, .sgu h3, .sgu h4 { font-family: var(--sgu-head); color: var(--sgu-ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: .01em; }
.sgu h2 { font-size: 2.4rem; }
.sgu h3 { font-size: 1.5rem; }
.sgu p { margin: 0 0 1em; }

.sgu-wrap { width: 100%; max-width: var(--sgu-wrap); margin: 0 auto; padding: 0 28px; }
.sgu-skip { position: absolute; left: -999px; top: 0; background: var(--sgu-teal); color: #fff; padding: 8px 14px; z-index: 1000; }
.sgu-skip:focus { left: 8px; }

/* Top bar */
.sgu-topbar { background: #001a27; color: #a9c2cd; font-size: 14px; }
.sgu-topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.sgu-topbar a { color: #fff; }
.sgu-topbar-links a { margin-left: 22px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; }

/* Header */
.sgu-header { background: var(--sgu-navy); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-bar .sgu-header { top: 32px; }
.sgu-header-in { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.sgu-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; }
.sgu-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.sgu-brand-text strong { font-family: var(--sgu-head); font-size: 24px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.sgu-brand-text small { font-size: 13px; color: var(--sgu-sky); letter-spacing: .04em; margin-top: 3px; }

.sgu-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.sgu-nav > ul > li > a { display: block; padding: 28px 16px; color: #fff; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .07em; text-decoration: none !important; border-bottom: 3px solid transparent; }
.sgu-nav > ul > li > a:hover, .sgu-nav > ul > li:focus-within > a { border-bottom-color: var(--sgu-teal); }
.sgu-nav .sgu-nav-cta a { background: var(--sgu-teal); padding: 11px 20px; border-radius: var(--sgu-radius); margin-left: 12px; border: 0; }
.sgu-nav .sgu-nav-cta a:hover { background: var(--sgu-teal-dark); }

.sgu-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--sgu-navy-2); border-top: 3px solid var(--sgu-teal); box-shadow: 0 24px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; }
.sgu-has-mega:hover .sgu-mega, .sgu-has-mega:focus-within .sgu-mega { opacity: 1; visibility: visible; transform: none; }
.sgu-mega-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; padding-top: 34px; padding-bottom: 38px; }
.sgu-mega h4 { color: var(--sgu-teal); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.sgu-mega ul { list-style: none; margin: 0; padding: 0; }
.sgu-mega li a { display: block; color: #e3eef2; padding: 5px 0; font-size: 16px; line-height: 1.35; }
.sgu-mega li a:hover { color: #fff; }

.sgu-nav-toggle, .sgu-burger { display: none; }

/* Buttons */
.sgu-btn { display: inline-block; background: var(--sgu-teal); color: #fff !important; padding: 13px 26px; border-radius: var(--sgu-radius); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; text-decoration: none !important; border: 2px solid var(--sgu-teal); transition: background .15s; }
.sgu-btn:hover { background: var(--sgu-teal-dark); border-color: var(--sgu-teal-dark); }
.sgu-btn-ghost { background: transparent; color: var(--sgu-ink) !important; border-color: var(--sgu-ink); }
.sgu-btn-ghost:hover { background: var(--sgu-ink); color: #fff !important; border-color: var(--sgu-ink); }
.sgu-btn-light { background: transparent; border-color: #fff; color: #fff !important; }
.sgu-btn-light:hover { background: #fff; color: var(--sgu-navy) !important; border-color: #fff; }
.sgu-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Hero */
.sgu-hero { position: relative; color: #fff; background: #00131f url("assets/hero-wide.jpg") center / cover no-repeat; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.sgu-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,13,22,.88) 0%, rgba(0,13,22,.55) 45%, rgba(0,13,22,0) 75%), linear-gradient(0deg, rgba(0,13,22,.55) 0%, rgba(0,13,22,0) 35%); }
.sgu-hero .sgu-wrap { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 110px; }
.sgu-hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); text-transform: uppercase; letter-spacing: .02em; max-width: 13em; margin-bottom: .35em; font-weight: 700; }
.sgu-hero .sgu-lead { color: #d5e6ed; max-width: 40em; }
.sgu-eyebrow { display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: var(--sgu-teal); margin-bottom: 16px; }
.sgu-lead { font-size: 1.25rem; line-height: 1.55; }

/* Page hero */
.sgu-pagehero { background: #00131f url("assets/hero-wide.jpg") center 40% / cover no-repeat; color: #fff; position: relative; }
.sgu-pagehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,13,22,.92), rgba(0,13,22,.6) 60%, rgba(0,13,22,.35)); }
.sgu-pagehero .sgu-wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.sgu-pagehero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.6rem); text-transform: uppercase; max-width: 22em; font-weight: 700; }
.sgu-pagehero .sgu-lead { color: #d5e6ed; max-width: 46em; margin: 0; }
.sgu-crumbs { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; color: #9fb7c1; }
.sgu-crumbs a { color: var(--sgu-sky); }
.sgu-crumbs i { font-style: normal; margin: 0 10px; opacity: .5; }

/* Sections */
.sgu-section { padding: 84px 0; }
.sgu-section-alt { background: var(--sgu-grey); }
.sgu-section-dark { background: var(--sgu-navy); color: #c9dce4; }
.sgu-section-dark h2, .sgu-section-dark h3 { color: #fff; }
.sgu-section-head { max-width: 760px; margin-bottom: 44px; }
.sgu-section-head p { font-size: 1.15rem; }
.sgu-prose { max-width: 820px; }
.sgu-prose h2 { font-size: 2rem; margin-top: 1.4em; }
.sgu-prose h2:first-child { margin-top: 0; }

/* Grids and cards */
.sgu-grid { display: grid; gap: 26px; }
.sgu-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sgu-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sgu-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sgu-card { background: #fff; border: 1px solid var(--sgu-line); border-top: 4px solid var(--sgu-teal); padding: 28px 28px 30px; border-radius: var(--sgu-radius); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.sgu-card h3 { font-size: 1.45rem; }
.sgu-card p { font-size: 16px; color: var(--sgu-text); }
.sgu-card .sgu-card-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--sgu-muted); font-weight: 600; margin-bottom: 10px; }
.sgu-card .sgu-more { margin-top: auto; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
a.sgu-card { color: inherit; text-decoration: none !important; }
a.sgu-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,41,61,.12); }
a.sgu-card:hover h3 { color: var(--sgu-teal-dark); }
.sgu-section-dark .sgu-card { background: var(--sgu-navy-2); border-color: rgba(255,255,255,.1); border-top-color: var(--sgu-teal); }
.sgu-section-dark .sgu-card p { color: #c9dce4; }
.sgu-section-dark .sgu-card h3 { color: #fff; }

.sgu-pillar { border-left: 3px solid var(--sgu-teal); padding: 4px 0 4px 24px; }
.sgu-pillar .sgu-num { font-family: var(--sgu-head); font-size: 3.2rem; color: var(--sgu-teal); line-height: 1; font-weight: 700; }
.sgu-pillar h3 { margin-top: 10px; }

.sgu-area { margin-bottom: 64px; }
.sgu-area:last-child { margin-bottom: 0; }
.sgu-area-head { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--sgu-line); padding-bottom: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.sgu-area-head h2 { margin: 0; font-size: 2rem; text-transform: uppercase; }
.sgu-area-head p { margin: 0; color: var(--sgu-muted); font-size: 16px; }

/* Split block */
.sgu-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.sgu-orbit { aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2c8fb8 0%, #0d4f72 38%, #062c42 70%, #031c2b 100%); box-shadow: 0 0 0 14px rgba(0,174,157,.12), 0 0 0 30px rgba(0,174,157,.06), 0 30px 60px rgba(0,41,61,.35); position: relative; max-width: 440px; margin: 0 auto; }
.sgu-orbit::before { content: ""; position: absolute; inset: -9%; border: 1px dashed rgba(0,174,157,.6); border-radius: 50%; transform: rotate(-20deg) scaleY(.42); }
.sgu-orbit::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--sgu-teal); top: 30%; left: -6%; box-shadow: 0 0 0 6px rgba(0,174,157,.25); }

.sgu-facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.sgu-fact { padding: 30px 24px 10px 0; }
.sgu-fact strong { display: block; font-family: var(--sgu-head); font-size: 3rem; color: #fff; line-height: 1; font-weight: 700; }
.sgu-fact span { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--sgu-sky); }

/* CTA band */
.sgu-cta { background: linear-gradient(110deg, var(--sgu-teal-dark), var(--sgu-teal) 60%, #22c4b2); color: #fff; padding: 64px 0; }
.sgu-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.sgu-cta h2 { color: #fff; margin: 0 0 6px; }
.sgu-cta p { margin: 0; font-size: 1.15rem; color: #e8fbf8; }

/* Program pages */
.sgu-prog { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.sgu-prog-main h2 { font-size: 2rem; margin-top: 1.5em; }
.sgu-prog-main h2:first-child { margin-top: 0; }
.sgu-modules { list-style: none; counter-reset: mod; margin: 0; padding: 0; border-top: 1px solid var(--sgu-line); }
.sgu-modules li { counter-increment: mod; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--sgu-line); position: relative; font-weight: 500; color: var(--sgu-ink); }
.sgu-modules li::before { content: counter(mod, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--sgu-head); font-size: 1.5rem; color: var(--sgu-teal); font-weight: 700; }
.sgu-facts { background: var(--sgu-navy); color: #c9dce4; padding: 30px; border-radius: var(--sgu-radius); position: sticky; top: 110px; }
.sgu-facts h3 { color: #fff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; }
.sgu-facts dl { margin: 0 0 24px; }
.sgu-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--sgu-teal); font-weight: 600; margin-top: 14px; }
.sgu-facts dd { margin: 2px 0 0; color: #fff; font-size: 16px; }
.sgu-facts .sgu-btn { display: block; text-align: center; margin-top: 10px; }
.sgu-note { font-size: 15px; color: var(--sgu-muted); }

/* Contact & forms */
.sgu-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sgu-office { background: #fff; border: 1px solid var(--sgu-line); padding: 26px; border-radius: var(--sgu-radius); }
.sgu-office h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; }
.sgu-office p { margin: 0; font-size: 16px; }
.sgu .wpcf7 { max-width: 760px; }
.sgu .wpcf7 label { display: block; font-weight: 600; color: var(--sgu-ink); font-size: 15px; margin-bottom: 18px; }
.sgu .wpcf7 input[type="text"], .sgu .wpcf7 input[type="email"], .sgu .wpcf7 textarea, .sgu .wpcf7 select { width: 100%; padding: 13px 14px; border: 1px solid var(--sgu-line); border-radius: var(--sgu-radius); font: inherit; font-weight: 400; margin-top: 6px; background: #fff; }
.sgu .wpcf7 input:focus, .sgu .wpcf7 textarea:focus { outline: 2px solid var(--sgu-teal); border-color: var(--sgu-teal); }
.sgu .wpcf7 input[type="submit"] { background: var(--sgu-teal); color: #fff; border: 0; padding: 14px 30px; border-radius: var(--sgu-radius); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; font-family: inherit; }
.sgu .wpcf7 input[type="submit"]:hover { background: var(--sgu-teal-dark); }

/* Footer */
.sgu-footer { background: #001a27; color: #9fb7c1; font-size: 15px; }
.sgu-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 44px; padding-top: 70px; padding-bottom: 50px; }
.sgu-footer h4 { color: var(--sgu-teal); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.sgu-footer h4:not(:first-child) { margin-top: 28px; }
.sgu-footer ul { list-style: none; margin: 0; padding: 0; }
.sgu-footer li { margin-bottom: 7px; line-height: 1.35; }
.sgu-footer a { color: #d5e6ed; }
.sgu-footer-brand p { margin-top: 20px; max-width: 26em; }
.sgu-footer-addr { margin: 0 0 12px; line-height: 1.45; }
.sgu-footer-base { border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sgu-footer-base-in { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1100px) {
	.sgu-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.sgu-footer-grid { grid-template-columns: 1fr 1fr; }
	.sgu-nav > ul > li > a { padding-left: 11px; padding-right: 11px; font-size: 14px; }
}
@media (max-width: 960px) {
	body.sgu { font-size: 17px; }
	.sgu-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
	.sgu-burger span { width: 26px; height: 2px; background: #fff; display: block; }
	.sgu-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--sgu-navy-2); max-height: calc(100vh - 110px); overflow-y: auto; }
	.sgu-nav-toggle:checked ~ .sgu-nav { display: block; }
	.sgu-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 0 20px; }
	.sgu-nav > ul > li > a { padding: 14px 28px; border-bottom: 1px solid rgba(255,255,255,.07); }
	.sgu-nav .sgu-nav-cta a { margin: 14px 28px 0; text-align: center; }
	.sgu-mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: transparent; display: none; }
	.sgu-has-mega:focus-within .sgu-mega, .sgu-has-mega:hover .sgu-mega { display: block; }
	.sgu-mega-in { grid-template-columns: 1fr; padding: 10px 28px 18px 44px; gap: 14px; }
	.sgu-grid-2, .sgu-grid-3, .sgu-split, .sgu-prog, .sgu-offices { grid-template-columns: 1fr; }
	.sgu-facts { position: static; }
	.sgu-facts-row { grid-template-columns: repeat(2, 1fr); }
	.sgu-hero { min-height: 520px; background-image: url("assets/hero-wide-sm.jpg"); background-position: 82% center; }
	.sgu-hero::after { background: linear-gradient(90deg, rgba(0,13,22,.88), rgba(0,13,22,.6)); }
	.sgu-pagehero { background-image: url("assets/hero-wide-sm.jpg"); }
	.sgu-section { padding: 60px 0; }
	.sgu-topbar-in > span:first-child { display: none; }
}
@media (max-width: 600px) {
	.sgu-grid-4, .sgu-footer-grid { grid-template-columns: 1fr; }
	.sgu-wrap { padding: 0 20px; }
	.sgu-brand-text strong { font-size: 20px; }
	.sgu-brand-text small { font-size: 11px; }
	.sgu h2 { font-size: 2rem; }
}
