/* ===================================================================
   ENCODLE — GLOBAL CSS
   Shared across all pages: variables, reset, nav, footer, utilities
   Loaded on every page via functions.php wp_enqueue_style()
=================================================================== */

/* ── CSS VARIABLES ── */
:root {
  /*--red: #e03030;
  --red-soft: rgba(224,48,48,.08);
  --red-hover: #c02020;
  --navy: #0f1a2e;
  --navy-mid: #1a2d4a;
  --navy-light: #2a3d60;
  --gold: #f7941d;
  --gold-soft: rgba(247,148,29,.1);
  --purple: #875a7b;
  --purple-soft: rgba(135,90,123,.1);
  --green: #25c78c;
  --green-soft: rgba(37,199,140,.1);
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray: #4a5580;
  --gray-light: #e4e8f2;*/
  --muted: #94a3b8;
  --font-body: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--navy); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── TOPBAR ── */
.enc-topbar { background: var(--navy); padding: 6px 48px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.enc-topbar a { color: var(--muted); transition: color .2s; }
.enc-topbar a:hover { color: var(--red); }
.enc-topbar-left, .enc-topbar-right { display: flex; gap: 20px; align-items: center; }

/* ── NAVIGATION ── */
.enc-nav { background: var(--navy); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--navy-light); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 24px rgba(0,0,0,.3); }
.enc-nav-logo { padding: 12px 0; }
.enc-nav-logo img { height: 44px; width: auto; display: block; }
.enc-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.enc-nav-menu li a { color: #c8d3e8; font-size: 13px; font-weight: 500; padding: 20px 16px; display: block; border-bottom: 3px solid transparent; transition: all .2s; }
.enc-nav-menu li a:hover,
.enc-nav-menu li.current-menu-item > a,
.enc-nav-menu li.current-page-ancestor > a { color: var(--white); border-bottom-color: var(--red); }
.enc-nav-menu li.menu-item-has-children { position: relative; }
.enc-nav-menu li.menu-item-has-children .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--navy-mid); border: 1px solid var(--navy-light); border-radius: 0 0 8px 8px; min-width: 200px; padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 200; list-style: none; }
.enc-nav-menu li.menu-item-has-children:hover .sub-menu { display: block; }
.enc-nav-menu .sub-menu li a { padding: 10px 18px; font-size: 13px; border-bottom: none; white-space: nowrap; }
.enc-nav-menu .sub-menu li a:hover { background: rgba(255,255,255,.05); color: var(--white); }
.enc-nav-cta { background: var(--red) !important; color: var(--white) !important; font-size: 13px; font-weight: 600; padding: 9px 20px; border: none; border-radius: 3px; transition: background .2s; border-bottom: none !important; }
.enc-nav-cta:hover { background: var(--red-hover) !important; }

/* ── BREADCRUMB ── */
.enc-breadcrumb { background: var(--off-white); border-bottom: 1px solid var(--gray-light); padding: 11px 48px; font-size: 12px; color: var(--gray); display: flex; gap: 8px; align-items: center; }
.enc-breadcrumb a { color: var(--red); font-weight: 600; }

