
:root {
  --navy: #0b1530;
  --navy-soft: #1f2937;
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --accent-gold: #b49a4c;
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --bg-soft: #e5e7eb;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --text-main: #111827;
  --text-muted: #4b5563;
  --shadow-soft: 0 18px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --transition-fast: 180ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 0% 0%, #ffffff 0, #f3f4ff 42%, #eef2ff 100%);
  color: var(--text-main);
  min-height: 100vh;
}


.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Visually hidden heading for a11y */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, #ffffff 0%, #f9fafb 60%, #eef2ff 100%);
  border-bottom: 1px solid rgba(209,213,219,0.9);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Menu toggle */

.menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at 30% 0, rgba(96,165,250,0.45), rgba(15,23,42,0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15,23,42,0.9);
  border-color: rgba(248,250,252,0.7);
}

.menu-toggle .bar {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}

.menu-toggle .bar:nth-child(1) { top: 13px; }
.menu-toggle .bar:nth-child(2) { top: 19px; }
.menu-toggle .bar:nth-child(3) { top: 25px; }

body.sidebar-open .menu-toggle .bar {
  top: 50%;
}

body.sidebar-open .menu-toggle .bar:nth-child(1) {
  transform: translate(-2px, -4px) rotate(35deg);
}
body.sidebar-open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}
body.sidebar-open .menu-toggle .bar:nth-child(3) {
  transform: translate(-2px, 4px) rotate(-35deg);
}

/* Sidebar */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.12);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 35;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}


.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 80vw);
  height: 100%;
  background: rgba(15,23,42,0.98);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -24px 0 55px rgba(0,0,0,0.85);
  transform: translateX(100%);
  transition: transform 220ms ease-out;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding-top: 4.5rem;
}

body.sidebar-open .sidebar {
  transform: translateX(0%);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem 1.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #e5e7eb; /* light grey text on dark blue */
  font-size: 0.95rem;
  line-height: 1.4;
}

.nav-link .nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(37,99,235,0.5), rgba(15,23,42,1));
  box-shadow: 0 8px 18px rgba(15,23,42,0.8);
}

.nav-link:hover {
  background: linear-gradient(90deg, rgba(37,99,235,0.28), rgba(56,189,248,0.12));
  border-color: rgba(148,163,184,0.75);
  transform: translateX(-2px);
}

.nav-link-accent {
  margin-top: 0.75rem;
  border-color: rgba(180,154,76,0.85);
  background: linear-gradient(135deg, rgba(180,154,76,0.18), rgba(24,24,27,0.85));
}

.nav-link-accent:hover {
  background: linear-gradient(135deg, rgba(180,154,76,0.4), rgba(24,24,27,0.96));
}

/* Layout */

.page-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 3.25rem;
  flex: 1;
}

/* Sections */

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text-main);
}

.section-header h2 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 2.1vw + 1.1rem, 2.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.section-header h2::before {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  opacity: 0.9;
}

.section-header p {
  max-width: 620px;
  margin-top: 0.75rem;
  color: #1d4ed8; /* Kyber blue */
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  margin-bottom: 3.25rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209,213,219,0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(129,140,248,0.04), transparent 55%);
  mix-blend-mode: normal;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: radial-gradient(circle at 0 0, rgba(234,179,8,0.21), rgba(15,23,42,0.96));
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 2.4vw + 1.7rem, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text-main);
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  color: #1d4ed8; /* Kyber blue for strong contrast */
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Buttons */

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
  color: #ffffff;
  border: 1px solid #1d4ed8;
  box-shadow: 0 10px 22px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(37,99,235,0.75);
}

.btn-ghost {
  border-color: rgba(148,163,184,0.6);
  color: #e5e7eb;
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
}

.btn-ghost:hover {
  border-color: rgba(248,250,252,0.75);
  background: radial-gradient(circle at 100% 0, rgba(15,23,42,0.98), rgba(15,23,42,0.9));
}

/* Subtle call-to-action animation for Learn About Kyber */
.btn-ghost-animated {
  position: relative;
  overflow: hidden;
}

.btn-ghost-animated::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 0%, rgba(37,99,235,0.18) 40%, transparent 80%);
  transform: translateX(-140%);
  transition: transform 700ms ease;
}

