/* ==========================================================================
   G.S. Enterprises — Corporate & Internal Operations Design System
   Palette:
     Pure White:        #FFFFFF
     Soft Off-White:    #F8FAFC
     Light Sky Blue:    #E0F2FE / #38BDF8
     Deep Navy / Slate: #0F172A
     Primary Blue CTA:  #0284C7
   ========================================================================== */

:root {
  --bg-white: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-sky: #E0F2FE;
  --accent-sky: #38BDF8;
  --primary-blue: #0284C7;
  --primary-blue-hover: #0369A1;
  --navy: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --border-hairline: #E2E8F0;
  --border-strong: #CBD5E1;

  --success-text: #15803D;
  --success-bg: #DCFCE7;
  --warning-text: #B45309;
  --warning-bg: #FEF3C7;
  --danger-text: #B91C1C;
  --danger-bg: #FEE2E2;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-modal: 0 24px 48px -12px rgba(15, 23, 42, 0.22);

  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg-white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Shared Buttons & Inputs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 160ms var(--ease-settle),
              border-color 160ms var(--ease-settle),
              color 160ms var(--ease-settle),
              transform 160ms var(--ease-settle);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-blue-hover);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  border-color: var(--slate-500);
}

.btn-ghost {
  background-color: transparent;
  color: var(--slate-700);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  color: var(--navy);
}

.btn-danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  border-color: #FECACA;
}

.btn-danger:hover:not(:disabled) {
  background-color: #FECACA;
}

.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.field-control {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  color: var(--navy);
  font-size: 14px;
  transition: border-color 150ms var(--ease-settle), box-shadow 150ms var(--ease-settle);
}

.field-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.field-control.is-invalid {
  border-color: var(--danger-text);
}

.field-error {
  font-size: 12px;
  color: var(--danger-text);
  min-height: 16px;
}

textarea.field-control {
  min-height: 108px;
  resize: vertical;
}

/* ==========================================================================
   Public Website Layout (`index.html`)
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Top Bar Contract: 3 zones separated cleanly, single-line controls */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 68px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 0;
  transition: color 150ms var(--ease-settle);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-settle);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--navy);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-white);
  padding: 16px 24px 20px;
}

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

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-drawer-links a {
  display: block;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hairline);
}

/* Hero Section */
.hero-section {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-hairline);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-600);
  max-width: 56ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--slate-500);
  padding-top: 8px;
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blueprint-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.blueprint-svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.blueprint-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
}

.blueprint-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
}

.blueprint-meta-val {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.hero-kpi-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.hero-kpi-cell {
  padding: 20px 24px;
  border-right: 1px solid var(--border-hairline);
}

.hero-kpi-cell:last-child {
  border-right: none;
}

.hero-kpi-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.hero-kpi-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--slate-600);
}

/* Section Rhythm */
.section {
  padding: 80px 0;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.16;
  text-wrap: balance;
}

.section-desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--slate-600);
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: stretch;
}

.media-frame-43 {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
}

.qa-pipeline-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qa-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.qa-steps-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.qa-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-sky);
  color: var(--primary-blue-hover);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.qa-steps-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--navy);
}

.qa-steps-list p {
  font-size: 13px;
  color: var(--slate-600);
  margin-top: 2px;
}

.about-specs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.about-spec-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-spec-item p {
  font-size: 14px;
  color: var(--slate-600);
}

/* Services Asymmetric Editorial Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 180ms var(--ease-settle);
}

.service-card:hover {
  border-color: var(--accent-sky);
}

.service-card-wide {
  grid-column: span 7;
}

.service-card-narrow {
  grid-column: span 5;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

.service-card p {
  font-size: 15px;
  color: var(--slate-600);
}

.service-meta {
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--slate-500);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Portfolio Filter & Gallery */
.portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.segmented-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.filter-tab {
  min-height: 36px;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease-settle), color 150ms var(--ease-settle);
}

.filter-tab:hover {
  color: var(--navy);
}

.filter-tab.is-active {
  background-color: var(--bg-white);
  color: var(--primary-blue);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease-settle);
}

.portfolio-card:hover {
  border-color: var(--primary-blue);
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-hairline);
}

.schematic-stage {
  width: 100%;
  height: 100%;
  padding: 14px 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image:
    linear-gradient(to right, rgba(226, 232, 240, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.55) 1px, transparent 1px);
  background-size: 20px 20px;
}

.schematic-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
}

.schematic-svg {
  width: 100%;
  height: auto;
  max-height: 190px;
}

.portfolio-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.meta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}

.portfolio-body h3 {
  font-size: 19px;
  font-weight: 700;
}

.portfolio-body p {
  font-size: 14px;
  color: var(--slate-600);
}

.portfolio-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spec-readout {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-700);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--primary-blue);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-700);
}

.testimonial-author {
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-role {
  font-size: 13px;
  color: var(--slate-500);
}

/* SEO Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card p {
  font-size: 14px;
  color: var(--slate-600);
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
}

/* Contact & Quote Section */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.contact-info-panel {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-detail-block p,
.contact-detail-block a {
  font-size: 14px;
  color: var(--slate-600);
  text-decoration: none;
}

.contact-detail-block a:hover {
  color: var(--primary-blue);
}

.quote-form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 32px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid var(--border-hairline);
}

.status-banner.is-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border-color: #BBF7D0;
}

.status-banner.is-error {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  border-color: #FECACA;
}

.status-banner.is-info {
  background-color: var(--bg-sky);
  color: var(--navy);
  border-color: #BAE6FD;
}

