/*
Theme Name: Beyond Info Solutions
Theme URI: https://beyondisinc.com
Author: Beyond Info Solutions Inc.
Author URI: https://beyondisinc.com
Description: Custom AI-focused theme for Beyond Info Solutions Inc.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: beyond-info-solutions
*/

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --ink:      #0a0a12;
  --ink2:     #0f2e1e;
  --surface:  #f0f8f3;
  --white:    #ffffff;
  --accent:   #1a7a4a;
  --accent2:  #25c26e;
  --muted:    #5a7a66;
  --border:   rgba(10,10,18,0.1);
  --border-green: rgba(26,122,74,0.15);
  --card-bg:  #ffffff;
  --nav-height: 68px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin-bottom: 1rem; color: var(--muted); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* ============================================================
   NAVIGATION — DESKTOP
============================================================ */
.beyond-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-green);
  box-shadow: 0 2px 20px rgba(26,122,74,0.06);
  transition: box-shadow 0.3s;
}

.beyond-nav.scrolled {
  box-shadow: 0 4px 28px rgba(26,122,74,0.12);
}

/* Logo */
.beyond-nav .site-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%,100% { transform: scale(0.7); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.4; }
}

/* Primary Nav Menu (WordPress generated) */
.beyond-nav .primary-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}

.beyond-nav .primary-menu > li {
  position: relative;
  margin: 0;
}

.beyond-nav .primary-menu > li > a {
  display: block;
  padding: 0 1.1rem;
  height: var(--nav-height);
  line-height: var(--nav-height);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.beyond-nav .primary-menu > li > a:hover,
.beyond-nav .primary-menu > li.current-menu-item > a,
.beyond-nav .primary-menu > li.current-page-ancestor > a {
  color: var(--accent);
}

.beyond-nav .primary-menu > li.current-menu-item > a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: -2px;
}

/* ---- DROPDOWN SUBMENU ---- */
.beyond-nav .primary-menu li.menu-item-has-children > a::before {
  content: '';
}
.beyond-nav .primary-menu li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
  margin-left: 2px;
}

.beyond-nav .primary-menu .sub-menu {
  position: absolute;
  top: calc(var(--nav-height) - 4px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-green);
  box-shadow: 0 12px 36px rgba(26,122,74,0.12);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

.beyond-nav .primary-menu li.menu-item-has-children:hover > .sub-menu,
.beyond-nav .primary-menu li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.beyond-nav .primary-menu .sub-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-radius: 6px;
  margin: 0 0.4rem;
}

.beyond-nav .primary-menu .sub-menu li a:hover {
  background: var(--surface);
  color: var(--accent);
}

/* Nav CTA button */
.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.55rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,122,74,0.3);
  background: #156038;
  color: #fff;
}

/* ---- MOBILE HAMBURGER ---- */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-green);
  box-shadow: 0 12px 32px rgba(26,122,74,0.1);
  z-index: 999;
  padding: 1rem 1.5rem 1.5rem;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-menu-drawer.open { display: block; }

.mobile-menu-drawer ul {
  list-style: none; padding: 0; margin: 0;
}
.mobile-menu-drawer ul li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu-drawer ul li a:hover { color: var(--accent); }
.mobile-menu-drawer .sub-menu {
  padding-left: 1rem;
}
.mobile-menu-drawer .sub-menu li a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  border-bottom: none;
  padding: 0.5rem 0;
}
.mobile-menu-drawer .nav-cta {
  margin-top: 1rem;
  display: block;
  text-align: center;
  width: 100%;
  padding: 0.85rem;
}

/* ============================================================
   PAGE WRAPPER — pushes content below fixed nav
============================================================ */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumbs {
  background: var(--white);
  border-bottom: 1px solid var(--border-green);
  padding: 0.65rem 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.4; }
.breadcrumbs .current { color: var(--ink); font-weight: 500; }

/* ============================================================
   PAGE HERO BANNER (subpages)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #0f5232 100%);
  color: var(--white);
  padding: 4rem 3rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}

/* ============================================================
   MAIN CONTENT LAYOUT
============================================================ */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* With sidebar */
.content-sidebar-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   PAGE / POST CONTENT STYLING
============================================================ */
.entry-content {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(26,122,74,0.06);
  border: 1px solid var(--border-green);
}

