/* ==========================================================================
   AL KAWADER AL AMILAH COMPANY FOR OPERATIONS & MAINTENANCE
   Executive Midnight Presence — Dark Luxury Corporate Portal
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Palette — Executive Deep Navy */
  --color-bg-deep: #0B1D33;
  --color-bg-mid: #0E2440;
  --color-bg-surface: #122C4D;
  --color-bg-elevated: #163458;
  --color-bg-card: rgba(18, 44, 77, 0.6);
  --color-bg-glass: rgba(14, 36, 64, 0.5);

  --color-gold: #C9A84C;
  --color-gold-light: #E8D48B;
  --color-gold-warm: #D4B65A;
  --color-gold-hover: #B89A3F;
  --color-gold-soft: rgba(201, 168, 76, 0.12);
  --color-gold-border: rgba(201, 168, 76, 0.2);
  --color-gold-glow: rgba(201, 168, 76, 0.25);

  --color-accent: #1B3A5C;
  --color-accent-light: #234B74;

  --color-text-primary: #F0ECE4;
  --color-text-secondary: #8A9BB5;
  --color-text-muted: #5D7290;
  --color-text-gold: var(--color-gold);

  --color-border: rgba(201, 168, 76, 0.12);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(201, 168, 76, 0.35);

  --color-white: #FFFFFF;

  /* Typography */
  --font-ar-display: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar-body: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Grotesk', 'SF Mono', monospace;
  --font-display: var(--font-ar-display);
  --font-body: var(--font-ar-body);

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.15);
  --shadow-gold-intense: 0 0 60px rgba(201, 168, 76, 0.25);
  --shadow-card: 0 12px 40px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-border);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1160px;
  --toolbar-height: 64px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 9999px;
}

/* RTL / LTR Font Switch */
body.lang-ar {
  --font-display: var(--font-ar-display);
  --font-body: var(--font-ar-body);
  font-family: var(--font-ar-body);
}

body.lang-en {
  --font-display: var(--font-en);
  --font-body: var(--font-en);
  font-family: var(--font-en);
}

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

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

body {
  min-height: 100%;
  min-height: 100dvh;
  background: linear-gradient(165deg, #0B1D33 0%, #0E2440 25%, #122C4D 50%, #0F2642 75%, #0B1D33 100%);
  background-attachment: fixed;
  color: var(--color-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Accessibility Focus */
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2.5px solid var(--color-gold);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.ltr-num {
  unicode-bidi: embed;
  direction: ltr;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   AMBIENT BACKGROUND SYSTEM
   ========================================================================== */
.ambient-system {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Hexagonal Grid Pattern — evokes engineering/operations */
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    /* Fine dot grid (connected-dots network feel) */
    radial-gradient(circle, rgba(201, 168, 76, 0.06) 1px, transparent 1px),
    /* Subtle diagonal lines (construction/blueprint feel) */
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 60px,
      rgba(201, 168, 76, 0.025) 60px,
      rgba(201, 168, 76, 0.025) 61px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.015) 60px,
      rgba(255, 255, 255, 0.015) 61px
    );
  background-size: 28px 28px, 100% 100%, 100% 100%;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 10%, transparent 75%);
}

/* ==========================================================================
   WATERMARK SIGNATURE EMBLEM (LOGO2)
   ========================================================================== */
.ambient-watermark {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  max-width: 88vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.watermark-logo {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  opacity: 0.06;
  filter: drop-shadow(0 0 60px rgba(201, 168, 76, 0.4)) brightness(1.15) contrast(1.05);
  mask-image: radial-gradient(circle at 50% 46%, black 20%, rgba(0, 0, 0, 0.9) 52%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, black 20%, rgba(0, 0, 0, 0.9) 52%, transparent 76%);
  animation: watermarkBreath 16s ease-in-out infinite alternate;
}

@keyframes watermarkBreath {
  0% {
    transform: scale(0.97) translateY(0);
    opacity: 0.048;
  }
  50% {
    transform: scale(1.01) translateY(-8px);
    opacity: 0.068;
  }
  100% {
    transform: scale(0.99) translateY(4px);
    opacity: 0.055;
  }
}

/* Floating Orbs — warm ambient lighting */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}

.orb-1 {
  width: 700px;
  height: 700px;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, rgba(22, 52, 88, 0.08) 40%, transparent 70%);
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: 15%;
  right: -10%;
  background: radial-gradient(circle, rgba(27, 58, 92, 0.2) 0%, rgba(201, 168, 76, 0.04) 50%, transparent 70%);
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 450px;
  height: 450px;
  bottom: 5%;
  left: -8%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, rgba(18, 44, 77, 0.1) 50%, transparent 70%);
  animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(30px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(-15px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(25px); }
}

