import type {Metadata} from 'next';
import {notFound} from 'next/navigation';
import {ArrowUpRight,ArrowRight,Check,Phone,Mail,MapPin,Monitor,ShieldCheck,Cloud,Sparkles,Compass,Handshake,PanelsTopLeft,DatabaseBackup,LockKeyhole,Factory,HeartPulse,GraduationCap,Landmark,Shield,BriefcaseBusiness,MessageSquareQuote} from 'lucide-react';
import {services,companyPages,towns,allSlugs} from '@/lib/content';
import FAQ from '@/components/faq';
import ContactForm from '@/components/contact-form';
const icons=[Monitor,ShieldCheck,Cloud,Sparkles,Compass,Handshake,PanelsTopLeft,DatabaseBackup,LockKeyhole];
export function generateStaticParams(){return allSlugs.map(slug=>({slug}))}
export async function generateMetadata({params}:{params:Promise<{slug:string}>}):Promise<Metadata>{const {slug}=await params;const data=services[slug]||companyPages[slug];if(!data)return {title:'Page not found',robots:{index:false,follow:false}};return {title:data.title,description:data.description,alternates:{canonical:`/${slug}`},openGraph:{title:`${data.title} | Cas7`,description:data.description,url:`/${slug}`,type:'website',siteName:'Cas7',locale:'en_US'},twitter:{card:'summary',title:`${data.title} | Cas7`,description:data.description}}}
function CTA(){return <section className="cta-section"><div className="container cta-inner"><div><span className="eyebrow">LET’S FIND YOUR NEXT STEP</span><h2>Better IT starts here.</h2><p>A real conversation. Practical advice. A plan for your business.</p></div><div><a className="button button-dark" href="/contact-us">Schedule a free consultation <ArrowUpRight size={18}/></a><a className="cta-phone" href="tel:+17247145829">724-714-5829</a></div></div></section>}
function Contact(){return <section className="section container contact-layout"><aside className="contact-details"><span className="eyebrow">LET’S CONNECT</span><h2>A local team.<br/>An open conversation.</h2><p>Whether you need everyday IT support, a fresh perspective, or a plan for what’s next, we’d like to hear from you.</p><a href="tel:+17247145829"><span className="contact-icon"><Phone/></span><span><small>GIVE US A CALL</small><strong>724-714-5829</strong></span></a><a href="mailto:info@cas7.net"><span className="contact-icon"><Mail/></span><span><small>SEND AN EMAIL</small><strong>info@cas7.net</strong></span></a><a href="https://www.google.com/maps/search/?api=1&query=228+N+Liberty+Street+Suite+2+New+Castle+PA+16102" target="_blank" rel="noopener noreferrer"><span className="contact-icon"><MapPin/></span><span><small>FIND US IN NEW CASTLE</small><strong>228 N Liberty Street, Suite 2<br/>New Castle, PA 16102</strong><span className="directions">Get directions ↗</span></span></a><div className="local-note">Proudly serving Pittsburgh and communities across Western Pennsylvania since 2007.</div></aside><ContactForm/></section>}
const industries=[{id:'manufacturing',name:'Manufacturing & ERP',icon:Factory,headline:'Keep production connected.',text:'From the front office to the shop floor, dependable systems help your people stay coordinated. We support the technology behind your operations and work alongside your ERP and equipment vendors.',items:['ERP infrastructure, vendor coordination, and integration planning','Network segmentation and controlled production-system access','Workstation, server, backup, and recovery planning']},{id:'healthcare',name:'Healthcare',icon:HeartPulse,headline:'More focus on people and care.',text:'Support clinical and administrative teams with reliable access, thoughtfully managed devices, and a practical approach to sensitive information.',items:['Practice-system and EHR vendor coordination','Identity controls, endpoint protection, and staff awareness','Technical support for privacy and security readiness efforts']},{id:'education',name:'Education',icon:GraduationCap,headline:'Help teaching and learning move forward.',text:'Keep staff and learners connected with manageable devices, dependable networks, and technology planning that respects your resources.',items:['Campus Wi-Fi, device management, and account lifecycle support','Microsoft 365 collaboration and secure access','Backup planning, security awareness, and lifecycle budgeting']},{id:'municipal',name:'Municipal & Government',icon:Landmark,headline:'Support the services your community relies on.',text:'Technology should help public teams serve residents. We bring structure to infrastructure, daily support, records access, and long-term planning.',items:['Department connectivity, business applications, and user support','Access reviews, backup planning, and documented procedures','Budget, procurement, and modernization planning']},{id:'defense',name:'Defense Contractors',icon:Shield,headline:'Build a stronger technical foundation.',text:'Support your contract-driven security program with an organized view of systems, access, controls, and evidence. We coordinate with your designated compliance and assessment professionals.',items:['Technical gap reviews for NIST and CMMC readiness efforts','Controlled access, endpoint protection, and evidence organization','Remediation planning and coordination with qualified assessors']},{id:'professional',name:'Professional Services',icon:BriefcaseBusiness,headline:'Make client work easier to deliver.',text:'Help your team collaborate, protect confidential work, and stay productive across offices and remote locations.',items:['Microsoft 365, secure file sharing, and remote work','Business application support and vendor coordination','Client-information protection and continuity planning']}];
export default async function Page({params}:{params:Promise<{slug:string}>}){const {slug}=await params;const data=services[slug]||companyPages[slug];if(!data)notFound();const service=services[slug];const breadcrumbs={'@context':'https://schema.org','@type':'BreadcrumbList',itemListElement:[{'@type':'ListItem',position:1,name:'Home',item:'https://cas7.net'},{'@type':'ListItem',position:2,name:data.title,item:`https://cas7.net/${slug}`}]};return <>
<script type="application/ld+json" dangerouslySetInnerHTML={{__html:JSON.stringify(breadcrumbs)}}/>
{service&&<script type="application/ld+json" dangerouslySetInnerHTML={{__html:JSON.stringify({'@context':'https://schema.org','@type':'Service',name:service.title,description:service.description,url:`https://cas7.net/${slug}`,provider:{'@id':'https://cas7.net/#organization'},areaServed:{'@type':'State',name:'Pennsylvania'}})}}/>}
<section className={'page-hero '+(slug==='about-us'||slug==='our-history'?'photo-page-hero':'')}>
{(slug==='about-us'||slug==='our-history')&&<img src="/images/pittsburgh.jpg" alt="Pittsburgh skyline" width="1800" height="1200"/>}<div className="container"><div className="breadcrumbs"><a href="/">Home</a><span>/</span>{data.title}</div><span className="eyebrow light">{data.label}</span><h1>{data.headline}</h1><p>{service?service.description:slug==='contact-us'?'Tell us about your business, your challenges, and where you want to go.':data.description}</p>{service&&<a className="button button-teal" href="/contact-us">Let’s talk about {slug==='ai-integration'?'AI':service.title.toLowerCase()} <ArrowUpRight size={18}/></a>}</div></section>
{service&&<><section className="section container"><div className="service-intro"><span className="eyebrow">{service.title.toUpperCase()}</span><h2>Built around your business.<br/><span className="muted">Backed by a local partner.</span></h2><p>{service.intro}</p></div><div className="feature-grid">{service.features.map(([name,description],i)=><article className="feature-card" key={name}><span className="feature-count">0{i+1}</span><h3>{name}</h3><p>{description}</p></article>)}</div></section><section className="outcome-band"><div className="container outcome-grid"><h2>What better<br/>can look like.</h2><ul className="check-list">{service.outcomes.map(x=><li key={x}><Check/>{x}</li>)}</ul></div></section><section className="section container faq-section"><div><span className="eyebrow">A LITTLE MORE CLARITY</span><h2>Good questions.<br/>Straight answers.</h2></div><FAQ items={service.faq}/></section><section className="related container"><h3>Bring it all together.</h3><div>{Object.entries(services).filter(([key])=>key!==slug).slice(0,3).map(([key,s])=><a key={key} href={'/'+key}>{s.title}<ArrowUpRight size={17}/></a>)}</div></section></>}
{slug==='our-services'&&<section className="section container"><div className="service-intro"><span className="eyebrow">THE SUPPORT YOU NEED. THE POSSIBILITIES AHEAD.</span><h2>One connected approach to IT.</h2><p>Support the day-to-day. Protect what matters. Plan your next move. Choose a focused project or an ongoing partnership shaped around your organization.</p></div><div className="service-grid">{Object.entries(services).map(([key,s],i)=>{const Icon=icons[i];return <a className="service-card" href={'/'+key} key={key}><div className="card-top"><span className="icon-box"><Icon size={25}/></span><span className="card-number">0{i+1}</span></div><h3>{s.title}</h3><p>{s.description}</p><span className="card-link">Explore service <ArrowUpRight size={18}/></span></a>})}</div></section>}
{slug==='about-us'&&<><section className="section container about-grid"><div><span className="eyebrow">CAS7 · IT, CLOUD, AI SERVICES</span><h2>Technology is personal.<br/>So is our approach.</h2></div><div className="prose"><p>Cas7 is an IT managed service provider based in New Castle, Pennsylvania. Founded in 2007, we help organizations bring their technology into step with their everyday work and future plans.</p><p>Our approach begins with listening. We want to understand your business, the challenges your team faces, and the outcomes that matter to you. Then we bring together practical IT support, cloud services, cybersecurity, and thoughtful AI integration.</p><p>We serve Pittsburgh and communities throughout Allegheny, Butler, Lawrence, Mercer, and Beaver counties. Being local means knowing the region—and valuing the relationships that make it work.</p><a href="/our-history" className="text-link">Read our story <ArrowUpRight size={18}/></a></div></section><section className="soft-section"><div className="container section"><div className="section-heading"><div><span className="eyebrow">WHAT GUIDES US</span><h2>Good technology.<br/>Even better relationships.</h2></div></div><div className="values-grid">{[['People first','Technology should make work easier for the people using it. We listen, explain clearly, and treat your questions with respect.'],['Practical by design','The best solution fits your business. We weigh value, complexity, security, and the realities of your day-to-day operations.'],['Looking ahead','We help you handle today’s needs while planning for tomorrow, with a clear view of priorities and the next useful step.']].map(([t,d])=><article key={t}><h3>{t}</h3><p>{d}</p></article>)}</div></div></section><section className="section container"><span className="eyebrow">CAPABILITIES WITH PURPOSE</span><h2>The right expertise for your next step.</h2><div className="credential-grid"><a href="/microsoft-365"><PanelsTopLeft/><h3>Microsoft technologies</h3><p>Microsoft 365, Azure planning, identity, and collaboration.</p></a><a href="/ai-integration"><Sparkles/><h3>Responsible AI</h3><p>Practical integration, data boundaries, and human oversight.</p></a><a href="/advisory"><ShieldCheck/><h3>SOC 2 readiness</h3><p>Technical controls and evidence preparation for independent review.</p></a></div></section></>}
{slug==='our-history'&&<section className="section container history-layout"><aside><span className="eyebrow">OUR ROOTS</span><h2>Built on local<br/>relationships.</h2><p>New Castle, Pennsylvania.<br/>Serving our region since 2007.</p></aside><div className="history-story"><article><span className="history-year">2007</span><h2>The beginning of Cas7.</h2><p>Cas7 was founded in 2007. That founding year is the starting point of a business centered on practical technology and personal service.</p></article><article><span className="history-year">Our region</span><h2>Close to the businesses we support.</h2><p>From our New Castle home, we serve Pittsburgh, Allegheny County, Butler County, and Lawrence County, along with neighboring communities across Western Pennsylvania. Our work is connected to the organizations that keep this region moving.</p></article><article><span className="history-year">Today & beyond</span><h2>The next chapter is about your business.</h2><p>Today, Cas7 brings together managed IT, cloud services, cybersecurity, consulting, and AI integration. Our focus remains practical: helping your people work confidently and preparing your technology for what comes next.</p><a className="text-link" href="/about-us">Meet your technology partner <ArrowUpRight size={18}/></a></article></div></section>}
{slug==='industries'&&<><section className="section container"><div className="service-intro"><span className="eyebrow">CONTEXT MAKES THE DIFFERENCE</span><h2>We start with how you work.</h2><p>Every industry has its own systems, pressures, and priorities. We build around yours, working alongside your people and specialist vendors.</p></div><div className="industry-detail-grid">{industries.map(({id,name,icon:Icon,headline,text,items})=><article className="industry-detail" id={id} key={id}><span className="icon-box"><Icon size={26}/></span><span className="eyebrow">{name}</span><h2>{headline}</h2><p>{text}</p><ul className="check-list">{items.map(x=><li key={x}><Check/>{x}</li>)}</ul><a className="text-link" href="/contact-us">Let’s talk about your organization <ArrowUpRight size={16}/></a></article>)}</div><p className="scope-note">Readiness services support your internal compliance program and independent assessment process; they do not constitute certification or a guarantee of compliance.</p></section></>}
{slug==='service-areas'&&<><section className="section container region-layout"><div><span className="eyebrow">NEARBY WHEN IT MATTERS</span><h2>New Castle roots.<br/>Regional reach.</h2><p>Cas7 supports organizations across Western Pennsylvania with remote assistance and on-site services arranged around your location and needs.</p><p>Our focus includes Pittsburgh and Allegheny, Butler, and Lawrence counties, plus neighboring communities in Beaver and Mercer counties.</p><a className="text-link" href="tel:+17247145829">Talk to your local team <Phone size={17}/></a></div><div className="region-card"><MapPin size={35}/><h3>At home in New Castle</h3><p>228 N Liberty Street<br/>Suite 2<br/>New Castle, PA 16102</p><a href="https://www.google.com/maps/search/?api=1&query=228+N+Liberty+Street+New+Castle+PA+16102" className="text-link" target="_blank" rel="noopener noreferrer">Get directions <ArrowUpRight size={17}/></a></div></section><section className="soft-section"><div className="container section"><span className="eyebrow">COMMUNITIES WE SERVE</span><h2>Right here in your neighborhood.</h2><div className="area-grid">{towns.map(([t,c])=><a className="area-card" href="/contact-us" key={t}><MapPin size={19}/><div><h3>{t}</h3><span>{c}</span></div><ArrowUpRight size={18}/></a>)}</div><p className="scope-note">Just outside these communities? Contact us to discuss remote support and project availability. On-site coverage and response targets are confirmed in your service agreement.</p></div></section></>}
{slug==='client-reviews'&&<section className="section container review-section"><div className="review-panel"><MessageSquareQuote size={48} strokeWidth={1.25}/><span className="eyebrow">CLIENT VOICES</span><h2>Real experiences.<br/>Shared with permission.</h2><p>We’re gathering approved client stories for this page. In the meantime, we welcome a conversation about how we work and whether Cas7 is the right fit for your organization.</p><div className="button-row"><a className="button button-dark" href="/contact-us">Ask about client references <ArrowUpRight size={17}/></a><a className="button review-email" href="mailto:info@cas7.net?subject=My%20Cas7%20experience">Share your experience <ArrowUpRight size={17}/></a></div></div><div className="review-values"><span className="eyebrow">WHAT WE WANT EVERY CLIENT TO EXPERIENCE</span><h3>Clear communication.</h3><p>Know what’s happening and what comes next.</p><h3>Thoughtful support.</h3><p>Feel heard, understood, and supported.</p><h3>A practical partnership.</h3><p>Technology decisions that make sense for your business.</p></div></section>}
{slug==='contact-us'&&<Contact/>}
{slug==='privacy-policy'&&<section className="section container legal-copy"><p className="eyebrow">LAST UPDATED: SEPTEMBER 27, 2026</p><h2>Information you share</h2><p>When you submit our contact form, we collect your name, email, company, optional phone number, and message to respond to your inquiry. Please do not submit passwords, health records, payment information, or other sensitive material.</p><h2>How the website uses it</h2><p>Contact requests are stored in the website’s hosted database. If email delivery is configured, the request is also sent to the Cas7 team using our email service provider. A date-specific security identifier derived from your network address helps limit repeated submissions.</p><h2>Website services</h2><p>Hosting providers process information needed to deliver and protect the website. The site requests fonts from Google Fonts. Map links open Google Maps, which has its own privacy practices. This website does not include advertising trackers or a marketing analytics service.</p><h2>Your choices</h2><p>You can contact Cas7 at <a href="mailto:info@cas7.net">info@cas7.net</a> or <a href="tel:+17247145829">724-714-5829</a> to ask about information submitted through this site or request correction or deletion. We use inquiry information to respond and manage the relationship, and review retention as those needs change.</p><h2>Contact</h2><p>Cas7<br/>228 N Liberty Street, Suite 2<br/>New Castle, PA 16102<br/><a href="mailto:info@cas7.net">info@cas7.net</a></p></section>}
{slug!=='contact-us'&&slug!=='privacy-policy'&&<CTA/>}
</>}
