/* ===== netITworks — WP theme additions (mobile menu + WP-specific bits) =====
   Layered on top of the design styles.css. Uses the same design tokens. */

/* Burger hidden on desktop */
.nav-burger { display: none; }

/* WP nav-menu rendered as <ul> inside .nav-links — flatten to match design <a> row */
.nav-links .nav-links-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 30px;
}
.nav-links .nav-links-menu li { margin: 0; }

/* ===== Mobile menu (design had no nav ≤1024px — added) ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-deep, #08111F);
  background: linear-gradient(160deg, #0E1A2C 0%, #08111F 100%);
  padding: 96px 28px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu[hidden] { display: block; } /* JS controls visibility via .is-open */
.mobile-menu-inner {
  display: flex; flex-direction: column; gap: 6px;
  max-width: 520px; margin: 0 auto;
}
.mobile-menu-inner a {
  color: #fff; text-decoration: none;
  font-family: 'Clash Grotesk', 'Satoshi', sans-serif;
  font-size: 30px; font-weight: 600;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: color 180ms ease;
}
.mobile-menu-inner a:hover { color: var(--brand, #A6CE41); }
.mobile-menu-inner .btn {
  margin-top: 22px; border-bottom: none;
  justify-content: center; text-align: center;
}
.mobile-menu-inner .mobile-phone {
  margin-top: 18px; border-bottom: none;
  font-family: 'JetBrains Mono', monospace; font-size: 18px;
  color: var(--brand, #A6CE41);
}

/* Burger button */
.nav-burger {
  width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; padding: 10px; position: relative; z-index: 210;
}
.nav-burger span {
  display: block; width: 100%; height: 2px; margin: 4px 0;
  background: currentColor; border-radius: 2px;
  transition: transform 240ms ease, opacity 200ms ease;
}
body.menu-open { overflow: hidden; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* WP admin bar offset for fixed elements (logged-in preview) */
.admin-bar .mobile-menu { padding-top: 128px; }

/* ===== Mobile overflow hardening (design lacked sub-1024 polish) ===== */
/* The Three.js canvas buffer is sized rect.width×pixelRatio with updateStyle=false,
   so without a CSS cap it can paint wider than the viewport and widen the document,
   which stops margin:auto sections from shrinking and makes headings run off-screen. */
html, body { overflow-x: hidden; max-width: 100%; }

#stack-canvas { display: block; width: 100% !important; height: 100% !important; }

@media (max-width: 1024px) {
  .hero-right { width: 100%; }
}

@media (max-width: 600px) {
  .vendors, .services, .profil, .valori, .proces, .promisiune, .contact {
    padding-left: 20px; padding-right: 20px;
  }
  h1, h2, h3, .acc-title, .acc-deck, .promise-quote, .hero-sub { overflow-wrap: anywhere; }
  /* Tame the large display headings so they fit a 390px phone without clipping. */
  .vendors-head h2, .services-intro h2, .profil-head h2, .valori-head h2,
  .proces-head h2, .contact-copy h2 { font-size: clamp(24px, 6vw, 30px) !important; }
  .vendors-head h2 { font-size: clamp(22px, 5.6vw, 28px) !important; }
  .promise-quote { font-size: clamp(22px, 6.5vw, 30px) !important; }
}

/* ============================================================
   INNER PAGES (Phase 3) — designed-by-extension from homepage
   ============================================================ */

/* ---- Page hero (dark) ---- */
.page-hero {
  background: linear-gradient(160deg, #0E1A2C 0%, #08111F 100%);
  color: #fff;
  padding: 130px 32px 84px;
}
.admin-bar .page-hero { padding-top: 150px; }
.page-hero-inner { max-width: 1120px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Clash Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.03em;
  color: #fff; margin: 0;
}
.page-hero .page-lead {
  margin-top: 22px; max-width: 720px;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.74);
}

/* ---- Generic light sections ---- */
.cards-section, .entry-section { background: var(--bg-soft); padding: 88px 32px; }
.entry-wrap {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 330px; gap: 44px; align-items: start;
}
.entry-wrap-narrow { max-width: 840px; margin: 0 auto; }

/* ---- Entry content card (override glass-panel to light) ---- */
.entry-content {
  background: #fff !important; border: 1px solid var(--line) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); color: var(--ink);
}
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: 'Clash Grotesk', sans-serif; color: var(--ink); line-height: 1.15;
  letter-spacing: -0.02em; margin: 1.6em 0 0.5em;
}
.entry-content h2 { font-size: clamp(24px, 2.6vw, 32px); }
.entry-content h3 { font-size: clamp(20px, 2.1vw, 26px); }
.entry-content h4, .entry-content h5 { font-size: 18px; text-transform: none; }
.entry-content p { margin: 0 0 1.1em; line-height: 1.72; color: var(--ink-soft); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.2em; }
.entry-content li { margin: 0.35em 0; line-height: 1.6; color: var(--ink-soft); }
.entry-content a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--brand); }
.entry-content blockquote {
  margin: 1.5em 0; padding: 14px 22px; border-left: 3px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--ink);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-cta { margin-top: 2em; }

/* ---- Aside ---- */
.entry-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.aside-card {
  background: #fff !important; border: 1px solid var(--line) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-radius: var(--radius); padding: 26px;
}
.aside-list { list-style: none; margin: 8px 0 0; padding: 0; }
.aside-list li { border-top: 1px solid var(--line-soft); }
.aside-list li:first-child { border-top: none; }
.aside-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 0; color: var(--ink); text-decoration: none; font-weight: 500;
  transition: color .18s, padding-left .18s;
}
.aside-list a:hover { color: var(--brand-deep); padding-left: 6px; }
.aside-contact .aside-phone { display: block; font-family: 'Clash Grotesk', sans-serif; font-size: 24px; font-weight: 600; color: var(--ink); margin-top: 6px; text-decoration: none; }
.aside-contact .aside-email { display: block; margin-top: 8px; color: var(--brand-deep); font-family: 'JetBrains Mono', monospace; font-size: 13px; text-decoration: none; }

