/*
Theme Name:         Berg Cyber Experts
Theme URI:          https://www.bergcyberexperts.co.za
Author:             Berg Cyber Experts
Author URI:         https://www.bergcyberexperts.co.za
Description:        Custom full-page WordPress theme for Berg Cyber Experts. Features the complete landing page with dark navy and crimson brand identity, animated hero, team profiles with expandable biographies, services grid, mission and values sections, sectors, and AJAX contact form.
Version:            1.0.0
Requires at least:  5.0
Tested up to:       6.7
Requires PHP:       7.0
License:            Proprietary - All Rights Reserved
License URI:        https://www.bergcyberexperts.co.za
Text Domain:        berg-cyber-experts
Tags:               dark, custom-colors, full-width-template, one-page, cybersecurity
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ============================================================
   BERG CYBER EXPERTS - ALL CUSTOM STYLES
   ============================================================ */

  :root {
    --navy:        #0d1b2e;
    --navy-2:      #111f30;
    --navy-3:      #162540;
    --navy-4:      #1c2e4a;
    --red:         #c41f1f;
    --red-bright:  #e02020;
    --red-dim:     rgba(196,31,31,0.14);
    --red-glow:    rgba(224,50,40,0.22);
    --silver:      #b0c4d8;
    --silver-2:    #c8d8e8;
    --silver-dim:  rgba(176,196,216,0.12);
    --chrome:      #8ca0b8;
    --text:        #dce8f0;
    --text-muted:  #7090a8;
    --text-dim:    #405870;
    --border:      rgba(255,255,255,0.06);
    --border-red:  rgba(196,31,31,0.35);
    --border-silver: rgba(176,196,216,0.18);
    --card-bg:     rgba(17,31,48,0.9);
    --font-display:'Rajdhani', sans-serif;
    --font-hero:   'Bebas Neue', cursive;
    --font-body:   'DM Sans', sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* Grid texture */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(196,31,31,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(176,196,216,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(13,27,46,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    height: 76px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.3s;
  }
  .logo-wrap {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
  }
  .logo-img {
    height: 52px; width: 52px;
    object-fit: contain;
    border-radius: 8px;
  }
  .logo-text {
    display: flex; flex-direction: column;
    line-height: 1.1;
  }
  .logo-berg {
    font-family: var(--font-hero);
    font-size: 1.7rem;
    letter-spacing: 0.1em;
    color: var(--silver-2);
    line-height: 1;
  }
  .logo-sub {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--red);
    text-transform: uppercase;
    font-weight: 600;
  }
  .nav-links { display: flex; gap: 2.25rem; list-style: none; }
  .nav-links a {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--silver); }
  .nav-cta {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
  }
  .nav-cta:hover { background: var(--red-bright); transform: translateY(-1px); }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
  .hamburger span { display: block; width: 22px; height: 2px; background: var(--silver); border-radius: 2px; }
  .mobile-nav { display: none; flex-direction: column; background: var(--navy-2); border-bottom: 1px solid var(--border); position: fixed; top: 76px; left: 0; right: 0; z-index: 99; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 1rem 5%; font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border); }
  .mobile-nav a:hover { color: var(--silver); }

  /* ── HERO ── */
  #hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 5% 80px;
    overflow: hidden;
    gap: 4rem;
  }
  .hero-bg-glow {
    position: absolute;
    top: 10%; right: -8%;
    width: 55%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(196,31,31,0.1) 0%, transparent 65%);
    pointer-events: none;
  }
  .hero-bg-glow-2 {
    position: absolute;
    bottom: 0; left: 0;
    width: 40%; height: 50%;
    background: radial-gradient(ellipse at bottom-left, rgba(13,27,46,0) 30%, rgba(196,31,31,0.05) 100%);
    pointer-events: none;
  }
  .hero-content { position: relative; z-index: 2; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border-red);
    background: var(--red-dim);
    border-radius: 3px;
    padding: 6px 14px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--red-bright);
    text-transform: uppercase;
    margin-bottom: 1.75rem;
  }
  .hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--red-bright);
    border-radius: 50%;
    animation: blink 1.8s ease-in-out infinite;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

  h1 {
    font-family: var(--font-hero);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 0.75rem;
  }
  h1 .red { color: var(--red-bright); }
  h1 .silver { color: var(--silver-2); }
  .hero-tagline {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--silver);
    margin-bottom: 1.25rem;
  }
  .hero-sub {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 2.25rem;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-red {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
  }
  .btn-red:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,31,31,0.4); }
  .btn-outline {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: var(--silver);
    border: 1px solid var(--border-silver);
    padding: 14px 32px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
  }
  .btn-outline:hover { border-color: var(--silver-2); color: var(--silver-2); }
  .hero-stats {
    display: flex; gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
  }
  .stat-num {
    font-family: var(--font-hero);
    font-size: 2.25rem;
    letter-spacing: 0.04em;
    color: var(--silver-2);
  }
  .stat-num span { color: var(--red-bright); }
  .stat-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
  }

  /* Hero visual */
  .hero-visual {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-logo-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-logo-img {
    width: min(420px, 90%);
    height: auto;
    filter: drop-shadow(0 0 60px rgba(196,31,31,0.35)) drop-shadow(0 0 120px rgba(196,31,31,0.15));
    animation: float 5s ease-in-out infinite;
  }
  @keyframes float {
    0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)}
  }
  .hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-red);
    pointer-events: none;
  }

  /* ── TICKER ── */
  #ticker-section {
    background: var(--navy-2);
    border-top: 1px solid var(--border-red);
    border-bottom: 1px solid var(--border-red);
    overflow: hidden;
  }
  .ticker-wrap { padding: 20px 0; overflow: hidden; }
  .ticker-track {
    display: flex;
    animation: ticker 32s linear infinite;
    white-space: nowrap;
  }
  @keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
  .ticker-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0 2.25rem;
    border-right: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    flex-shrink: 0;
  }
  .ticker-diamond {
    width: 6px; height: 6px;
    background: var(--red);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* ── SECTION COMMONS ── */
  section { position: relative; z-index: 1; }
  .sec { max-width: 1200px; margin: 0 auto; padding: 100px 5%; }
  .sec-label {
    font-family: var(--font-display);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 10px;
  }
  .sec-label::before {
    content: '';
    display: inline-block;
    width: 24px; height: 2px;
    background: var(--red);
    flex-shrink: 0;
  }
  h2 {
    font-family: var(--font-hero);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: 0.05em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.25rem;
  }
  h2 .accent { color: var(--red-bright); }
  .sec-lead {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.75;
    font-weight: 300;
  }

  /* ── SERVICES ── */
  #services { background: var(--navy); }
  .services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 2rem; }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-red);
    border: 1px solid var(--border-red);
    border-radius: 6px;
    overflow: hidden;
  }
  .service-card {
    background: var(--navy);
    padding: 2.25rem;
    transition: background 0.25s;
    position: relative;
    overflow: hidden;
  }
  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .service-card:hover { background: var(--navy-2); }
  .service-card:hover::before { transform: scaleX(1); }
  .svc-icon {
    width: 50px; height: 50px;
    background: var(--red-dim);
    border: 1px solid var(--border-red);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  .service-card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--silver-2);
    margin-bottom: 0.75rem;
  }
  .service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; font-weight: 300; }
  .svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
  .svc-tag {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    border: 1px solid var(--border-red);
    color: var(--red-bright);
    background: var(--red-dim);
  }
  .svc-tag.silver {
    border-color: var(--border-silver);
    color: var(--chrome);
    background: var(--silver-dim);
  }

  /* ── APPROACH ── */
  #approach { background: var(--navy-2); }
  .approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .pillars { display: flex; flex-direction: column; gap: 1.25rem; }
  .pillar {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.5rem 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
  }
  .pillar:hover { background: var(--navy-3); border-color: var(--border-silver); border-left-color: var(--red-bright); }
  .pillar-num {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    color: var(--red);
    line-height: 1;
    min-width: 36px;
    letter-spacing: 0.05em;
  }
  .pillar h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--silver-2);
    margin-bottom: 0.3rem;
  }
  .pillar p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

  /* Framework orbital */
  .fw-visual { display: flex; align-items: center; justify-content: center; }

  /* ── MISSION / VISION ── */
  #mission {
    background: var(--navy-3);
    border-top: 1px solid var(--border-red);
    border-bottom: 1px solid var(--border-red);
  }
  .mission-inner { max-width: 1200px; margin: 0 auto; padding: 80px 5%; }
  .mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
  .mv-block {
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 4px;
  }
  .mv-block h3 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.25rem;
  }
  .mv-block p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: var(--silver);
  }

  /* ── VALUES ── */
  #values { background: var(--navy); }
  .values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 3rem;
  }
  .val-card { background: var(--navy); padding: 2.25rem 1.75rem; transition: background 0.2s; }
  .val-card:hover { background: var(--navy-2); }
  .val-num {
    font-family: var(--font-hero);
    font-size: 2.5rem;
    color: var(--red-dim);
    line-height: 1;
    margin-bottom: 0.75rem;
    -webkit-text-stroke: 1px var(--border-red);
    color: transparent;
  }
  .val-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 0.5rem;
  }
  .val-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

  /* ── SECTORS ── */
  #sectors { background: var(--navy-2); }
  .sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
  }
  .sector-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.25s;
  }
  .sector-card:hover { border-color: var(--border-red); transform: translateY(-4px); background: var(--navy-3); }
  .sector-icon { font-size: 2rem; margin-bottom: 1rem; }
  .sector-card h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 0.5rem;
  }
  .sector-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

  /* ── LEADERSHIP ── */
  #leadership { background: var(--navy); }
  .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
  .team-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }
  .team-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .team-card:hover { border-color: var(--border-silver); }
  .team-card:hover::after { transform: scaleX(1); }

  .team-photo-wrap {
    width: 100%; height: 200px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-red);
    position: relative;
  }
  .team-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.3s, transform 0.4s;
  }
  .team-card:hover .team-photo { filter: grayscale(0%) contrast(1.1); transform: scale(1.03); }

  .team-certs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1rem; }
  .cert-pill {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid var(--border-silver);
    color: var(--chrome);
    background: var(--silver-dim);
  }
  .btn-bio {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--border-red);
    color: var(--red-bright);
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
  }
  .btn-bio:hover { background: var(--red-dim); }
  .bio-expanded { margin-top: 1rem; }
  .bio-section { margin-bottom: 1rem; }
  .bio-section-title {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.4rem;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-red);
  }
  .bio-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }
  .bio-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
  .bio-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
    padding-left: 12px;
    position: relative;
    line-height: 1.5;
  }
  .bio-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 0.65rem;
    top: 1px;
  }
  .team-avatar {
    width: 54px; height: 54px;
    background: var(--red-dim);
    border: 2px solid var(--border-red);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-hero);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: var(--red-bright);
    margin-bottom: 1.25rem;
  }
  .team-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--silver-2);
    margin-bottom: 4px;
  }
  .team-role {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
  }
  .team-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

  /* ── CONTACT ── */
  #contact { background: var(--navy-2); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
  .contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
  .c-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: 4px;
  }
  .c-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: var(--red-dim);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
  }
  .c-item h5 {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 3px;
  }
  .c-item p { font-size: 0.875rem; color: var(--silver); font-weight: 300; }
  .c-item a { color: var(--red-bright); text-decoration: none; }
  .c-item a:hover { text-decoration: underline; }

  /* Form */
  .form-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 6px;
    padding: 2.5rem;
  }
  .form-box h3 {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 1.75rem;
  }
  .contact-form { display: flex; flex-direction: column; gap: 1rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 5px; }
  label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  input, select, textarea {
    background: rgba(13,27,46,0.8);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 11px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }
  input::placeholder, textarea::placeholder { color: var(--text-dim); }
  input:focus, select:focus, textarea:focus { border-color: var(--red); }
  select option { background: var(--navy-2); }
  textarea { resize: vertical; min-height: 110px; }
  .btn-submit {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.25rem;
  }
  .btn-submit:hover { background: var(--red-bright); box-shadow: 0 8px 28px rgba(196,31,31,0.4); }
  #form-success { display:none; text-align:center; color: var(--silver); font-family: var(--font-display); font-size: 0.875rem; letter-spacing: 0.06em; margin-top: 0.5rem; }

  /* ── FOOTER ── */
  footer {
    background: var(--navy);
    border-top: 1px solid var(--border-red);
    padding: 2.5rem 5%;
  }
  .footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
  }
  .footer-copy { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; }
  .footer-badges { display: flex; flex-wrap: wrap; gap: 6px; }
  .f-badge {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border: 1px solid var(--border-red);
    color: var(--red);
    border-radius: 2px;
  }
  .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
  .footer-links a {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--silver); }

  /* Responsive */
  @media (max-width: 1000px) {
    #hero { grid-template-columns: 1fr; padding-top: 110px; }
    .hero-visual { order: -1; }
    .hero-logo-img { width: min(260px, 70vw); }
    .approach-grid { grid-template-columns: 1fr; }
    .fw-visual { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .mission-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(3,1fr); }
    .services-grid { grid-template-columns: repeat(2,1fr); }
  }
  @media (max-width: 700px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hero-stats { flex-direction: column; gap: 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 500px) {
    .values-grid { grid-template-columns: 1fr; }
  }


  @keyframes spin1 { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }
  .hero-ring { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); border-radius:50%; border:1px solid rgba(196,31,31,0.2); pointer-events:none; }