.entry-content h1 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--ink); }
.entry-content h2 { font-size: 1.7rem; margin: 2rem 0 0.75rem; color: var(--ink); padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-green); }
.entry-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; color: var(--accent); }
.entry-content h4 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; color: var(--ink); }
.entry-content p  { color: #3a4a40; line-height: 1.8; margin-bottom: 1.25rem; }
.entry-content ul,
.entry-content ol { margin-bottom: 1.25rem; color: #3a4a40; }
.entry-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.entry-content a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #156038; }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content blockquote {
  border-left: 4px solid var(--accent2);
  background: var(--surface);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}
.entry-content blockquote p { margin: 0; }
.entry-content img { border-radius: 10px; margin: 1.5rem 0; }
.entry-content table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.entry-content table th {
  background: var(--accent); color: #fff;
  padding: 0.75rem 1rem; text-align: left; font-weight: 600;
}
.entry-content table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #3a4a40;
}
.entry-content table tr:nth-child(even) td { background: var(--surface); }
.entry-content table tr:hover td { background: rgba(26,122,74,0.04); }
.entry-content hr { border: none; border-top: 1px solid var(--border-green); margin: 2rem 0; }
.entry-content pre {
  background: var(--ink); color: #a8f0c6;
  padding: 1.5rem; border-radius: 10px;
  overflow-x: auto; font-size: 0.85rem;
  margin-bottom: 1.5rem; line-height: 1.7;
}
.entry-content code {
  background: var(--surface); color: var(--accent);
  padding: 0.15rem 0.4rem; border-radius: 4px;
  font-size: 0.875rem; font-family: monospace;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }

/* ============================================================
   SIDEBAR
============================================================ */
.site-sidebar { position: sticky; top: calc(var(--nav-height) + 1.5rem); }

.widget {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-green);
  box-shadow: 0 2px 12px rgba(26,122,74,0.05);
}

.widget-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-green);
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--ink); text-decoration: none; transition: color 0.2s, padding-left 0.2s; display: block; }
.widget ul li a:hover { color: var(--accent); padding-left: 6px; }

/* Search widget */
.widget .search-form { display: flex; gap: 6px; }
.widget .search-field {
  flex: 1; padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-green);
  border-radius: 8px; font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  outline: none; transition: border-color 0.2s;
}
.widget .search-field:focus { border-color: var(--accent); }
.widget .search-submit {
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  padding: 0.55rem 0.9rem; cursor: pointer;
  font-size: 0.85rem; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.widget .search-submit:hover { background: #156038; }

/* CTA widget */
.widget-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #0f5232 100%);
  color: white;
  text-align: center;
}
.widget-cta .widget-title { color: #a8f0c6; border-color: rgba(255,255,255,0.2); }
.widget-cta p { color: rgba(255,255,255,0.85); font-size: 0.875rem; margin-bottom: 1rem; }
.widget-cta a.btn-cta {
  display: block; background: white; color: var(--accent);
  padding: 0.65rem 1rem; border-radius: 100px;
  font-weight: 600; font-size: 0.875rem;
  text-align: center; transition: transform 0.15s, box-shadow 0.15s;
}
.widget-cta a.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

/* ============================================================
   BLOG / ARCHIVE — POST CARDS
============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border-green);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,122,74,0.12);
}
.post-card .post-thumbnail img { width: 100%; height: 200px; object-fit: cover; }
.post-card .post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card .post-category {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem;
}
.post-card h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.post-card h2 a:hover { color: var(--accent); }
.post-card .post-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.post-card .post-meta { font-size: 0.75rem; color: var(--muted); display: flex; gap: 1rem; }
.post-card .read-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 500; color: var(--accent);
  text-decoration: none; margin-top: 0.75rem;
  transition: gap 0.2s;
}
.post-card .read-more:hover { gap: 8px; }

/* Pagination */
.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 3rem; flex-wrap: wrap;
}
.pagination .page-numbers {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink); border: 1px solid var(--border);
  text-decoration: none; transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--accent); color: white; border-color: var(--accent);
}
.pagination .page-numbers.dots { border: none; cursor: default; }

/* ============================================================
   SINGLE POST
============================================================ */
.single-post-meta {
  display: flex; gap: 1.5rem; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}
