/* Shared layouts for About, ongoing IT support and local coverage. */
.local-service-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: .35rem;
    background: var(--surface-alt);
    box-shadow: var(--shadow);
}
.local-service-card h3 { font-size: 1.3rem; color: var(--brand-navy); }
.local-service-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.local-service-icon, .local-service-card .check-item__icon { color: var(--brand-teal); }
.local-service-card .jtn-text-link { margin-top: auto; }
.local-area-links { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; padding: 0; list-style: none; }
.local-area-links a { color: var(--brand-teal); text-underline-offset: .2em; }
.local-questions { max-width: 52rem; }
.local-questions details { border-top: 1px solid var(--border); padding-block: .85rem; }
.local-questions summary { color: var(--brand-navy); font-weight: 700; }
.local-questions details p { margin: .65rem 0 0; }
.jtn-hero { padding: 76px 0 65px; background: var(--surface-alt); }
.jtn-split { display: grid; grid-template-columns: 1.12fr 1fr; gap: 65px; align-items: center; }
.jtn-eyebrow {
    color: var(--brand-teal);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.8;
    margin: 0 0 22px;
}
.jtn-hero h1 {
    color: var(--brand-navy);
    font-size: clamp(2.7rem, 4.9vw, 4.9rem);
    line-height: 1.07;
    letter-spacing: -.045em;
    margin: 0 0 27px;
}
.jtn-intro { font-size: 1.08rem; line-height: 1.8; max-width: 570px; }
.jtn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--surface);
    background: var(--brand-copper);
    font-size: 1.1875rem;
    font-weight: 700;
    text-decoration: none;
}
.jtn-button:hover, .jtn-button:focus-visible { color: var(--surface); background: var(--brand-copper-hover); }
.jtn-text-link { color: var(--brand-teal); font-weight: 700; text-underline-offset: 4px; }
.jtn-hero-photo { margin: 0; }
.jtn-hero-photo img { width: 100%; height: 470px; object-fit: cover; object-position: center 40%; border-radius: 12px; }
.jtn-hero-photo figcaption, .jtn-local-grid figcaption { color: var(--muted); font-size: .8rem; padding-top: 12px; }
.jtn-hero-photo a, .jtn-local-grid a { color: inherit; }

.jtn-section { padding: 82px 0; }
.jtn-section h2 { color: var(--brand-navy); font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1.15; margin: 0 0 25px; }
.jtn-section h3, .jtn-local-grid figcaption strong { color: var(--brand-navy); }
.jtn-section p { line-height: 1.8; }
.jtn-heading-row { display: flex; gap: 55px; align-items: start; justify-content: space-between; }
.jtn-heading-row > * { flex: 1; }
.jtn-heading-row > p { max-width: 480px; }
.jtn-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 35px; }
.jtn-service, .jtn-offer-note {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-alt);
    box-shadow: var(--shadow);
}
.jtn-number { display: block; font-size: .8rem; font-weight: 700; color: var(--brand-teal); margin-bottom: 32px; }
.jtn-service h3 { font-size: 1.3rem; line-height: 1.3; }
.jtn-tint { background: var(--surface-alt); }
.jtn-tint .jtn-offer-note { background: var(--surface); }
.jtn-offer-list { padding-left: 20px; line-height: 2; }
.jtn-local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 30px 0; }
.jtn-local-grid figure { margin: 0; }
.jtn-local-grid img { width: 100%; height: 270px; object-fit: cover; border-radius: 12px; }
.jtn-local-grid figcaption strong { display: block; font-size: 1.05rem; margin-bottom: 5px; }

@media (max-width: 1199px) {
    .jtn-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .jtn-hero { padding: 45px 0; }
    .jtn-split, .jtn-heading-row { display: grid; grid-template-columns: 1fr; gap: 35px; }
    .jtn-hero-photo img { height: 360px; }
    .jtn-section { padding: 50px 0; }
    .jtn-services, .jtn-local-grid { grid-template-columns: 1fr; }
    .jtn-local-grid img { height: 230px; }
}
@media print {
    .jtn-section { padding: 20px 0; }
}

/* Some older headers set their dark theme inline. Keep shared text and controls legible on daylight surfaces. */
.page-header {
    background: var(--surface-alt) !important;
    color: var(--brand-navy) !important;
}
.page-header :is(h1, h2), .page-header h1 span { color: var(--brand-navy) !important; }
.page-header p { color: var(--text) !important; opacity: 1 !important; }
.page-header :is(.hero-badge, .section-label, .hero-tech-tag, .hero-trust-badge) {
    color: var(--brand-teal) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}