@keyframes fwspin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

/* ============================================================
   WORDPRESS COMPATIBILITY - PHP 7 SAFE
   ============================================================ */

/* Admin bar offset for fixed nav */
.admin-bar #navbar {
  top: 32px;
}
.admin-bar .mobile-nav {
  top: 108px;
}
@media screen and (max-width: 782px) {
  .admin-bar #navbar {
    top: 46px;
  }
  .admin-bar .mobile-nav {
    top: 122px;
  }
}

/* Hide default theme header/footer on Berg full-page template */
body.page-template-page-berg-full .site-header,
body.page-template-page-berg-full .site-footer,
body.page-template-page-berg-full #masthead,
body.page-template-page-berg-full #colophon,
body.page-template-page-berg-full .wp-site-blocks > header,
body.page-template-page-berg-full .wp-site-blocks > footer,
body.page-template-page-berg-full .entry-header,
body.page-template-page-berg-full .entry-footer,
body.page-template-page-berg-full .site-branding,
body.page-template-page-berg-full nav.site-navigation,
body.page-template-page-berg-full .navigation-top,
body.page-template-page-berg-full #site-navigation {
  display: none !important;
}

/* Remove entry-content padding/margin/max-width */
body.page-template-page-berg-full .entry-content,
body.page-template-page-berg-full .page-content,
body.page-template-page-berg-full article.page,
body.page-template-page-berg-full .wp-block-post-content,
body.page-template-page-berg-full .site-content,
body.page-template-page-berg-full #content,
body.page-template-page-berg-full #primary,
body.page-template-page-berg-full main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Reset common theme overrides */
body.page-template-page-berg-full img {
  border: none;
  max-width: 100%;
  height: auto;
}
body.page-template-page-berg-full a {
  color: inherit;
  text-decoration: none;
}
body.page-template-page-berg-full ul,
body.page-template-page-berg-full ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-template-page-berg-full h1,
body.page-template-page-berg-full h2,
body.page-template-page-berg-full h3,
body.page-template-page-berg-full h4,
body.page-template-page-berg-full h5,
body.page-template-page-berg-full h6 {
  margin: 0;
  padding: 0;
}
body.page-template-page-berg-full p {
  margin: 0;
  padding: 0;
}
body.page-template-page-berg-full input,
body.page-template-page-berg-full select,
body.page-template-page-berg-full textarea,
body.page-template-page-berg-full button {
  -webkit-appearance: none;
  appearance: none;
}