.single-post-meta .post-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.single-post-meta .cat-tag {
  background: var(--surface); color: var(--accent);
  padding: 0.25rem 0.75rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border-green);
  text-decoration: none;
}
.post-tags { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-green); }
.post-tags span { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-right: 0.5rem; }
.post-tags a {
  display: inline-block; background: var(--surface);
  color: var(--accent); border: 1px solid var(--border-green);
  padding: 0.25rem 0.75rem; border-radius: 100px;
  font-size: 0.78rem; margin: 0.2rem; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.post-tags a:hover { background: var(--accent); color: white; }

/* Post nav (prev/next) */
.post-navigation {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border-green);
}
.post-navigation .nav-link {
  background: var(--white); border: 1px solid var(--border-green);
  border-radius: 12px; padding: 1.25rem;
  text-decoration: none; transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.post-navigation .nav-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,122,74,0.1); }
.post-navigation .nav-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.4rem; }
.post-navigation .nav-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.post-navigation .nav-next { text-align: right; }

/* ============================================================
   BUTTONS — GLOBAL
============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  border: none; border-radius: 100px;
  padding: 0.85rem 2rem; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,122,74,0.3);
  background: #156038; color: #fff;
}

.btn-outline {
  display: inline-block;
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 100px;
  padding: 0.85rem 2rem; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--accent); color: white; }

.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 0.85rem 2rem; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem;
  align-items: start;
}
.contact-info { }
.contact-info h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.contact-item {
  display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-item-value { font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.contact-item-value a { color: var(--accent); text-decoration: none; }

/* Contact Form */
.contact-form-wrap {
  background: var(--white); border-radius: 16px;
  padding: 2rem; border: 1px solid var(--border-green);
  box-shadow: 0 4px 20px rgba(26,122,74,0.06);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink); background: var(--surface);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group textarea { min-height: 130px; }

/* WordPress default comment form styling */
#respond { margin-top: 2.5rem; }
#respond h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }
#respond .comment-form p { margin-bottom: 1rem; }
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface); outline: none;
  transition: border-color 0.2s;
}
#respond input:focus, #respond textarea:focus { border-color: var(--accent); }
#respond input[type="submit"] {
  background: var(--accent); color: white;
  border: none; border-radius: 100px;
  padding: 0.75rem 2rem; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, transform 0.15s;
}
#respond input[type="submit"]:hover { background: #156038; transform: translateY(-1px); }

/* ============================================================
   404 PAGE
============================================================ */
.page-404 {
  text-align: center; padding: 6rem 2rem;
}
.page-404 .error-code {
  font-family: 'Syne', sans-serif; font-size: 8rem; font-weight: 800;
  color: var(--accent); opacity: 0.15; line-height: 1; margin-bottom: -1rem;
}
.page-404 h1 { font-size: 2rem; margin-bottom: 1rem; }
.page-404 p { color: var(--muted); max-width: 400px; margin: 0 auto 2rem; }

/* ============================================================
   SEARCH RESULTS
============================================================ */
.search-results-header {
  background: var(--white); border-radius: 14px; padding: 1.5rem 2rem;
  margin-bottom: 2rem; border: 1px solid var(--border-green);
}
.search-results-header h1 { font-size: 1.4rem; }
.search-results-header span { color: var(--accent); }

/* ============================================================
   FOOTER
============================================================ */
.beyond-footer {
  background: var(--ink2);
  color: rgba(255,255,255,0.65);
  padding: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 0.9rem;
  color: white; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand .footer-logo .logo-mark { width: 28px; height: 28px; }
.footer-brand p {
  font-size: 0.85rem; line-height: 1.7;
  color: rgba(255,255,255,0.5); margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--accent); color: white; }

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: white; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-col ul li a:hover { color: var(--accent2); padding-left: 4px; }
.footer-col .footer-contact-item { font-size: 0.85rem; margin-bottom: 0.6rem; color: rgba(255,255,255,0.5); }
.footer-col .footer-contact-item a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-col .footer-contact-item a:hover { color: var(--accent2); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 3rem;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--accent2); }

/* ============================================================
   HOMEPAGE SECTIONS (reused from front-page)
============================================================ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 2rem 3rem 4rem;
  gap: 3rem;
  position: relative; overflow: hidden;
  background: var(--surface);
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,122,74,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: drift 8s ease-in-out infinite;
}
@keyframes drift { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-30px,30px);} }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal; color: var(--accent); position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 3px;
  background: var(--accent2); border-radius: 2px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Chat Demo */