/* ── FOOTER ── */
.enc-footer { background: #060e1c; padding: 48px 48px 24px; }
.enc-footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.06); }
.enc-footer-logo img { height: 40px; width: auto; display: block; margin-bottom: 12px; }
.enc-footer-tagline { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.enc-footer-desc { font-size: 12px; color: #6b7a99; line-height: 1.7; }
.enc-footer-col h5 { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #aab3c8; font-weight: 700; margin-bottom: 14px; }
.enc-footer-col ul { list-style: none; padding: 0; margin: 0; }
.enc-footer-col ul li a { display: block; font-size: 13px; color: #6b7a99; margin-bottom: 8px; transition: color .2s; }
.enc-footer-col ul li a:hover { color: var(--red); }
.enc-footer-bottom { max-width: 1100px; margin: 20px auto 0; display: flex; justify-content: space-between; font-size: 12px; color: #4a5580; }
.enc-footer-bottom a { color: #4a5580; margin-left: 20px; }

/* ── SHARED SECTION UTILITIES ── */
.enc-section { padding: 76px 48px; }
.enc-section-inner { max-width: 1100px; margin: 0 auto; }
.enc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.enc-eyebrow.red { color: var(--red); }
.enc-eyebrow.gold { color: var(--gold); }
.enc-eyebrow.purple { color: var(--purple); }
.enc-eyebrow.green { color: var(--green); }
.enc-section-title { font-family: var(--font-serif); font-size: 36px; font-weight: 400; line-height: 1.2; margin-bottom: 12px; letter-spacing: -.3px; }
.enc-section-title em { font-style: italic; }
.enc-section-sub { font-size: 15px; color: var(--gray); line-height: 1.75; max-width: 620px; }

/* ── SHARED BUTTONS ── */
.enc-btn { display: inline-block; padding: 13px 28px; font-size: 14px; font-weight: 700; border-radius: 3px; border: none; transition: all .2s; font-family: var(--font-body); }
.enc-btn-red { background: var(--red); color: var(--white); }
.enc-btn-red:hover { background: var(--red-hover); color: var(--white); }
.enc-btn-gold { background: var(--gold); color: var(--navy); }
.enc-btn-gold:hover { background: #e8870a; }
.enc-btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.25); }
.enc-btn-ghost:hover { border-color: rgba(255,255,255,.7); }

/* ── CONTACT MODAL ── */
.enc-modal-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(15,26,46,.8); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; }
.enc-modal-overlay.open { display: flex; }
.enc-modal-box { background: var(--white); border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 24px 64px rgba(0,0,0,.3); overflow: hidden; max-height: 92vh; overflow-y: auto; animation: encModalIn .28s ease; }
@keyframes encModalIn { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.enc-modal-header { padding: 22px 28px 0; display: flex; justify-content: space-between; align-items: center; }
.enc-modal-title { font-size: 19px; font-weight: 600; color: var(--navy); }
.enc-modal-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gray-light); background: var(--off-white); font-size: 14px; color: #6b7a99; }
.enc-modal-close:hover { background: var(--gray-light); }
.enc-modal-body { padding: 16px 28px 28px; }
.enc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.enc-form-field { margin-bottom: 14px; }
.enc-form-field label { display: block; font-size: 11px; font-weight: 600; color: #8892b0; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.enc-form-field input, .enc-form-field select, .enc-form-field textarea { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid var(--gray-light); border-radius: 8px; background: var(--off-white); color: var(--navy); outline: none; font-family: var(--font-body); transition: border-color .2s, box-shadow .2s; }
.enc-form-field input:focus, .enc-form-field select:focus, .enc-form-field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,48,48,.09); background: var(--white); }
.enc-form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-color: var(--off-white); padding-right: 36px; }
.enc-form-submit { width: 100%; padding: 12px; background: var(--red); color: var(--white); border: none; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; transition: background .2s; }
.enc-form-submit:hover { background: var(--red-hover); }
.enc-form-trust { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.enc-form-trust span { font-size: 11px; color: #b0bac8; }

/* ── SIMPLE PAGE / BLOCK EDITOR CONTENT STYLING ── */
.enc-simple-content { font-size: 15px; color: var(--gray); line-height: 1.8; }
.enc-simple-content h2 { font-family: var(--font-serif); font-size: 26px; color: var(--navy); font-weight: 400; margin: 36px 0 14px; line-height: 1.3; }
.enc-simple-content h3 { font-size: 18px; color: var(--navy); font-weight: 600; margin: 28px 0 10px; }
.enc-simple-content p { margin-bottom: 18px; }
.enc-simple-content ul, .enc-simple-content ol { margin: 0 0 18px 22px; }
.enc-simple-content li { margin-bottom: 8px; }
.enc-simple-content a { color: var(--red); font-weight: 600; text-decoration: underline; }
.enc-simple-content blockquote { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; margin: 24px 0; font-style: italic; color: var(--navy); }
.enc-simple-content img { border-radius: 10px; margin: 24px 0; }
.enc-simple-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.enc-simple-content table th, .enc-simple-content table td { padding: 10px 14px; border: 1px solid var(--gray-light); font-size: 14px; text-align: left; }
.enc-simple-content table th { background: var(--off-white); font-weight: 600; color: var(--navy); }

/* ── FAQ ACCORDION (shared component — used on homepage + pitch pages) ── */
.enc-faq-section { background: var(--white); }
.enc-faq-list { max-width: 800px; margin: 44px auto 0; }
.enc-faq-item { border-bottom: 1px solid var(--gray-light); }
.enc-faq-q { width: 100%; background: none; border: none; padding: 20px 0; text-align: left; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); gap: 16px; }
.enc-faq-q:hover { color: var(--red); }
.enc-faq-icon { font-size: 20px; color: var(--red); flex-shrink: 0; transition: transform .25s; line-height: 1; }
.enc-faq-icon.open { transform: rotate(45deg); }
.enc-faq-a { font-size: 14px; color: var(--gray); line-height: 1.75; padding: 0 0 18px; display: none; }
.enc-faq-a.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .enc-topbar, .enc-nav, .enc-breadcrumb, .enc-section, .enc-footer { padding-left: 28px; padding-right: 28px; }
  .enc-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .enc-nav { padding: 0 20px; }
  .enc-nav-menu { display: none; }
  .enc-section { padding: 48px 20px; }
  .enc-footer-top { grid-template-columns: 1fr; }
  .enc-section-title { font-size: 28px; }
  .enc-form-row { grid-template-columns: 1fr; }
  .enc-breadcrumb { padding-left: 20px; padding-right: 20px; }
}

/* ====================================================
   RESPONSIVE / MOBILE OVERRIDES
   Breakpoints: tablet ≤1024px | mobile ≤768px | small ≤480px
   ==================================================== */

@media (max-width:1024px){
  .enc-topbar,.enc-nav,.enc-section,.enc-footer{ padding-left:28px !important; padding-right:28px !important; }
  .enc-footer-top{ grid-template-columns:1fr 1fr !important; gap:28px !important; }
  .enc-metrics-grid{ grid-template-columns:repeat(2,1fr) !important; }
  .enc-testi-grid{ grid-template-columns:1fr 1fr !important; }
  .enc-plans-grid{ grid-template-columns:1fr !important; max-width:480px; margin:0 auto; }
  .enc-nav-menu{ display:none !important; }
}

@media (max-width:768px){
  .enc-topbar{ display:none; }
  .enc-nav{ padding:0 20px !important; flex-wrap:wrap; }
  .enc-nav-menu{ display:none !important; }
  .enc-nav-cta{ display:none !important; }
  .enc-nav-logo img{ height:36px !important; }

  /* Mobile toggle */
  .enc-nav-hamburger{
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:12px 0;
    margin-left:auto;
  }
  .enc-nav-hamburger span{ display:block; width:22px; height:2px; background:rgba(255,255,255,.8); border-radius:2px; }

  .enc-section{ padding:48px 20px !important; }
  .enc-footer{ padding-left:20px !important; padding-right:20px !important; }
  .enc-footer-top{ grid-template-columns:1fr !important; }
  .enc-footer-bottom{ flex-direction:column; gap:8px; text-align:center; }

  .enc-section-title{ font-size:26px !important; }
  .enc-testi-grid{ grid-template-columns:1fr !important; }
  .enc-metrics-grid{ grid-template-columns:repeat(2,1fr) !important; }
  .enc-plans-grid{ grid-template-columns:1fr !important; max-width:100% !important; }
  .enc-faq-q{ font-size:14px !important; }

  /* Modal slides up from bottom on mobile */
  .enc-modal-overlay{ align-items:flex-end !important; padding:0 !important; }
  .enc-modal-box{ border-radius:12px 12px 0 0; max-height:95vh; }
  .enc-form-row{ grid-template-columns:1fr !important; }

  /* Simple page */
  .enc-simple-content h2{ font-size:22px !important; }

  /* Page-specific grids */
  .home-hero-top,.home-journeys-grid,.home-serve-grid,.home-insight-inner,
  .home-approach-grid,.home-blog-grid,.home-svc-panel.active,
  .ns-cap-panel.active,.odoo-app-panel.active,.pitch-pain-grid,
  .odoo-editions-grid,.odoo-seg-grid,.adv-grid{ grid-template-columns:1fr !important; }

  .home-plat-panel.active{ grid-template-columns:1fr !important; }
  .home-hero-cards{ display:none !important; }
  .home-hero h1{ font-size:32px !important; }
  .home-hero-btns{ flex-direction:column; }
  .home-hero-btns button,.home-hero-btns a{ width:100% !important; }
  .home-hero-trust{ flex-direction:column; gap:10px !important; }

  .ns-cap-tabs,.odoo-cat-tabs,.home-plat-tabs,.home-svc-tabs{
    overflow-x:auto; flex-wrap:nowrap !important;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  .ns-modules-grid{ grid-template-columns:repeat(2,1fr) !important; }
  .pitch-how-timeline,.pitch-inc-grid{ grid-template-columns:1fr 1fr !important; }
  .pitch-compare-table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .modal-body{overflow-y:auto!important;}
}

@media (max-width:480px){
  .enc-section-title{ font-size:22px !important; }
  .home-hero h1,.ns-hero h1,.pitch-hero h1,.odoo-hero h1{ font-size:28px !important; }
  .enc-metrics-grid,.home-approach-grid{ grid-template-columns:1fr !important; }
  .ns-modules-grid{ grid-template-columns:1fr !important; }
  .pitch-how-timeline,.pitch-inc-grid{ grid-template-columns:1fr !important; }
  nav{ padding:0 16px !important; }
  .enc-nav-logo img{ height:32px !important; }
}

.enc-nav-hamburger{ display:none; }