.page-header .btn-outline-custom {
    color: var(--brand-navy);
    background: transparent;
    border-color: var(--brand-navy);
}
.page-header .btn-outline-custom:hover, .page-header .btn-outline-custom:focus-visible {
    color: var(--surface);
    background: var(--brand-navy);
}
.page-header .hub-up-link, .path-hero .hub-up-link { color: var(--brand-teal); }

.customer-path {
    --path-ink: var(--brand-navy);
    --path-accent: var(--brand-teal);
    --path-soft: var(--surface-alt);
    color: var(--text);
}
.customer-path .path-hero { background: var(--surface-alt); color: var(--brand-navy); }
.path-hero .path-intro, .path-hero-note p, .hero-note > p { color: var(--text); }
.path-hero .path-back, .path-hero .path-secondary, .hub-jump a,
.customer-path .path-hero .path-eyebrow, .path-hero-note > i, .hero-note > i { color: var(--brand-teal); }
.hub-jump a, .residential-jump a { border-color: var(--border); }
.hub-jump a:hover, .residential-jump a:hover { color: var(--brand-navy); background: var(--surface); }
.hero-note, .path-hero-note {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--brand-navy);
}
.hero-note > h2 { color: var(--brand-navy); }
.customer-path .path-card, .service-card { border-color: var(--border); box-shadow: var(--shadow); }
.customer-path .path-button, .customer-path .path-hero .path-button {
    background: var(--brand-copper);
    color: var(--surface);
    font-weight: 700;
    font-size: 1.1875rem;
}
.customer-path .path-button:hover, .customer-path .path-button:focus-visible {
    background: var(--brand-copper-hover);
    filter: none;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-teal); outline-offset: 4px; }

/* Mixed-size residential photography and swipeable service cards. */
.residential-hero-photo { margin:0; }
.residential-hero-photo img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:65px 12px 12px 12px; }
.residential-hero-photo figcaption { margin-top:14px; color:var(--text); font-size:.85rem; }
.residential-slider-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:26px 0 18px; }
.residential-slider-toolbar p { margin:0; max-width:620px; }
.residential-slider-controls { display:flex; gap:10px; flex-shrink:0; }
.residential-slider-controls button { width:48px; height:48px; border:1px solid var(--border); background:var(--surface); color:var(--brand-navy); border-radius:50%; font-size:1.35rem; }
.residential-slider-controls button:hover { background:var(--surface-alt); }
.residential-slider-controls button:disabled { opacity:.35; cursor:default; }
.residential-slides { display:flex; align-items:stretch; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; padding:5px 4px 20px; scrollbar-color:var(--muted) var(--surface-alt); }
.residential-slide { flex:0 0 310px; scroll-snap-align:start; border:1px solid var(--border); border-radius:16px; overflow:hidden; background:var(--surface); display:flex; flex-direction:column; }
.residential-slide-feature { flex-basis:390px; }
.residential-slide img { width:100%; height:180px; object-fit:cover; }
.residential-slide-feature img { height:245px; }
.residential-slide:nth-child(3n+2) img { object-position:35% center; }
.residential-slide-body { padding:24px; display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.residential-slide-number { color:var(--brand-teal); font-size:.72rem; letter-spacing:.12em; font-weight:750; margin-bottom:14px; }
.residential-slide h3 { color:var(--brand-navy); font-weight:750; font-size:1.35rem; line-height:1.25; }
.residential-slide p { font-size:.91rem; margin:14px 0 24px; }
.residential-slide a.jtn-button { margin-top:auto; padding:12px 16px; color:var(--surface); }
.residential-photo-note { font-size:.73rem; color:var(--muted); margin-top:15px; }
.residential-detail-photo { margin:28px 0 0; max-width:320px; }
.residential-detail-photo img { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:12px; }
.residential-detail-photo-wide { max-width:100%; }
@media(max-width:575px) {
 .residential-slide,.residential-slide-feature { flex-basis:86%; }
 .residential-slide img { height:165px; }
 .residential-slide-feature img { height:210px; }
 .residential-slide-body { padding:20px; }
 .residential-slider-toolbar { align-items:flex-start; gap:12px; }
 .residential-slider-toolbar p { font-size:.85rem; }
 .residential-slider-controls button { width:44px; height:44px; }
}
.field-photo { min-width: 0; margin: 0; }
.field-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: .5rem;
}
.field-photo figcaption {
    margin-top: .6rem;
    color: var(--muted, #64748B);
    font-size: .875rem;
    line-height: 1.5;
}
.field-photo figcaption a { color: inherit; text-underline-offset: .15em; }