/* Top Gold Accent Line */
.top-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.2) 15%,
    var(--color-gold) 50%,
    rgba(201, 168, 76, 0.2) 85%,
    transparent 100%);
  z-index: 1000;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal-el {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-el.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.reveal-el:nth-child(1) { transition-delay: 0s; }
.reveal-el:nth-child(2) { transition-delay: 0.1s; }
.reveal-el:nth-child(3) { transition-delay: 0.2s; }
.reveal-el:nth-child(4) { transition-delay: 0.25s; }
.reveal-el:nth-child(5) { transition-delay: 0.3s; }
.reveal-el:nth-child(6) { transition-delay: 0.35s; }

/* ==========================================================================
   PORTAL WRAPPER
   ========================================================================== */
.portal-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==========================================================================
   HEADER — Glassmorphism Sticky
   ========================================================================== */
.site-header {
  width: 100%;
  padding: 16px 0;
  background: rgba(11, 29, 51, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(11, 29, 51, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.site-logo {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  filter: brightness(1.1);
}

/* Language Switcher */
.lang-switch-pills {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 2px;
}

.lang-pill {
  border: none;
  background: transparent;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: transparent;
  transition: all var(--transition-fast);
}

.lang-pill:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.lang-pill.active {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  color: var(--color-bg-deep);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.35);
}

.lang-pill.active .pill-dot {
  background-color: var(--color-bg-deep);
  box-shadow: none;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 52px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Executive Status Crest */
.hero-crest {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  width: 100%;
  max-width: 500px;
  justify-content: center;
}

.crest-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-border), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  white-space: nowrap;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-gold);
}

.badge-dot.pulse-dot {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 4px var(--color-gold), 0 0 8px rgba(201, 168, 76, 0.4);
  }
  50% {
    box-shadow: 0 0 8px var(--color-gold), 0 0 20px rgba(201, 168, 76, 0.6);
  }
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
}

/* Company Header Block */
.hero-header-block {
  margin-bottom: 20px;
}

.company-subname {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  line-height: 1.35;
}

.company-subname .subname-sub {
  display: inline-block;
  margin-inline-start: 4px;
  font-weight: 500;
  color: var(--color-gold-warm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Title Ornament */
.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 0;
  color: var(--color-gold);
  font-size: 0.6rem;
}

.ornament-line {
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  border-radius: var(--radius-pill);
}

.ornament-diamond {
  animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Supporting Description */
.hero-description {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 560px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-number::after {
  content: '+';
  font-size: 0.6em;
  margin-inline-start: 2px;
  opacity: 0.7;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--color-gold-border), transparent);
  flex-shrink: 0;
  margin: 0 4px;
}

/* ==========================================================================
   SIGNATURE SHOWCASE DOCUMENT CARD
   ========================================================================== */
.document-showcase-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
}

/* Rotating Gradient Border Glow */
.showcase-border-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    var(--color-gold) 10%,
    transparent 20%,
    transparent 50%,
    var(--color-gold-warm) 60%,
    transparent 70%
  );
  animation: rotateGlow 6s linear infinite;
  z-index: 0;
  opacity: 0.7;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateGlow {
  to { --angle: 360deg; }
}

/* Pulse Glow Behind Card */
.showcase-pulse-glow {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-lg) + 20px);
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  animation: cardPulseGlow 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes cardPulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.showcase-inner {
  position: relative;
  z-index: 1;
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Document Cover Preview */
.doc-cover-preview {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(145deg, #0F2D50 0%, #0B1D33 100%);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  margin-bottom: 24px;
  display: flex;
  border: 1px solid var(--color-gold-border);
}

.doc-cover-preview:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 168, 76, 0.2);
  border-color: var(--color-gold);
}

/* Gold Spine Accent */
.doc-cover-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold), var(--color-gold-hover));
}

.doc-cover-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline-start: 8px;
}

.doc-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.doc-cover-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
}

.doc-seal {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.doc-cover-center {
  text-align: start;
}

.doc-cover-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
}

.doc-cover-sub {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.doc-cover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.doc-format-badge {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}

.doc-click-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-light);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.doc-cover-preview:hover .doc-click-hint {
  color: var(--color-gold);
  transform: translateX(-3px);
}

body.lang-en .doc-cover-preview:hover .doc-click-hint {
  transform: translateX(3px);
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 540px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  color: var(--color-bg-deep);
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Hero Motto & Statements */
.hero-motto {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 22px;
  width: 100%;
  max-width: 480px;
}

.closing-statement {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.supporting-statement {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 16px 24px 60px;
}

.contact-container {
  max-width: 880px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.contact-divider {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 12px auto 0;
  border-radius: var(--radius-pill);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-smooth);
}

a.contact-item:hover {
  background: var(--color-gold-soft);
  border-color: var(--color-gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm), var(--shadow-gold);
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--color-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--color-gold);
  transition: all var(--transition-smooth);
}

a.contact-item:hover .contact-icon-box {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg-deep);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 100%;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  word-break: break-word;
  line-height: 1.45;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  padding: 24px 0;
  background: rgba(8, 20, 36, 0.85);
  color: var(--color-white);
  margin-top: auto;
  position: relative;
}

