/* ==========================================================================
   ACCS.net - site stylesheet (2016 refresh)
   Plain CSS, no build step. Works in all current browsers.
   ========================================================================== */

:root {
	--navy: #0f2c63;
	--navy-2: #12357a;
	--blue: #1d4fa3;
	--blue-light: #e8eef9;
	--accent: #f2550f;
	--accent-dark: #cf4508;
	--ink: #1b2433;
	--muted: #5b6676;
	--line: #dde3ec;
	--bg: #ffffff;
	--bg-soft: #f4f6fa;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(15, 44, 99, .06), 0 6px 20px rgba(15, 44, 99, .08);
	--font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	--max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 650; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .75em 1.35em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 600; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c9d6ee; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .sep { opacity: .4; margin: 0 .6em; }
.topbar-links { display: flex; gap: 18px; }

/* ---------- Header / navigation ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 52px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 400; letter-spacing: .06em; color: var(--ink); }
.brand-text small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; }
.nav-top {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border: 0; background: none; border-radius: 8px;
	font: inherit; font-size: .97rem; font-weight: 550; color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav-top svg { width: 10px; height: 6px; opacity: .6; }
.nav-top:hover, .has-sub.open > .nav-top { background: var(--bg-soft); color: var(--blue); }
.nav-top.is-active { color: var(--blue); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.sub {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub, .has-sub.open > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--blue-light); color: var(--blue); }
.sub a.is-active { color: var(--accent-dark); font-weight: 600; }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); content: ""; transition: transform .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		display: none; max-height: calc(100vh - 120px); overflow-y: auto;
	}
	.nav-open .site-nav { display: block; }
	.site-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
	.nav-top { width: 100%; justify-content: space-between; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
	.nav-top.is-active { box-shadow: none; }
	.sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; display: none; min-width: 0; }
	.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
	.has-sub.open > .sub { display: block; }
	.nav-cta { margin: 16px 0 0; }
	.hide-sm { display: none; }
	.topbar .sep.hide-sm { display: none; }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(242,85,15,.18), transparent 60%),
		linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
	color: #fff; padding: 56px 0 52px;
}
.page-banner h1 { color: #fff; margin-bottom: .35em; }
.page-banner .lead { color: #dbe5f7; font-size: 1.12rem; max-width: 62ch; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #ffb48f; margin: 0 0 .6em; }
.banner-grid.has-image { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.banner-image { margin: 0; }
.banner-image img { display: block; width: 100%; border-radius: var(--radius); border: 4px solid rgba(255,255,255,.18); box-shadow: 0 10px 30px rgba(0,0,0,.25); background: #fff; }
@media (max-width: 760px) {
	.banner-grid.has-image { grid-template-columns: 1fr; }
	.banner-image { max-width: 320px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow { color: var(--accent-dark); }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Feature list ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feature {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px;
	box-shadow: 0 1px 2px rgba(15,44,99,.04); transition: box-shadow .2s, border-color .2s;
}
.feature:hover { box-shadow: var(--shadow); border-color: #c8d3e6; }
.feature h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .45em; }
.feature h3::before {
	content: ""; flex: none; width: 26px; height: 26px; border-radius: 7px;
	background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231d4fa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.feature.highlight { border-color: #f7c2a8; background: #fff8f4; }
.feature.highlight h3::before { background-color: #ffe4d6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.8l1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.6l-3.8 2 .7-4.3-3.1-3 4.3-.6z' fill='%23f2550f'/%3E%3C/svg%3E"); }
.feature p { margin: 0; color: var(--muted); }
.feature ul { margin: .4em 0 0; padding-left: 1.2em; color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; margin-top: 24px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8d3e6; color: var(--ink); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0 0 1em; }
.card .more { margin-top: auto; font-weight: 600; color: var(--blue); }
.card .more::after { content: " \2192"; }

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 500px at 90% 10%, rgba(242,85,15,.25), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(80,140,255,.25), transparent 60%),
		linear-gradient(135deg, #0b2150 0%, var(--navy) 45%, var(--blue) 100%);
	padding: 84px 0 92px;
}
.hero::after {
	content: ""; position: absolute; right: -60px; bottom: -80px; width: 520px; height: 420px; opacity: .08;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M4 4 L60 22 L16 44 L26 22 Z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); margin-bottom: .4em; }
.hero .lead { font-size: 1.2rem; color: #dbe5f7; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { border-left: 3px solid var(--accent); padding-left: 12px; }
.hero-stats strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.hero-stats span { color: #b9c9e6; font-size: .9rem; }
.hero-panel {
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
	border-radius: 16px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-panel h2 { color: #fff; font-size: 1.15rem; margin-bottom: .4em; }
.hero-panel p { color: #cdd9ef; font-size: .95rem; }
.hero-panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.18); margin: 20px 0; }
.hero-panel .btn { width: 100%; justify-content: center; }
.hero-panel .search-row .btn { width: auto; flex: none; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.hero-panel input { background: rgba(255,255,255,.95); }
@media (max-width: 900px) {
	.hero { padding: 56px 0 64px; }
	.hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], textarea, select {
	width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #c5cfdd; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: 3px solid rgba(29,79,163,.18); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -5000px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #e8f6ee; border: 1px solid #a9dcbd; color: #165c34; }
.alert-error { background: #fdecec; border: 1px solid #f2b8b8; color: #8a1c1c; }

/* ---------- Two column layout ---------- */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split-even { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel-soft { background: var(--bg-soft); border-color: transparent; }
.panel h2 { font-size: 1.25rem; }
.panel + .panel { margin-top: 20px; }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-date { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.news-list a:hover { color: var(--blue); text-decoration: underline; }
.news-list .is-bold a { color: var(--navy); }
.news-list p { margin: .25em 0 0; color: var(--muted); font-size: .93rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.tag-security { background: #ffe4d6; color: var(--accent-dark); }
@media (max-width: 560px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }
.article { max-width: 75ch; }
.article-meta { color: var(--muted); margin-bottom: 1.5em; }

/* ---------- Featured item ---------- */
.featured { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.featured img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 480px) { .featured { grid-template-columns: 1fr; } }

/* ---------- Contact / info lists ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list strong { font-weight: 600; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 7px 0 7px 22px; position: relative; }
.link-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 7px; height: 7px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.link-list small { color: var(--muted); }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; gap: 22px; }
.portfolio-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.portfolio-item img { border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 640px) { .portfolio-item { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { color: #c9d6ee; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(5,12,28,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 40px 60px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Sidebar app layout (Members) ---------- */
.app-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 96px; }
.side-nav h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 10px 6px; }
.side-nav a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.side-nav a:hover, .side-nav a.is-active { background: var(--blue-light); color: var(--blue); }
@media (max-width: 800px) { .app-layout { grid-template-columns: 1fr; } .side-nav { position: static; } }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-soft); font-weight: 600; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1e45; color: #aebcd6; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #dfe7f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-logo { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; color: #fff; letter-spacing: .08em; margin: 0 0 .3em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Dark highlight section (home: fiber) ---------- */
.section-dark { background: linear-gradient(135deg, #0b2150 0%, var(--navy) 55%, var(--navy-2) 100%); color: #dbe5f7; }
.section-dark h2 { color: #fff; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.section-dark .lead { color: #dbe5f7; font-size: 1.12rem; }
.section-dark .eyebrow { color: #ffb48f; }
.fiber-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fiber-points li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; }
.fiber-points strong { display: block; color: #fff; font-size: 1.05rem; }
.fiber-points span { color: #b9c9e6; font-size: .95rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 20px; }
