/* ==========================================================================
   SOUTHEASTERN CONSULTING SERVICES, INC. (SCSI)
   Modern Design System & Sleek Glassmorphism Stylesheet
   Compatible with DreamHost Apache Hosting
   Palette:
     - Slate: #0F1A1B
     - Tennessee Orange: #FF6A00
     - White: #FFFFFF
     - Mist Gray: #E6E9EE
   Typography:
     - Headlines: 'Sora', sans-serif
     - Body: 'Inter', sans-serif
   ========================================================================== */

/* --- 1. Root Variables & Color Schemes --- */
:root {
  /* Brand Core Colors */
  --brand-slate: #0F1A1B;
  --brand-orange: #FF6A00;
  --brand-orange-hover: #E55F00;
  --brand-orange-light: rgba(255, 106, 0, 0.12);
  --brand-orange-glow: rgba(255, 106, 0, 0.35);
  --brand-white: #FFFFFF;
  --brand-mist: #E6E9EE;

  /* Typography */
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Theme Tokens: Light Mode (Default) --- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg-primary: #F3F6F9;
  --bg-secondary: rgba(243, 246, 249, 0.85);
  --bg-elevated: #FFFFFF;
  --bg-alt: rgba(237, 242, 247, 0.75);
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-ribbon: #0F1A1B;
  --text-ribbon: #FFFFFF;

  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-hover: rgba(255, 255, 255, 0.92);
  --border-glass: rgba(255, 255, 255, 0.85);
  --border-card: rgba(15, 26, 27, 0.09);
  --border-subtle: #E2E8F0;
  --border-focus: #FF6A00;

  --glass-shadow: 0 8px 32px rgba(15, 26, 27, 0.05), 0 2px 8px rgba(15, 26, 27, 0.03);
  --glass-shadow-hover: 0 16px 40px rgba(15, 26, 27, 0.09), 0 0 24px rgba(255, 106, 0, 0.16);

  --text-primary: #0F1A1B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(15, 26, 27, 0.07);
  --badge-bg: rgba(255, 106, 0, 0.09);
  --badge-border: rgba(255, 106, 0, 0.28);
  --accent-tint: rgba(15, 26, 27, 0.04);

  /* Atmospheric Background Glows & Architectural Grid */
  --grid-dot: rgba(15, 26, 27, 0.12);
  --grid-opacity: 0.75;
  --glow-primary: rgba(255, 106, 0, 0.12);
  --glow-secondary: rgba(15, 26, 27, 0.06);
  --glow-tertiary: rgba(255, 106, 0, 0.07);
}

/* --- Theme Tokens: Dark Mode --- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #070D0E;
  --bg-secondary: rgba(12, 22, 23, 0.85);
  --bg-elevated: #152426;
  --bg-alt: rgba(16, 28, 30, 0.7);
  --bg-card: rgba(17, 30, 32, 0.65);
  --bg-card-hover: rgba(23, 40, 43, 0.85);
  --bg-ribbon: #040808;
  --text-ribbon: #E6E9EE;

  --bg-glass: rgba(17, 30, 32, 0.62);
  --bg-glass-hover: rgba(23, 40, 43, 0.85);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #FF6A00;

  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.25);
  --glass-shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.52), 0 0 28px rgba(255, 106, 0, 0.22);

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #8E9FA3;
  --text-inverse: #0F1A1B;

  --nav-bg: rgba(11, 20, 21, 0.82);
  --nav-border: rgba(255, 255, 255, 0.08);
  --badge-bg: rgba(255, 106, 0, 0.16);
  --badge-border: rgba(255, 106, 0, 0.38);
  --accent-tint: rgba(255, 255, 255, 0.03);

  /* Atmospheric Background Glows & Architectural Grid */
  --grid-dot: rgba(255, 255, 255, 0.1);
  --grid-opacity: 0.85;
  --glow-primary: rgba(255, 106, 0, 0.16);
  --glow-secondary: rgba(19, 52, 57, 0.42);
  --glow-tertiary: rgba(255, 106, 0, 0.11);
}

