/* ==========================================================================
   Navcomm Computer Technologies
   Typeface: IBM Plex (Sans + Mono) -- one superfamily, used with scale contrast.
   Ground: near-white. Colour: one decisive blue, used only where it directs
   attention. Depth comes from rules, scale and space -- not shadows.
   ========================================================================== */

:root {
    /* Ground */
    --paper: #fbfbfd;
    --surface: #f1f3f8;
    --white: #ffffff;

    /* Ink -- cool-biased neutrals, not pure grey */
    --ink: #0a0d14;
    --ink-2: #474e5c;
    --ink-3: #79818f;

    /* Rules */
    --rule: #e3e7ee;
    --rule-2: #ccd3df;

    /* Brand -- from the Navcomm palette sheet */
    --blue: #073fd2;
    --blue-deep: #052c94;
    --azure: #457eef;
    --sky: #72c5f7;

    /* Type */
    --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

    /* Measure */
    --shell: 1240px;
    --gut: clamp(20px, 4vw, 44px);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

a {
    color: var(--blue);
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: var(--gut);
}

/* Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.08;
    text-wrap: balance;
}

.t-display {
    font-size: clamp(2.6rem, 1.3rem + 5.4vw, 5rem);
    letter-spacing: -0.034em;
    line-height: 1.02;
}

.t-head {
    font-size: clamp(1.85rem, 1.25rem + 2.5vw, 3rem);
    letter-spacing: -0.028em;
    line-height: 1.06;
}

.t-sub {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.018em;
    line-height: 1.3;
}

.lead {
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 60ch;
}

.prose {
    color: var(--ink-2);
    max-width: 66ch;
}

.prose p + p { margin-top: 1.15em; }

/* The one repeated structural device: a small mono label.
   It marks *where you are*, and nothing else uses this treatment. */
.tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: flex;
    align-items: baseline;
    gap: 0.7em;
}

.tag::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--blue);
    transform: translateY(-0.32em);
    flex: none;
}

.tag--plain::before { display: none; }

/* Bands -- deliberately unequal rhythm ---------------------------------- */

.band { padding-block: clamp(72px, 9vw, 128px); }
.band--tight { padding-block: clamp(52px, 6vw, 76px); }
.band--open { padding-block: clamp(88px, 12vw, 176px); }
.band--surface { background: var(--surface); }
.band--ink { background: var(--blue); color: var(--white); }
.band--ruled { border-top: 1px solid var(--rule); }

.band__head { margin-bottom: clamp(38px, 5vw, 64px); }
.band__head .tag { margin-bottom: 20px; }
.band__head .lead { margin-top: 18px; }

/* Shared blue title treatment -------------------------------------------- */
/* Keep the decisive brand colour focused around the page title, while the
   surrounding content and the masthead stay light for a quieter rhythm. */
.hero,
.intro {
    background: var(--paper);
    color: var(--ink);
}

.hero__title-band,
.intro__title-band {
    background: var(--blue);
    color: var(--white);
}

.hero__title-band {
    padding-block: clamp(44px, 7vw, 88px);
}

.intro__title-band {
    padding-block: clamp(38px, 5.5vw, 72px);
}

.hero__title-band .tag,
.intro__title-band .tag {
    color: rgba(255, 255, 255, 0.72);
}

.hero__title-band .tag::before,
.intro__title-band .tag::before {
    background: var(--sky);
}

.hero__title-band :focus-visible,
.intro__title-band :focus-visible {
    outline-color: var(--white);
}

/* Actions -- three distinct treatments, each with a job ------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    background: var(--blue);
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    padding: 14px 26px;
    border: 1px solid var(--blue);
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn--onblue { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn--onblue:hover { background: #eaf0fe; border-color: #eaf0fe; color: var(--blue-deep); }

/* Text action: an underline that draws in. Used for secondary paths. */
.link {
    display: inline-block;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9375rem;
    padding-bottom: 3px;
    background-image: linear-gradient(var(--blue), var(--blue));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: color 0.16s ease, background-size 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.link:hover { color: var(--blue); background-size: 100% 2px; }
.link .arrow { transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1); display: inline-block; }
.link:hover .arrow { transform: translateX(4px); }