.chat-demo {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border-green);
  box-shadow: 0 24px 64px rgba(26,122,74,0.1);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; font-family: 'Syne',sans-serif;
}
.chat-title { font-weight: 600; font-size: 0.875rem; }
.chat-status { font-size: 0.75rem; color: #22c55e; display: flex; align-items: center; gap: 4px; }
.status-dot { width:6px;height:6px;background:#22c55e;border-radius:50%;animation:blink 1.5s infinite; }
.chat-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 280px; }
.msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 0.82rem; line-height: 1.5; }
.msg-ai { background: var(--surface); color: var(--ink); border-radius: 4px 12px 12px 12px; align-self: flex-start; }
.msg-user { background: var(--accent); color: #fff; border-radius: 12px 4px 12px 12px; align-self: flex-end; }
.typing { display:flex;gap:4px;padding:0.65rem 0.9rem;align-self:flex-start; }
.typing span { width:6px;height:6px;background:var(--muted);border-radius:50%;animation:type-bounce 1.2s ease-in-out infinite; }
.typing span:nth-child(2){animation-delay:0.2s;} .typing span:nth-child(3){animation-delay:0.4s;}
@keyframes type-bounce{0%,80%,100%{transform:translateY(0);}40%{transform:translateY(-6px);}}
.chat-input-bar { border-top:0.5px solid var(--border);padding:0.75rem 1rem;display:flex;gap:8px;align-items:center; }
.fake-input { flex:1;background:var(--surface);border-radius:8px;padding:0.5rem 0.75rem;font-size:0.8rem;color:var(--muted);border:0.5px solid var(--border); }
.send-btn { width:32px;height:32px;border-radius:8px;background:var(--accent);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:white;font-size:14px; }

/* Stats Strip */
.stats-strip { display:flex;border-top:0.5px solid var(--border-green);border-bottom:0.5px solid var(--border-green);background:var(--white); }
.stat-item { flex:1;padding:2rem;border-right:0.5px solid var(--border-green);text-align:center; }
.stat-item:last-child{border-right:none;}
.stat-num { font-family:'Syne',sans-serif;font-size:2.2rem;font-weight:800;color:var(--accent);letter-spacing:-0.04em; }
.stat-label { font-size:0.8rem;color:var(--muted);margin-top:4px; }

/* Sections */
.beyond-section { padding: 6rem 3rem; }
.section-label { font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:var(--accent);margin-bottom:0.75rem; }
.beyond-section h2 { font-family:'Syne',sans-serif;font-size:clamp(2rem,3vw,2.8rem);font-weight:800;letter-spacing:-0.04em;line-height:1.1;margin-bottom:1rem; }
.section-sub { font-size:1rem;color:var(--muted);max-width:560px;margin-bottom:3rem;line-height:1.75; }

/* Services Grid */
.services-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border-green);border:1px solid var(--border-green);border-radius:16px;overflow:hidden; }
.service-card { background:var(--white);padding:2rem;transition:background 0.2s; }
.service-card:hover { background:var(--ink); }
.service-card:hover .svc-title,.service-card:hover .svc-desc { color:var(--white); }
.service-card:hover .svc-icon { background:rgba(255,255,255,0.1); }
.svc-icon { width:44px;height:44px;border-radius:10px;background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:1.2rem;margin-bottom:1.25rem;transition:background 0.2s; }
.svc-title { font-family:'Syne',sans-serif;font-weight:700;font-size:1rem;margin-bottom:0.5rem;transition:color 0.2s;color:var(--ink); }
.svc-desc { font-size:0.82rem;color:var(--muted);line-height:1.65;transition:color 0.2s; }

