/* Homepage styles (NPXSoft, based on VaxVoIP design system) */
body.page-home {
  --ink: #153c31;
  --ink-2: #234b40;
  --gold: #d99a08;
  --gold-dark: #b97800;
  --cream: #f8f2e8;
  --cream-2: #fffaf3;
  --paper: #ffffff;
  --muted: #64746f;
  --border: #e9e3d9;
  --shadow: 0 18px 45px rgba(32, 46, 39, .09);
  --radius: 22px;
}

body.page-home { box-sizing: border-box; margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:has(body.page-home) { scroll-behavior: smooth; }

body.page-home h1, body.page-home h2, body.page-home h3, body.page-home .brand strong { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
body.page-home h1, body.page-home h2, body.page-home h3, body.page-home p { margin-top: 0; }
body.page-home h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; margin-bottom: 18px; }
body.page-home h3 { line-height: 1.25; }
body.page-home .eyebrow { margin-bottom: 12px; color: var(--gold-dark); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
body.page-home .section { padding: 110px 0; }
body.page-home .section-heading { max-width: 760px; margin-bottom: 48px; }
body.page-home .section-heading.centered { text-align: center; margin-inline: auto; }

/* ==========================================================================
   HEADER & NAVIGATION (Specific overrides for homepage)
   ========================================================================== */
body.page-home .site-header { height: 76px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
body.page-home .nav-wrap { height: 72px; display: flex; align-items: center; gap: 34px; }
body.page-home .brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
body.page-home .brand-mark { width: 43px; height: 43px; color: #b97800; display: grid; place-items: center; }
body.page-home .brand span:last-child { display: flex; flex-direction: column; line-height: 1; }
body.page-home .brand strong { font-size: 1.45rem; color: var(--ink); display: flex; align-items: center; }
body.page-home .brand .brand-accent { color: var(--gold); font-style: normal; font-weight: 700; }
body.page-home .brand small { margin-top: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--gold-dark); text-transform: uppercase; }

body.page-home .primary-nav { display: flex; align-items: center; justify-content: center; gap: 32px; margin-left: auto; }
body.page-home .primary-nav > a, 
body.page-home .nav-item > button { padding: 24px 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); transition: color 0.15s; }
body.page-home .primary-nav > a:hover, 
body.page-home .nav-item > button:hover { color: var(--gold-dark); }
body.page-home .nav-item > button { border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
body.page-home .nav-item .chevron { margin-left: 4px; font-size: 0.85em; font-weight: 600; transform: translateY(1px); }

body.page-home .menu-button { display: none; margin-left: auto; border: 0; background: none; padding: 6px; }

/* Header CTA Button */
body.page-home .header-cta.button { background: var(--gold-dark); border: 1px solid var(--gold-dark); color: #fff; height: 46px; min-height: 46px; padding: 0 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(185, 120, 0, 0.15); }
body.page-home .header-cta.button:hover { background: #a56a00; border-color: #a56a00; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(185, 120, 0, 0.25); }

/* Mega Menu */
body.page-home .mega-menu { top: calc(100% + 10px); left: auto; right: 0; transform: translateY(8px); width: 460px; }
body.page-home .has-menu:hover .mega-menu, 
body.page-home .has-menu:focus-within .mega-menu { transform: translateY(0); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
body.page-home .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 1px solid var(--gold-dark); border-radius: 8px; background: var(--gold-dark); color: white; box-shadow: 0 6px 16px rgba(185, 120, 0, 0.2); transition: all 0.2s ease; cursor: pointer; font-weight: 600; text-decoration: none; }
body.page-home .button:hover { transform: translateY(-2px); background: #a56a00; border-color: #a56a00; box-shadow: 0 10px 24px rgba(185, 120, 0, 0.3); }
body.page-home .button-outline { background: transparent; color: var(--gold-dark); box-shadow: none; }
body.page-home .button-outline:hover { background: var(--cream); color: var(--gold-dark); border-color: var(--gold-dark); }
body.page-home .button-dark-outline { background: transparent; border-color: rgba(255,255,255,.55); color: white; box-shadow: none; }
body.page-home .button-dark-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ==========================================================================
   HERO & MAIN SECTIONS
   ========================================================================== */
body.page-home .hero { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(218,157,24,.12), transparent 28%), linear-gradient(105deg, #fbf5ec 0%, #fff 48%, #faf5ed 100%); }
body.page-home .hero-grid { min-height: 650px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 40px; padding-block: 58px; }
body.page-home .hero h1 { max-width: 610px; margin-bottom: 24px; font-size: clamp(3.1rem, 6.1vw, 5.65rem); line-height: .98; }
body.page-home .hero h1 span { color: var(--gold-dark); }
body.page-home .hero-visual { position: relative; min-width: 0; }
body.page-home .hero-visual img { position: relative; z-index: 1; width: 100%; border-radius: 28px; mix-blend-mode: multiply; }
body.page-home .hero-grid > .hero-visual { align-self: stretch; display: flex; align-items: center; justify-content: center; }

body.page-home .proof-grid strong { color: var(--ink); }
body.page-home .product-card:hover, 
body.page-home .product-card:focus-visible { transform: translateY(-6px); border-color: #e1bd62; box-shadow: var(--shadow); }
body.page-home .text-link { position: absolute; left: 26px; bottom: 25px; color: var(--gold-dark); font-weight: 600; font-size: .88rem; }

/* Process / Solutions Dark Grid */
body.page-home .solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
body.page-home .solution-grid article { padding: 27px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.035); min-width: 0; }
body.page-home .solution-grid h3 { margin: 16px 0 8px; }
body.page-home .solution-grid p { margin: 0; color: #c4d4cf; font-size: .92rem; }

/* Developer / Founder */
body.page-home .developer-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
body.page-home .resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Closing CTA */
body.page-home .closing-cta { padding: 0 0 50px; background: white; }
body.page-home .closing-card { min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 58px; border-radius: 28px; color: white; background: radial-gradient(circle at 85% 50%, rgba(215,157,17,.17), transparent 20%), linear-gradient(120deg, #0d352b, #08261f); box-shadow: 0 20px 40px rgba(8, 38, 31, 0.2); }
body.page-home .closing-card h2 { max-width: 680px; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
body.page-home .closing-card p:not(.eyebrow) { max-width: 690px; color: #bfd0ca; margin-bottom: 0; font-size: 1.05rem; }
body.page-home .closing-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

/* Agent AI feature panel */
body.page-home .ai-card { min-height: 420px; grid-template-columns: 1.1fr .9fr; gap: 50px; padding: 58px; border-radius: 30px; background: linear-gradient(135deg,#fff 0 58%,#f5ead9 58%); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; align-items: center; }
body.page-home .ai-card > div:first-child { padding: 0; min-width: 0; }
body.page-home .ai-card h2 { max-width: 680px; }
body.page-home .ai-card p:not(.eyebrow) { max-width: 700px; color: var(--muted); }
body.page-home .ai-visual-panel { display: grid; min-height: 0; place-items: center; border: 0; border-radius: 0; background: transparent; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  body.page-home .hero-grid { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  body.page-home .hero h1, body.page-home .hero-lead { margin-inline: auto; }
  body.page-home .hero-actions, body.page-home .hero-notes { justify-content: center; }
  
  body.page-home .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-home .solution-grid h3, body.page-home .solution-grid p { overflow-wrap: anywhere; }
  body.page-home .developer-grid { grid-template-columns: 1fr; gap: 40px; }
  body.page-home .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-home .closing-card { align-items: flex-start; flex-direction: column; padding: 40px; }
}

@media (max-width: 900px) {
  body.page-home .ai-card { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 38px; border-radius: 24px; background: #fff; }
  body.page-home .ai-visual-panel { min-height: 390px; border: 1px solid rgba(185, 120, 0, .14); border-radius: 18px; background: linear-gradient(145deg, #fbf5ec, #f2e3cf); padding: 20px; }
}

@media (max-width: 850px) {
  /* Mobile Header & Nav */
  body.page-home .site-header { height: 72px; }
  body.page-home .nav-wrap { height: 68px; position: relative; }
  body.page-home .header-cta { display: none; }
  body.page-home .menu-button { display: block; width: 42px; height: 42px; margin-left: auto; padding: 7px; border: 0; border-radius: 9px; cursor: pointer; }
  body.page-home .menu-button > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); }
  
  body.page-home .primary-nav { position: absolute; top: 68px; right: 0; left: auto; z-index: 200; display: none; width: min(330px, calc(100vw - 40px)); max-height: calc(100vh - 92px); margin: 0; padding: 12px 18px; overflow-y: auto; align-items: stretch; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 18px 42px rgba(21, 60, 49, .18); }
  body.page-home .primary-nav.is-open { display: flex; }
  body.page-home .primary-nav > a { display: flex; width: 100%; height: 42px; min-height: 42px; box-sizing: border-box; align-items: center; margin: 4px 0; padding: 0 8px; border-bottom: 1px solid var(--border); text-align: left; }
  body.page-home .nav-item { width: 100%; border-bottom: 1px solid var(--border); }
  body.page-home .nav-item > button { display: flex; width: 100%; height: 42px; min-height: 42px; box-sizing: border-box; align-items: center; justify-content: space-between; margin: 4px 0; padding: 0 8px; text-align: left; }
  
  body.page-home .mega-menu { position: static; display: none; width: 100%; max-width: 100%; margin: 0 0 10px; padding: 6px; grid-template-columns: 1fr; gap: 0; border: 0; border-radius: 12px; background: var(--cream-2); box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  body.page-home .nav-item.is-submenu-open .mega-menu { display: grid; transform: none; }
  body.page-home .mega-menu a { min-height: 46px; padding: 12px 14px; border-radius: 8px; }
  body.page-home .mega-menu span { display: none; }
  
  body.page-home .mobile-contact-link { display: flex; width: 100%; height: 46px; align-items: center; justify-content: center; margin: 10px 0 4px; background: var(--gold-dark); color: #fff; border-radius: 8px; font-weight: 600; border: none; }
}

@media (max-width: 560px) {
  body.page-home .container { width: min(100% - 28px, var(--container)); }
  body.page-home .hero-grid { min-height: auto; padding-top: 50px; }
  body.page-home .hero h1 { font-size: clamp(2.55rem, 12vw, 3.2rem); }
  body.page-home .solution-grid, body.page-home .resource-grid { grid-template-columns: minmax(0, 1fr); }
  body.page-home .solution-grid article { padding: 24px; }
  body.page-home .closing-card { padding: 38px 26px; }
  body.page-home .closing-actions { width: 100%; }
  body.page-home .closing-actions .button { width: 100%; }
  
  body.page-home .ai-card { gap: 28px; padding: 22px 14px; border-radius: 20px; }
  body.page-home .ai-card h2 { font-size: clamp(2rem, 9vw, 2.55rem); line-height: 1.08; }
  body.page-home .ai-card .tag-list { margin: 22px 0 26px; }
  body.page-home .ai-card .button { width: 100%; padding-inline: 16px; text-align: center; }
  body.page-home .ai-visual-panel { min-height: 380px; padding: 18px 8px; border-radius: 16px; }
}