/*
Theme Name: Ascend Global Partners
Description: Multi-page theme for Ascend Global Partners, an exclusive T-Mobile for Business partner in Houston, Texas. Creates 17 pages on activation, gives each its own title and description, and includes a contact form, FAQ markup and local business schema.
Version: 2.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ascend
*/
:root{color-scheme:light}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* Layout: sticky header, split hero with rising-signal graphic, then alternating light and tinted sections.
   Memorable moment: the signal bars in the hero and the staircase of the four process steps. */
:root {
  --paper: #F4F6FA;
  --surface: #FFFFFF;
  --ink: #0F1B30;
  --muted: #4A586F;
  --brand: #0B3C70;
  --mist: #E4EAF3;
  --line: #C9D3E3;
  --signal: #F27A1A;
  --on-signal: #0F1B30;
  --band-bg: #0A2B50;
  --band-fg: #F3F7FC;
  --band-muted: #BCCADF;
  --band-accent: #FF8A3D;
  --band-line: rgba(243, 247, 252, .22);
  --display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #08152A;
    --surface: #0F2040;
    --ink: #E6EDF8;
    --muted: #A3B2CC;
    --brand: #7FB2F0;
    --mist: #0C1E3A;
    --line: #243A5E;
    --signal: #FF8A3D;
    --on-signal: #08152A;
    --band-bg: #071A33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #08152A;
  --surface: #0F2040;
  --ink: #E6EDF8;
  --muted: #A3B2CC;
  --brand: #7FB2F0;
  --mist: #0C1E3A;
  --line: #243A5E;
  --signal: #FF8A3D;
  --on-signal: #08152A;
  --band-bg: #071A33;
  color-scheme: dark;
}

:root {
  --logo-full: url("assets/logo-full.png");
  --logo-mark: url("assets/logo-mark.png");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--band-accent); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 84px; }