.btn-ghost-animated:hover::after {
  transform: translateX(140%);
}

@media (prefers-reduced-motion: reduce) {
  .btn-ghost-animated::after {
    transition: none;
  }
}


/* Sector grid */

.sector-grid-section {
  margin-bottom: 3.25rem;
}

.sector-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sector-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(209,213,219,0.95);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 12px 26px rgba(15,23,42,0.10);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background 220ms ease-out;
}
.sector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-left: 4px solid rgba(37,99,235,0.45);
  pointer-events: none;
}

.sector-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% 120%, rgba(15,118,110,0.5), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.16);
  border-color: rgba(148,163,184,0.95);
  background: #f9fafb;
}

.sector-card:hover::after {
  opacity: 1;
}

/* IoT card accent */
.sector-card-iot::before {
  border-left-color: rgba(37,99,235,0.85);
}

.sector-card-iot::after {
  background: radial-gradient(circle at 120% 120%, rgba(37,99,235,0.35), transparent 60%);
}


.sector-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  background: radial-gradient(circle at 30% 0, rgba(180,154,76,0.2), rgba(15,23,42,1));
  box-shadow: 0 10px 25px rgba(15,23,42,0.9);
}

.sector-card h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.sector-card p {
  margin: 0;
  color: var(--text-muted);
}

/* Who we are */

.who-we-are-section {
  margin-bottom: 3.25rem;
}

.who-we-are-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
}

.who-we-are-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.who-we-are-text .btn {
  margin-top: 0.75rem;
}

.who-we-are-photo-placeholder .photo-frame {
  border-radius: 20px;
  border: 1px dashed rgba(148,163,184,0.6);
  padding: 2.2rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: radial-gradient(circle at 0 0, rgba(37,99,235,0.18), rgba(15,23,42,0.9));
}

/* Announcements preview */

.announcements-preview {
  margin-bottom: 3.25rem;
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-card {
  position: relative;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(209,213,219,0.95);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
}

.announcement-card h3 {
  font-size: 0.98rem;
  margin: 0 0 0.15rem;
  color: var(--navy-soft);
}

.announcement-card p {
  margin: 0;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-card.faded {
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}


.section-actions {
  margin-top: 1.4rem;
}

/* Articles carousel */

.articles-preview {
  margin-bottom: 3.25rem;
}

.articles-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.55);
  background: radial-gradient(circle at 0 0, rgba(30,64,175,0.35), rgba(15,23,42,0.98));
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 3.2rem;
  overflow: hidden;
}

.articles-track {
  display: flex;
  transition: transform 260ms ease-out;
  will-change: transform;
}

.article-card {
  flex: 0 0 100%;  /* each card takes full width */
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.article-card.active {
  opacity: 1;
  transform: translateX(0);
}

.article-card h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  margin-top: 0;
}

.article-card p {
  color: var(--text-muted);
}

.article-image-placeholder {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.carousel-control:hover {
  background: rgba(15,23,42,1);
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.75);
}

.carousel-control.prev { left: 0.95rem; }
.carousel-control.next { right: 0.95rem; }

/* CTA */

.cta-section {
  margin-top: 2.5rem;
  text-align: center;
  padding: 2.2rem 1.4rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.55);
  background: radial-gradient(circle at 50% 0, rgba(30,64,175,0.46), rgba(15,23,42,0.95));
  box-shadow: var(--shadow-soft);
}

.cta-section h2 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 0.95rem;
}

/* Sector pages */

.sector-hero {
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 2.4rem;
  margin-bottom: 2.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.55);
}

.sector-hero-healthcare {
  background: radial-gradient(circle at 0 0, rgba(59,130,246,0.4), rgba(15,23,42,0.98));
}

.sector-hero-energy {
  background: radial-gradient(circle at 0 0, rgba(250,204,21,0.3), rgba(15,23,42,0.98));
}

.sector-hero-taxlaw {
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.5), rgba(15,23,42,0.98));
}

.sector-hero-smallbiz {
  background: radial-gradient(circle at 0 0, rgba(34,197,94,0.28), rgba(15,23,42,0.98));
}

.sector-hero-networkdesign {
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.3), rgba(15,23,42,0.98));
}

