/* Friendly IT Solutions — site styles (Direction B: The Connections) */
:root {
    --navy: #14213D;
    --navy-soft: #4A5672;
    --navy-line: #2D3B5C;
    --orange: #E8621A;
    --orange-deep: #B8480F;
    --sky: #F1F4F8;
    --rule: #CBD3DF;
    --white: #FFFFFF;
    --radius: 12px;

    /* Aliases kept for older pages (About, Apps) */
    --black: var(--navy);
    --near-black: var(--navy);
    --grey-text: var(--navy-soft);
    --light-bg: var(--sky);
    --border: var(--rule);
    --orange-dark: var(--orange-deep);
}

* { box-sizing: border-box; }

body {
    font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--navy);
    background: var(--white);
    font-size: 17px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { color: var(--navy); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
p { margin-bottom: 1rem; }
a { color: var(--navy); }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 36em; }
.muted { color: var(--navy-soft); }

/* ===== Buttons ===== */
.btn-orange, .btn-ghost, .btn-outline-dark-custom, .btn-outline-orange, .btn-light-solid {
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
    border: 0;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-orange { background: var(--orange); color: var(--white) !important; }
.btn-orange:hover { background: var(--orange-deep); color: var(--white); }
.btn-ghost, .btn-outline-dark-custom { background: transparent; color: var(--navy) !important; box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover, .btn-outline-dark-custom:hover { background: var(--navy); color: var(--white) !important; }
.btn-outline-orange { background: transparent; color: var(--orange-deep) !important; box-shadow: inset 0 0 0 2px var(--orange); }
.btn-outline-orange:hover { background: var(--orange); color: var(--white) !important; }
.btn-light-solid { background: var(--white); color: var(--navy) !important; }
.btn-light-solid:hover { background: var(--orange); color: var(--white) !important; }
.btn-small { padding: 10px 18px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Navigation ===== */
.site-nav { background: var(--white); border-bottom: 1px solid var(--sky); position: sticky; top: 0; z-index: 1000; padding: 14px 0; }
.site-nav .navbar-brand { font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.02em; }
.site-nav .navbar-brand b { color: var(--orange); }
.site-nav .nav-link { color: var(--navy); font-weight: 500; font-size: 0.97rem; padding: 0.5rem 0.9rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--orange-deep); }
.site-nav .dropdown-menu { border: 1px solid var(--rule); border-radius: 10px; padding: 8px; min-width: 280px; box-shadow: 0 12px 28px rgba(20, 33, 61, 0.1); }
.site-nav .dropdown-item { border-radius: 6px; padding: 10px 12px; font-weight: 600; color: var(--navy); white-space: normal; }
.site-nav .dropdown-item span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--navy-soft); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--sky); color: var(--navy); }

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section-sky { background: var(--sky); }
.section-navy { background: var(--navy); color: #C3CCDD; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-tight { padding-top: 0; }
.h-display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.h-section { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1rem; }
.lead-text { font-size: 1.15rem; color: var(--navy-soft); }

.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.split-head p { color: var(--navy-soft); margin-bottom: 0; }

/* ===== Home hero ===== */
.hero { text-align: center; padding: 72px 0 32px; }
.hero h1 { max-width: 14em; margin: 0 auto; }
.hero .lead-text { max-width: 36em; margin: 24px auto 32px; }
.hero .btn-row { justify-content: center; }

/* ===== Systems map (home page signature) ===== */
.systems-map { margin: 56px auto 0; max-width: 1100px; }
.systems-map svg { width: 100%; height: auto; display: block; }
.systems-map .node rect { fill: var(--white); stroke: var(--rule); stroke-width: 1.5; }
.systems-map .node text { font: 600 15px 'Schibsted Grotesk', sans-serif; fill: var(--navy); }
.systems-map .hub rect { fill: var(--navy); stroke: none; }
.systems-map .hub text { fill: var(--white); }
.systems-map .hub .sub { font-weight: 400; font-size: 13px; fill: #B8C2D6; }
.systems-map .wire { stroke: var(--rule); stroke-width: 1.5; fill: none; }
.systems-map .pulse { fill: var(--orange); }
.systems-map figcaption { text-align: center; font-size: 0.92rem; color: var(--navy-soft); margin-top: 8px; }
.systems-map .map-list { display: none; }

/* ===== Service tiles ===== */
.tile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.tile { display: block; background: var(--sky); border-radius: var(--radius); padding: 36px; text-decoration: none; color: var(--navy); }
.tile h3 { font-size: 1.6rem; margin-bottom: 12px; }
.tile p { color: var(--navy-soft); margin-bottom: 0; }
.tile:hover { color: var(--navy); }
.tile:hover h3 { color: var(--orange-deep); }
.tile .tile-link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--orange-deep); }
.tile-feature { grid-row: span 2; background: var(--navy); color: var(--white); }
.tile-feature h3 { color: var(--white); }
.tile-feature p { color: #C3CCDD; }
.tile-feature:hover { color: var(--white); }
.tile-feature:hover h3 { color: var(--orange); }
.tile-feature .tile-link { color: var(--orange); }
.tile-wide { grid-column: 1 / -1; }

.system-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 28px; }
.system-list div { padding: 14px 0; border-top: 1px solid var(--navy-line); }
.system-list strong { display: block; font-size: 1.05rem; color: var(--white); }
.system-list span { font-size: 0.88rem; color: #9FABC4; }

/* ===== Process track ===== */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; list-style: none; padding: 0; margin: 48px 0 0; }
.track::before { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; height: 2px; background: var(--rule); }
.track li { position: relative; }
.track .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; margin-bottom: 20px; position: relative; }
.track li:first-child .dot { background: var(--orange); border-color: var(--orange); color: var(--white); }
.track h3 { font-size: 1.2rem; margin-bottom: 6px; }
.track p { color: var(--navy-soft); font-size: 0.97rem; margin-bottom: 0; }