/* Masthead ------------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 251, 253, 0.86);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--rule);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 15px;
}

.masthead__logo img {
    height: 26px;
    width: auto;
    transform: scale(1.15);
    transform-origin: left center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 34px);
}

.main-nav a {
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 400;
    transition: color 0.16s ease;
}

.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.main-nav .nav-cta {
    color: var(--blue);
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px 2px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
}

/* Hero ----------------------------------------------------------------- */
/* Asymmetric: the statement sits left and wide; the explanation and the
   single action sit offset below-right. A hairline register closes it. */

.hero { padding: 0; }

.hero .tag { margin-bottom: clamp(26px, 3.5vw, 44px); }

.hero__title { max-width: 15ch; }

.hero__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 56px);
    margin-top: 0;
    padding-block: clamp(36px, 5vw, 60px) clamp(56px, 8vw, 104px);
}

.hero__foot > :first-child { grid-column: 2; }

.hero__blurb {
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 42ch;
}

.hero__act { margin-top: 26px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* Hero register -- real information, set as data, closing the composition */
.register {
    border-top: 1px solid var(--rule-2);
    border-bottom: 1px solid var(--rule);
}

.register__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.register__cell {
    padding: 22px 0 24px;
    border-left: 1px solid var(--rule);
    padding-left: clamp(14px, 2vw, 26px);
}

.register__cell:first-child { border-left: 0; padding-left: 0; }

.register__k {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: block;
    margin-bottom: 5px;
}

.register__v {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* Page intro (inner pages) -- quieter sibling of the hero ---------------- */

.intro {
    padding: 0;
    border-bottom: 1px solid var(--rule);
}

.intro .tag { margin-bottom: clamp(22px, 3vw, 36px); }
.intro__title { max-width: 17ch; }
.intro__support {
    padding-block: clamp(28px, 4vw, 44px) clamp(38px, 5vw, 60px);
}

.intro .lead {
    margin-top: 0;
    color: var(--ink-2);
}

/* Service register ------------------------------------------------------ */
/* Not a card grid. Rows in a register, weighted by how central the service
   actually is to the business. Hierarchy is the information. */

.svc { border-top: 1px solid var(--rule-2); }

.svc__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(16px, 4vw, 60px);
    padding-block: clamp(28px, 3.4vw, 42px);
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.svc__row h3 {
    font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.9rem);
    letter-spacing: -0.026em;
}

.svc__row p { color: var(--ink-2); max-width: 54ch; }

/* Secondary services: same register, lighter weight -- on call, not always-on */
.svc__row--minor { padding-block: clamp(20px, 2.2vw, 27px); }
.svc__row--minor h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.014em; padding-top: 2px; }
.svc__row--minor p { font-size: 0.9375rem; }

.svc__note {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: clamp(34px, 4vw, 52px);
    padding-bottom: 16px;
}

/* Editorial split -- a statement against its evidence -------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(30px, 6vw, 96px);
    align-items: start;
}

.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Reasons list (Why Navcomm) -- deliberately a different rhythm to .svc */

.reasons { border-top: 1px solid var(--rule-2); }

.reason {
    padding-block: clamp(30px, 3.6vw, 46px);
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: clamp(14px, 3vw, 40px);
    align-items: baseline;
}

/* Left column is a category, not a sequence number -- these four things
   are not steps, so they are not numbered. */