/* Fallback for OS Dark Mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-primary: #070D0E;
    --bg-secondary: rgba(12, 22, 23, 0.85);
    --bg-elevated: #152426;
    --bg-alt: rgba(16, 28, 30, 0.7);
    --bg-card: rgba(17, 30, 32, 0.65);
    --bg-card-hover: rgba(23, 40, 43, 0.85);
    --bg-ribbon: #040808;
    --text-ribbon: #E6E9EE;

    --bg-glass: rgba(17, 30, 32, 0.62);
    --bg-glass-hover: rgba(23, 40, 43, 0.85);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-card: rgba(255, 255, 255, 0.07);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #FF6A00;

    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.25);
    --glass-shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.52), 0 0 28px rgba(255, 106, 0, 0.22);

    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #8E9FA3;
    --text-inverse: #0F1A1B;

    --nav-bg: rgba(11, 20, 21, 0.82);
    --nav-border: rgba(255, 255, 255, 0.08);
    --badge-bg: rgba(255, 106, 0, 0.16);
    --badge-border: rgba(255, 106, 0, 0.38);
    --accent-tint: rgba(255, 255, 255, 0.03);

    --grid-dot: rgba(255, 255, 255, 0.1);
    --grid-opacity: 0.85;
    --glow-primary: rgba(255, 106, 0, 0.16);
    --glow-secondary: rgba(19, 52, 57, 0.42);
    --glow-tertiary: rgba(255, 106, 0, 0.11);
  }
}

/* --- 2. CSS Reset & Base Elements --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- Ambient Architectural Grid & Atmospheric Radiant Background --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(var(--grid-dot) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, var(--glow-primary) 0%, transparent 42%),
    radial-gradient(circle at 82% 55%, var(--glow-secondary) 0%, transparent 48%),
    radial-gradient(circle at 50% 88%, var(--glow-tertiary) 0%, transparent 46%);
  background-size: 34px 34px, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  opacity: var(--grid-opacity);
  transition: opacity var(--transition-normal);
}

main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* --- 3. Typography Styles --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

p.lead {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 400;
}

.text-orange {
  color: var(--brand-orange);
}

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

/* --- 4. Layout & Containers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container-narrow {
  max-width: 860px;
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- 5. Navigation Bar (Frosted Glass Header) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 106, 0, 0.25));
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-tagline-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-orange);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--brand-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: scale(1.06);
  box-shadow: 0 0 14px var(--brand-orange-light);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Hamburger */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  width: 100%;
  background-color: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* --- 6. Buttons & Badges --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #E65A00 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.38);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF7B1A 0%, var(--brand-orange) 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.52);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  box-shadow: var(--glass-shadow);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}

.btn-portal {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
  box-shadow: 0 2px 10px var(--brand-orange-light);
}

.btn-portal:hover {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 6px 20px var(--brand-orange-glow);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--badge-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  color: var(--brand-orange);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.1);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-orange);
  box-shadow: 0 0 10px var(--brand-orange);
}

/* --- 7. Hero Section --- */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-xl);
}

.hero-content {
  max-width: 680px;
}

.hero-title-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: var(--space-md);
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-emblem-wrap {
  width: 100%;
  max-width: 380px;
  padding: var(--space-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-hover);
  position: relative;
  transition: transform var(--transition-slow);
}

.hero-emblem-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.5), transparent 60%, rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-emblem-wrap:hover {
  transform: translateY(-6px);
}

.hero-emblem-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18));
}

/* --- 8. Brand Execution Ribbon --- */
.brand-ribbon {
  background-color: var(--bg-ribbon);
  color: var(--text-ribbon);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 106, 0, 0.35);
  border-bottom: 1px solid rgba(255, 106, 0, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ribbon-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ribbon-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-orange);
}

/* --- 9. Grid Systems & Sleek Clear Glass Cards --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Modern Sleek Glass Card */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-5px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--brand-orange-light);
  border: 1px solid rgba(255, 106, 0, 0.2);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: transform var(--transition-fast);
}