/* ===== Reasons (why us) ===== */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.reasons div { border-top: 2px solid var(--navy); padding-top: 18px; }
.reasons h3 { font-size: 1.15rem; margin-bottom: 8px; }
.reasons p { color: var(--navy-soft); font-size: 0.97rem; margin-bottom: 0; }

/* ===== Page header (inner pages) ===== */
.page-head { background: var(--sky); padding: 72px 0 80px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 15em; }
.page-head .lead-text { max-width: 38em; margin: 22px 0 32px; }
.crumbs { font-size: 0.9rem; color: var(--navy-soft); margin-bottom: 20px; }
.crumbs a { color: var(--navy-soft); text-decoration: none; }
.crumbs a:hover { color: var(--orange-deep); text-decoration: underline; }

/* ===== Service detail ===== */
.problem-list { list-style: none; padding: 0; margin: 0; }
.problem-list li { padding: 18px 0 18px 28px; border-top: 1px solid var(--rule); position: relative; font-size: 1.05rem; }
.problem-list li:last-child { border-bottom: 1px solid var(--rule); }
.problem-list li::before { content: ""; position: absolute; left: 0; top: 29px; width: 12px; height: 2px; background: var(--orange); }

.fit-box { background: var(--sky); border-radius: var(--radius); padding: 32px; }
.fit-box h3 { font-size: 1.25rem; margin-bottom: 14px; }
.fit-box ul { padding-left: 1.1rem; margin: 0; }
.fit-box li { padding: 4px 0; }

.deliver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deliver-grid div { background: var(--white); border-radius: var(--radius); padding: 28px; }
.deliver-grid h3 { font-size: 1.15rem; margin-bottom: 8px; }
.deliver-grid p { color: var(--navy-soft); font-size: 0.97rem; margin-bottom: 0; }

.platform-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.platform-jump a { background: var(--navy-line); color: var(--white); text-decoration: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.92rem; }
.platform-jump a:hover { background: var(--orange); color: var(--white); }
.platform { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--navy-line); scroll-margin-top: 90px; }
.platform h3 { font-size: 1.5rem; }
.platform p { margin-bottom: 0; }
.platform ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.platform li { color: var(--white); font-weight: 500; font-size: 0.97rem; padding-left: 18px; position: relative; }
.platform li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--orange); }

.example-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.example-list li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--rule); }

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--orange-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--navy-soft); padding-bottom: 22px; margin: 0; max-width: 44em; }

.other-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.other-services .tile { padding: 28px; }
.other-services .tile h3 { font-size: 1.25rem; }

/* ===== Services hub ===== */
.hub-service { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 64px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.hub-service:first-child { border-top: 0; padding-top: 0; }
.hub-service h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.hub-service .lead-text { margin: 14px 0 24px; }
.hub-points { list-style: none; padding: 0; margin: 0; }
.hub-points li { padding: 16px 0; border-top: 1px solid var(--rule); }
.hub-points li:last-child { border-bottom: 1px solid var(--rule); }
.hub-points strong { display: block; }
.hub-points span { color: var(--navy-soft); font-size: 0.95rem; }
.system-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.system-tags a { background: var(--sky); color: var(--navy); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; }
.system-tags a:hover { background: var(--navy); color: var(--white); }

/* ===== Closing call to action ===== */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 15em; margin: 0 auto 18px; }
.closing p { color: var(--navy-soft); max-width: 32em; margin: 0 auto 32px; }
.closing .call { margin-top: 18px; font-size: 0.97rem; }
.closing .call a { font-weight: 700; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #9FABC4; padding: 64px 0 32px; font-size: 0.93rem; }
.site-footer a { color: #DDE3EE; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-brand { font-weight: 800; font-size: 1.3rem; color: var(--white); margin-bottom: 10px; }
.site-footer .footer-brand b { color: var(--orange); }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .footer-base { border-top: 1px solid var(--navy-line); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .section { padding: 72px 0; }
    .site-nav .navbar-collapse { padding: 12px 0; }
    .site-nav .dropdown-menu { box-shadow: none; border: 0; padding-left: 8px; }
    .split-head, .tile-grid, .hub-service, .platform { grid-template-columns: 1fr; gap: 24px; }
    .tile-feature { grid-row: auto; }
    .track { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .track::before { display: none; }
    .reasons, .deliver-grid, .other-services { grid-template-columns: 1fr 1fr; }
    .systems-map svg { display: none; }
    .systems-map .map-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
    .systems-map .map-list li { background: var(--sky); padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.92rem; }
    .systems-map .map-list .hub-item { background: var(--navy); color: var(--white); width: 100%; text-align: center; }
}

@media (max-width: 575.98px) {
    .track, .reasons, .deliver-grid, .other-services, .system-list, .platform ul { grid-template-columns: 1fr; }
    .example-list { columns: 1; }
    .tile { padding: 26px; }
    .hero { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .systems-map .pulse { display: none; }
    * { transition: none !important; }
}
