/* ============================================================
   Digital Edge — 2026 Homepage Stylesheet
   Extracted from index.php inline styles
   Load order: AFTER style2018.css
   ============================================================ */

  :root {
    --navy:   #054C83;
    --blue:   #098BF0;
    --dark:   #060d18;
    --panel:  #0b1626;
    --card:   #0f1e33;
    --text:   #dde6f0;
    --muted:  #7a94b0;
    --white:  #ffffff;
    --gold:   #f5a623;
    --green:  #22c55e;
    --border: rgba(9,139,240,0.18);
    --glow:   rgba(9,139,240,0.22);

    /* Light theme tokens */
    --l-bg:        #f0f5fb;
    --l-panel:     #ffffff;
    --l-card:      #ffffff;
    --l-panel-alt: #e8f0f9;
    --l-text:      #0f2540;
    --l-muted:     #4a6580;
    --l-border:    rgba(5,76,131,0.14);
    --l-border-red:rgba(220,38,38,0.18);
    --l-shadow:    0 2px 12px rgba(5,76,131,0.08);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--dark);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* Grid background */
  body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background-image:
      linear-gradient(rgba(9,139,240,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(9,139,240,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  /* ── TOP BAR ── */
  .topbar {
    background: linear-gradient(90deg, var(--navy), #0a6fd4);
    text-align: center;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #bfdbfe;
    position: relative; z-index: 10;
  }

  /* ── HERO ── */
  .hero {
    position: relative; z-index: 1;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 20px 75px 20px;
    background-image: url('lead_engineering_hero.jpeg');
    background-size: cover;
    background-position: center right;
  }

  /* Dark overlay so text is legible */
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
      to right,
      rgba(4,14,30,0.88) 0%,
      rgba(4,14,30,0.75) 45%,
      rgba(4,14,30,0.25) 75%,
      transparent 100%
    );
    z-index: 0;
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, var(--blue), transparent);
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;width:50%;
    max-width: 800px;
    text-align: left;
    padding-top: 80px;
  }

  .hero-sub {
    font-size: clamp(17px, 1.8vw, 19px);
    color: rgba(221,230,240,0.85);
    max-width: 520px;
    margin: 0 0 24px;
    line-height: 1.00;
  }

  /* CTA */
  .cta-btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 17px;
    padding: 17px 42px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 48px var(--glow);
    border: none; cursor: pointer;
    letter-spacing: 0.01em;
  }
  .cta-btn:hover {
    background: #1a9fff;
    transform: translateY(-2px);
    box-shadow: 0 0 72px rgba(9,139,240,0.45);
  }

  .cta-group {
    display: inline-block;
    text-align: center;
  }

  .cta-sub {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
  }

 /* ── TESTIMONIALS ── */
  .testimonials-section {
    position: relative; z-index: 1;
    padding: 80px 24px;
    background: var(--l-bg);
    border-top: 1px solid var(--l-border);
  }

  .testimonials-inner {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .testimonials-inner h2 { margin-bottom: 18px; color: #000053; }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
  }

  .tcard {
    background: #ffffff;
    border: 1px solid var(--l-border);
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: var(--l-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .tcard-stars {
    font-size: 22px;
    color: #f5a623;
    letter-spacing: 2px;text-align:center;
  }

  .tcard-quote {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--l-text);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
  }

  .tcard-sub {
    font-size: 13px;
    color: var(--l-muted);
    margin: 0;
    line-height: 1.5;
  }

  .tcard-name {
    font-size: 14px;
    color: var(--l-muted);
    font-weight: 500;
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid var(--l-border);
  }

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

  /* ── RESULTS CALLOUT ── */
  .results-section {
    position: relative; z-index: 1;
    padding: 80px 24px;
    background: var(--navy);
    border-top: none;
    border-bottom: none;
  }

  .results-inner {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
  }

  .results-inner h2 { margin-bottom: 16px; color: #fff; }
  .results-inner > p { color: #93c5fd; max-width: 560px; margin: 0 auto 52px; }
  .results-inner .section-label { color: #7dd3fc; }

  .results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
  }

  .stat-block {
    background: rgba(255,255,255,0.07);
    padding: 36px 20px;
    text-align: center;
  }

  .stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    color: #fff;
    line-height: 1;
    display: block;
  }

  .stat-desc {
    font-size: 13px;
    color: #93c5fd;
    display: block;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  @media (max-width: 540px) {
    .results-stats { grid-template-columns: 1fr; }
  }


  /* ── POSITIONING STATEMENT ── */
  .positioning-section {
    position: relative; z-index: 1;
    padding: 80px 24px;
    background: var(--l-panel);
    border-top: 1px solid var(--l-border);
  }

  .positioning-inner {
    max-width: 740px;
    margin: 0 auto;
  }
  
  .positioning-inner h2 { margin-bottom: 18px; color: #000053; }

  .positioning-section p { color: var(--l-muted); }

  .quote-block {
    position: relative;
    border-left: 4px solid var(--blue);
    padding: 32px 150px 32px 40px;
    background: #eef5fd;
    border-radius: 0 8px 8px 0;
    margin: 48px 0 40px;
  }

  .quote-block p {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(20px, 2.5vw, 27px);
    color: var(--navy);
    line-height: 1.4;
    margin: 0;
    font-style: italic;
  }

  .quote-headshot {
    position: absolute;
    top: -28px;
    right: -18px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(5,76,131,0.22);
    object-fit: cover;
  }

  .quote-block p.quote-attrib {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--l-muted);
    margin-top: 16px;
  }

  .cred-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
  }

  .cred-pill {
    background: #eef5fd;
    border: 1px solid rgba(5,76,131,0.18);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--navy);
    font-weight: 500;
  }


  /* ── FORM ── */
  .form-section {
    position: relative; z-index: 1;
    padding: 90px 24px 100px;
    background: linear-gradient(160deg, #8ec5ff 0%, #eef5fd 100%);
    border-top: 1px solid var(--l-border);
  }

  .form-wrapper {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }

  .form-wrapper h2 { margin-bottom: 10px; font-size:2em;color: var(--l-text); }
  .form-wrapper > p { margin-bottom: 40px; color: var(--l-muted); }

  .form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
  }
.form-fields textarea {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(5,76,131,0.2);
    border-radius: 8px;
    padding: 15px 18px;
    color: var(--l-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
  }
  .form-fields input,
  .form-fields select {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(5,76,131,0.2);
    border-radius: 8px;
    padding: 15px 18px;
    color: var(--l-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
  }

  .form-fields input::placeholder { color: #9ab0c8; }

  .form-fields input:focus,
  .form-fields select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(9,139,240,0.12);
  }

  .form-fields select option { background: #fff; color: var(--l-text); }

  .form-submit { width: 100%; margin-top: 6px; }

  .form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--l-muted);
    text-align: center;
  }

  /* ── FOOTER ── */
  footer {
    position: relative; z-index: 1;
    padding: 36px 24px;
    text-align: center;
    font-size: 13px;
    color: #9ab0c8;
    background: var(--l-panel);
    border-top: 1px solid var(--l-border);
  }

  /* ── STICKY MOBILE CTA ── */
  .sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--l-border);
    padding: 14px 20px;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(5,76,131,0.1);
  }

  .sticky-bar a {
    display: block;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
  }


  /* ── TABLET (≤900px) ── */
  @media (max-width: 900px) {
    .hero { padding: 20px 40px; }
    .hero-content { width: 78%; }
  }

  /* ── MOBILE (≤640px) ── */
  @media (max-width: 640px) {
    .sticky-bar { display: block; }
    body { padding-bottom: 80px; }
    .hero {
      min-height: auto;
      padding: 20px 24px 20px;
      /* Skip the large hero photo on phones — it's 82% obscured anyway.
         Restore by removing the two background lines below. 
      background-image: none;
      background-color: #060d18;*/
    }
    .hero::before { background: linear-gradient(to bottom, rgba(4,14,30,0.6), rgba(9,139,240,0.10)); }
    .hero-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 600px;
      text-align: left;
    }
    .quote-headshot {
      width: 84px;
      height: 84px;
      top: -24px;
      right: 12px;
    }
    .quote-block { padding: 44px 24px 24px; margin-top: 56px; }
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero h1        { animation: fadeUp 0.5s 0.2s both ease; }
  .hero .hero-sub { animation: fadeUp 0.5s 0.3s both ease; }
  .hero .cta-btn  { animation: fadeUp 0.5s 0.4s both ease; }
  .hero .cta-sub  { animation: fadeUp 0.5s 0.5s both ease; }

/* ── HEADER / NAV OVERRIDES (must load after style2018.css) ── */
  #header-dark{background:#060d18;}

  /* ── SITE HEADER OVERLAY ── */
  .site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 75px;
    background: linear-gradient(to bottom, rgba(4,14,30,0.72) 0%, transparent 100%);
  }

  .site-header .header-logo img {
    height: 52px;
    width: auto;
    display: block;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .header-tel {
    font-size: 25px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-decoration: none;
  }

  .header-tel span {
    color: var(--blue);
  }

  .header-hamburger {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: block;
    line-height: 0;
  }
  .header-hamburger img {
    width: 32px;
    height: auto;
    display: block;
  }

  /* ── NAV BAR ── */
  #site-nav {
    display: none;
    position: absolute;
    top: 88px; /* sits directly below the site-header */
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(01, 23, 37, 0.80);
  }

  #site-nav.open {
    display: block;
  }

  #site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  #site-nav ul li a {
    display: block;
    padding: 16px 22px;
    color: #dde6f0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
  }

  #site-nav ul li a:hover {
    color: #098BF0;
    background: rgba(9,139,240,0.12);
  }

  #site-nav .menu_v {
    color: #098BF0;
    margin-right: 5px;
    font-size: 11px;
  }

  #site-nav .nav_tel a {
    color: #098BF0;
    font-weight: 600;
  }

  @media (max-width: 768px) {
    .site-header {
      padding: 14px 20px;
    }
    .site-header .header-logo img {
      height: 40px;
    }
    .header-tel {
      font-size: 15px;
    }

     #site-nav {
    display: none;
    position: absolute;
    top: 60px; /* sits directly below the site-header */
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(01, 23, 37, 0.80);
  }
 #site-nav ul li a {
    
    padding: 5px 5px;
    
  }
  }

  h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3em;
    line-height: 1.08;
    color: var(--white);
    max-width: 820px;
    margin: 0 0 28px;
    letter-spacing: -0.02em;
  }

  h1 em {
    font-style: italic;
    color: var(--blue);
  }


  /* ── SLIM HERO (interior pages — logo + menu only) ── */
  .hero.hero-slim {
    min-height: 87px;
    height: 87px;
    padding: 0;
    background-image: none;
    background-color: #0c1421;
    z-index: 20; /* keep dropdown nav above following sections */
  }
  .hero-slim::before,
  .hero-slim::after { display: none; }

  /* ── STORY / CONTENT SECTIONS (moved from inline styles) ── */
  .story-section {
    position: relative; z-index: 1;
    padding: 80px 24px;
    background: var(--l-panel);
    border-top: 1px solid var(--l-border);
  }
  .story-inner {
    max-width: 740px;
    margin: 0 auto;
  }
  .story-inner h2 { margin-bottom: 18px; color: #000053; }
  .story-inner h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--navy);
    font-size: 24px;
    margin: 42px 0 12px;
  }
  .story-inner p { color: var(--l-muted); margin-bottom: 18px; }
  .story-inner p strong { color: var(--l-text); }

  /* Lists & tables — match body copy colour */
  .story-inner ul,
  .story-inner ol,
  .story-inner li,
  .story-inner table,
  .story-inner th,
  .story-inner td {
    color: var(--l-muted);
  }
  .story-inner li strong,
  .story-inner td strong,
  .story-inner th { color: var(--l-text); }

  .story-inner ul,
  .story-inner ol {
    padding-left: 26px;
    margin-bottom: 18px;
  }
  .story-inner li { margin-bottom: 6px; }

  .story-inner table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 16px;
  }
  .story-inner th,
  .story-inner td {
    border: 1px solid var(--l-border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
  }
  .story-inner th { background: #eef5fd; }

  /* ── WHY CLIENTS TRUST ME (highlighted) ── */
  .trust-section {
    position: relative; z-index: 1;
    padding: 80px 24px;
    background: var(--navy);
  }
  .trust-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
  }
  .trust-inner .section-label { color: #7dd3fc; }
  .trust-inner h2 { margin-bottom: 14px; color: #fff; }
  .trust-inner > p { color: #93c5fd; max-width: 560px; margin: 0 auto 44px; }

  .trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
  }
  .trust-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 20px 22px;
    color: #eaf3fc;
    font-size: 16px;
    line-height: 1.55;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .trust-item .tick {
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.4;
  }
  @media (max-width: 640px) {
    .trust-grid { grid-template-columns: 1fr; }
  }