.sector-hero-technology {
  background: radial-gradient(circle at 0 0, rgba(251,113,133,0.28), rgba(15,23,42,0.98));
}

.sector-hero-content {
  max-width: 720px;
}

.sector-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: radial-gradient(circle at 30% 0, rgba(248,250,252,0.18), rgba(15,23,42,1));
  box-shadow: 0 12px 25px rgba(0,0,0,0.85);
}

/* Hide empty icon placeholders (prevents floating circles when icons are removed) */
.sector-hero-icon:empty,
.sector-icon:empty,
.nav-link .nav-icon:empty {
  display: none !important;
}


.sector-hero-title {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.9rem;
  margin: 0 0 0.75rem;
}

.sector-hero-text {
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.sector-services {
  margin-bottom: 2.8rem;
}

.sector-services-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
}

.services-column {
  padding: 1.4rem 1.5rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  box-shadow: 0 16px 35px rgba(0,0,0,0.75);
}

.services-column.callout {
  border-color: rgba(180,154,76,0.9);
  background: radial-gradient(circle at 0 0, rgba(180,154,76,0.28), rgba(15,23,42,0.98));
}

.services-column h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  margin-top: 0;
}

.services-column ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.services-column li {
  margin-bottom: 0.45rem;
}

/* Sector articles */

.sector-articles {
  margin-bottom: 2.8rem;
}

/* About */

.about-intro p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-photo .photo-frame.large {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148,163,184,0.7);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0 0, rgba(37,99,235,0.24), rgba(15,23,42,0.96));
  color: var(--text-muted);
}

.about-team {
  margin-top: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.8rem;
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  margin: 0 auto 0.75rem;
  border: 2px dashed rgba(148,163,184,0.8);
  background: radial-gradient(circle at 0 0, rgba(37,99,235,0.25), rgba(15,23,42,0.9));
}

/* Announcements page */

.announcements-page .announcement-list.full {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.announcement-card.expandable {
  border-radius: 18px;
  padding: 1rem 1.2rem 0.6rem;
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.announcement-card.expandable header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.announcement-card.expandable h3 {
  margin: 0;
}

.announcement-card.expandable time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.announcement-card.expandable .announcement-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease-out;
}

.announcement-card.expandable.expanded {
  border-color: rgba(248,250,252,0.9);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
  transform: translateY(-2px);
}

.announcement-card.expandable.expanded .announcement-body {
  margin-top: 0.6rem;
  max-height: 500px;
}

/* Articles page */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7rem;
  margin-top: 1.5rem;
}

.articles-grid .article-card {
  flex: 0 0 100%;  /* each card takes full width */
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: #bfdbfe;
}

.inline-link::after {
  content: "→";
  font-size: 0.85em;
}

.inline-link:hover {
  color: #e5e7eb;
}

/* Contact */

.contact-form {
  margin-top: 1.5rem;
  max-width: 520px;
  padding: 1.6rem 1.5rem 1.8rem;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at 0 0, rgba(37,99,235,0.36), rgba(15,23,42,0.98));
  box-shadow: var(--shadow-soft);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}


.form-field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.8);
  padding: 0.7rem 0.8rem;
  background: rgba(15,23,42,0.9);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(56,189,248,0.9);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.8);
}

.contact-logo {
  margin-top: 2.2rem;
}

.contact-logo img {
  height: 70px;
  width: auto;
}

/* Footer */

.site-footer {
  background: #f3f4f6;
  border-top: 1px solid rgba(209,213,219,0.9);
  color: var(--text-muted);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  display: block;
  max-height: 32px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(37,99,235,0.35), rgba(15,23,42,1));
  color: #e5e7eb;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.85);
  border-color: rgba(248,250,252,0.9);
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.hosting-banner {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(15,23,42,1), rgba(37,99,235,0.4));
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.85rem;
}

.banner-text {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.banner-flag {
  font-size: 1.2rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  margin-bottom: 3.25rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209,213,219,0.9);
}

  .who-we-are-layout,
  .sector-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .articles-carousel {
    padding-inline: 2.25rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .page-content {
    padding-inline: 1rem;
  }

  .hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  margin-bottom: 3.25rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209,213,219,0.9);
}

  .articles-carousel {
    padding-inline: 2.1rem;
  }

  .cta-section {
    padding-inline: 1.4rem;
  }

  .hosting-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* Sidebar refinements */