/* ---- Cards grid (services / generic) ---- */
.cards-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: #fff !important; border: 1px solid var(--line) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-radius: var(--radius); padding: 30px 28px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(8,17,31,0.12); border-color: rgba(166,206,65,0.5) !important; }
.svc-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--brand-deep); }
.svc-card h3 { font-family: 'Clash Grotesk', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.svc-card p { font-size: 15px; line-height: 1.6; color: var(--ink-mute); margin: 0; flex: 1; }
.svc-more { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--brand-deep); margin-top: 6px; }

/* ---- CTA band (dark) ---- */
.cta-band { background: var(--bg-deep); color: #fff; padding: 90px 32px; text-align: center; }
.cta-band-inner { max-width: 760px; margin: 0 auto; }
.cta-band h2 { font-family: 'Clash Grotesk', sans-serif; font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; color: #fff; }
.cta-band p { margin: 18px auto 30px; max-width: 600px; color: rgba(255,255,255,0.72); line-height: 1.6; }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Team grid (Despre noi) ---- */
.team-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #A6CE41, #6B8826); color: #08111F;
  font-family: 'Clash Grotesk', sans-serif; font-weight: 700; font-size: 34px;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: 'Clash Grotesk', sans-serif; font-size: 18px; font-weight: 600; color: var(--ink); }
.team-card .role { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }

/* ---- Vendor wall (Parteneri) ---- */
.vendor-wall { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand-chip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 16px; text-align: center; font-family: 'JetBrains Mono', monospace;
  font-size: 14px; color: var(--ink-soft); transition: border-color .2s, color .2s, transform .2s;
}
.brand-chip:hover { border-color: rgba(166,206,65,0.6); color: var(--brand-deep); transform: translateY(-3px); }
.brand-chip.featured { border-color: rgba(166,206,65,0.5); }

/* ---- FAQ ---- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 4px; display: flex; gap: 16px; align-items: baseline;
  font-family: 'Clash Grotesk', sans-serif; font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--brand-deep); font-size: 24px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 26px; color: var(--ink-soft); line-height: 1.7; max-width: 760px; }

/* ---- Inner-page responsive ---- */
@media (max-width: 1024px) {
  .cards-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-wrap { grid-template-columns: 1fr; }
  .entry-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .entry-aside .aside-card { flex: 1 1 260px; }
}
@media (max-width: 600px) {
  .cards-grid, .team-grid { grid-template-columns: 1fr; }
  .cards-section, .entry-section, .cta-band, .page-hero { padding-left: 20px; padding-right: 20px; }
}

/* ---- Contact page ---- */
.contact-page-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
/* Form labels/inputs are white, so give the card a SOLID dark bg (glass-panel
   is translucent and would read as near-white on this light section). */
.contact-page-grid .contact-form {
  background: #0E1A2C !important; border: 1px solid rgba(255,255,255,0.12) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-radius: var(--radius-lg); padding: 36px; align-self: start;
}
@media (max-width: 900px) { .contact-page-grid { grid-template-columns: 1fr; } }

/* ---- Section titles in light card sections ---- */
.section-title { font-family: 'Clash Grotesk', sans-serif; font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); margin-top: 6px; }

/* ---- Ghost button on light backgrounds ---- */
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--line); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: 0.02em; }
.btn-ghost-dark:hover { border-color: var(--brand); color: var(--brand-deep); }

/* ============================================================
   BLOG (Phase 4)
   ============================================================ */
.blog-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(8,17,31,0.12); border-color: rgba(166,206,65,0.5); }
.post-card-thumb { aspect-ratio: 16/10; background: var(--bg-deep-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-thumb .thumb-fallback { font-family: 'JetBrains Mono', monospace; color: var(--brand); font-size: 14px; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-mute); }
.post-cat { color: var(--brand-deep); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { font-family: 'Clash Grotesk', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.post-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-mute); margin: 0; flex: 1; }
.post-card-more { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--brand-deep); margin-top: 4px; }

/* Single post */
.single-hero .post-meta-row { margin-top: 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: rgba(255,255,255,0.6); display: flex; gap: 12px; align-items: center; }
.single-hero .post-meta-row .dot { opacity: 0.5; }
.single-featured { max-width: 980px; margin: -56px auto 0; padding: 0 32px; position: relative; z-index: 2; }
.single-featured img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; box-shadow: 0 30px 70px rgba(8,17,31,0.35); }
.single-featured + .entry-section { padding-top: 56px; }

/* Pagination */
.blog-pagination { max-width: 1180px; margin: 48px auto 0; }
.blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; transition: all .18s;
}
.blog-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-deep); }
.blog-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #08111F; font-weight: 600; }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .single-featured { margin-top: -32px; padding: 0 20px; } }
