/* ==========================================================================
   Haka Digital Network - Stylesheet
   Modern Media Corporate Theme with Light/Dark Mode Support
   Fully WCAG AA Compliant
   ========================================================================== */

:root {
  /* Color Tokens - Light Theme (Default) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-subtle: #e2e8f0;
  
  --text-primary: #0f172a;       /* Contrast ratio: 16.2:1 against #f8fafc */
  --text-secondary: #334155;     /* Contrast ratio: 9.6:1 against #f8fafc */
  --text-muted: #475569;         /* Contrast ratio: 5.8:1 against #f8fafc */
  --text-inverse: #ffffff;
  
  --brand-navy: #0b192c;
  --brand-navy-light: #1e3a8a;
  --accent-cyan: #0284c7;
  --accent-teal: #0d9488;
  --accent-amber: #d97706;
  
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #0284c7;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  
  --container-max: 1200px;
  --header-height: 76px;
  --transition-normal: 0.2s ease-in-out;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-primary: #070d18;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162036;
  --bg-muted: #1e293b;
  --bg-subtle: #27354f;
  
  --text-primary: #f8fafc;       /* Contrast ratio: 17.5:1 against #070d18 */
  --text-secondary: #cbd5e1;     /* Contrast ratio: 11.2:1 against #070d18 */
  --text-muted: #94a3b8;         /* Contrast ratio: 6.8:1 against #070d18 */
  --text-inverse: #070d18;
  
  --brand-navy: #1e293b;
  --brand-navy-light: #38bdf8;
  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-amber: #fbbf24;
  
  --border-light: #1e293b;
  --border-strong: #334155;
  --border-focus: #38bdf8;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Base Reset & Universal Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--accent-cyan);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Top Notification / Corporate Announcement Bar */
.top-bar {
  background: var(--brand-navy);
  color: #e2e8f0;
  font-size: 0.84rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.top-bar-contact {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
}

.top-bar-link:hover {
  color: #38bdf8;
}

/* Header & Navigation (Ultra-clean, Streamlined & Modern) */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.navbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0b192c 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0);
  transition: filter var(--transition-normal);
}

[data-theme="dark"] .brand-logo-img {
  filter: brightness(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-img {
    filter: brightness(1);
  }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  line-height: 1.15;
}

.brand-text-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-muted);
}

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
  background-color: var(--bg-muted);
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-subtle);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-muted);
  border: 1px solid var(--border-light);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  min-height: 44px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--bg-muted);
  border-color: var(--text-secondary);
}

.btn-dark {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #162438;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  min-height: 48px;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-trust-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-badge-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--accent-teal);
}

.trust-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Hero Visual Card / Media Stack Showcase */
.hero-visual-card {
  background-color: var(--bg-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.visual-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.visual-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--accent-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.mini-media-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-media-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.mini-media-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-cyan);
}

.mini-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.mini-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-loker {
  background-color: #0284c7;
}

.icon-nasional {
  background-color: #4f46e5;
}

.icon-selampung {
  background-color: #0d9488;
}

.icon-insight {
  background-color: #0b192c;
}

.mini-info-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.mini-info-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Section Header Styles */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.25rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Portfolio Cards Grid (4 Media Network) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1280px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.media-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  min-width: 0;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.media-card-header {
  padding: 1.35rem 1.25rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.media-category-badge {
  order: -1;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  white-space: normal;
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.media-domain-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
}

.media-brand-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
}

.media-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.media-domain {
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 1.2vw, 1.22rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
}

.media-tagline {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.media-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex-grow: 1;
  min-width: 0;
}

.media-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.media-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
  min-width: 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.highlight-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.media-audience-info {
  font-size: 0.83rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-light);
  padding-top: 0.85rem;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.media-audience-info strong {
  color: var(--text-primary);
}