.footer-accent-line {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-border), transparent);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.footer-dot {
  color: var(--color-gold);
  font-size: 0.75rem;
}

.footer-cr {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (ICON ONLY)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  inset-inline-end: 30px;
  z-index: 990;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.whatsapp-radar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waRadarPulse 2.6s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes waRadarPulse {
  0% {
    transform: scale(0.94);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
  transition: transform var(--transition-fast);
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2fe671 0%, #159c8d 100%);
  color: #FFFFFF;
}

.whatsapp-float-btn:hover .whatsapp-icon {
  transform: scale(1.08);
}

.whatsapp-float-btn:active {
  transform: translateY(-1px) scale(0.96);
}

body.viewer-open .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   FULL-VIEWPORT PDF VIEWER OVERLAY
   ========================================================================== */
.pdf-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #0B1D33;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.pdf-viewer-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* PDF Viewer Toolbar */
.pdf-toolbar {
  height: var(--toolbar-height);
  min-height: var(--toolbar-height);
  background: linear-gradient(180deg, #0E2845 0%, #0B1D33 100%);
  border-bottom: 1px solid var(--color-gold-border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.toolbar-start, .toolbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  padding-inline-start: 14px;
}

.toolbar-logo {
  height: 30px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(1.2);
}

.toolbar-sep {
  color: var(--color-gold);
  font-weight: 300;
  opacity: 0.4;
}

.toolbar-doc-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* Toolbar Buttons */
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.toolbar-btn svg {
  width: 16px;
  height: 16px;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-close-viewer {
  background: rgba(255, 255, 255, 0.06);
}

.btn-close-viewer:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-toolbar-download {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  border-color: var(--color-gold);
  color: var(--color-bg-deep);
  font-weight: 700;
}

.btn-toolbar-download:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

/* Toolbar Language Toggle */
.toolbar-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-lang-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toolbar-lang-btn.active {
  background: var(--color-gold);
  color: var(--color-bg-deep);
}

/* PDF Frame Area */
.pdf-frame-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100vh - var(--toolbar-height));
  height: calc(100dvh - var(--toolbar-height));
  background-color: #0E2440;
  overflow: hidden;
}

.pdf-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: #122C4D;
}

/* Loading Indicator */
.pdf-loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0B1D33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-white);
  z-index: 5;
  transition: opacity var(--transition-fast);
}

.pdf-loading-indicator.loaded {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile PDF Notice */
.mobile-pdf-notice {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(18, 44, 77, 0.95);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  color: var(--color-white);
  z-index: 20;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-pdf-notice p {
  font-size: 0.8125rem;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.mobile-fallback-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

/* Tablet (max-width: 960px) */
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-inner {
    padding: 24px 20px 20px;
  }

  .stats-bar {
    max-width: 480px;
  }
}

/* Mobile Devices (max-width: 640px) */
@media (max-width: 640px) {
  .site-header {
    padding: 12px 0;
  }

  .site-logo {
    height: 40px;
    max-width: 145px;
  }

  .lang-pill {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  .hero-section {
    padding: 28px 16px 24px;
  }

  .hero-crest {
    margin-bottom: 18px;
  }

  .company-subname {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  /* Stats Bar Mobile */
  .stats-bar {
    padding: 16px 8px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-divider {
    height: 36px;
  }

  .document-showcase-card {
    margin-bottom: 28px;
  }

  .showcase-inner {
    padding: 18px 14px 16px;
  }

  .doc-cover-preview {
    padding: 18px 16px;
    margin-bottom: 16px;
  }

  .doc-cover-title {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.875rem;
  }

  .contact-section {
    padding: 8px 16px 36px;
  }

  .contact-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-item {
    flex-direction: row;
    text-align: start;
    align-items: center;
    padding: 14px 16px;
    gap: 14px;
  }

  .contact-info {
    align-items: flex-start;
    text-align: start;
  }

  .contact-icon-box {
    margin: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 8px;
  }

  .footer-left {
    justify-content: center;
  }

  /* Ambient Watermark Mobile */
  .ambient-watermark {
    top: 30%;
    width: 360px;
    max-width: 92vw;
  }

  .watermark-logo {
    opacity: 0.05;
  }

  /* Floating WhatsApp Mobile */
  .floating-whatsapp {
    bottom: 20px;
    inset-inline-end: 18px;
  }

  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }

  /* Mobile PDF Viewer Toolbar */
  .pdf-toolbar {
    padding: 0 10px;
    height: 56px;
    min-height: 56px;
  }

  .toolbar-doc-title, .toolbar-logo, .toolbar-brand-info {
    display: none;
  }

  .toolbar-btn {
    padding: 6px 10px;
  }

  .toolbar-btn-text {
    font-size: 0.75rem;
  }

  .pdf-frame-wrapper {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
  }
}

/* Extra Small Screens (max-width: 380px) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .toolbar-btn-text {
    display: none;
  }

  .toolbar-btn {
    padding: 8px;
  }
}
