/* ============================================================
   base.css — shared design system
   Extracted VERBATIM from the inline <style> in index.html so
   about.html renders pixel-identically to the homepage.
   index.html itself is untouched.
   ============================================================ */

/* tokens, resets, base type — verbatim from index.html */

    :root {
      /* ============================================
         TAAMSI TECHNOLOGY — PREMIUM NAVY LIGHT THEME
         ============================================
         Navy is the brand. White and very-light blue stay dominant.
         Red is an accent only.

         --color-accent-soft is a lightened tint of the brand red used
         ONLY on the navy footer. #A71501 on #063A78 measures 1.83:1
         and fails WCAG outright; this tint holds the brand hue (8deg)
         and reaches 4.94:1. On light surfaces the full-strength red is
         correct at 7.63:1.
         ============================================ */
      --color-primary: #0D4A96;
      /* The deep anchor. Kept at the original #063A78 and used only as the
         base of dark grounds — the footer and the two navy bands. Holding the
         floor dark while the working navy lifts is what keeps the brand from
         going flat: light surfaces get a richer, more legible blue, dark
         surfaces keep their depth. */
      --color-navy-deep: #063A78;
      --color-primary-hover: #1259AF;
      --color-primary-light: #2C6FC4;
      --color-accent: #A71501;
      --color-accent-hover: #7E1001;
      --color-accent-soft: #FF8B78;

      --color-white: #FFFFFF;
      --color-bg: #F8FAFD;
      --color-light-blue: #F4F7FB;
      --color-sky: #EAF1F9;
      --color-text: #172033;
      --color-text-muted: #5B6B82;
      --color-border: #DCE5F0;
      --color-border-strong: rgba(6, 58, 120, 0.15);

      --font-heading: 'Plus Jakarta Sans', sans-serif;
      --font-body: 'Plus Jakarta Sans', sans-serif;

      /* Kept deliberately light — the brief rules out heavy shadows. */
      --shadow-soft: 0 2px 12px rgba(6, 58, 120, 0.05);
      --shadow-medium: 0 8px 28px rgba(6, 58, 120, 0.07);
      --shadow-strong: 0 18px 50px rgba(6, 58, 120, 0.10);
      --shadow-glow: 0 0 32px rgba(6, 58, 120, 0.14);

      --radius-sm: 12px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --radius-xl: 32px;

      --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      background: var(--color-bg);
      color: var(--color-text);
      overflow-x: hidden;
    }

    body.has-header {
      padding-top: 92px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: var(--font-heading);
      font-weight: 800;
      color: var(--color-text);
      line-height: 1.12;
      letter-spacing: -0.02em;
    }

    a {
      color: inherit;
    }

    ::selection {
      background: var(--color-primary);
      color: #fff;
    }

    :focus-visible {
      outline: 2px solid var(--color-primary);
      outline-offset: 3px;
      border-radius: 4px;
    }


    /* ============================================
       MOBILE MENU BACKDROP
       ============================================ */
    .mobile-menu-backdrop {
      display: none;
    }

    @media (max-width: 992px) {
      .mobile-menu-backdrop {
        display: block;
      }
    }

    /* ============================================
       BUTTONS — Redesigned Premium System
       ============================================ */
    .btn-amber,
    .btn-primary-premium {
      background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
      background-size: 160% auto;
      background-position: 0% 50%;
      color: #fff;
      border: none;
      height: 56px;
      padding: 0 2rem;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 1rem;
      box-shadow: 0 10px 30px rgba(6, 58, 120, 0.32);
      transition: var(--transition-smooth), background-position 0.5s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      text-decoration: none;
      font-family: var(--font-body);
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }

    .btn-amber:hover,
    .btn-primary-premium:hover {
      transform: translateY(-3px);
      background-position: 100% 50%;
      box-shadow: 0 16px 40px rgba(6, 58, 120, 0.45);
      color: #fff;
    }

    .btn-amber i,
    .btn-primary-premium i {
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-amber:hover i,
    .btn-primary-premium:hover i {
      transform: translateX(5px);
    }

    .ripple {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.55);
      transform: scale(0);
      animation: rippleAnim 0.6s ease-out;
      pointer-events: none;
      z-index: -1;
    }

    @keyframes rippleAnim {
      to {
        transform: scale(3);
        opacity: 0;
      }
    }

    .btn-outline-premium {
      background: rgba(255, 255, 255, 0.6);
      color: var(--color-text);
      border: 1.5px solid var(--color-border);
      height: 56px;
      padding: 0 2rem;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 1rem;
      transition: var(--transition-smooth);
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      text-decoration: none;
      font-family: var(--font-body);
    }

    .btn-outline-premium:hover {
      background: var(--color-white);
      border-color: var(--color-primary);
      color: var(--color-primary);
      transform: translateY(-3px);
      box-shadow: var(--shadow-medium);
    }


    /* ============================================
       SECTION LABELS / TITLES
       ============================================ */
    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1.15rem;
      background: var(--color-light-blue);
      border: 1px solid var(--color-border);
      border-radius: 50px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--color-primary-hover);
      letter-spacing: 1.3px;
      text-transform: uppercase;
      margin-bottom: 1.4rem;
    }

    .section-title {
      font-size: clamp(1.9rem, 4vw, 3rem);
      margin-bottom: 1rem;
      letter-spacing: -0.03em;
    }

    .section-subtitle {
      font-size: 1.08rem;
      color: var(--color-text-muted);
      max-width: 600px;
      margin: 0 auto 3rem;
      line-height: 1.65;
    }

    /* ============================================
       REVEAL ANIMATIONS
       ============================================ */
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
      opacity: 0;
      transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
      filter: blur(6px);
    }

    .reveal {
      transform: translateY(36px);
    }

    .reveal-left {
      transform: translateX(-46px);
    }

    .reveal-right {
      transform: translateX(46px);
    }

    .reveal-scale {
      transform: scale(0.92);
    }

    .reveal.active,
    .reveal-left.active,
    .reveal-right.active,
    .reveal-scale.active {
      opacity: 1;
      transform: translate(0, 0) scale(1);
      filter: blur(0);
    }

    .delay-1 {
      transition-delay: 0.06s;
    }

    .delay-2 {
      transition-delay: 0.12s;
    }

    .delay-3 {
      transition-delay: 0.18s;
    }

    .delay-4 {
      transition-delay: 0.24s;
    }

    .delay-5 {
      transition-delay: 0.3s;
    }

    .delay-6 {
      transition-delay: 0.36s;
    }

    .delay-7 {
      transition-delay: 0.42s;
    }


    /* ============================================
       BUSINESS DIVISIONS SECTION
       ============================================ */
    .divisions-section {
      padding: 6rem 0;
      position: relative;
    }

    .division-card {
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: var(--transition-smooth);
      height: 100%;
      border: 1px solid var(--color-border);
      position: relative;
    }

    .division-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-strong);
      border-color: rgba(6, 58, 120, 0.35);
    }

    .division-image {
      aspect-ratio: 4/3;
      overflow: hidden;
      position: relative;
    }

    .division-image::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 40%, rgba(23, 32, 51, 0.55) 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .division-card:hover .division-image::after {
      opacity: 1;
    }

    .division-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition-slow);
    }

    .division-card:hover .division-image img {
      transform: scale(1.12);
    }

    .division-image-overlay {
      position: absolute;
      top: 1rem;
      left: 1rem;
      width: 48px;
      height: 48px;
      border-radius: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-white);
      font-size: 1.2rem;
      box-shadow: var(--shadow-medium);
      z-index: 2;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .division-card:hover .division-image-overlay {
      transform: translateY(-4px) rotate(-6deg);
    }

    .division-content {
      padding: 1.5rem;
    }

    .division-title {
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 1.12rem;
      margin-bottom: 0.25rem;
      color: var(--color-text);
    }

    .division-subtitle {
      font-size: 0.82rem;
      color: var(--color-primary);
      font-weight: 700;
      margin-bottom: 0.75rem;
    }

    .division-desc {
      font-size: 0.9rem;
      color: var(--color-text-muted);
      margin-bottom: 1.1rem;
      line-height: 1.6;
    }

    .division-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--color-text);
      font-weight: 700;
      font-size: 0.9rem;
      text-decoration: none;
      transition: var(--transition-fast);
    }

    .division-link i {
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .division-link:hover {
      color: var(--color-primary);
    }

    .division-link:hover i {
      transform: translateX(6px);
    }

    /* ============================================
       STATISTICS SECTION
       ============================================ */
    .stats-section {
      padding: 4.5rem 2.5rem;
      background: linear-gradient(135deg, #063A78 0%, #0B417D 55%, #0B417D 130%);
      position: relative;
      overflow: hidden;
      margin: 4rem 0;
      border-radius: var(--radius-xl);
    }

    .stats-section::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
      animation: statsGlow 10s ease infinite;
    }

    @keyframes statsGlow {

      0%,
      100% {
        transform: translate(0, 0);
      }

      50% {
        transform: translate(10%, 10%);
      }
    }

    .stat-card {
      text-align: center;
      padding: 1.5rem 1rem;
      position: relative;
      z-index: 2;
      border-radius: var(--radius-md);
      transition: var(--transition-smooth);
    }

    .stat-card:hover {
      background: rgba(255, 255, 255, 0.08);
      transform: translateY(-6px);
    }

    .stat-icon {
      width: 58px;
      height: 58px;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
      color: #fff;
      font-size: 1.4rem;
      transition: var(--transition-smooth);
    }

    .stat-card:hover .stat-icon {
      background: #fff;
      color: var(--color-primary);
      transform: rotate(-8deg) scale(1.1);
      box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    }

    .stat-number {
      font-family: var(--font-heading);
      font-size: clamp(2.2rem, 4vw, 3.1rem);
      font-weight: 800;
      color: #fff;
      line-height: 1;
      margin-bottom: 0.5rem;
    }

    .stat-label {
      font-size: 0.92rem;
      color: rgba(255, 255, 255, 0.82);
      font-weight: 600;
    }


    /* ============================================
       RESPONSIVE — non-hero rules from index.html
       ============================================ */
    @media (max-width: 1200px) {
      .stats-section { padding: 3.5rem 1.5rem; }
    }

    @media (max-width: 480px) {
      .stats-section { border-radius: var(--radius-md); }
    }

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }

      .reveal,
      .reveal-left,
      .reveal-right,
      .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
      }

    }