.media-card-footer {
  padding: 1.15rem 1.25rem;
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.media-card-footer .btn {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}

/* About Pillars Card */
.about-pillars-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

@media (max-width: 768px) {
  .about-pillars-card {
    padding: 1.35rem 1.15rem;
  }
}

/* Solutions / Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}

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

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-muted);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.service-scope {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-teal);
}

/* Strategic Pillars Section */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pillar-box {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
}

.pillar-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Corporate CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  max-width: 600px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.cta-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Sub-Pages Header (About, Contact, Terms, Privacy) */
.page-header {
  padding: 3.5rem 0 2.5rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.page-header-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

/* Long-Form Editorial & Legal Content */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.legal-nav-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.legal-nav-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.legal-nav-link:hover, .legal-nav-link.active {
  background-color: var(--bg-muted);
  color: var(--accent-cyan);
  font-weight: 500;
}

.legal-content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.legal-doc-meta {
  background-color: var(--bg-muted);
  border-left: 4px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-article {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-article h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.legal-article h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.legal-article p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.96rem;
}

.legal-article ul, .legal-article ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

/* Contact Page Layout & Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.contact-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-label .required-mark {
  color: #dc2626;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-control[aria-invalid="true"] {
  border-color: #dc2626;
}

.form-error-msg {
  display: none;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.35rem;
}

.form-control[aria-invalid="true"] + .form-error-msg {
  display: block;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Contact Info Aside */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-text-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.info-text-value {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* About Page Specific Styles */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.vm-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.vm-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}

.vm-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.vm-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Modal Dialog Component */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 25, 44, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.is-active {
  display: flex;
}

.modal-window {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Footer Section */
.footer {
  background-color: var(--brand-navy);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1);
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  width: fit-content;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.15rem;
  letter-spacing: 0.02em;
}

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

.footer-link {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: color var(--transition-normal);
}

.footer-link:hover {
  color: #38bdf8;
}

.footer-media-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
}

.footer-media-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.footer-media-link:hover {
  color: #38bdf8;
}

.footer-media-desc {
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-cyan);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Layout Reflow (Antislop Compliant)
   ========================================================================== */

/* Mobile Backdrop & Body Lock */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 25, 44, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.mobile-nav-cta {
  display: none;
}

.credentials-bar {
  margin-top: 2.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.legal-identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}

/* Tablet & Intermediate Viewports (max-width: 992px) */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
  }
  
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .legal-sidebar {
    position: static;
    width: 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .values-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile Viewports (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .top-bar {
    display: none;
  }
  
  .navbar {
    height: var(--header-height);
    gap: 0.75rem;
  }
  
  .brand-logo-img {
    width: 36px;
    height: 36px;
  }
  
  .brand-title {
    font-size: 1.08rem;
  }
  
  .brand-text-sub {
    font-size: 0.65rem;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.85rem;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-menu.is-open {
    transform: translateX(0);
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    padding: 0.95rem 1.15rem;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background-color: var(--bg-muted);
    min-height: 48px;
  }
  
  .nav-link.active {
    background-color: rgba(2, 132, 199, 0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
  }
  
  .mobile-nav-cta {
    display: block;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
  }
  
  .mobile-nav-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
  
  .header-actions .btn-primary {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  
  .hero-section {
    padding: 2.75rem 0 2rem;
  }
  
  .hero-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.35rem);
    line-height: 1.22;
  }
  
  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.6;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  
  .hero-visual-card {
    padding: 1.35rem 1.15rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
    text-align: left;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .media-card-header {
    padding: 1.35rem 1.15rem 1rem;
  }
  
  .media-card-body {
    padding: 1.15rem;
  }
  
  .media-card-footer {
    padding: 1rem 1.15rem 1.35rem;
  }
  
  .credentials-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.15rem;
    gap: 0.95rem;
  }
  
  .legal-identity-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .legal-content-card {
    padding: 1.35rem 1.15rem;
  }
  
  .legal-doc-meta {
    padding: 1rem;
    font-size: 0.88rem;
  }
  
  .legal-sidebar {
    padding: 1rem;
  }
  
  .contact-form-card {
    padding: 1.35rem 1.15rem;
  }
  
  .form-control {
    font-size: 16px;
    min-height: 48px;
  }
  
  textarea.form-control {
    font-size: 16px;
    min-height: 120px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-checkbox-label {
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .form-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
  }
  
  /* Modal Responsive */
  .modal-overlay {
    padding: 0.75rem;
  }
  
  .modal-window {
    max-height: 88vh;
    border-radius: var(--radius-md);
  }
  
  .modal-header {
    padding: 1.15rem 1rem;
  }
  
  .modal-title {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1.15rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .modal-footer {
    flex-direction: column-reverse;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    min-height: 46px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }
  
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
  }
}

/* Small Screen Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar {
    gap: 0.5rem;
  }
  
  .brand-logo {
    gap: 0.5rem;
  }
  
  .brand-title {
    font-size: 0.98rem;
  }
  
  .brand-text-sub {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }
  
  .hero-section {
    padding: 2.25rem 0 1.5rem;
  }
  
  .hero-title {
    font-size: 1.65rem;
  }
  
  .hero-lead {
    font-size: 0.92rem;
  }
  
  .cta-banner {
    padding: 1.75rem 1.15rem;
  }
  
  .cta-title {
    font-size: 1.35rem;
  }
  
  .cta-actions {
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  
  .media-card-footer {
    flex-direction: column;
    gap: 0.65rem;
  }
  
  .media-card-footer .btn {
    width: 100%;
    min-height: 44px;
  }
}

/* Extra Compact Phones (max-width: 360px) */
@media (max-width: 360px) {
  .brand-text-sub {
    display: none;
  }
  
  .hero-title {
    font-size: 1.48rem;
  }
  
  .brand-title {
    font-size: 0.92rem;
  }
}
