/*
Theme Name: DIA-FNC Unified
Theme URI: https://example.com
Author: Your Creative Agency (ChatGPT)
Author URI: https://example.com
Description: Unified site theme for Data Intelligence Agency (Investigations) and Final Notice Collections (Collections). Lean, professional, approachable. Includes two home templates (Vision 3 + Vision 2), Services, Process, Compliance, and Contact with click-to-reveal.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dia-fnc-unified
Tags: minimal, business, investigations, collections
*/

/* ========== Base resets & typography ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #0f1a2a;
  background:#ffffff;
}
a { color: #0b5cab; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

:root{
  --fs-h1: clamp(28px, 4.2vw, 40px);
  --fs-h3: clamp(18px, 2.6vw, 22px);
  --fs-body: clamp(15px, 2.2vw, 18px);
}

/* ========== Header / Brand / Nav ========== */
.header { padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.brand { font-weight: 700; letter-spacing: 0.2px; }

.nav { display: flex; gap: 18px; align-items: center; }
.nav a { font-weight: 600; }

/* wp_nav_menu outputs a UL -> remove bullets & spacing */
.nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav li { margin: 0; padding: 0; }

/* Hamburger button (hidden on desktop, shown on mobile) */
.hamburger{
  display: none;
  background: #0b2240;
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

/* Desktop nav (>=769px) */
@media (min-width: 769px){
  .hamburger{ display: none; }
  #primaryNav{ display: flex; }
}

/* Mobile nav (<=768px) collapsible dropdown */
@media (max-width: 768px){
  .hamburger{ display: inline-block; }
  #primaryNav[data-collapsed="true"]{ display: none; }
  #primaryNav{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0b2240;
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
    z-index: 50;
  }
  #primaryNav a{
    color: #fff !important;
    font-weight: 600;
  }
}