.reason__i {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.reason h3 {
    font-size: clamp(1.2rem, 1.02rem + 0.8vw, 1.6rem);
    letter-spacing: -0.024em;
    margin-bottom: 10px;
}

.reason p { color: var(--ink-2); max-width: 56ch; }

/* Closing prompt -- the single decisive block of colour on the page ------ */

.prompt { background: var(--blue); color: var(--white); }

.prompt__inner {
    padding-block: clamp(64px, 9vw, 120px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: end;
}

.prompt h2 { max-width: 16ch; }

.prompt p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 46ch;
    margin-bottom: 26px;
}

/* Contact --------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(34px, 6vw, 88px);
    align-items: start;
}

.contact-aside dl { margin-top: 30px; border-top: 1px solid var(--rule); }

.contact-aside div {
    padding-block: 16px;
    border-bottom: 1px solid var(--rule);
}

.contact-aside dt {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 4px;
}

.contact-aside dd { font-size: 0.9375rem; color: var(--ink); }

.contact-phone {
    margin-top: 30px;
    padding-block: 18px 22px;
    border-block: 1px solid var(--rule);
}

.svc__row--linked h3 a { color: var(--ink); }
.svc__row--linked h3 a:hover { color: var(--blue); }
.svc__row--linked .link { margin-top: 14px; }

/* Service landing pages -------------------------------------------------- */
.service-summary {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(30px, 6vw, 96px);
    align-items: start;
}
.service-summary__actions { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.service-list { border-top: 1px solid var(--rule-2); }
.service-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.service-list strong { color: var(--ink); display: block; margin-bottom: 4px; }
.faq { border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--ink); padding-right: 32px; }
.faq details p { color: var(--ink-2); max-width: 66ch; padding-top: 12px; }

.contact-phone__label,
.footer-phone__label {
    display: block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.contact-phone__number {
    display: inline-block;
    margin-top: 7px;
    color: var(--ink);
    font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.contact-phone__number:hover {
    color: var(--blue);
}

.contact-phone__note {
    margin-top: 5px;
    color: var(--ink-2);
    font-size: 0.875rem;
}

/* Form -- hairline-framed, no card, no shadow */

.contact-form { border-top: 1px solid var(--rule-2); padding-top: 34px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule-2);
    border-radius: 0;
    padding: 9px 0 11px;
    transition: border-color 0.16s ease;
}

.form-group textarea { resize: vertical; line-height: 1.6; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--blue);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible { outline: none; }

.btn-submit { margin-top: 6px; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--rule);
    padding-block: clamp(48px, 6vw, 76px) 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 50px);
}

.footer-grid img { height: 22px; width: auto; margin-bottom: 14px; }

.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 16px;
}

.footer-col li { margin-bottom: 9px; font-size: 0.9375rem; color: var(--ink-2); }
.footer-col a { color: var(--ink-2); transition: color 0.16s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-col p { font-size: 0.9375rem; color: var(--ink-2); max-width: 30ch; }

.footer-phone {
    margin-top: 20px;
}

.footer-phone a {
    display: inline-block;
    margin-top: 6px;
    color: var(--ink);
    font-weight: 500;
}

.footer-base {
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: 22px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* Motion -- one entrance, one reveal. Nothing else moves. ---------------- */

.rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.72s cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}

.rise--2 { animation-delay: 0.09s; }
.rise--3 { animation-delay: 0.17s; }
.rise--4 { animation-delay: 0.24s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

/* Scroll reveal -- applied only to section heads, never to every child. */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.62s cubic-bezier(0.22, 0.7, 0.25, 1),
                transform 0.62s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .rise, .fade-in {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    .link, .btn, .link .arrow { transition: none; }
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
    .hero__foot { grid-template-columns: minmax(0, 1fr); }
    .hero__foot > :first-child { grid-column: 1; }
    .hero__blurb { max-width: 52ch; }

    .split, .split--even, .contact-grid, .prompt__inner, .service-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .prompt__inner { align-items: start; }

    .register__grid { grid-template-columns: repeat(2, 1fr); }
    .register__cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .register__cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    body { font-size: 16px; }

    .masthead__logo img { height: 23px; }

    .mobile-menu-toggle { display: flex; }

    .main-nav {
        display: none;
        width: 100%;
        border-top: 1px solid var(--rule);
        padding-top: 18px;
        margin-top: 4px;
    }

    .main-nav.active { display: block; }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 10px;
    }

    .main-nav a { font-size: 1.0625rem; }

    .svc__row, .reason, .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .svc__row { gap: 10px; }
    .reason { gap: 8px; }
    .reason__i { order: -1; }

    .register__grid { grid-template-columns: minmax(0, 1fr); }

    .register__cell {
        border-left: 0;
        padding-left: 0;
        border-bottom: 1px solid var(--rule);
        padding-block: 15px;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
    }

    .register__cell:last-child { border-bottom: 0; }
    .register__k { margin-bottom: 0; }
    .register__v { text-align: right; }

    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
