/* company-page.css
   The four operating-company landing pages (/community-fiber,
   /quality-cablevision, /simplifytech, /advanced-products-group). One
   template, coloured per company through --co, which only ever appears as
   an identifying rule — never a fill — so four brand colours never compete
   with the NPTech palette around them. */

.co-page { --co: var(--blue); }
.co-cfn { --co: var(--cfn); }
.co-qc { --co: var(--qc); }
.co-simplify { --co: var(--simplify); }
.co-apg { --co: var(--apg); }

/* --- Hero ---------------------------------------------------------------- */
.co-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.co-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }

.co-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 30px; padding: 0; list-style: none; color: var(--ink-soft); font-family: var(--font-heading); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.co-crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--rule); }
.co-crumbs a { color: var(--blue-dark); text-decoration: none; }
.co-crumbs a:hover { text-decoration: underline; }

/* The logo sits on a 4px rule in the company's colour — the same mark the
   About page bands and the homepage ledger use to say whose row this is. */
.co-logo { display: block; width: auto; height: 38px; max-width: 190px; margin-bottom: 22px; padding-left: 16px; border-left: 4px solid var(--co); object-fit: contain; object-position: left center; }
.co-hero h1 { max-width: 13ch; font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.04; }
.co-lede { max-width: 560px; margin-top: 22px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.65; }
.co-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }

.co-hero-figure { margin: 0; }
.co-hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--surface); }
/* Product cutouts (transparent background) are shown whole on the surface
   tint rather than cropped to fill the frame. */
.co-hero-figure--cutout img { padding: clamp(24px, 4vw, 48px); object-fit: contain; background: var(--surface); }
.co-hero-figure figcaption { margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--co); color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }

/* --- At a glance: the homepage contact-band ledger, four facts wide ------ */
.co-facts { padding: clamp(36px, 5vw, 60px) 0; background: var(--surface); }
.co-facts h2 { margin-bottom: 22px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.co-facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.co-facts dl > div { padding: 24px 28px 24px 0; border-bottom: 1px solid var(--rule); }
.co-facts dl > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.co-facts dt { margin-bottom: 8px; color: var(--ink-soft); font-family: var(--font-heading); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.co-facts dd { margin: 0; color: var(--ink); font-family: var(--font-heading); font-size: 1rem; font-weight: 700; line-height: 1.45; }
.co-facts dd a { color: var(--blue-dark); }
.co-facts dd small { display: block; margin-top: 4px; color: var(--ink-soft); font-family: var(--font-body); font-size: .86rem; font-weight: 400; }

/* --- What they do: asymmetric two columns, body starting lower ----------- */
.co-section { padding: var(--section-y) 0; }
.co-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9%; align-items: start; }
.co-split h2 { max-width: 12ch; font-size: clamp(2.05rem, 3.4vw, 3.1rem); }
.co-split-body { padding-top: 24px; border-top: 4px solid var(--co); }
.co-split-body > p { max-width: 64ch; margin-bottom: 18px; color: var(--ink-soft); font-size: 1.06rem; }
.co-services { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 36px; margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); list-style: none; color: var(--ink); font-size: .95rem; line-height: 1.7; }
.co-services li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: 2px; background: var(--co); }
.co-photo { margin: 40px 0 0; }
.co-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); }
.co-photo figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .88rem; }