.site-sidebar {
  max-height: 100vh;
  overflow-y: auto;
  background: #0b1530; /* dark navy */
  box-shadow: 0 18px 40px rgba(15,23,42,0.75);
  color: #e5e7eb;
}

.sidebar-inner {
  padding-top: 1.25rem;
}

.nav-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 1.1rem 0 0.45rem;
  padding: 0 0.9rem;
  color: #9ca3af; /* light grey */
}

.nav-group-title:first-of-type {
  margin-top: 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #e5e7eb; /* light grey text on dark blue */
  font-size: 0.95rem;
  line-height: 1.4;
}

.nav-link .nav-text {
  font-weight: 500;
}

/* Close button inside sidebar */
.sidebar-close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.8);
  color: #0f172a;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  margin: 0 0.75rem 0.5rem auto;
  cursor: pointer;
}

.sidebar-close:hover {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15,23,42,0.15);
}


.site-sidebar {
  max-height: 100vh;
  overflow-y: auto;
  background: #0b1530; /* dark navy */
  box-shadow: 0 18px 40px rgba(15,23,42,0.75);
  color: #e5e7eb;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, #ffffff 0%, #f9fafb 60%, #eef2ff 100%);
  border-bottom: 1px solid rgba(209,213,219,0.9);
}

.section-card,
.sector-hero,
.sector-hero-healthcare,
.sector-hero-energy,
.sector-hero-taxlaw,
.sector-hero-smallbusiness,
.sector-hero-networkdesign,
.sector-hero-technology {
  background: var(--bg-elevated);
  border-radius: 20px;
  border: 1px solid rgba(209,213,219,0.9);
  box-shadow: 0 16px 28px rgba(15,23,42,0.06);
}
}
}

.page-content {
  background: transparent;
}

.main-layout-shell {
  background: transparent;
}

.nav-link:hover {
  background: #e5e7eb;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(209,213,219,1);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.contact-form label {
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  background: #ffffff;
  border: 1px solid rgba(209,213,219,1);
  color: var(--text-main);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.site-footer a {
  color: #111827;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.sector-card p,
.section-card p,
.sector-hero p {
  color: var(--text-muted);
}

.nav-link:hover {
  background: rgba(148,163,184,0.25);
}

/* GLOBAL DARK TEXT OVERRIDES */
body, p, li, h1, h2, h3, h4, h5, h6, .hero-subtitle, .section-header p, .subtitle {
  color: #0f172a !important; /* very dark slate */
}

/* Remove any accidental white/light text on white bg */
* {
  --text-main: #0f172a;
  --text-muted: #334155;
}

/* Announcement titles darker */
.announcement-card h3 {
  color: #0f172a !important;
}

/* Article card text */
.article-card h3, .article-card p {
  color: #0f172a !important;
}

/* Ensure homepage section descriptions dark */
.section-description, .section-subtitle {
  color: #0f172a !important;
}


/* Team photos: show real headshots (circular crop) */
.team-photo {
  overflow: hidden;
  border-style: solid;
  border-color: rgba(148,163,184,0.55);
  background: none;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* announcements tab icon */
.nav-link--stacked{
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.nav-link--stacked .nav-icon{
  width: 22px;
  height: 22px;
  display: block;
}


/* ============================================================
   Professional polish additions (layout consistency + nav state)
   ============================================================ */

.nav-link {
  border: 1px solid transparent;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(37,99,235,0.42), rgba(56,189,248,0.16));
  border-color: rgba(148,163,184,0.85);
  box-shadow: 0 10px 22px rgba(15,23,42,0.35);
}

/* Keep the carousel contained and comfortable on smaller screens */
@media (max-width: 720px) {
  .articles-carousel {
    padding: 1.25rem 1.25rem;
  }
  .carousel-control {
    width: 40px;
    height: 40px;
  }
}

.articles-track {
  gap: 0;
}

.article-card {
  min-width: 100%;
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .articles-track {
    transition: none !important;
  }
  .nav-link,
  .btn {
    transition: none !important;
  }
}