/* ========== Hero ========== */
.hero { padding: clamp(48px, 8vw, 80px) 0; }
.hero h1 { margin: 0 0 10px; font-size: var(--fs-h1); line-height: 1.15; }
.hero p  { margin: 0 0 24px; font-size: var(--fs-body); color: #4b5563; }

/* Vision palettes */
.hero.v3 {
  background: linear-gradient(90deg, #0b2240 0%, #0a1b33 100%);
  color: #eaf6ff;
}
.hero.v3 p { color: #bcd2e6; }
.hero.v2 { background: #ffffff; }

/* Decorative angle */
.hero .angle-left {
  width: 0; height: 0;
  border-top: 220px solid transparent;
  border-bottom: 220px solid transparent;
  border-right: 180px solid #0b2240;
}

/* CTA */
.cta { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 700; background: #0aa5a5; color: #fff; }
.cta.orange { background: #ef7f1a; }

/* Timeline chips under hero */
.timeline { display:flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.timeline .step {
  display:flex; align-items:center;
  gap:6px; padding:4px 6px; border-radius:6px;
  background: transparent;
  font-size: 0.95rem; line-height: 1.2;
}
/* Hide only arrow separators on small screens, keep steps visible */
@media (max-width: 640px){
  .hero .timeline > div:not(.step){ display: none; }
}

/* ========== Sections / Cards / Grid ========== */
.section { padding: 50px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 20px; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }

.card h3{ font-size: var(--fs-h3); margin: 0 0 8px; }
.card p { font-size: var(--fs-body); line-height: 1.5; }

/* Responsive grid: 3 → 2 → 1 */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
}
@media (max-width: 640px){
  .grid-3{ grid-template-columns: 1fr; gap: 14px; }
  .container{ padding: 0 16px; }
  .card{ padding: 16px; border-radius: 12px; }
  .card h3, .card p{ hyphens: auto; overflow-wrap:anywhere; }
}

/* Badges & small text */
.badge { display:inline-block; padding:6px 10px; border-radius:999px; background:#e6f7f7; color:#0aa5a5; font-weight:700; font-size:12px; letter-spacing:.3px; }
.small { font-size: 14px; color:#6b7280; }

/* Icon row (Vision 2) */
.icon-row { display:flex; gap:16px; margin-top: 18px; }
.icon { width: 42px; height: 42px; border-radius: 999px; display:flex; align-items:center; justify-content:center; background:#0b2240; color:#fff; font-weight:900; }
.icon.orange { background:#ef7f1a; }

/* Reveal contact (click-to-reveal) */
.reveal { display:inline-flex; gap:10px; align-items:center; }
.reveal button { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.1); background:#0b5cab; color:#fff; font-weight:700; }
.reveal .hidden { filter: blur(6px); user-select: none; }
.reveal .value { font-weight: 700; }

/* === NAV FIX: remove bullets, prevent edge clipping, tidy layout === */

/* 1) Normalize all WordPress menu lists inside our nav */
#primaryNav ul,
#primaryNav .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#primaryNav li { margin: 0; padding: 0; }

/* 2) Desktop: keep links inline with gaps */
@media (min-width: 769px){
  #primaryNav ul { display: flex; gap: 18px; align-items: center; }
  #primaryNav a { display: inline-block; padding: 0; }
}

/* 3) Mobile dropdown panel: absolute, no overflow, no bullets */
@media (max-width: 768px){
  /* anchor the dropdown to the header row */
  .header .container { position: relative; }

  #primaryNav[data-collapsed="true"]{ display: none; }

  #primaryNav{
    position: absolute;
    right: 16px;
    top: 62px;
    width: min(88vw, 320px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #0b2240;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
    z-index: 1000;
  }

  #primaryNav ul { display: block; }
  #primaryNav a{
    display: block;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
  }
  #primaryNav a:hover{
    background: rgba(255,255,255,0.10);
    text-decoration: none;
  }
}

/* 4) Timeline: hide arrow separators but keep steps on phones */
@media (max-width: 640px){
  .hero .timeline > div:not(.step){ display: none; }
}

/* === Custom Logo + Brand Alignment === */
.custom-logo {
  width: 36px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 640px){
  .custom-logo { width: 28px; }
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand .site-info { display: flex; flex-direction: column; line-height: 1.2; }
.brand .site-info span { font-weight: 700; font-size: 1rem; }
.brand .site-info .small { font-size: 0.85rem; color: #6b7280; }

/* =========================================================
   OUR PROCESS — mobile stacking + safe text wrapping
   Works whether the section uses grid, flex, or plain cards.
   Add class `our-process` to the section wrapper in the template.
   ========================================================= */

.our-process .process-card,
.our-process .process-card * {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* If the section already uses a grid container, ensure 3→1 behavior */
.our-process .process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 980px){
  .our-process .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
}
@media (max-width: 768px){
  .our-process .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .our-process .process-card { width: 100%; margin: 0; }
}

/* Safety net: if markup doesn’t have .process-grid, stack any direct cards */
@media (max-width: 768px){
  .our-process { display: block; }
  .our-process > .card { display: block; width: 100%; margin: 0 0 14px 0; }
}

/* Optional: polish the number “pills” so they don’t push headings */
.our-process .step-pill{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  margin-right: .5rem;
  font-weight: 800;
  background:#0b2240;
  color:#fff;
}

/* Optional: match Services card feel */
.our-process .process-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  background: #fff;
}
/* ===== Our Process: bullet-proof mobile stack + safe wrapping ===== */
@media (max-width: 768px){
  /* 1) Force any card row to become a single-column stack */
  .section .process-grid,
  .section .process-cards,
  .section .cards,
  .section .row,
  .section .steps,
  .section .grid,
  .section .grid-3,
  .section [class*="process"],
  .section [class*="cards"]{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow: visible !important;  /* kill horizontal scrolling tracks */
    flex-wrap: unset !important;
  }

  /* 2) Make each card full width even if its parent is flex-based */
  .section .card{
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
  }
}

/* 3) Robust text wrapping everywhere inside cards (prevents bleed) */
.card, .card *{
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* 4) If the number badge exists, keep it from crushing the heading */
.step-pill{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  margin-right: .5rem;
  font-weight: 800;
  background:#0b2240;
  color:#fff;
}