.section-tint { background: var(--mist); }
.section-head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
.section-head p { color: var(--muted); }
.band { background: var(--band-bg); color: var(--band-fg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border: 2px solid transparent; border-radius: 8px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-signal { background: var(--signal); color: var(--on-signal); }
.btn-signal:hover { filter: brightness(1.08); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--band-line); }
.section .btn-line:hover { background: var(--mist); }

/* Exclusive-partner strip */
.topbar { position: relative; z-index: 21; border-bottom: 1px solid var(--band-line); }
.topbar p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding-block: 11px; font-size: .95rem; text-align: center; color: var(--band-muted); }
.topbar strong { color: var(--band-fg); font-weight: 600; }
.topbar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--band-accent); flex: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); }
.mark { flex: none; width: 52px; aspect-ratio: 240 / 229; padding: 4px; border-radius: 10px; background-color: #FFFFFF; background-image: var(--logo-mark); background-repeat: no-repeat; background-position: center; background-size: contain; background-origin: content-box; }
.brand b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.brand small { display: block; font: 500 .72rem/1.1 var(--body); color: var(--muted); letter-spacing: .02em; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: block; padding: .6rem .85rem; border-radius: 6px; text-decoration: none; font-weight: 500; }
.main-nav a:hover { background: var(--mist); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.18em) rotate(45deg); }
.sub { position: absolute; top: 100%; left: 0; min-width: 272px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 32px rgba(8, 30, 34, .16); display: none; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { min-height: 42px; padding: 0 1.1rem; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 84px 76px; }
.tmo-lockup { display: block; width: 100%; max-width: 230px; height: auto; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.hero .sub-line { margin-top: 18px; font: 600 1.15rem var(--display); color: var(--band-accent); }
.hero .lede { margin-top: 18px; max-width: 54ch; color: var(--band-muted); font-size: 1.125rem; }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { min-width: 0; }
.logo-plate { width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1265 / 1234; padding: 7%; border-radius: 24px; background-color: #FFFFFF; background-image: var(--logo-full); background-repeat: no-repeat; background-position: center; background-size: contain; background-origin: content-box; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
.about .copy { display: grid; gap: 16px; margin-top: 18px; max-width: 56ch; color: var(--muted); }
.points li { padding: 20px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points h3 { font-size: 1.15rem; font-weight: 700; }
.points p { margin-top: 6px; color: var(--muted); }

/* Industries */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ind { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ind-top { display: grid; place-items: center; height: 132px; background: var(--mist); color: var(--brand); }
.section-tint .ind-top { background: var(--paper); }
.ind-photo { position: relative; overflow: hidden; padding: 0; }
.ind-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; display: block; }
.ind-top svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ind-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.ind h3 { font-size: 1.3rem; font-weight: 700; }
.ind p { color: var(--muted); }
.ind a { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }

/* Solutions */
.sols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.sols li { padding: 22px 0; border-top: 1px solid var(--line); min-width: 0; }
.sols h3 { font-size: 1.2rem; font-weight: 700; }
.sols p { margin-top: 6px; color: var(--muted); max-width: 52ch; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: end; }
.steps li { border-top: 4px solid var(--brand); padding-top: 18px; min-width: 0; }
.steps li:nth-child(1) { margin-top: 84px; }
.steps li:nth-child(2) { margin-top: 56px; }
.steps li:nth-child(3) { margin-top: 28px; }
.steps .n { font: 800 2.4rem/1 var(--display); color: var(--brand); }
.steps h3 { margin-top: 10px; font-size: 1.25rem; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); }

/* T-Mobile band */
.partner .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 84px; }
.partner h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
.partner .copy { margin-top: 18px; display: grid; gap: 14px; color: var(--band-muted); max-width: 54ch; }
.partner ul li { padding: 16px 0; border-top: 1px solid var(--band-line); font-weight: 500; }
.partner ul li:last-child { border-bottom: 1px solid var(--band-line); }
.partner ul span { display: block; margin-top: 2px; font-weight: 400; color: var(--band-muted); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 1.15rem var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 1.5rem/1 var(--body); color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
.contact .copy { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.reach { margin-top: 28px; display: grid; gap: 14px; }
.reach dt { font-weight: 600; }
.reach dd { margin: 2px 0 0; color: var(--muted); user-select: all; }
form { display: grid; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 1rem var(--body); }
textarea { min-height: 112px; resize: vertical; }
form .btn { justify-self: start; }
#form-status { min-height: 1.5em; color: var(--muted); font-size: .95rem; }


/* Footer */
.site-footer { padding-block: 56px 28px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer address { font-style: normal; margin-top: 16px; line-height: 1.7; color: var(--band-muted); }
.site-footer h4 { margin: 0 0 12px; font-family: var(--display); font-size: 1rem; color: var(--band-fg); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--band-fg); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--band-line); font-size: .9rem; color: var(--band-muted); }
.site-footer .legal span { margin-right: auto; }
.site-footer .legal a { color: var(--band-muted); }

.nav-m { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .header-actions { display: none; }
  .nav-m { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--surface); border-bottom: 1px solid var(--line); max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .has-sub > a::after { display: none; }
  .sub { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .hero .wrap, .about, .partner .wrap, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .steps li:nth-child(n) { margin-top: 0; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .section { padding-block: 60px; }
  .hero .wrap { padding-block: 56px 52px; }
  .sols, .steps, .row { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Inner pages ---------- */
.page-hero .wrap { padding-block: 64px 56px; }
.crumbs { font-size: .92rem; color: var(--band-muted); margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: inherit; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; max-width: 20ch; max-width: 24ch; }
.page-hero .lede { margin-top: 18px; max-width: 62ch; color: var(--band-muted); font-size: 1.15rem; }
.page-hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.3rem; color: var(--muted); }
.prose-faq { margin-top: 56px; }
.prose-faq h2 { margin: 0 0 18px; }
.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card h2, .card h3 { font-size: 1.15rem; font-weight: 700; }
.card p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.card .btn { margin-top: 16px; width: 100%; }
.card ul { margin-top: 12px; }
.card li + li { margin-top: 8px; }
.card li a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.page-photo { margin: 0 0 36px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.page-photo img { display: block; width: 100%; height: auto; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 56px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; max-width: 26ch; }
.cta-band p { margin-top: 8px; color: var(--band-muted); max-width: 52ch; }

/* Home extras */
.ind a.ind-link { text-decoration-thickness: 1px; }
.sols a { text-decoration: none; }
.sols a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.sols h3 a { color: inherit; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.post-card h2 { font-size: 1.3rem; font-weight: 700; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card time { font-size: .9rem; color: var(--muted); }
.post-card p { color: var(--muted); }
.pagination { margin-top: 32px; display: flex; gap: 16px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); max-width: 62ch; }
.entry img { max-width: 100%; height: auto; border-radius: 8px; }
.entry .meta { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.entry p, .entry li { color: var(--muted); }
.entry h2, .entry h3 { margin: 32px 0 12px; }
.entry p { margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status.ok { color: #1E7B34; font-weight: 600; }
#form-status.err { color: #B3261E; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #form-status.ok { color: #7FD08F; } :root:not([data-theme="light"]) #form-status.err { color: #FF9C94; } }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }
@media (max-width: 960px) {
  .page-body .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside { position: static; }
}
@media (max-width: 620px) { .page-hero .wrap { padding-block: 44px 40px; } }

.nb { white-space: nowrap; }

/* Call-me pop-up */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.modal::backdrop { background: rgba(5, 14, 30, .62); }
.modal form { border: 0; border-radius: 0; background: transparent; padding: 26px; max-height: calc(100vh - 24px); overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 1.6rem; font-weight: 700; }
.modal-x { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-copy { color: var(--muted); margin-top: -6px; }
#callback-status { min-height: 1.5em; color: var(--muted); font-size: .95rem; }
#callback-status.ok { color: #1E7B34; font-weight: 600; }
#callback-status.err { color: #B3261E; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #callback-status.ok { color: #7FD08F; } :root:not([data-theme="light"]) #callback-status.err { color: #FF9C94; } }
@media (max-width: 620px) { .modal form { padding: 20px; } }

.post-thumb { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 6px; }
.entry img.post-hero { width: 100%; height: auto; border-radius: 12px; margin-bottom: 24px; }
