/* ==========================================================================
   AD'S DIGITAL BUSINESS SOLUTIONS - OFFICIAL BRAND STYLESHEET
   Design System, "Signature Blues" Palette, Light & Dark Modes,
   Poppins Typography & Responsive Core
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES - LIGHT MODE (DEFAULT)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette - "Our Signature Blues" */
  --color-deepest-blue: #033151; /* Primary body text, high-contrast, deep footers */
  --color-dark-navy:    #04496E; /* Dark sections, contrast surfaces */
  --color-deep-blue:    #036590; /* H1/H2 Headings, section titles */
  --color-primary-blue: #0881AA; /* PRIMARY ACTION & CTA COLOR */
  --color-mid-blue:     #2D8CB4; /* Supporting accents, active icons, hover highlights */
  --color-light-blue:   #70B2CE; /* Subtle borders, badges, dividers */
  --color-ice-blue:     #D4EAF4; /* Soft card fills, icon circular containers */
  --color-canvas-bg:    #F4F8FB; /* Off-white main page background (60% rule) */
  --color-white:        #FFFFFF; /* Pure white card surfaces */
  --color-secondary-txt:#6B7C93; /* Subtitles, meta descriptions, secondary copy */
  --color-border:       rgba(112, 178, 206, 0.35);
  --color-border-card:  rgba(3, 49, 81, 0.08);

  /* Semantic UI tokens (Light Mode) */
  --bg-main:            var(--color-canvas-bg);
  --bg-surface:         var(--color-white);
  --bg-surface-hover:   #F0F6FA;
  --bg-surface-subtle:  var(--color-ice-blue);
  --bg-glass-nav:       rgba(255, 255, 255, 0.94);
  --bg-glass-modal:     rgba(3, 49, 81, 0.75);

  --text-primary:       var(--color-deepest-blue);
  --text-heading:       var(--color-deep-blue);
  --text-secondary:     var(--color-secondary-txt);
  --text-muted:         #8A9BA8;
  --text-inverse:       #FFFFFF;

  --accent-cta:         var(--color-primary-blue);
  --accent-cta-hover:   var(--color-deep-blue);
  --accent-badge-bg:    var(--color-ice-blue);
  --accent-badge-txt:   var(--color-deep-blue);
  --accent-icon-bg:     var(--color-ice-blue);
  --accent-icon-txt:    var(--color-primary-blue);

  --footer-bg:          var(--color-deepest-blue);
  --footer-text:        #D4EAF4;
  --footer-muted:       #8A9BA8;

  /* Shadows */
  --shadow-sm:          0 2px 8px rgba(3, 49, 81, 0.05);
  --shadow-md:          0 8px 24px rgba(3, 49, 81, 0.08);
  --shadow-lg:          0 16px 36px rgba(3, 49, 81, 0.12);
  --shadow-cta:         0 8px 20px rgba(8, 129, 170, 0.28);
  --shadow-card:        0 10px 30px rgba(3, 49, 81, 0.06);

  /* Typography */
  --font-heading:       'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:          'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:          'JetBrains Mono', monospace;

  /* Layout */
  --container-max:      1240px;
  --header-height:      82px;
  --radius-sm:          8px;
  --radius-md:          14px;
  --radius-lg:          22px;
  --radius-full:        9999px;
  --transition:         all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. DARK MODE THEME TOKENS
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --color-canvas-bg:    #031E33; /* Deep midnight-blue brand canvas */
  --color-white:        #072C48; /* Dark navy card surfaces */
  --color-ice-blue:     #0A3859; /* Subtle navy-blue container fills */
  --color-border:       rgba(112, 178, 206, 0.22);
  --color-border-card:  rgba(112, 178, 206, 0.16);

  /* Semantic UI tokens (Dark Mode) */
  --bg-main:            #031E33;
  --bg-surface:         #072C48;
  --bg-surface-hover:   #0A3758;
  --bg-surface-subtle:  #0A3859;
  --bg-glass-nav:       rgba(3, 30, 51, 0.94);
  --bg-glass-modal:     rgba(1, 15, 26, 0.88);

  --text-primary:       #F4F8FB;
  --text-heading:       #FFFFFF;
  --text-secondary:     #B0C7D8;
  --text-muted:         #708CA3;
  --text-inverse:       #031E33;

  --accent-cta:         #0881AA;
  --accent-cta-hover:   #2D8CB4;
  --accent-badge-bg:    rgba(112, 178, 206, 0.16);
  --accent-badge-txt:   #70B2CE;
  --accent-icon-bg:     rgba(8, 129, 170, 0.2);
  --accent-icon-txt:    #70B2CE;

  --footer-bg:          #021422;
  --footer-text:        #B0C7D8;
  --footer-muted:       #5C788F;

  --shadow-sm:          0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:          0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:          0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-cta:         0 8px 25px rgba(8, 129, 170, 0.45);
  --shadow-card:        0 10px 30px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

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

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.7;
}

.mono {
  font-family: var(--font-mono);
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.sec-py {
  padding-top: 100px;
  padding-bottom: 100px;
}

.sec-pt {
  padding-top: 100px;
}

.sec-pb {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .sec-py {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .sec-pt {
    padding-top: 64px;
  }
  .sec-pb {
    padding-bottom: 64px;
  }
}

/* Eyebrow / Pill Badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-badge-txt);
  background: var(--accent-badge-bg);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.eyebrow .dot {
  color: var(--color-primary-blue);
  font-weight: 800;
}

/* Section Header */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 32px;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head.center p {
  max-width: 680px;
}

.section-head h2 {
  max-width: 650px;
}

.section-head p {
  max-width: 480px;
  font-size: 1.05rem;
}

@media (max-width: 860px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