/* Why Section */
.why-section { padding:6rem 3rem;background:#0d2b1a;color:var(--white); }
.why-section .section-label{color:var(--accent2);} .why-section h2{color:var(--white);} .why-section .section-sub{color:rgba(255,255,255,0.55);}
.why-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem; }
.why-card { background:rgba(255,255,255,0.04);border:0.5px solid rgba(255,255,255,0.1);border-radius:14px;padding:1.75rem;transition:background 0.2s,border-color 0.2s; }
.why-card:hover { background:rgba(26,122,74,0.2);border-color:rgba(37,194,110,0.4); }
.why-num { font-family:'Syne',sans-serif;font-size:2.5rem;font-weight:800;color:rgba(37,194,110,0.25);letter-spacing:-0.05em;line-height:1;margin-bottom:0.75rem; }
.why-title { font-family:'Syne',sans-serif;font-weight:700;margin-bottom:0.5rem;font-size:1rem;color:var(--white); }
.why-desc { font-size:0.82rem;color:rgba(255,255,255,0.5);line-height:1.7; }

/* Industries */
.industries-flow { display:flex;flex-wrap:wrap;gap:10px;margin-top:2rem; }
.ind-pill { padding:0.5rem 1.25rem;border-radius:100px;border:1px solid var(--border-green);background:var(--white);font-size:0.82rem;font-weight:500;color:var(--ink);transition:all 0.2s;cursor:default; }
.ind-pill:hover { background:var(--accent);color:var(--white);border-color:var(--accent);transform:translateY(-2px); }
.ind-pill.featured { background:var(--accent);color:var(--white);border-color:var(--accent); }

/* Process */
.process-steps { display:grid;grid-template-columns:repeat(4,1fr);position:relative;margin-top:3rem; }
.process-steps::before { content:'';position:absolute;top:28px;left:10%;right:10%;height:1px;background:repeating-linear-gradient(90deg,var(--accent) 0,var(--accent) 8px,transparent 8px,transparent 16px); }
.process-step { text-align:center;padding:0 1rem; }
.step-circle { width:56px;height:56px;border-radius:50%;background:var(--white);border:2px solid var(--border-green);display:flex;align-items:center;justify-content:center;font-family:'Syne',sans-serif;font-weight:800;font-size:1rem;margin:0 auto 1rem;color:var(--accent);position:relative;z-index:1;transition:background 0.2s,border-color 0.2s; }
.process-step:hover .step-circle { background:var(--accent);color:white;border-color:var(--accent); }
.step-title { font-family:'Syne',sans-serif;font-weight:700;font-size:0.9rem;margin-bottom:0.4rem; }
.step-desc { font-size:0.78rem;color:var(--muted);line-height:1.6; }

/* CTA Section */
.cta-section { padding:6rem 3rem;text-align:center;background:var(--white);position:relative;overflow:hidden; }
.cta-section::before { content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;height:400px;background:radial-gradient(ellipse,rgba(26,122,74,0.06) 0%,transparent 70%); }
.cta-section h2 { font-size:clamp(2rem,3vw,3rem);margin-bottom:1rem;position:relative;font-family:'Syne',sans-serif;font-weight:800;letter-spacing:-0.04em; }
.cta-section p { color:var(--muted);max-width:500px;margin:0 auto 2.5rem;font-size:1rem;position:relative; }
.cta-actions { display:flex;gap:1rem;justify-content:center;flex-wrap:wrap; }
.accent-line { width:40px;height:3px;background:var(--accent2);border-radius:2px;margin:0 auto 1.5rem; }

/* ============================================================
   WORDPRESS CORE FIXES
============================================================ */
.wp-block-image img { border-radius: 10px; }
.wp-block-quote {
  border-left: 4px solid var(--accent2);
  background: var(--surface);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}
.wp-block-button__link {
  background: var(--accent) !important;
  border-radius: 100px !important;
}
.wp-block-separator { border-color: var(--border-green); }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { margin: 0 auto 1rem; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--accent); color: white; padding: 0.5rem 1rem; border-radius: 6px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .site-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-height: 60px; }
  .beyond-nav { padding: 0 1.5rem; }
  .beyond-nav .primary-menu { display: none; }
  .nav-hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 2rem 1.5rem 3rem; min-height: auto; }
  .hero::before { display: none; }
  .stats-strip { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 0.5px solid var(--border-green); }
  .beyond-section { padding: 4rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-section { padding: 4rem 1.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 3rem 1.5rem 2rem; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; padding: 1.25rem 1.5rem; }
  .breadcrumbs { padding: 0.65rem 1.5rem; }
  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .site-main { padding: 2rem 1.5rem; }
  .entry-content { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .cta-section { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; text-align: center; }
}