.card:hover .card-icon {
  transform: scale(1.08);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.card-link {
  margin-top: var(--space-md);
  color: var(--brand-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--brand-orange-hover);
  gap: 10px;
}

/* --- 10. Service Lanes Highlights --- */
.service-lane-card {
  border-left: 4px solid var(--brand-orange);
}

.service-meta-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 6px;
}

/* --- 11. System Values Matrix --- */
.system-value-card {
  text-align: left;
  border-top: 3px solid var(--border-glass);
}

.system-value-card:hover {
  border-top-color: var(--brand-orange);
}

/* --- 12. Contact Form & Portal Gateway Form --- */
.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-alt);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: var(--bg-elevated);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-orange-light);
}

/* Modern Web Guidance :user-valid and :user-invalid states */
.form-input:user-valid,
.form-textarea:user-valid {
  border-color: #10B981;
}

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  display: none;
}

.form-alert.success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  display: block;
}

.form-alert.error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  display: block;
}

/* Anti-spam Honeypot */
.honeypot-field {
  position: absolute;
  opacity: 0;
  z-index: -1;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* --- 13. Portal Gateway Page Layout (Glass Container) --- */
.portal-page-wrap {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.portal-box {
  width: 100%;
  max-width: 540px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--glass-shadow-hover);
  text-align: center;
  position: relative;
}

.portal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
}

.portal-logo-header {
  margin-bottom: var(--space-md);
  display: inline-block;
}

.portal-logo-img {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(255, 106, 0, 0.3));
}

.portal-status-callout {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--brand-orange);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.tenant-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: var(--space-md) 0;
  text-align: left;
}

.tenant-chip {
  background: var(--bg-alt);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.tenant-chip:hover {
  border-color: var(--brand-orange);
  background: var(--bg-glass-hover);
}

.tenant-chip strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.tenant-chip span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- 14. Footer --- */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.95rem;
  margin-top: var(--space-sm);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-tagline-quote {
  font-family: var(--font-heading);
  color: var(--brand-orange);
  font-weight: 600;
}

/* --- 15. Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .tenant-preview-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ribbon-items {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ribbon-dot {
    display: none;
  }
}

/* ==============================================================================
   Newsletter Subscription Widgets (Global & Inline)
   ============================================================================== */
.newsletter-banner {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  margin: var(--space-3xl) 0;
}

.newsletter-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
}

.newsletter-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 540px;
  margin: 1.5rem auto 0 auto;
}

.newsletter-form-inline {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.newsletter-btn {
  background: var(--brand-orange);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.newsletter-btn:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.35);
}

.newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.newsletter-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 8px;
  display: none;
  text-align: left;
}

.newsletter-alert.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22C55E;
}

.newsletter-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #EF4444;
}

/* ==============================================================================
   Insights Hub & Article Cards
   ============================================================================== */
.insights-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-2xl);
  justify-content: center;
}

.filter-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--brand-orange);
  background: var(--bg-glass-hover);
}

.filter-btn.active {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
  box-shadow: 0 2px 10px rgba(255, 106, 0, 0.3);
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-card:hover h3 {
  color: var(--brand-orange);
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--brand-orange);
}

.article-read-more {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-orange);
  transition: var(--transition-fast);
}

.article-card:hover .article-read-more svg {
  transform: translateX(4px);
}

/* ==============================================================================
   Single Article Reading Layout
   ============================================================================== */
.article-reading-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-4xl) var(--space-md);
}

.article-header {
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-xl);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.article-back-link:hover {
  color: var(--brand-orange);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 0.6rem;
}

.article-content blockquote {
  border-left: 4px solid var(--brand-orange);
  background: var(--bg-glass);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-takeaway-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.article-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  margin: 3rem 0;
  font-size: 0.9rem;
}

/* ==============================================================================
   Portal Publisher Layout
   ============================================================================== */
.publisher-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 var(--space-md);
}

.publisher-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--glass-shadow);
  margin-bottom: 2rem;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
}

.tab-btn.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

.subscriber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.subscriber-table th,
.subscriber-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.subscriber-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .newsletter-form-inline {
    flex-direction: column;
  }
  .newsletter-btn {
    width: 100%;
  }
}