/* Quiet Footer */
.site-footer {
  background-color: var(--navy);
  color: #CBD5E1;
  padding: 48px 0 36px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.14);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 14px;
  color: #94A3B8;
  max-width: 42ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 14px;
  color: #CBD5E1;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-sky);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #94A3B8;
}

/* Accessible Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background-color: rgba(15, 23, 42, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-white);
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--bg-subtle);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
}

.spec-table th {
  width: 38%;
  color: var(--slate-600);
  font-weight: 600;
}

.spec-table td {
  color: var(--navy);
  font-family: var(--font-mono);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-700);
}

.article-body h4 {
  font-size: 17px;
  margin-top: 6px;
  color: var(--navy);
}

/* Fallback container when image fails */
.img-fallback {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-sky) 0%, var(--bg-subtle) 100%);
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Internal Staff & Intern Portal (`portal.html`)
   ========================================================================== */

.portal-body {
  background-color: var(--bg-subtle);
  min-height: 100vh;
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, #EEF6FB 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-brand h1 {
  font-size: 24px;
  font-weight: 700;
}

.auth-brand p {
  font-size: 14px;
  color: var(--slate-600);
}

.demo-box {
  padding: 14px 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.demo-box-desc {
  font-size: 12px;
  color: var(--slate-600);
}

.demo-btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* Portal App Shell */
.portal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.portal-shell[hidden],
.auth-screen[hidden] {
  display: none;
}

.portal-sidebar {
  background-color: var(--bg-white);
  border-right: 1px solid var(--border-hairline);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-brand {
  padding: 4px 8px;
}

.sidebar-brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.sidebar-brand-sub {
  font-size: 12px;
  color: var(--slate-500);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-tab {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 140ms var(--ease-settle), color 140ms var(--ease-settle);
}

.sidebar-tab:hover {
  background-color: var(--bg-subtle);
  color: var(--navy);
}

.sidebar-tab.is-active {
  background-color: var(--bg-sky);
  color: var(--primary-blue-hover);
  border-color: #BAE6FD;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-summary {
  padding: 0 6px;
}

.user-summary-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.user-summary-meta {
  font-size: 12px;
  color: var(--slate-500);
}

.portal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-topbar {
  height: 64px;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-mobile-nav-btn {
  display: none;
}

.portal-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1280px;
  width: 100%;
}

.view-panel[hidden] {
  display: none;
}

/* Dashboard KPI Strip & Surfaces */
.kpi-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
}

.stat-value {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.stat-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--slate-500);
}

.panel-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* High-density Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background-color: var(--bg-subtle);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background-color: var(--bg-subtle);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .num-col {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.data-table td.font-mono {
  white-space: nowrap;
}

/* Semantic Status Text (Not generic pills, explicit readable indicators) */
.state-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.state-success {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.state-warning {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.state-danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

.state-neutral {
  background-color: var(--bg-subtle);
  color: var(--slate-700);
  border: 1px solid var(--border-hairline);
}

.state-info {
  background-color: var(--bg-sky);
  color: var(--primary-blue-hover);
}

/* Split Layout for Tasks + Daily Work Reports */
.tasks-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}

/* Real-Time Chat Layout */
.chat-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  min-height: 580px;
  overflow: hidden;
}

.chat-channels-col {
  border-right: 1px solid var(--border-hairline);
  background-color: var(--bg-subtle);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-group-label {
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

.chat-channel-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.chat-room-btn {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-room-btn:hover {
  background-color: rgba(2, 132, 199, 0.08);
  color: var(--navy);
}

.chat-room-btn.is-active {
  background-color: var(--bg-sky);
  color: var(--primary-blue-hover);
}

.chat-main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 580px;
}

.chat-room-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-room-title {
  font-size: 15px;
  font-weight: 700;
}

.chat-room-sub {
  font-size: 12px;
  color: var(--slate-500);
}

.chat-messages-feed {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  padding: 12px 14px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-msg.is-own {
  background-color: #F0F9FF;
  border-color: #BAE6FD;
}

.chat-msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.chat-msg-sender {
  font-weight: 700;
  color: var(--navy);
}

.chat-msg-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-500);
  margin-left: auto;
}

.chat-msg-text {
  font-size: 14px;
  color: var(--slate-700);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-attachment-bar {
  margin-top: 4px;
  padding: 8px 12px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.chat-composer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-selected-file {
  font-size: 12px;
  color: var(--primary-blue-hover);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--slate-500);
  font-size: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-split,
  .about-grid,
  .contact-layout,
  .tasks-split {
    grid-template-columns: 1fr;
  }

  .service-card-wide,
  .service-card-narrow {
    grid-column: span 12;
  }

  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-row-4,
  .hero-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-kpi-cell:nth-child(2) {
    border-right: none;
  }

  .hero-kpi-cell:nth-child(1),
  .hero-kpi-cell:nth-child(2) {
    border-bottom: 1px solid var(--border-hairline);
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    display: none;
  }

  .portal-sidebar.is-open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: 268px;
    z-index: 60;
    box-shadow: var(--shadow-modal);
  }

  .portal-mobile-nav-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .header-desktop-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .portfolio-grid,
  .testimonials-grid,
  .blog-grid,
  .form-grid-2,
  .about-specs-list,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-channels-col {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
  }

  .hero-section {
    padding: 40px 0 40px;
  }

  .section {
    padding: 56px 0;
  }

  .portal-content {
    padding: 18px;
  }

  .portal-topbar {
    padding: 0 18px;
  }
}

@media (max-width: 480px) {
  .hero-kpi-strip,
  .kpi-row-4 {
    grid-template-columns: 1fr;
  }

  .hero-kpi-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
  }

  .hero-kpi-cell:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