/* --- How it fits with NPTech: the one dark band, the family as a ledger --- */
.co-family { padding: var(--section-y) 0; background: var(--dark); color: var(--on-dark); }
.co-family-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9%; align-items: start; }
.co-family h2 { max-width: 12ch; color: var(--paper); font-size: clamp(2.05rem, 3.4vw, 3.1rem); }
.co-family-copy p { max-width: 60ch; margin-bottom: 18px; color: var(--on-dark); font-size: 1.06rem; }
.co-family-copy a:not(.co-sibling) { color: var(--paper); }
.co-siblings { margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(242, 242, 242, .22); list-style: none; }
.co-siblings li { --sib: var(--blue); border-bottom: 1px solid rgba(242, 242, 242, .22); }
.co-siblings .sib-cfn { --sib: var(--cfn); }
.co-siblings .sib-qc { --sib: var(--qc); }
.co-siblings .sib-simplify { --sib: var(--simplify); }
.co-siblings .sib-apg { --sib: var(--apg); }
.co-siblings .sib-npt { --sib: var(--sky); }
.co-sibling { display: grid; grid-template-columns: 1fr auto; gap: 2px 24px; align-items: center; min-height: 48px; padding: 20px 8px 20px 20px; border-left: 4px solid var(--sib); color: var(--paper); text-decoration: none; transition: background-color .2s ease; }
.co-sibling strong { font-family: var(--font-heading); font-size: 1.12rem; }
.co-sibling span { grid-column: 1; color: rgba(242, 242, 242, .8); font-size: .94rem; }
.co-sibling::after { content: '\203A'; grid-column: 2; grid-row: 1 / 3; font-size: 1.6rem; transition: transform .2s ease; }
.co-sibling:hover { background: rgba(242, 242, 242, .06); }
.co-sibling:hover::after { transform: translateX(3px); }
.co-family a:focus-visible { outline-color: var(--paper); }

/* --- Ways out to the company's own site ----------------------------------
   Three, escalating: the address beside the "at a glance" heading, a
   contextual link after the services list, and a closing panel. Every one
   is an ordinary link to the company's site, named by its address so no
   arrow icon is needed (they cluttered the links on phones); the closing
   panel sets the address large instead of adding a second button, so the
   hero keeps the page's one primary action. */
.co-facts-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.co-facts-head h2 { margin-bottom: 0; }
.co-site-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-dark); font-family: var(--font-heading); font-size: .95rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.co-deep { margin-top: 26px; }
.co-out.text-link::after { content: none; }

.co-visit { padding: 0 0 var(--section-y); }
.co-visit-panel { display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(30px, 4vw, 52px) clamp(28px, 4vw, 54px); background: var(--card); border: 1px solid var(--rule); border-top: 7px solid var(--co); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.co-visit-logo { width: 100%; max-width: 200px; max-height: 72px; object-fit: contain; object-position: left center; }
.co-visit-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.co-visit-copy p { max-width: 46ch; margin-top: 10px; color: var(--ink-soft); }
.co-visit-actions { justify-self: end; text-align: right; }
.co-visit-domain { display: inline-flex; align-items: center; min-height: 48px; color: var(--blue-dark); font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; text-decoration: none; border-bottom: 2px solid currentColor; }
.co-visit-domain:hover { color: var(--blue-deep); }
.co-visit-actions p { margin-top: 12px; color: var(--ink-soft); font-size: .92rem; }
.co-visit-actions p a { color: var(--blue-dark); }

/* --- Questions ----------------------------------------------------------- */
.co-faq .co-split-body { border-top-width: 1px; border-top-color: var(--rule); padding-top: 0; }
.co-faq details { border-bottom: 1px solid var(--rule); }
.co-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--font-heading); font-size: 1.06rem; font-weight: 700; line-height: 1.35; }
.co-faq summary::-webkit-details-marker { display: none; }
.co-faq summary::after { content: '+'; flex: none; color: var(--ink-soft); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.co-faq details[open] summary::after { content: '\2212'; }
.co-faq summary:hover { color: var(--blue-dark); }
.co-faq details p { max-width: 68ch; padding: 0 0 24px; color: var(--ink-soft); }
.co-faq details a { color: var(--blue-dark); }

@media (max-width: 960px) {
    .co-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .co-facts dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
    .co-hero-grid, .co-split, .co-family-grid { grid-template-columns: 1fr; gap: 36px; }
    .co-hero-figure { order: -1; }
    .co-hero-figure img { aspect-ratio: 4 / 3; }
    .co-split h2, .co-family h2 { max-width: none; }
    .co-visit-panel { grid-template-columns: 1fr; gap: 20px; }
    .co-visit-actions { justify-self: start; text-align: left; }
}

@media (max-width: 560px) {
    .co-facts dl { grid-template-columns: 1fr; }
    .co-facts dl > div, .co-facts dl > div + div { padding-left: 0; border-left: 0; }
    .co-services { grid-template-columns: 1fr; }
    .co-actions .btn-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .co-sibling, .co-sibling::after { transition: none; }
}
